|
From: Dirk R. <dre...@ia...> - 2006-02-28 23:57:50
|
Hi Josef, On Tue, 2006-02-28 at 12:16 +0100, Josef Grunig wrote: > Hi all, > > I have a model which materials are defined as SimpleTexturedMaterial. > I would like to add shaders and textures to those materials but seems > not to work simply adding a ShaderChunk/TextureChunk to the > ChunkMaterial of the geometry. > > Do TextureChunk and SimpleTexturedMaterial conflict each other? No, not at all. > Do I need to convert each SimpleTexturedMaterial into a TextureChunk > and then add them to the ChunkMaterial, parent of > SimpleTexturedMaterial? Is there a tricky way to do this? There's always a tricky way, just not always an easy one. ;) I could see two things: are the models loaded from VRML? The VRML loader ignores the Geometry's material, and uses a MaterialGroup on top of the Geometry for setting the Material. So go to the parent and change that Material for VRML. If not, remember that the SimpleTexturedMaterial does add its own TextureChunk to the system, so if you add one, it will be the second one and will show up in the second texture unit. If that's not it either I would need some more info on what exactly is going wrong. Yours Dirk |