Thanks a lot for your good will. Just to let you know the reason for the problem was Java3D was unable to find my video card - I had to change the color bits to 16 from 24 and then every program ran well.
----- Original Message ----- From: "P. Flavin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 2:14 PM Subject: Re: [JAVA3D] A problem: Canvas3D constructed with a null GraphicsConfiguration > Proper Canvas3D construction: > > Try this program and method: > > | public void init() > | { > | > | setLayout( new GridLayout( 1, 2 ) ); > | > | /* -- old way -- > | * > | * GraphicsConfiguration config = > | * SimpleUniverse.getPreferredConfiguration( ); > | */ > | //____ new way _____ > | > | GraphicsConfiguration config = > | > | GraphicsEnvironment.getLocalGraphicsEnvironment( > | ).getDefaultScreenDevice( ).getDefaultConfiguration( ); > > | > | canvas = new Canvas3D( config ); > | > | add( canvas ); > | > | u = new SimpleUniverse( canvas ); > | > | // ... ( some lines omitted ) > | } > | > http://www.frontiernet.net/~imaging/sourcecode/Human.java > http://www.frontiernet.net/~imaging/sourcecode/ > > > ilan kaiser wrote: > | > | I just want to start using J3D , > | I have downloaded and installed J3D , > | > | I have Installed Directx 9, > | In Eclipse IDE I added a new JAVA project > | with classpath that includes references > | to the JRE 1.4.1_02 and j3d 1.3 jars. > | > | I cannot run any J3d Demo app > | (HelloUniverse for eample) as I immediately > | receive a message : > | > | "No Compatible Device found, please switch > | to another display mode and try again. > | I Also see on the Console view : > | > |******************************************************************* > | > | *** ERROR: Canvas3D constructed with a null GraphicsConfiguration > | > | *** This will cause a NullPointerException in a subsequent release > | > |******************************************************************* > | > | What Should I do ??? > | > | Thenks , > | Ilan > | > http://archives.java.sun.com/cgi-bin/wa?A2=ind0309&L=java3d-interest&P=25179 > > > Michael Pfeiffer replies: > | > | > | I think the error message tells you > | exactly whats wrong: > | > | You constructed the Canvas3D using null > | as parameter instead a valid GraphicsConfiguration. > | > http://archives.java.sun.com/cgi-bin/wa?A2=ind0309&L=java3d-interest&P=25268 > > > > Did you install a whole fresh Java JDK ? > > The JDK comes with demos in > > $JAVA_HOME/demos/java3d/ > > and the .java programs in the JDK should > run with the JRE in that JDK. > > If not ... Sun screwed up. > > type: > > java -version > cd $JAVA_HOME/demos/java3d/HelloUniverse > javac HelloUniverse.java > java HelloUniverse > > That should work, notice if the version > indicated is the version you expected. > > I use Sun's NetBeans IDE. > > http://www.netbeans.org/products/ > http://www.netbeans.org/products/ide/screenshots.html > http://www.netbeans.org/downloads/ide/index.html > > Sun's Netbeans IDE shown runing Java3d with Sun's Loaders: > > http://www.frontiernet.net/~imaging/games_with_java3d.html > http://home.rochester.rr.com/javajava/sc_server_jsp_client_3d.jpg > http://www.frontiernet.net/~imaging/sc_java_human_animation.jpg > http://www.frontiernet.net/~imaging/vrml_loaders_working.html > > > -- Paul, Java Developer & Web Animator. > > =========================================================================== > 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".