[osg-users] Why is setTexCoordArray(0, texcoords) needed if array is modified in-place
Florian Castellane
fixed-term.florian.castellane at bosch.com
Thu Jul 7 05:08:56 PDT 2016
Hi Sebastian, thanks for the answer.
Calling texArray->dirty() does not seem to be enough, since my texture is not displayed. I can confirm that my shader is being applied though - it just doesn't seem to get the texture coordinates.
My custom geometry class (MyNameSpace::MyGeometry) does indeed
Code:
setDataVariance(osg::Object::DYNAMIC);
setUseDisplayList(false);
setUseVertexBufferObjects(true);
in its constructor.
Best regards,
Florian
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68038#68038
More information about the osg-users
mailing list