Hi everybody!

I would like to use the Switch class, the
BitSet class and the SwitchValueInterpolator
class to switch the rendering of five differents
children (one after the other) attached
to a Switch node.

The rendering of these five children (Shape3D
nodes) must be done in function of the alpha
value (that is in function of the time).

Who could tell me how to properly set up the
BitSet-mask for this alpha-switching ?


switchObject = new Switch(Switch.CHILD_MASK);
switchObject.setCapability(Switch.ALLOW_SWITCH_READ);
switchObject.setCapability(Switch.ALLOW_SWITCH_WRITE);

switchChildMask = new BitSet(5);
???
???
???

switchObject.setChildMask(switchChildMask);
switchAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE,0, 0,
                        1000, 0, 0,0, 0, 0);
switchValInter = new SwitchValueInterpolator(switchAlpha,
                                           switchObject);
switchValInter.setSchedulingBounds(genBound);

switchObject.addChild(switchValInter);

switchObject.addChild(object1);
switchObject.addChild(object2);
switchObject.addChild(object3);
switchObject.addChild(object4);
switchObject.addChild(object5);


Thanks for any help,

regards,

Laurent--

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to