Hi
I have just tried to use a LinearFog node with scoping. The stuff
is running fine now, but when I called fogNode.addScope( ) multiple
times (by mistake) with the SAME Group, it crashed throwing the
following exception when trying to render the first frame:
java.lang.ArrayIndexOutOfBoundsException: 1
at javax.media.j3d.Traverser.traverse(Traverser.java:866)
at javax.media.j3d.Traverser.traverse(Traverser.java:807)
at javax.media.j3d.Traverser.run(Traverser.java:2084)
Below is the code that instantiates the Fog node:
// Create a fog node that fogs out distant orbit track legs
fogNode = new LinearFog();
fogNode.setFrontDistance( OUTER_LIMIT / 100d );
fogNode.setBackDistance( OUTER_LIMIT / 10d );
fogNode.setColor( new Color3f( 0.2f, 0.2f, 0.2f ) );
fogNode.setInfluencingBounds( new BoundingSphere( new
Point3d(0,0,0), Double.MAX_VALUE ) );
sceneBG.addChild( fogNode );
BTW: Why are only groups addable? Which sense makes the restriction to
add only Group objects and not Node objects?
Regards, Thomas
--
-------------------------------------------------------------------
Thomas Auinger . [EMAIL PROTECTED] . Tel 06151-979355
Kranichsteiner Str. 93 . 64289 Darmstadt . www.postspiel.de
===========================================================================
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".