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
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users