I think that u have to replace line filename = "auto.obj"; with this line filename = ".\\auto.obj";
Kostantinos Rekalidis -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Gick Sent: Tuesday, March 05, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: [JAVA3D] does nobody knows an answer? Hi, does nobody knows an answer? Thomas Re: [JAVA3D] Import Material Information out of a .mtl file Thomas Gick <[EMAIL PROTECTED]> wrote on 02.03.2002 20:12:18: > >Hi, > >I want to load a object with its material information into my java 3d program. >I use a wavefront .obj file. I have the referenced material .mtl file, too. >But how can import a object with all the texture information in the java 3d programm? >Now my code looks like that: > >protected Node buildShape() { > >ObjectFile f = new ObjectFile(); >Scene s = null; >filename = "auto.obj"; > try { > s = f.load(filename); > } catch (Exception e) { > System.out.println("Objektdatei nicht gefunden!"); > System.exit(1); > } > return s.getSceneGroup(); >} > > >Thank you beforehand, > > > \\ll// > @ @ > --ooo------(_)----ooo-- > > Thomas > >=========================================================================== >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". \\ll// @ @ --ooo------(_)----ooo-- Thomas This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. =========================================================================== 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".
