Is the file in the directory
where the class with your attached source code is running? If not you must specify the relative path... Regards, Guglielmo On Mon, 30 May 2005 08:24:26 -0700, Saeed Ansari wrote > Hi all, > I want to load an obj file to my scene. > > private URL filename = null; > filename =(getClass().getResource("galleon.obj")); > > but it gives nullPointerExeption. I have located the obj file in project folder. > > What is the problem ? > > Regards, > Saeed > Do You Yahoo!? > Yahoo! Small Business - Try our new Resources site! =========================================================================== 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". ---------------------------------------------------------------------------- Guglielmo Olivieri Consultant Organizzazione & Informatica SpA - Altran Group Via Lungo Dora Colletta 81 10153 Turin (TO) Italy email: [EMAIL PROTECTED] phone: +39 011 6630636 fax: +39 011 2304444 web: www.oei.it www.altran.it ---------------------------------------------------------------------------- =========================================================================== 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". |
- [JAVA3D] Load Object Saeed Ansari
- [JAVA3D] comparation java3d and vtk Guglielmo Olivieri
- [JAVA3D] comparation java3d and vtk Linwei Cheng
- Re: [JAVA3D] comparation java3d and vtk Linwei Cheng