Hi Ray, My best guess is that you've got the indices of DrawElementUInt(GL_TRIANGLES) wrong. Beyond this there really isn't much I or other can recommend as we don't have the code in front of us.
The OSG itself now has a ply plugin so why not just use this? It'll be in OSG-2.8.2 and svn/trunk. Robert. On Fri, Dec 4, 2009 at 3:42 AM, Ray Stamper <vijay.ro...@gmail.com> wrote: > Hi, > I've been building a Delta3D application that uses OSG as the rendering > module. It's pretty simple, as all it is meant to do is display some 3D > triangle meshes and allow them to be moved around. Up until now, I've just > been importing 3ds files through the Delta3d api, which worked well enough > but was limited to 2^16 vertices. I wrote a class to make a Geode from .ply > files, but they end up looking a little weird. Geometrically, they are > correct. The problem is that they end up looking like silhouettes. No > surface features can be seen. I would guess this is because I set the > Geometry with one colour and had it set BIND_OVERALL. All the DrawElements > on the mesh are osg::PrimitiveSet::TRIANGLES. Basically I'm trying to figure > out how to make the faces subtly stand out a little more, without just > picking random colours for each face. I would appreciate suggestions. > > > Thanks very much, > > Cheers, > Ray > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=20853#20853 > > > > > > _______________________________________________ > 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