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

Instances and Materials #147

Open
BooneAllred opened this issue May 11, 2022 · 0 comments
Open

Instances and Materials #147

BooneAllred opened this issue May 11, 2022 · 0 comments

Comments

@BooneAllred
Copy link

BooneAllred commented May 11, 2022

What is the difference between using
--instance, -i Instance re-occuring geometry
--instanceall, -I Instance every geometry (for cheaper re-use)

I noticed when you use a -i that the group contains the geometry and the material, however if you use the -I the group doesn't contain the material.

Is it possible to access the material to change it inside of the instanceall code?

I am currently doing a environment layout and approaching this project like you would in a game engine, by reusing the geometry for the walls to reduce drawcalls. I would also like to create a few materials that I could assign to each wall to add some variety in the environment. I would think it would be better to only declare the materials once and reuse them on the instance geometry vs declaring them or changing them for every piece of geometry. Sorry I come from a 3D background and not a coding even though I can understand and read and write some code. Is my thought process wrong for how to approach this?

Or would it be easier to just assign the materials inside of blender before I export them and react is smart enough to reuse the materials without having to create new ones?

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

1 participant