This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Modeltool: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
m added -bounding and -nomats.   Is my -bounding drfinition correct?  | 
				m make pretty  | 
				||
| Line 4: | Line 4: | ||
Modeltool options  | Modeltool options  | ||
   -g <name>  : use group definition  |    -g <name>  : use group definition  | ||
   -tx <dir>   |    -tx <dir>     : set texture prefix  | ||
  -nomats       : do not write materials.  | |||
   -sm	: use the smoothbounce property  |   -m	         : disable materials (matref)  | ||
   -yz	: flip y and z coordinates  |    -sm	         : use the smoothbounce property  | ||
   -n	  |    -yz	         : flip y and z coordinates  | ||
   -t	  |    -n	                 : disable normals  | ||
   -t	                 : disable texture coordinates  | |||
   -a	  |    -a	                 : disable ambient coloring  | ||
   -d	  |    -d	                 : disable diffuse coloring  | ||
   -s	  |    -s	                 : disable specular coloring  | ||
   -sh	: disable shininess  |    -sh	         : disable shininess  | ||
   -sf <val>   |    -sf <val>     : shine multiplier  | ||
   -e	  |    -e	                 : disable emission coloring  | ||
   -gx <val>   |    -gx <val>    : scale the model by this factor  | ||
   -gsx <val> : shift the map by this value in X  |    -gsx <val>  : shift the map by this value in X  | ||
   -gsy <val> : shift the map by this value in Y  |    -gsy <val>  : shift the map by this value in Y  | ||
   -gsz <val> : shift the map by this value in Z  |    -gsz <val>  : shift the map by this value in Z  | ||
   -bspskip <val> : skip faces with this material when importing a bsp  |    -bspskip <val> : skip faces with this material when importing a bsp  | ||
   -bounds : compute the bounds and sphere for draw info meshes and write them to the map  |    -bounds       : compute the bounds and sphere for draw info meshes and write them to the map  | ||
   -bounding : generates invisible faces (and a material) to be used  for collision detection  |    -bounding   : generates invisible faces (and a material) to be used  for collision detection  | ||
   -comments: add comments to the resulting bzw file (will make it a lot larger  |    -comments  : add comments to the resulting bzw file (will make it a lot larger  | ||
   -striplimit <val>: the longest triangle strip to use for LODs     |    -striplimit <val>: the longest triangle strip to use for LODs  (16 recommended)  | ||
[[category:Map Making]]  | [[category:Map Making]]  | ||
[[category:Map Editors]]  | [[category:Map Editors]]  | ||
Revision as of 00:57, 27 December 2007
Modeltool can now convert .obj files to bzflag drawinfo. It can be downloaded with the source code through SVN, and it is found in the bzflag/tools/ directory.
Modeltool options
-g <name> : use group definition -tx <dir> : set texture prefix -nomats : do not write materials. -m : disable materials (matref) -sm : use the smoothbounce property -yz : flip y and z coordinates -n : disable normals -t : disable texture coordinates -a : disable ambient coloring -d : disable diffuse coloring -s : disable specular coloring -sh : disable shininess -sf <val> : shine multiplier -e : disable emission coloring -gx <val> : scale the model by this factor -gsx <val> : shift the map by this value in X -gsy <val> : shift the map by this value in Y -gsz <val> : shift the map by this value in Z -bspskip <val> : skip faces with this material when importing a bsp -bounds : compute the bounds and sphere for draw info meshes and write them to the map -bounding : generates invisible faces (and a material) to be used for collision detection -comments : add comments to the resulting bzw file (will make it a lot larger -striplimit <val>: the longest triangle strip to use for LODs (16 recommended)