Hi all,

I see some behavior that I don't understand when using the osg_Vertex shader 
attribute across various graphics cards. Hopefully someone can shed some light.

I am enabling OSG uniforms using 
GraphicsWindow->getState()->setUseModelViewAndProjectionUniforms(true). Then, 
in my vertex shader, I use osg_ProjectionMatrix and osg_Vertex. Note that I 
don't call State::setUseVertexAttributeAliasing().

Everything works fine on many graphics cards, but on some cards my vertex 
shader behaves as if osg_Vertex is undefined. It doesn't give any errors, just 
produces results as if the vertex is zero. This only seems to happen with 
graphics cards where the renderer reports "OpenGL 4.1 Compatibility Profile 
Context". Examples are ATI Radeon HD 5450 and AMD FirePro V5900 cards.

Any ideas on what I'm missing here? 

Thanks!
Ravi

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





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

Reply via email to