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); > > to get anything at all on the screen ( otherwise there are no primitives ).
OH WAIT, if you weren't using the shaders, then on wonder. :) So, scratch my first response. As far as your binding speculation is concerned: you are probably right. I was just hoping I could avoid some repetitive memory use for the heightfields this way. > 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