Page 2 of 2

Model Tool 1.9.9

Posted: Fri Mar 27, 2009 11:15 pm
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

Re: Model Tool Updates

Posted: Sun Apr 19, 2009 2:09 pm
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:

Re: Model Tool Updates

Posted: Mon Dec 23, 2019 3:21 am
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.

Re: Model Tool Updates

Posted: Mon Dec 23, 2019 5:22 am
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