ModelTool for OBJ to BZW conversion

General talk about the map making process.
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post by LouMan »

True, very true - made in about 20 minutes with Visual Basic, only for Windows :(

Like I said, very, very limited.
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

Okay what is sopposed to happen when I "Move the .obj file over the model tool?" All I seen was that it just copied the file. I would expect it to change into bzw but it didnt.
Saxiboy518
Private
Private
Posts: 3
Joined: Thu Mar 24, 2005 2:59 am

Post by Saxiboy518 »

wow its not working for me....

i open it and it goes away! WTF
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM »

that's all it does. it converts the file.

it is not graphical. it is not interactive. Drag an OBJ file on top of it, and it will convert it to a bzw. that's it.
ImageJeffM
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

But it didnt!!!!!
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

He/you were probably trying to double-click on it. You drag an OBJ on top of the modetool file, or access it from a command prompt. Dragging is the easiest. Once you drag the OBJ file onto the modeltool, a .bzw file will appear in the same directory with the same name as the OBJ file.

If you want do do -flipYZ, you have to access it from a command prompt. When in one, get in the modetool directory and type modeltool.exe --help.
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

I moved the obj ontop of the modeltool and it just copyed it.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM »

then you missed. Aim harder.
ImageJeffM
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

lol 8) did miss :oops: I got it to work. Now I need some help with my 3D editor. For some reason its in the ground and it follows me :( plus its to small !!!!
Attachments
bzfi0000.png
(404.12 KiB) Downloaded 405 times
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

It's too small because you made it too small. It's underground because you probably have to run modeltool.exe with the parameters -flipYZ. Here's how:
  • Get a command prompt open
  • type cd C:\
  • type cd \directory\to\modeltool\
  • Once the command prompt is in the directory, type modeltool.exe -myobject.obj -flipYZ
Anything in blue you should have typed. If you run that modeltool will create a BZW file that should be upright.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM »

I have updated the model tool to allways ensure that the geometry is above Z0.

it will translate all objects up by the amount that the furthest point is below 0.

this should prevent your "it moves with the ground" issues.
ImageJeffM
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

Now I have another problem..... I have recently looked into Wings3D and it is very easy to understand and figure out. When I moved my file over the model tool it just showed the command prompt then said ModelTool has encountered a problem and needs to close.... Heres my mesh see if you can figure out what is going on. BTW its supposed to be a Planet :)
Attachments
Planet.zip
(7.05 KiB) Downloaded 529 times
Planet.zip
(225 Bytes) Downloaded 553 times
Planet.zip
(7.05 KiB) Downloaded 576 times
Last edited by BIYA on Mon Mar 28, 2005 12:56 am, edited 2 times in total.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM »

worked fine for me.

the model dosn't have UV coordinates for a texture. The first versions of model tool did not support that. Trepan fixed it so it would accept no UV coords. The current posted build has that new code.
Attachments
Planet.bzw
(32.75 KiB) Downloaded 596 times
ImageJeffM
User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA »

It would be nice to know when its been upgraded or updated... If it hasnt then tell me..
Guest

Post by Guest »

This wont work for me.
I'm on Mac OS 10.3.8.
I downloaded it and It's just a file called modeltool.exe and as far as I know, Macs can't read/run any .exe.
I ahve tried dropping my "test.obj" on top of it, no luck. I have tried running the thing in terminal with:
modeltool test.obj
and it says:
-bash: modeltool: command not found

and with:
modeltool.exe test.obj
and it says:
-bash: modeltool.exe: command not found


Any help would be greatly appreciated!
User avatar
RPG
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 2015
Joined: Fri Sep 17, 2004 2:37 am
Location: Chicago, Illinois
Contact:

Post by RPG »

modeltool.exe is a Windows binary, it wasn't meant to work on a Mac.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM »

there is no mac build of model tool. Somone would have to make one.
ImageJeffM
Guest

Post by Guest »

Yeah. SOrry, This was sorted on irc and I forgot to edit my post.
Foget I ever mentioned it . ;)
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

I've downloaded the source...
I'll try to compile it after I look over the code...
For all you mac map makers...
Guest

Post by Guest »

:D Cool. Nice one BinarySpike!
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

Oops, I didn't download the source...
(I'll look on SF...)
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5193
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

Post by JeffM »

if you have bzflag source then you have modeltool source, it's in the tools directory.
ImageJeffM
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Help

Post by LouMan »

Could someone please compile the latest version of the modeltool source for Windows and post it here? I would really like to use the new features of the tool, but I don't have a C++ compiler for Windows... Thanks!
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

JeffM:
Oh, I have 2.0.2 source I didn't see it though.....
THANKS!!!
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike »

WICKED COOL TOOL!!!

I compiled it and it's AWSOME!!!
(no drag-and-drop :cry:... I would have to compile it in MPW to do that...)

I'll try to post a picture very sooooon!!! :o
Post Reply