Re: Shading

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Wed, 20 Aug 1997 21:05:36 -0700


On Aug 20, 2:59pm, Sasikumar Kutti wrote:
> Subject: Shading
> Hi
>
> I am having a trouble with getting smooth shaded models.
>
> I imported a Multigen flight model in 'trackball.c'. It looks badly
> shaded. So I inserted the following lines in the code
>
>
> pfShadeModel( PFSM_GOURAUD);
>
> pfOverride(PFSTATE_SHADEMODEL, PF_ON);
>
>
>
> Further the model doesn't look different even if change to flat shading.
>
> The model looks good in Multigen so I guess there is little chance that
> it has very few polygons.
>
>
> Where could I be going wrong?
>
> Any help will be appreciated.
>
> Thanks

Your code changes won't affect the geoset & geostate information created
by the loader so you probably have a model which has been shaded flat in
the tool.

When you <ctrl>g to shade in the tool select dynamic gouraud or just
dynamic depending on the tool and loader version, and make sure you
adjust the tolerances etc to give a smooth appearance.

Cheers,Angus
=======================================================================
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:55:45 PDT

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