Shuxxx!! (engp7534++at++leonis.nus.sg)
Tue, 14 Oct 1997 09:41:38 +0800 (SST)
> Let me clarify my previous message:
>
> > I have what's probably a fairly simple problem.
> >
> > I'm rendering a globe in a Performer application and it looks faceted
> > (like Epcot at Disney). If I view the same globe using perfly, it looks
> > smooth (as it should). Does anyone know what I'm missing??
>
>
> This globe was generated with MultiGen and Gouraud shadding is being applied
> when rendering with Performer. The problem is that the normals for the
> triangles (of the globe) are being used instead of the normals for the vertices
> of the triangles. Any ideas??
>
Just a query: Do you have the individual vertex normals? If you have,
you can set the normals on a per-vertex basis (using gset->setAttributes
(PFGS_PER_VERTEX, ...)) . As you said, your Performer application is
probably using PFGS_PER_PRIM (I'm assuming that MultiGen creates a
list of indept triangles here) -- hence the Epcot look for the globe.
If you don't have the list of individual vertex normals, you may either
calculate it out bruteforce (yuck) or extract it from perfly. Have a look
at the source code of the database loading for MultiGen files.
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:04 PDT