omaralvi wrote: > 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 > > Hotmail® has ever-growing storage! Don’t worry about storage limits. Check it > out. > > ------------------ > Post generated by Mail2Forum
Hi! If your file isn't a .osg, you can convert it using osgconv in prompt. Once you have a .osg you can open it with a text editor, thus you can have an idea of how is your scene graph organized. ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13006#13006 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

