OBJ loader or pfdBuilder question

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Thu, 11 Sep 1997 16:25:45 -0400 (EDT)


I have an OBJ file that appears to load fine with perfly, i.e. the
front faces across groups seems to be correct.

Now I have been developing my own OBJ loader to have greater control over
strips and though I had reasonably stable. But with this one particular
model some of the groups have the normals reversed (back and front have been
reversed).

Now I am used to Alias screwing up the normals on entire groups, and I am
trying to figure out whether the (1) OBJ file is messed up or (2) my code has
a bug.

My question involves the former case: during pfLoadFile_obj, does the
pfdBuilder code (or whatever) check to see if the assigned normals are
consistent with the CCW order of the vertices of the triangles, and if it
detects an inconsistency does it reverse the normals?

Regards,
scott

-- 
  Scott McMillan  |     HT Medical, Inc.    | Disclaimers
   scott++at++ht.com   |    http://www.ht.com    | available
 Ph: 301-984-3706 | 6001 Montrose Rd., #902 | upon re-
Fax: 301-984-2104 |   Rockville, MD 20852   | quest.
=======================================================================
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:55 PDT

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