racer home

Car 3D models

 

Home A car does not just have 1 3D model; several can be used and are turned on/off when needed.


Dolphinity Organiser - free planning, project management and organizing software for all your action lists
Introduction

Cars can consist of multiple 3D models. The most important one is the body (often called body.dof). Some models are referenced with a postfix, for example: model_collide. The parameters inside such a tree define the 3D model file and optional scaling and LOD.

Parameters

Parameters that can be specified are as follows:

Parameter Description
file A filename (relative to the car directory) which specifies the 3D model. For example: model.file=body.dof will load data/cars/<the_car>/body.dof. (.dof is the 3D file format for Racer).
offset.x/y/z

This can be used to offset the loaded model. This will offset all LOD models of the loaded model, not just the top level of detail.

Note that if racer.ini's dev.cache_geodes is set to 1, the 3D models are cached based on the full filepath. So, for example, if you use a 3D shadow model that is the same as the car's body.model.file, then whichever model gets loaded first, will be offset.

lod0_z/lod1_z etc. These are the Z distances for the LOD models. For more information on what these do exactly, check out the LOD tutorial.
scale.x/y/z Scaling of the model. With this you can scale the model, if so desired. It is recommend to do that in your 3D modeling package instead, as combining scaling & offsetting inside Racer can costs quite some tweaking time.

Several models exists for the car, check out the car physics reference guide for exact details.

More reading material

More information on creating a full car can be found here.


Dolphinity Organiser - free planning, project management and organizing software for all your action lists

(last updated November 13, 2012 )