[osg-users] osgfx::bumpmapping example ?
Vincent Bourdier
vincent.bourdier at gmail.com
Fri May 2 03:09:48 PDT 2008
Hi all,
I just want to set a bump mapping effect on a geode, but the only thing I
obtain is the geode all colored in black.
I didn't found any example of BumpMapping, and I didn't succed setting it on
my geode doing :
osgFX::BumpMapping* bump = new osgFX::BumpMapping();
> bump->addChild(geodeMoon);
> bump->setLightNumber(0);
> bump->setDiffuseTextureUnit(0);
> bump->setNormalMapTextureUnit(1);
> bump->prepareChildren();
In my exemple, the texture1 and texture0 are the same, but I just want to
test if I have a result
How do you use it ?
Thanks.
Regards,
Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080502/81917fce/attachment.htm
More information about the osg-users
mailing list