Re: OBJ loader or pfdBuilder question

New Message Reply Date view Thread view Subject view Author view

Scott McMillan (scott++at++ht.com)
Fri, 12 Sep 1997 15:02:12 -0400 (EDT)


> +>---- On Sep 12, 11:53am, Scott McMillan wrote:
>
> ->
> ->That explains everything!
> ->
> ->Wow I have been fighting against perfly (partially) and didn't even know it.
> ->
> ->So if I just make a call to
> -> pfdBldrMode(PFDGBLDR_AUTO_ORIENT, PFDGBLDR_ORIENT_PRESERVE);
> -> or
> -> pfdBldrMode(PFDGBLDR_AUTO_ORIENT, PFDGBLDR_ORIENT_NORMALS);
> ->(or use perfly -O 13,x) this should affect the pfdGeoBuilder state
> ->appropriately before I load my model with pfdLoadFile, right?
>
> I think so - did it work?
>
> src.

No and then finally yes....I have finally found the source of my confusion:

The following is reported by 'perfly -h':
    -O <mode>,<value> -Set builder mode (default value is ON)
        :
        :
   13 -> PFDBLDR_AUTO_ORIENT
             0 -> PFDBLDR_ORIENT_PRESERVE - leave normal and order alone
             1 -> PFDBLDR_ORIENT_NORMALS - make normal match vertex order
             2 -> PFDBLDR_ORIENT_VERTICES + make vertex order match normal

Which I take to mean that option 2 is the default. I get the following from
/usr/include/Performer/pfdu.h:

        /* PFDBLDR_AUTO_ORIENT modes */
        #define PFDBLDR_ORIENT_PRESERVE 0
        #define PFDBLDR_ORIENT_VERTICES 1
        #define PFDBLDR_ORIENT_NORMALS 2

So the usage help for perfly is incorrect: while ORIENT_VERTICES is indeed
the default it is <value>=1 (not 2). and 'perfly -O 13,2' is what I needed
to verify my problems.

Thanks,
scott

P.S. This is still a bug in the pf2.2 perfly source (another minor nit,
     Sharon :). The usage help in cmdline.C should read:

   13 -> PFDBLDR_AUTO_ORIENT
             0 -> PFDBLDR_ORIENT_PRESERVE - leave normal and order alone
             1 -> PFDBLDR_ORIENT_VERTICES + make vertex order match normal
             2 -> PFDBLDR_ORIENT_NORMALS - make normal match vertex order

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

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