Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects with "Optimize for Instancing" option and different material appear with one material #350

Open
usakhelo opened this issue Jan 19, 2020 · 2 comments

Comments

@usakhelo
Copy link
Contributor

Discovered this bug while working on ActiveShade PR. To reproduce do the following:

  1. Create an object
  2. Apply appleseed modifier and check "Optimize for Instancing"
  3. Make one or more instances of the object
  4. Assign different materials to the instances
  5. Render. Objects are rendered with one material due to assembly_map cache. First object assembly contains object and it's material and subsequent instances use the same assembly.
@usakhelo
Copy link
Contributor Author

usakhelo commented Jan 19, 2020

I'm wondering if it's a bug or it should be this way?
It's single "object assembly" with its own set of object instances and materials that gets duplicated with assembly instances, right? So they will have the same material probably.

@dictoon
Copy link
Member

dictoon commented Jan 23, 2020

This is a long standing limitation of appleseed: instances of an assembly cannot override materials used in that assembly, that means that all instances of an assembly use the same materials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants