The Driver Syndicate/Vehicles/Creating Vehicle Models

From Equilibrium Engine Wiki
Jump to navigation Jump to search

Preparing a Car Model for Import

The following information is about preparing a Vette model that already exists for the Eqiulibrium [sic] Engine

Allignment

Car model allignment.png

  • When adding a car, make sure that it's pointing towards the Y.
  • Cars in the Driver Syndicate are roughly 1:1 in meters.
  • By default, exporting FBX will not apply the model's Transform, Rotation and Scale.
  • Popup headlights are a separate model within the same .blend file.

Textures

  • A .mat file tells the game what the names of the textures are for a model to use.
  • A .mat file also tells the game whether a texture should have a reflection, glow, be transparent etc.
  • When exporting to FBX, the name of the .mat files that the game looks for are given by the material names in Blender.
  • glass and lplates are used for vehicles' windows and license plate textures.
  • Materials/textures that are unique to the vehicle can have any name, but should be named after the vehicle, and not be the same as any other materials/textures.
Material names that a vehicle named Vette could use.

Armature

An armature with all available bone names, along with a random "Bone" bone, headlight bones can be omitted for cars without popup headlights.
  • An Armature must be added for a vehicle to have cosmetic damage.
  • Vehicles also need to have an Armature modifier that points to the armature.
Modifier to make a car work with the armature.
  • Copying the Vette's or the Carla's armature, and pasting that into your model's scene works too.


Rigging

Almost acceptable rigging behaviour.
  • A car must have vertex weight groups that correspond with the names of the bones from the armature.
  • Areas of the vehicle can be assigned to vertex groups either by highlighting them in Edit Mode and clicking Assign, by using Weight Painting, or with a combination of the two.
  • Weight groups should be assigned in the correct area for each bone.
  • The center for the front and back of the car should be assigned for the front and back bones.
  • Popup headlights do not get assigned to the front bones, they get assigned to headlight.left and headlight.right


Damage

  • A shape key, generally named Base or Basis, is used as the regular, undamaged shape of the car.
  • A damage shape key named Damage is used for the damage of Driver Syndicate vehicles.
  • Usual ways of creating a Damage shape key

That's a lot of Shape Key

Exporting to .fbx

Clicking on File > Export > FBX.
  • FBX is the superior way to export a car to the program that exports cars to the Driver Syndicate.
  • Reasons to use FBX over .esm:
  1. Works in newer versions of Blender
  • Blender's default settings for exporting to fbx usually work well enough, this will put every model into one .fbx file.
Default settings usually work well enough.

Exporting to .egf

.egf is the file format of 3D models for the Driver Syndicate.
A .esc script tells EGFMan what a model is.
A .esc script can be edited in text editors such as Notepad
EGFMan reads a .esc script to do the following:

  1. Read the .fbx file
  2. Turn a model inside the .fbx into a .egf
  3. Turn a model inside the .fbx into a .pod (physics model)
  4. Turn a model inside the .fbx into a bodygroup (things like spoilers, roofs on convertibles, so they can be turned on and off)
  5. Turn a model with a shapekey (damage) inside the .fbx into a .egf

a diagram of a bunch of incoherent arrows connecting seemingly random bits of text that might tell you what points to what if you squint hard enough.