HI Daniel,

It sounds like an OpenGL driver issue. I don't recall any hard limits w.r.t
texture units with texgen but being fixed function state the driver might
not map it all the way up.

Robert.


On 13 December 2013 07:36, Daniel Schmid <[email protected]>wrote:

>  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
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to