Hi,

I've built OSG for Android with GLES 2.0 support. I've created very simple 
scene where I render a sphere using ShapeDrawable.

In the first frame I can see that OSG calls glEnableVertexAttribArray() and 
sets the data using glVertexAttribPointer(). After that it calls 
glDrawElements() and the sphere renders fine.

However at the end of the frame the app calls glDisableVertexAttribArray() (I 
am using Qt for OSG integration and Qt changes the vertex arrays). That's why 
the next frame no geometry draws because OSG does not call again 
glEnableVertexAttribArray() and glVertexAttribPointer() but only 
glDrawElements().

I'd like to force OSG to call on each frame glEnableVertexAttribArray() and 
glVertexAttribPointer() before calling glDrawElements() because the vertex 
arrays state has changed between the frames and needs to provide again the 
correct data.

How I can do this?


Thank you!

Cheers,
Plamen

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76274#76274





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to