I used to have this message when I instanciated a Canvas3D like this:
++  new Canvas3D(null).
Now I do it like this [and it works allright]: 
++  new Canvas3D(SimpleUniverse.getPreferredConfiguration());
 
 
 
 
I google yourproblem and I did found this:
....[ Try the following SOLUTION:
1) make sure that you have DirectX or OpenGL support (if not, get it from
http://cochise.mta.ac.il/~dune/directx.html )
2) Go to Control panel>Display Settings> Switch to 16bit colours
hope it helps  ] .....
 
-------Message original-------
 
Date : 09/01/04 21:27:57
Sujet : [JAVA3D] null graphics config? huh?
 
Ok, SO I have Sun's XVR-1000 (GFB) video card. I have two of them
actually.
 
Then I have this code:
 
         GraphicsConfigTemplate3D template = new
GraphicsConfigTemplate3D();
 
         GraphicsConfiguration  bestGC =
GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(
template );
 
         Canvas3D sceneCanvas = new Canvas3D( bestGC );
 
If I run this on the first video card, it works fine.
For some reason if I run this on the second card, I get:
 
[EMAIL PROTECTED] 26>java KJMsoft.JLStudio.Test.DatFileTest 3001.dat
In Main()
Initializing Java3D
************************************************************************
*** ERROR: Canvas3D constructed with a null GraphicsConfiguration
*** This will cause a NullPointerException in a subsequent release
************************************************************************
Exception in thread "main" java.lang.NullPointerException:
Canvas3D: null GraphicsConfiguration
         at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1100)
         at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1065)
         at
KJMsoft.JLStudio.Test.DatFileTest.main(DatFileTest.java:61)
 
What's going wrong? Obviously 'bestGC is being set to null, but why?
 
        -Kyle
 
--
                              _
-------------------------ooO( )Ooo--------------------------------
Kyle J. McDonald           (o o)          Systems Support Engineer
Sun Microsystems Inc.      |||||             [EMAIL PROTECTED]
1 Network Drive                   \\\//      voice: (781) 442-2184
Burlington, MA 01803              (o o)        fax: (781) 442-1542
--------------------------------ooO(_)Ooo-------------------------
 
===========================================================================
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".
 
 
__________ NOD32 1.853 (20040830) Information __________
 
This message was checked by NOD32 antivirus system.
 
 
________________________________________________________________
  IncrediMail - La messagerie électronique a enfin évolué - Cliquer ici
=========================================================================== 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