From 591100a8170ceff4e0391561626869d15e32d2e7 Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 25 Apr 2024 01:56:05 +0200 Subject: [PATCH] add blender/modeling documentation --- doc/blender.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 doc/blender.md diff --git a/doc/blender.md b/doc/blender.md new file mode 100644 index 0000000..19f6b10 --- /dev/null +++ b/doc/blender.md @@ -0,0 +1,14 @@ +# Guidelines for model creation + +1. The origin (coordinate 0/0/0) of the model should be its center of mass. +2. The scale of every model should be normalized to a "radius" of 1. In other words, the entire object should fit inside blender's standard cube (centered at origin, with side length 2). To scale an object up or down in the game, use the "scale" command in the defs.txt. Minor mesh details like antennae may exceed beyond the bounding cube. + +# Colliders + +A model may contain a collider mesh, which will be used if the actor is spawned with the command "mesh handcrafted". The collider mesh will be made invisible, even if it's visible in the glTF file. To use this feature, give a mesh (NOT OBJECT, BUT MESH) the name "Collider" (case-sensitive.) + +# Blender source files + +Blender source files for the 3D models (glTF/.glb) can be found in the /src/blender/ directory. + +If no corresponding blender project exists, it means that the model is simple enough that the glTF/.glb file itself is the "source file". To view/edit it, create an empty project in blender and import the glTF/.glb file. To save it, export it again as glTF/.glb.