Model Tool Updates

Discussion, updates, modifications, etc for the various map editors...
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Model Tool 1.9.9

Post by optic delusion »

New Unofficial builds of today's revisions.

Code: Select all


Revision 19540 /trunk/bzflag/tools/modeltool/modeltool.cxx: * bumped the version to v1.9.9
         http://bzflag.svn.sourceforge.net/bzflag/?rev=19539&view=rev
Author:   trepan
Date:     2009-03-27 22:02:53 +0000 (Fri, 27 Mar 2009)

Log Message:
-----------
* changed the re-indexing algorithm to use a std::map<>  (much faster)
* changed the floating point output format to "%g"
* added 'o' as an OBJ grouping type (wings3d and blender both use it)
* added the -nogroup  option  (OBJ 'o' and 'g' grouping is ignored)
* added the -noground option  (do not clamp the model to z=0)
* added the -rr       option  (reportReindex)
* added the -ff       option  (fudgeFactor for reindexing)
* changed the vertex/normal/texcoord data accumulation for OBJ grouped wavefront parsing  (was using 1.2G to parse a meager 25K vertex mesh, instead of 20M)

Modified Paths:
--------------
   trunk/bzflag/tools/modeltool/Q3BSP.cxx
   trunk/bzflag/tools/modeltool/model.h
   trunk/bzflag/tools/modeltool/modeltool.cxx
   trunk/bzflag/tools/modeltool/wavefrontOBJ.cxx

Find windows and mac builds here:
http://images.planet-mofo.com/A-Delusio ... modeltool/

Also: ~25K vert mesh for testing: before = 9min22sec, after = 6.4 sec :)
http://trepan.bzflag.bz/ball.obj
http://trepan.bzflag.bz/ball.mtl
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
anomaly
Private First Class
Private First Class
Posts: 220
Joined: Tue Jul 26, 2005 10:32 pm
Location: Gainesville Florida

Re: Model Tool Updates

Post by anomaly »

This new version is great! Having said that. . . the drawInfo code does not use all materials. Only one material (the first encountered) is used for the whole mesh. This is different from the previous version. Other than that the speed up is nice.

EDIT: Okay, the materials issue turned out to be between the seat and keyboard. Just save the obj file with material groups! :oops:
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Model Tool Updates

Post by optic delusion »

The latest MacOS does not accept 32 bit applications, and i was having other problems with modeltool, and...
We're not positive exactly what happened, but it looks like modeltool updates that Trepan added in 2.99 branch got lost somewhere in the last ten years. We think it got lost in the move from sourceforge to openhub. Or something.
As a result, The Modeltool you get in a downloaded BZFlag application today, has no Drawinfo capability.
It looks like it's from version 2.0, not 2.4

This is Modeltool v1.8.4.2, it is a few months older than the Modeltool v1.99 you see in posts above this one.

Anyway, here is the source.
https://sourceforge.net/p/bzflag/code/1 ... eltool.cxx

And I have a 64 bit OSX compatible executable here.
"ModelTool v1.8.4.2 (WaveFront OBJ/BZW to BZFlag BZW converter)"
http://images.planet-mofo.com/A-Delusio ... modeltool/

The easiest way to use modeltool is...
Make a folder for everything. Put all of these in there.
Modeltool
.obj and .mtl files
drawinfo.diconf
in your terminal, cd to the folder. and run this command
./modeltool drawinfo.diconf

See the wiki for options that can be in the diconf file.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Model Tool Updates

Post by JeffM »

It wasn't lost, it just isn't in the master branch because the master branch on github is based on the 2.4.x line.

The 2.99 line is still there under the 2.99 tag
https://github.com/BZFlag-Dev/bzflag/bl ... eltool.cpp
ImageJeffM
Post Reply