Hi Emmanuel, The OSG doesn't presently support naming of vertex attributes, only use of indexes.
Naming of vertex attributes is a bit of awkward issue as the way the naming is set up in OpenGL prevents one from display listing geometry, and display listing of geometry is what the OSG does by default for performance reasons. This area is a bit of an oddity in OpenGL. Robert. On 4/11/07, Emmanuel Roche <[EMAIL PROTECTED]> wrote:
Hello !! I'm trying to generate the tangent,binormal,normal base for a GLSL parallax shader. I would need to provide the "tangent" and "binormal" vectors as "attribute" (in GLSL grammar)... I checked OSG source : apparently I need to use the TangentSpaceGenerator class to build the arrays, but then, in osg::Geometry I can only use setVertexAttribArray(unsigned int index,Array* array) I guess, so the array would be associated to an index number and not a "name", could someone explain me how to do the following step (link this index number to the wanted name I guess...) ? thanks in advance :-) regards, Emmanuel. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
