.bzw to object

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Alex135
Private First Class
Private First Class
Posts: 30
Joined: Sun Oct 09, 2005 8:17 pm
Contact:

.bzw to object

Post by Alex135 »

ok i am kinda new at this game but i have learned a lot. but i need to know one more thing. i need to know if their is some kinda bzw to object converter i know their is a object to bzw but i need the opposite to mes around with map examples on my 3D's max can someone help me?
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

Heh, good timing.

I've just committed a WaveFront OBJ exporter for the BZFlag client.
It will export both the .OBJ file and its associted .MTL file.

You use it by typing: '/saveworld -o <filename>' in the client.

It only saves mesh type objects (meshes, arcs, cones, etc...).
Other objects (boxes, pyramids, teles, etc...) do not yet have the
necessary code to save them correctly.
User avatar
Alex135
Private First Class
Private First Class
Posts: 30
Joined: Sun Oct 09, 2005 8:17 pm
Contact:

Post by Alex135 »

thx i really appreciate it. plz keep me update. thx again. o and HELLO BZFLAG UNIVERSE!!! lol i had to say that. anyway when u finish it completely plz tell me thx.
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

it already works.
User avatar
Alex135
Private First Class
Private First Class
Posts: 30
Joined: Sun Oct 09, 2005 8:17 pm
Contact:

Post by Alex135 »

o LOL im stupid :p ok so what it is in the latest version of bzflag? also thx again
User avatar
^nightmare^
Private First Class
Private First Class
Posts: 1264
Joined: Sun Feb 20, 2005 7:14 pm
Location: Alabama
Contact:

Post by ^nightmare^ »

Need bzflag help? Try looking here: http://www.freewebs.com/bznightmare/map ... aghelp.htm
User avatar
Alex135
Private First Class
Private First Class
Posts: 30
Joined: Sun Oct 09, 2005 8:17 pm
Contact:

Post by Alex135 »

thanks man :)
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

os I would type into 2.0.5b2

/saveworld -o <torous.ojb>

I assmue that only works if the file is in the worlds file ?
it seems that is exports it to a .ojb
how do I export the .ojb to .bzw ?
User avatar
TD-Linux
Sergeant
Sergeant
Posts: 724
Joined: Wed Apr 27, 2005 8:26 pm
Location: Mountain View, CA

Post by TD-Linux »

umm... don't use the -o option, and it goes directly to bzw. Converting it to obj is only useful for editing maps or making screenies with a renderer.
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

so it would be

/saveworld <torous>
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

uhh

I do

/saveworld <torous13> (name of file)

2.0.5 says saved in "my computer/my bzflag files/worlds/torous13.bzw" but it still shows as a .ojb in the worlds folder ????
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

You don't need the <>'s

Code: Select all

/saveworld [-g] [-m] [-o] <filename>
[arg] - optional
<arg> - required
User avatar
Winny
Grouchy
Grouchy
Posts: 2381
Joined: Wed Aug 24, 2005 12:27 am
Location: Ottawa eh?
Contact:

Post by Winny »

what is the [-g] [-m] [-o] for ?

so it would be /saveworld torous13 to save as a .bzw ?
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

*sigh*

saveworld with no options saves the world in bzw format

-o makes it save it as an obj.

saveworld is NOT a converter, it is just 2 difrent ways to save the current map.

if you want to save the current map as a bzw, just do /saveworld myfilename
make sure that you have cleared out the worlds folder of any other files with that name, so you don't become confused.

if you want the current map as an obj ( and loose the bz specific information) then use /saveworld -o myfilename

that will save the geometry and materials for the world out as a wavefront obj file. Again make sure you look at the right file that is saved.

the - o option is only in very recent builds.

if you wish to convert an obj file to bzw map format you need to use the MODELTOOL application. modelTool does not ship with bzflag and is available elsewhere in these forums
ImageJeffM
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post by trepan »

/saveworld -o now exports boxes, pyramids, bases, and
teleporters to the OBJ file as well as mesh based objects.
(CVS clients)
Post Reply