Re: GeoSets

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.asd.sgi.com)
Thu, 17 Jul 1997 08:58:13 -0700


On Jul 17, 7:54am, Peter Plachta wrote:
> Subject: GeoSets
>
> Hi
>
> I have a slight problem with pfGeoSets - I change the colour of
> my pfGeoSet, enable lighting (I set PFSTATE_ENLIGHTING in a pfGeoState
> attached to the scene), attach a light to the scene & attach
> the GeoSet to the scene (through a pfGeode), but my set is not shaded. I
> compute the normals using cross product.
>
> When run on an Iris-GL, it always results in a white flat-shaded set.
> On an Open-GL, it's the right colour, but it is still flat-shaded.
>
> Any ideas would be appreciated

This is probably caused by the OpenGL symantic of a colour c4f call
disabling lighting with the lmcolour setting to color. This is a
difference between OpenGL and IrisGL and you would have to modify the
performer material colour mode to correct this.

It's not a bug, just a difference between IrisGL & OpenGL specs.

The flat shading is probably the normals you use, you need different
normals and the appropriate attribut binding and information for smooth
shading.

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:37 PDT

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