This is the purpose of OrderedGroup. In your example below,
you don't mention whether or not Z buffering has been disabled.
If Z buffering is enabled, you still won't see the second cube.
Doug Twilleager
Sun Microsystems
>MIME-Version: 1.0
>Subject: [JAVA3D] What does an OrderedGroup actually do?
>To: [EMAIL PROTECTED]
>
>Can anyone out there explain to me what the purpose of OrderedGroup is?
>After reading the API Documentation, I would expect it to draw Shape3D's in
>their index order regardless of which is spatially in front of the other.
>This doesn't seem to be the case and I don't understand why.
>
>For instance, for the following code I would expect the renderer to draw
>the larger ColorCube first and then the smaller ColorCube so that you would
>see the smaller ColorCube even though it is really inside the larger
>ColorCube. But no matter which order I add the cubes in, I only see the
>larger one.
>
>OrderedGroup.addChild( new ColorCube( 2.0 ) );
>OrderedGroup.addChild( new ColorCube( 1.0 ) );
>sceneBG.add( OrderedGroup );
>
>This is just a simple example to illustrate my question. My actual situation
>is more complex.
>
>Thanks,
>
>Raffi
>
>===========================================================================
>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".
===========================================================================
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".