Hi all,
I have a question about the use of switch nodes. Previously I have used
the switch node for loading geometry into a scene from multiple files
and displaying these one at a time. Due to performance issues and due to
the fact that my current geometry has 2 symmetry planes I would very
much like to only load 1/4 of the geometry and then apply 4
transformations on a switch node in order to obtain the complete
geometry. The scene graph would look something like this:
scene (- GroupPtr)
/ / \ \
T1 T2 T3 T4 (- TransformPtr)
\ \ / /
sw (- Switch)
I tried to implement this by using a for-statement when creating the
scene - pretty much like given in tutorial example 03share.cpp. Doing
this leaves me with a problem of not being able to control what is to
shown from the transformed switch nodes (i.e. sw->setChoice) - I'm only
able to control the last transformed switch node (T4).
Any suggestions to how this problem can be solved?
Regards,
Mikkel
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users