Re: smooth globe

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Fri, 10 Oct 1997 17:46:47 -0400 (EDT)


> 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??
>
> Thanks,
>
> Julie

Your application is apparently setting FLAT shading while perfly is using
GOURAUD shading (I am assuming you want the latter). First try the following
somewhere in your application:

  pfShadeModel(PFSM_GOURAUD);

If that doesn't work you probably have to fiddle with the model's pfGeoState.
if you can get a handle to this pfGeoState (call it gstate) then the
following command might work:

  gstate->setMode(PFSTATE_SHADEMODEL, PFSM_GOURAUD);

This is in the man page for pfShadeModel but is missing from the pfGeoState
man pages.

Actually I won't go any further...the man page for pfShadeModel lists about
four different ways that FLAT shading could be turned on and off. You'll
have to go through them and see which one is causing flat shading.

Cheers,
scott

-- 
  Scott McMillan  |     HT Medical, Inc.    | Disclaimers
   scott++at++ht.com   |    http://www.ht.com    | available
 Ph: 301-984-3706 | 6001 Montrose Rd., #902 | upon re-
Fax: 301-984-2104 |   Rockville, MD 20852   | quest.
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:04 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.