Location: [crashday]\tools\makep3d
MakeP3D
prompt
MakeP3D
is a command line based utility designed to convert any .3ds-file
into Crashday's .p3d format. Every .3ds-file you want to convert has
to be located either in [crashday]\editor or
[crashday]\trkdata\cars\[carfolder]. At first you have to type in the
.3ds-file you like to be converted (with or without .3ds) and then
the .p3d-file you want to be created. (with or without .p3d) If you
want something to be converted from or into a carfolder, simply type
[carfolder]/[filename].[extension] into the prompt line (e.g.
judge/judgeMesh.3ds).
If you do not want to use the prompt or make use of MakeP3D's advanced functionality, start the application with command line parameters:
-in [filename].3ds |
3DS file for import |
-out [filename].p3d |
P3D file for export |
-owrite |
overwrite without prompting if output file exists |
-notex |
replaces any textures by white color. If not turned on, be sure the required textures are available in the right directories and right file format. |
-swap |
swaps orientation of polygons |
-ignoredupl |
forces the tool NOT to "melt" duplicated vertices (identical position in space) into one. can be useful to maintain sharply shaded edges, especially if a model is built without smoothing group support. |
-sgs |
use if you are converting a model with use of smoothing groups. Useful to maintain sharply shaded edges. When using this parameter, there is mostly NO need for turning "-ignoredupl" on |
-scaling xx.xx |
scaling factor, “1.0” means no scaling |
-liftbottombound xx.xx |
shifts
up the bottom plane of the bounding box of the main mesh by the number given in meters. This parameter is required to model meshes that go below
ground level (low vertices have to "leave" the bounding box on the bottom
end, as the bounding box bottom is a measure of placing a tile on the correct track height. Thus the bounding box bottom needs to be lifted) |
-lowertopbound xx.xx |
shifts down the top plane of the bounding box |
-mirrorx |
mirrors model in X axis |
-mirrory |
mirrors model in Y axis |
-mirrorz |
mirrors model in Z axis |
-flares |
when models contain omni lights, flares will be applied to these lights in-game |
To
export polys with “self illuminated” appearance, set
ambient color for these polys to “255 255 255” in your
modelling application.
To make the exporting process more efficient you can create
different batch (.bat) or link files for different purposes with
different parameters, e.g. have a batch file that is only for car
conversion ("makep3d.exe -sgs -flares")