Re: [Plib-users] plib and shadows
Brought to you by:
sjbaker
|
From: <Rol...@t-...> - 2002-06-15 18:34:26
|
Hello,
how can I change the material of a leaf that's part of a database imported
from AC3D ?
I traverse all leaves and set the state as following :
state->disable(GL_LIGHTING);
state->disable(GL_BLEND);
state->disable(GL_TEXTURE_2D);
state->setColourMaterial(GL_DIFFUSE);
state->setMaterial(GL_DIFFUSE,0.0f,0.0f,0.0f,0.5f);
state->setShadeModel(GL_FLAT);
But the leaves are rendered in their colors, so the textures are missing. But
what I need is a whole ssgTransform in black. The branch in question was
created by a clone(SSG_CLONE_RECURSIVE|SSG_CLONE_STATE).
Am I missing something ?
Thanks,
Rolf
--
Rolf Jakob at home (rj...@du...)
WWW : http://www.franken.de/users/duffy1/rjakob (KDE-Utils and CCS)
|