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]
test.obj
#
# Wavefront material file: /usr8/people/gordon/test.mtl
#
# Converted by the PolyTrans geometry converter from Okino Computer Graphics, Inc.
# Date/time of export: 11/10/2000 10:48:52
#
# Bounding box of geometry = (-13.4513,-1.42109e-14,-40.6876) to
(27.999,1.42109e-14,12.3575).
newmtl default
Ns 32
d 1
illum 2
Kd 0.0 1.0 0.0
Ks 0.7 0.7 0.7
Ka 0.0 1.0 0.0
newmtl RED_col0_1_000000
Ns 0
d 1
illum 2
Kd 0.654902 0.00784314 0
Ks 0 0 0
Ka 1 0 0
newmtl BLUE_col0_1_000000
Ns 0
d 1
illum 2
Kd 0 0 1
Ks 0 0 0
Ka 0 0 1