Geometry and Export
Continuum takes Divooka meshes in and gives Divooka meshes out. The one representation at the boundary is StreamedVertexMeshData, the mesh Divooka.Geometry.IO writes and the Divooka renderers take. Everything is in Divooka's axes (+Z up) and in metres.
1. Meshes in
| Node | Use |
|---|---|
MeshBody(name, mesh, position, motion, unitScale …) |
a body from any mesh. Static meshes collide with their exact triangles: terrain, a car body in a wind tunnel, a ship's hull as an obstacle. Moving ones collide as the mesh's convex hull. |
AddClothMesh(scene, name, mesh, unitScale …) |
a cloth from any surface, as it is placed in the world: a garment, a flag, a tablecloth. |
- Polygons are split into triangle fans.
unitScaleis metres per mesh unit: 1 for metres, 0.001 for millimetres (much of Parcel NExT's procedural content).- Meshes from Geometry4Sharp (
DMesh3) and theDivooka.Geometry.*packages reach these nodes through Parcel NExT's existing converters toStreamedVertexMeshData. - Meshes are copied on the way in; changing the source mesh later does not change the scene.
Concave moving bodies. A moving mesh body is its convex hull, so a mug cannot hold a ball. The engine has signed-distance shapes for concave moving bodies; exposing them as a node is planned.
2. Meshes out
| Node | Returns |
|---|---|
BodyMesh, BodiesMesh |
each body's collision shape placed by its pose (grounds left out) |
ClothMesh |
a cloth's surface, with per-vertex normals |
WaterSurface |
the liquid surface of a water body: the upper surface and the splashes as one mesh |
WaterSurface builds an implicit surface from the particles (Zhu and Bridson's method) and polygonises it, which is what you render instead of the particles. Getting started's 2 000-particle pool gives a surface of about 9 600 triangles.
Render meshes. A body's mesh is its collision shape: a box is a box. For a detailed model, keep the render asset separate and place it every frame by BodyPosition and BodyRotation.
3. File sequences
| Node | Writes |
|---|---|
ExportSequence(result, folder, prefix) |
prefix.0000.obj for each frame, every body and cloth as a named object; prefix_water.0000.ply for each water body and frame, as a point cloud |
ExportFrame(result, frame, path) |
one frame as OBJ |
The files are in Divooka's axes: +Z up, metres.
- Blender is +Z up: import the OBJ sequence as it is (for example with a mesh-sequence add-on) and the PLY point clouds as points to mesh or instance.
- Houdini is +Y up: rotate by −90° about X on import, or read the sequence with a File SOP and a Transform SOP.
4. What the engine can also write
The real-time nodes write files of their own: OpenVDB smoke volumes, liquid and shore meshes per frame, ocean texture maps and flipbook sheets (see the Physics toolbox). The engine underneath writes more than the nodes expose: legacy VTK for FEM results and CFD fields (for ParaView), PLY particles with attributes, CSV rigid transforms, liquid surfaces for every particle solver, and report figures. They will come to Divooka with the solvers that produce them.