Hi, I hadnt set the PhysicalBody on the View. I have now added 'myView.setPhysicalBody(myBody);'.
I do not get an error msg but the program does not run i.e. nothing gets displayed and "Process Exit..." is printed. Have you any idea to what the problem is. Thanks. Grace >From: Raj Vaidya <[EMAIL PROTECTED]> >Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: [JAVA3D] ObjectLoader >Date: Sat, 23 Mar 2002 09:51:18 -0700 > >Hi, > >Did U set the PhysicalBody on the View ? > >I you haven't done so already, do: > >myView.setPhysicalBody(myBody); > > >Raj Vaidya > > > > >On Sat, 23 Mar 2002 16:41:34 +0000, Grace S <[EMAIL PROTECTED]> >wrote: > > >Hi, I have the following code to read in values from �cube.obj� and >output a > >cube from this. > > > > >But when I try to run the program I get the following error > > > >java.lang.IllegalStateException: PhysicalBody is null > >at javax.media.j3d.View.checkView(View.java:2782) > >at > >javax.media.j3d.ViewPlatformRetained.setLive(ViewPlatformRetained.java:280) > >at javax.media.j3d.GroupRetained.childDoSetLive(GroupRetained.java:2083) > >etc > > > >When I compile the code I do not get an error. Do you know what could be > >the reason for this, is it because of the format of the file I am reading > >in. Also do you know how I could read colour values from the file and >then > >set the cube equal to this colour. > > > >Any help would be appreciated. > >Thanks. > > > > > > > >_________________________________________________________________ > >MSN Photos is the easiest way to share and print your photos: > >http://photos.msn.com/support/worldwide.aspx > > > > >========================================================================== > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the >body > >of the message "signoff JAVA3D-INTEREST". For general help, send email >to > >==========================================================================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". _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com =========================================================================== 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".
