2009/12/4 Ulrich Hertlein <[email protected]>

> On 4/12/09 4:42 AM, Ray Stamper wrote:
> > 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.
>
> This sounds like you might have the geometry but without any normals.  If
> this is the case
> you won't get any shading which can make it look flat.
>
> Cheers,
> /ulrich
>

Try running the smoothing visitor  on your model.
in osgUtil/SmoothingVisitor

-- 
http://www.ssTk.co.uk
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to