We've run into some strange problems in our code that I can't figure an
answer for. The simple requirement is to have multiple ViewPlatforms in
the scene graph and then swap between them on the fly by using
View.attachViewPlatform(). This is throwing a wobbly exception with

java.lang.NullPointerException:
        at javax.media.j3d.View.deactivate(View.java:2036)
        at javax.media.j3d.View.evaluateActive(View.java:1911)
        at javax.media.j3d.View.attachViewPlatform(View.java:1596)

Now, one solution is that we just use a single ViewPlatform and change
the transform group that it is part of, but that can be a bad hack for
the application framework that we've constructed, so I'd like to find
the reason for this.

Usual info: JDK 1.2.2rc1, J3D 1.1.2


--
Justin Couch                                   Author, Java Hacker
Snr Software Engineer                     [EMAIL PROTECTED]
ADI Ltd, Systems Group              http://www.vlc.com.au/~justin/
Java3D FAQ:       http://tintoy.ncsa.uiuc.edu/~srp/java3d/faq.html
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
 Turn it or move it, and a new set of arrangements appears... is it
 a single light or many lights, lights that one must know how to
 distinguish, recognise and appreciate? Is it one light with many
 frames or one frame for many lights?"      -Subcomandante Marcos
-------------------------------------------------------------------

===========================================================================
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