Models

Tutorial · 3:07

Models shows P3D files, the 3D model format of DayZ. It opens your own editable models (MLOD, the source form written by Object Builder and by this page) and the game's models (ODOL, the binarized form shipped in the game's PBOs), which are read-only. You use it to see how a model is built, to bring a mesh from Blender or an AI generator into a mod, to fix what the game or Binarize would refuse, and to edit the model.cfg that animates it. To list your own models, add your mod folder in Settings; to browse the game's, the DayZ folder must be set there.

The screen

First steps

  1. Open Models and click Game at the top of the list.
  2. Type canteen in the search field and click Canteen.p3d. It opens read-only.
  3. Orbit with a left drag, zoom with the wheel. Switch to Solid + wire to see the faces.
  4. Open the LOD list and pick each entry in turn: 1.000 to 4.000 get lighter, Geometry is a simple closed shape, Memory holds only a few named points.
  5. On the Memory LOD, click a name under Named selections to see which point it is.

Take the tour (in the app)

Common tasks

Study a vanilla model

  1. Click Game and search by part of the path (weapons\firearms, offroadhatchback).
  2. Open the model, then go through its LODs.
  3. Tick Proxies to show the placeholder triangles of the attached models.
  4. Read the named selections of the first LOD: these are the names a config or a model.cfg refers to.

Import a mesh as a P3D

  1. Click Import 3D model and choose the source mesh (.obj, .gltf, .glb; FBX, .blend, DAE, STL, PLY, 3DS, USD and Alembic are converted with Blender when it is installed).
  2. Set the mod prefix if the form did not find it: the folder name under which the game sees your files, for example MyMod\data\.
  3. Leave Mesh only for a plain conversion (visual LOD, generated Geometry, View and Fire Geometry, optional shadow volume), or choose an object kind (item, weapon, vehicle, clothing). Weapons and vehicles need a vanilla class in Based on.
  4. For a weapon, a vehicle or clothing, click Check parts to see what the mesh has and what is missing before importing.
  5. Click Import. The result panel lists what was done, what to adjust and the issues; the new model opens.

Fix what Validation reports

  1. Open your model (it must be MLOD). Read the list under Validation.
  2. Choose a kind in Check as to also compare with what vanilla models of that kind have.
  3. In Edit, click the button that matches the hint (Collision, View + Fire geo, Shadow volume, Fix winding, Weld + clean, Mass…). It writes the operation in the box; change its values if needed.
  4. Click Apply. The model changes in memory and Validation updates.
  5. Click Save. The first save keeps the original as <name>.p3d.bak.

Name a selection or place a memory point

  1. Choose Parts, Faces or Vertices above the view and click or drag a box. Shift adds, Ctrl removes, Esc clears.
  2. Under Named selections, type a name and use Create / assign.
  3. For a memory point, type its name under Memory points: it is placed at the centre of what you picked, or at the origin.
  4. Tick Show markers to see memory points and proxies as labels in the view.

Edit the model.cfg

  1. Open the model, then click model.cfg. The page looks for a model.cfg in the model's folder and up to four parent folders.
  2. If there is none, New starts one next to the model, with a skeleton and a class named like the P3D.
  3. Select a skeleton to edit its bones, a class to set its skeleton and sections, an animation to set its type, source, selection and axis.
  4. Tick Show in 3D under Pose preview and move a source to see the parts move.
  5. Fix what the drawer's Validation lists, then Save.

Start from a recipe

With no model open, the empty state lists the recipes for this page as chips (New item, Import clothing, Import a vehicle…): a click starts one in Beans Assistant, which asks a few questions, proposes a plan and works step by step with checks. All recipes opens the whole catalogue. The help panel (F1) lists them too.

Examples

Concepts

Pitfalls

For agents

Tools of dzt that do the same work without the window:

Files the page reads and writes:

What the page tells the assistant: the open file, binarized (view-only) with the ODOL version, the LOD shown with its face count, the selected named selection, a load error, whether there are unsaved changes, the validation issues as problems, and the suggested action Check this model. Anchors for data-guide: models-open, models-cfg-button, models-import, models-explorer, models-source, models-source-game, models-toolbar, models-lod-select, models-viewport, models-inspector, models-edit, models-validation, models-cfg-panel.

See also