Re: reflecting GeoSets causes shading to malfunciton (fwd)

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Fri, 7 Feb 1997 19:22:44 +0000


On Feb 7, 10:17am, Jean BENOIT wrote:
> Subject: Re: reflecting GeoSets causes shading to malfunciton (fwd)
> I think you have to multiplieof the componants of the normals by -1, not
only
> on X

The normals will also be transformed by the model matrix, but
vertex winding will be reversed, as already posted.
With two sided lighting the reversed normal and back face material
will be used. If the backface material is the same as the frontface
material and two sided lighting is on then reversing the normal
could fix the problem.

The three posted fixes so far including yours are:

1) Reverse vertex ordering either in the database or in the GL.
2) Turn off two sided lighting and reverse face _culling_.
3) As you say, reverse surface normals, but you must also ensure
   that back face material == frontface material.

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:54:36 PDT

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