Hi, I've discovered that I can't define an integer vertex array using OSG although it appears to be supported by GL and GLSL. I've found a post from last May about it but I can't share the link due to this forum's 2-post requirement. The post title is:
"Integer vertex attribute issue. Repro included." The problem is just that GL requires a different call when defining an integer type array than when defining a floating point type of array. float types: glVertexAttribPointer integer types: glVertexAttribIPointer This means a little bit of extra code is needed in State.cpp in the setVertexAttribPointer method to call the correct method based upon the type parameter. I've seen no more recent mentions of the issue and I can't see any changes related to it in the most recent released code or in the repository. Just wondering if anyone else has worked on this or maybe found a workaround. If not, I'll look into fixing it and submitting a patch. Thank you! Cheers, Joel ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44921#44921 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

