Justin,

It appears that this bug is caused when you attach a non-live
ViewPlatform to a View that was previously attached to a live
ViewPlatform.  We will look into getting this fixed.  In the mean time,
if you first make sure that the new ViewPlatform is live before you
attach the view to it, this will work around the bug (and will probably
be better for what you are trying to do, anyway).

--
Kevin Rushforth
Java 3D Team
Sun Microsystems

[EMAIL PROTECTED]


>Date:         Thu, 15 Jul 1999 18:19:44 +0900
>From: Justin Couch <[EMAIL PROTECTED]>
>Subject:      [JAVA3D] Exceptions swapping between multiple ViewPlatforms
>To: [EMAIL PROTECTED]
>
>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".
>

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