As a starter, you should probably read through the OSG Quick Start Guide to become familiar with how OSG's Geometry class uses PrimitiveSets, or take a look at many examples such as osggeometry. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com/> +1 303 859 9466
_____ From: [email protected] [mailto:[email protected]] On Behalf Of Omar Alvi Sent: Tuesday, May 26, 2009 4:34 PM To: [email protected] Subject: [osg-users] Accessing Texture Indices Hello guys, I am new to osg. I have loaded an obj file using osgDB but I don't know how to access vertex and texture indices. I can get the vertex array from the geometry using pGeo.get()->getVertexArray() method but pGeo.get()->getVertexIndices() returns null. I cant figure out how the indices are stored for the vertices and the texture. The model is loaded and displayed fine so there is definitely a problem in the way I am accessing the data. Would really appreciate any help. Thanks _____ HotmailR has ever-growing storage! Don't worry about storage limits. Check it out. <http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutori al_Storage1_052009>
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

