Model Tool Updates

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

Model Tool 1.9.9

Post by optic delusion » Fri Mar 27, 2009 11:15 pm

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
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:

Find windows and mac builds here: ... modeltool/

Also: ~25K vert mesh for testing: before = 9min22sec, after = 6.4 sec :)
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.

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

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:

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest