Author Topic: Relationship TextureManager with multiple objects  (Read 59 times)

Offline rbj

  • byte
  • *
  • Posts: 4
    • View Profile
Relationship TextureManager with multiple objects
« on: February 13, 2019, 01:47:46 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11963
    • View Profile
    • http://www.jpct.net
Re: Relationship TextureManager with multiple objects
« Reply #1 on: February 13, 2019, 03:20:46 pm »
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.