Re: [osg-users] Integer vertex attribute issue. Repro included.

2011-05-17 Thread Fred Smith
robertosfield wrote: I didn't even realize there was a glVertexAttribIPointer... so yes this does sound like it will be the issue. Either osg::Geometry::drawImplementation or osg::State will need to be adapted to detect the use of the interger array and use the glVertexAttribIPointer. Feel

Re: [osg-users] Integer vertex attribute issue. Repro included.

2011-05-16 Thread Fred Smith
It looks like a problem with OSG to me. OSG should be using glVertexAttribIPointer instead of glVertexAttribPointer when dealing with integer attributes. See: http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflatNumber=296704#Post296704 Not sure this is the actual problem but it

Re: [osg-users] Integer vertex attribute issue. Repro included.

2011-05-16 Thread Robert Osfield
Hi Fred, I didn't even realize there was a glVertexAttribIPointer... so yes this does sound like it will be the issue. Either osg::Geometry::drawImplementation or osg::State will need to be adapted to detect the use of the interger array and use the glVertexAttribIPointer. Feel free to dive

[osg-users] Integer vertex attribute issue. Repro included.

2011-05-14 Thread Fred Smith
Hi, I can successfully bind a Vec3 attribute to my vertices. But somehow, calling setVertexAttribArray with an IntArray doesn't work for me. I have attached a modified osggeometryshaders.cpp file to illustrate my issue. Summary of changes: Code: // all shader versions changed to #version 150