Rendering flat objects

Thant Tessman thant at horus.SGI.COM
Sat Apr 22 01:11:15 AEST 1989


In article <29925 at bu-cs.BU.EDU>, tjh at bu-cs.BU.EDU (Foxbat) writes:
> Is there a mode to tell the geometry engine to do diffusely (and specular)
> shade a polygon even though its normal vector is pointing away from the
> light source. (Thus only getting ambient shading)
> 
> Thanx...
> Tim
> tjh at bu-pub.bu.edu

What you can do is create two versions of the object you want to draw.  One
with normals one way and the other with normals the other way.

Define the polygons of each object so the vertices of each polygon are in
counter-clockwise order when the normal is pointing at you (right-hand rule).
That means that one object's vertices will be in opposite order of the other.

Do backface(TRUE) and draw both objects.

thant at sgi.com



More information about the Comp.sys.sgi mailing list