Relationship TextureManager with multiple objects

Started by rbj, February 13, 2019, 01:47:46 PM

Previous topic - Next topic

rbj

Hi,

I am showing several 3d objects at the same time, this works fine.
Next, some objects need to be grayed out, some should have color/texture, depending on being selected or not.
I do this by replacing the textures in the TextureManager with a Texture from gray.png file.

However, how do I find out which Textures in TextureManager belong to which Object3D?

Or is there a simpler method of not using the color and textures of a 3D object?
(All objects are read from *.3DS exports from Blender)

Hope someone can point me in the right direction...

Robert

EgonOlsen

There are several ways to do this. Your way, a custom shader or, which is what I would try first, changing the texture on the object and not in the manager. That's a cheap operation for single textured objects.