From: Andrew Preece (apreece++at++sgi.com)
Date: 03/13/2002 04:13:21
Hi,
In order to change a switch you need to be able to get reference to it. To
get a reference you need to customise the OpenFlight reader. Once you have
a pointer to the pfSwitch's in your loaded scene you should then be able to
make a pfswitch -> setVal() call to control the switch settings. Be warned
that you must set up the switch masks in the Switch beads in Creator in
order
for the Multigen OpenFlight reader to create the correct tree structure in
Performer.
Look at the document
/usr/share/Performer/src/lib/libpfdb/libpfflt/README.FLT.
This has some example code and documentation on customising the OpenFlight
reader.
Attached is some additional example code.
Regards,
Andy
-----Original Message-----
From: Ludwig, Thomas [mailto:Thomas.Ludwig++at++dlr.de]
Sent: 13 March 2002 8:34
To: 'info-performer++at++sgi.com'
Subject: pfSwitch and OpenFlight
Hi all,
We attempt to use switches in a *.flt database via pfSwitch and pfSwitchVal
(). But we cannot change the values. Has somebody experience with the use of
switches in an Open Flight file by Performer (maybe an example)?
many thanks
Thomas
German Aerospace Center
Institute of Flight Guidance
Pilot Assistance
Lilienthalplatz 7
38108 Braunschweig
Phone: +49-531-295-2934
Fax: +49-531-295-2550
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Wed Mar 13 2002 - 04:13:36 PST