www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: rbj on February 13, 2019, 01:47:46 pm

Title: Relationship TextureManager with multiple objects
Post by: rbj 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
Title: Re: Relationship TextureManager with multiple objects
Post by: EgonOlsen 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.