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 » Sun Mar 13, 2005 8:17 pm

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 » Sat Mar 19, 2005 5:38 am

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 » Thu Mar 24, 2005 3:43 am

wow its not working for me....

i open it and it goes away! WTF

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Post by JeffM » Thu Mar 24, 2005 5:38 pm

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.

User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA » Thu Mar 24, 2005 8:15 pm

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 » Thu Mar 24, 2005 8:37 pm

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 » Fri Mar 25, 2005 12:05 am

I moved the obj ontop of the modeltool and it just copyed it.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Post by JeffM » Fri Mar 25, 2005 12:46 am

then you missed. Aim harder.

User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA » Fri Mar 25, 2005 1:41 am

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 » Fri Mar 25, 2005 2:15 am

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: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Post by JeffM » Fri Mar 25, 2005 2:46 am

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.

User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA » Sun Mar 27, 2005 5:24 am

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 479 times
Planet.zip
(225 Bytes) Downloaded 501 times
Planet.zip
(7.05 KiB) Downloaded 520 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: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Post by JeffM » Mon Mar 28, 2005 12:54 am

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 540 times

User avatar
BIYA
Corporal
Corporal
Posts: 891
Joined: Fri Dec 03, 2004 1:43 am
Location: Fredericksburg, Virginia
Contact:

Post by BIYA » Mon Apr 25, 2005 4:11 am

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

Guest

Post by Guest » Sat Apr 30, 2005 11:46 am

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 » Sat Apr 30, 2005 4:11 pm

modeltool.exe is a Windows binary, it wasn't meant to work on a Mac.

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Post by JeffM » Sat Apr 30, 2005 10:21 pm

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

Guest

Post by Guest » Sun May 01, 2005 11:52 am

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 » Sun May 01, 2005 8:02 pm

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 » Sun May 01, 2005 8:37 pm

:D Cool. Nice one BinarySpike!

User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post by BinarySpike » Sun May 01, 2005 8:55 pm

Oops, I didn't download the source...
(I'll look on SF...)

User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5172
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Post by JeffM » Sun May 01, 2005 9:25 pm

if you have bzflag source then you have modeltool source, it's in the tools directory.

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 » Mon May 02, 2005 1:32 am

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 » Mon May 02, 2005 3:10 am

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 » Mon May 02, 2005 3:21 am

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

Who is online

Users browsing this forum: No registered users and 5 guests