[osg-users] Problem reading Openflight file switch node

Tony Vasile minghia at gmail.com
Fri Dec 11 00:31:28 PST 2015


We are having what we think is a problem with reading our OpenFlight file. We have a switch which has two groups of nodes under it. The first three pieces of geometry are supposed to be visible when the switch is in position 0 and the second three are supposed to visible when the switch is in position 1. However when I look at the dump of the OpenFlight file I get the following:

Code:

sgSim::MultiSwitch {
                    name "articSw2"
                    nodeMask 0xffffffff
                    cullingActive TRUE
                    description "featureId(artic0)"
                    NewChildDefaultValue 1
                    ActiveSwitchSet 0
                    ValueList 0 {
                      1
                      1
                      1
                      1
                      1
                      1
                    }
                    ValueList 1 {
                      1
                      1
                      1
                      1
                      1
                      1
                    }
                    num_children 6


 

Based on our setup I would expect to see have the values in either of the ValueLists to be set to 0, rather than all one. Is this a problem with our model or the OpenFlight plugin? 

I have attached a small piece of our original model which has been renamed to radar_flt.txt

------------------------
Tony V

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65841#65841



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: radar_flt.txt
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151211/507beb8d/attachment-0002.txt>


More information about the osg-users mailing list