#Different material color/texture per instance

7 messages · Page 1 of 1 (latest)

dense swallow
#

I have a GLFT model I made in Blender with a simple material (see image). I want each instance of the model to be able to set it's own color and texture for the material.

What would be the best way to do this?

fathom imp
#

if your creating instances (not GPU instances just multiple entities) of it in bevy (not blender) then you could just take the mesh from blender and form it in a bundle in bevy with whatever colour you want when making it, though you'd need to remake your material in bevy I think (I'd start from the extended material example). Idk how material imports through gltf work, you may be able to get both material and mesh seperatly out of the gltf and then put them back together again with different colour values when you create the entities.

#

sorry if it's unclear, I'm new my self and have always made my materials in engine

dense swallow
#

Ok thank you, I will look into that.

dense swallow
#

I was able to get an early draft working. Thanks again for the help!

cedar root
dense swallow
#

Oh I see. So any changing textures need to be recreated in Bevy with shaders.