On Tue, 2011-08-23 at 22:27 +0200, Tony Horrobin wrote:
> Hi Jeremy,
> 
> The glsl attachments have been squashed - could you attach them as .txt, 
> please?
> 
> I believe you have to bind shader vertex attributes as PER_VERTEX as opposed 
> to colours and normals which can be PER_PRIMITIVE.
> Then copy the line that calls push_back() on gridCoordinates so you have 4 
> calls and it should work.
> 
> I had to add:
> setVertexArray(gridPositions);

You shouldn't have to call this at all. Something is still wrong if you
need to. :( Drats...

> to get anything at all on the screen ( otherwise there are no primitives ).
>
> Cheers,
> 
> -Tony
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=42202#42202
> 
> 
> 
> 
> 
> _______________________________________________
> 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