There's a demo of this in the sdk:
cd demo/java3d/ObjLoad
java ObjLoad ../geometry/minimart.obj
There's a demo of .obj files with material properties in
the SDK:
cd demo/java3d/ObjLoad
java ObjLoad ../geometry/minimart.obj
The code is also included in utils-src.jar.
I took a look at your file. Our ObjectFile class doesn't
recognize the 'o' token. The line numbers in the error
message are wrong. Sorry about that.
-Paul
> MIME-version: 1.0
> X-Accept-Language: en
> Date: Fri, 10 Nov 2000 14:31:44 -0500
> From: Roy Duffy <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Materials in OBJ files
> To: [EMAIL PROTECTED]
>
> I am using the ObjLoad demo program to try to load a .OBJ file and its
> materials aren't coming in for some reason. I read in an earlier
> posting that you have to specify the entire path to the .obj file and
> have the .mtl file in the same directory as the .obj file, so I made
> sure I was doing that.
> I am getting this error when I run the program:
> Unrecognized token, line 1
> Unrecognized token, line 1
> Unrecognized token, line 1
> Unrecognized token, line 1
>
> I have included both the .obj file and the .mtl file with this email so
> if anyone wants to try it out and see if it works, or if anyone could
> tell me if I am somehow using the wrong format, I would appreciate it.
>
> Thanks,
>
> -Roy
> [EMAIL PROTECTED]
===========================================================================
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".