Hi Ravi,

If you want to use osg_Vertex then you'll need to
setUseVertexAttributeAliasing().

Robert.

On 17 September 2016 at 04:26, Ravi Mathur <ravid...@utexas.edu> wrote:
> 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
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to