funny modeltool behavior

Questions and answers about the how and why of making maps.
Post Reply
User avatar
The Purple Panzer
Field Marshal
Field Marshal
Posts: 246
Joined: Tue Sep 23, 2003 8:13 pm
Location: Stonington, CT
Contact:

funny modeltool behavior

Post by The Purple Panzer »

When I run modeltool on the attached cat.obj, I get an output file,
but all the faces are like:

face
vertices
normals
texcoords
endface

with no data. Is there a straightforward fix to this?

(I did grab the source to modeltool, and tried to get it to build on my
system, but the includes seemed to expand dramatically.)

I think the cat.obj file is OK, I can read it with other tools.
Attachments
cat.zip
(7.48 KiB) Downloaded 332 times
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

the objec thas faces that are just verts, they have no normals or UV coordinates. the model tool asumes at least normals. so it thinks your faces are invalid.
ImageJeffM
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

modeltool v1.3 (CVS) converts it without problems.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

if you have the oldest version of the model tool binary has the problem

if you have the current posted one it will work, as it has the code trepan is mentioning.
ImageJeffM
User avatar
The Purple Panzer
Field Marshal
Field Marshal
Posts: 246
Joined: Tue Sep 23, 2003 8:13 pm
Location: Stonington, CT
Contact:

modeltool 1.3 [IGNORE MSG please.]

Post by The Purple Panzer »

I expect I'll have the same problem building this binary as I did the original; does anyone have a Windows binary around? I did search this bboard, with no luck.

[PLEASE IGNORE THIS FOR THE MOMENT, I believe I've found it.]
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

as I'm sure you've found the binary is posted in this forum ( just so others know ).
ImageJeffM
Post Reply