Hi Vincent, Take a look to osgfxbrowser, there are an example of bump mapping use. In fact, all is in osgfx::BumpMapping::setUpDemo()
HTH David Callu 2008/5/2 Vincent Bourdier <[EMAIL PROTECTED]>: > 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 > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org