Video Demos

Creating New Vehicle Shapes

CarSim, TruckSim, and BikeSim allows you to import custom animator shapes of vehicles that you create or obtain. Once you have a valid vehicle shape, it is easy to incorporate the shape into a CarSim run; the more difficult part is obtaining or creating a 3D vehicle shape. This page will attempt to point you in the right direction to begin creating or obtaining custom shapes that can be used in CarSim and give you a few tips about setting up the model in CarSim.

Obtaining a Shape

If you are not looking to create a vehicle from scratch, there are several websites which allow you to purchase previously created vehicle shapes. The cost of one of these vehicle shape downloads can range from being completely free to costing a few hundred dollars. Listed below are a couple example websites that sell 3D models, but a quick search engine query will come up with many more.

Even if you purchase a vehicles shape from a website, it will probably be necessary for you to make at least a few modifications to the shape. There are a couple of things to look for when searching for good vehicle models, which will minimize the number of modifications you will need to make. First, you want the vehicle model to be made to be "game-ready" or "low-poly." Some 3D models are made for high-resolution, complex scenes. These models are created with a lot of unneeded detail that would excessively slow the animator. You want to find a vehicle shape that indicates that it was created for a gaming engine or has a polygon count lower than 15,000 polygons (or triangles). This will save a lot of manual editing of the shape on your part. Second, you want to make sure that you are able to use the file type that the vehicle shape is provided in. CarSim allows you to use Wavefront Object (.obj) and Stereo Lithography (.stl) file formats. If the shape that you want is not available in one of these formats, there are many programs that will import other file formats and export the model as either an .obj or .stl file.

3D Modeling Programs

In order to modify (or create) a vehicle shape, you will need a 3D graphics program, which allows you to export to your shape either an .obj or .stl file format. The cost of these programs can range from being completely free to costing several thousand dollars. As you might expect, in general, the more expensive programs give you more capabilities; however, it may be the case that you would never use these capabilities anyway. Listed below are a few programs that you can look into. NOTE: Not all of these programs have been tested with CarSim.

Free

ZModeler
Blender
MilkShape

Low to Mid Cost

AC3D
Rhinoceros

Higher Priced

3ds Max
Maya


Each of these programs is slightly different, and will require a bit of learning to become efficient with. Many of these programs have free tutorials and helps available on their website. ZModeler, for instance, was designed for the purpose of creating vehicles for game engines and has several applicable tutorials available for download. You may need to do a bit of research to find the program that best suits your needs.

Modifying Shapes for CarSim

If you have purchased or downloaded a vehicle shape, you may still need to make changes to the vehicle using one of these programs. For instance, in order for CarSim to allow the wheels of a vehicle to rotate, the wheel shape needs to be exported as a separate file than the car body. Many models may have all of the objects in one file, so this is where a 3D modeling program will come in handy.

When exporting your shapes for CarSim, you may also need to scale, rotate, or reposition your model. Most 3D modeling programs make these operations relatively simple.

Scaling

When you obtain a model, you may have to scale the entire model to make it the right size in CarSim’s animator, Surfanim. Surfanim interprets a length of 1 unit as 1 meter. If your model was created using a different unit system, you can either scale your model in CarSim or use your 3D modeling program to scale your model to an appropriate size.

Rotating

To make sure that you model travels down the road oriented in the correct direction, you need to rotate your vehicle to the appropriate coordinate system. If you were sitting in the driver’s seat of your model, you should be looking in the positive X direction, have the positive Y direction on your left-hand side, and have the positive Z direction extending above your head. If this is not how your model was set up, you will need to rotate it. For the wheel shape, position the wheel such that the front face of the wheel is in the XZ plane and facing the negative Y direction.

Positioning

Finally, to ease the integration of your model into CarSim, you will need to position your vehicle and wheels around the correct point of origin. For a vehicle, position the middle of the front axle at the origin, with the appropriate ground clearance. For a wheel, position the shape centered at the origin.

Once you are satisfied with your model, you can use your 3D modeling program to export the vehicle and wheel shapes as either an .obj or .stl file.

Final Setup in CarSim

Once you have your .obj or .stl files, you are ready to set them up in CarSim. Navigate under the "Library" menu to "Animator->Animator: STL File Link." Create a new dataset, and give it an appropriate name. On this screen you will be able to link to your newly created file, change its color, specify smoothing angles, etc. In addition to these settings, it is important to set the reference length fields to an appropriate size (Note: if you have several files to link together, use the "STL Group" and set the reference lengths on that screen). The reference lengths are used by Surfanim to scale the vehicle shape to the correct size of the vehicle model you create in your CarSim dataset. In order to determine the correct values for each of the reference lengths, you will need to get the dimensions of your model from your 3D modeling program. The figures on the right show the dimension that each reference length represents. Once you have the reference lengths set, you are ready to begin using your vehicle model in your dataset!



Animation Information

.OBJ vs. .STL Format

Surfanim (CarSim’s Animator) is able to read both the .obj and .stl file formats for animation shapes. There is a difference between the two file formats that will become important when you are looking to choose which format you want to use: the .obj file format supports material parameters and the .stl format does not. This means that you can specify properties of your model such as color and specular value if you use the .obj file format. This can also be done in CarSim using the .stl format; however, you would have to export each different color of your model as a separate file. The .obj file format also supports texture mapping. This means you can make your model look more realistic by applying a picture of a headlight to your model instead of simply having a white region.

Origin location for vehicles (top) and wheels (bottom).


Reference length measuremants for vehicles (top) and wheels (bottom).