Re: inhibit display flags in Multigen

New Message Reply Date view Thread view Subject view Author view

Marcus Barnes (marcus++at++multigen.com)
Thu, 7 Nov 1996 18:31:03 -0800


On Nov 7, 5:21pm, Lisa Hart wrote:
> Subject: inhibit display flags in Multigen
> Hello --
>
> We're using Multigen for modeling and want to show lights on in
> building at dusk/dark.
>
> I know that the performer loader for .flt files ignores the object
> inhibit flags (objects should/should not be rendered at certain times
> of the day).

The loader doesn't use the object flags, but it does export them to the
application via the loader callback. Once you have the flag values you can
control the drawing of the object's pfGeode using traversal masks or by
inserting your own pfSwitch node.

The bit positions and masks for the day/night/dusk flags are (big endian):

not daylight 31 0x80000000
not dusk 30 0x40000000
not night 29 0x20000000

... as interpreted from the OpenFlight spec.

Regards.

--
+ Marcus Barnes, Technical Staff        mailto:marcus++at++multigen.com +
+ Multigen Inc.                         http://www.multigen.com    +
+ 550 S. Winchester Blvd.               phoneto:1-408-556-2654     +
+ Suite 500 San Jose CA 95128           faxto:1-408-261-4102       +
=======================================================================
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:53:54 PDT

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