Hi there
I noticed a limitation in TexGen. It looks like osg::TexGen can only be used up 
to a texture unit between 0 and 3, starting from texture unit 4 to 7, 
osg::TexGen have no more effect.
You can easily test this with the osgspotlight.cpp example by changing the 
following lines:

Line 249:
xform->addChild(createSpotLightNode(osg::Vec3(0.0f,0.0f,0.0f), 
osg::Vec3(0.0f,1.0f,-1.0f), 60.0f, 0, 1));

replace the last number (1).


Line 275:
root->setStateSet(createSpotLightDecoratorState(0,1));

replace the last number (1).

If you use numbers between 0..3, everything works fine, 4 and up doesn't work 
anymore.

Where does this limitation come from? Is this OSG or opengl?

Regards
Daniel

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to