Liu Xiaoyan (liuxy++at++nsrc.nus.sg)
Tue, 27 Jan 1998 13:50:57 +0800
Liu Xiaoyan
National Supercomputing Research Center
Singapore
attached mail follows:
Also, I have broken rectangles up into triangles, and the two triangles
do not have the same color, despite being in the same geoset with
color applied overall.
According to the man page on MtlSide, I must:
1. have a 2 sided light model
2. have face culling turned off.
Both of these conditions have been met.
According to pfApplyMat (later on same man page), the following
conditions must be met for lighting:
1. Lighting must be enabled via pfEnable
2. a pfLightModel must be applied using pfApplyModel
3. A pfMaterial must be applied using pfApplyMtl.
4. One or more pfLights must be on.
5. the geometry must have normals.
Again all of these conditions have been met.
So questions:
1. Is there some dependency on the order in which the above-mentioned
function calls must be made?
2. Why do the backs of triangles not have color?
3. Why do the fronts of co-planar triangles have different colors?
Mark Johnson
johnson++at++vrlab.uccb.ns.ca
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:37 PDT