What problem does it solve?
Building correct 3D viewer scenes is repetitive and error-prone because you must consistently generate meshes, create materials, wire scene models, and set up lighting and transforms in the engine’s expected data model.
Core Features & Use Cases
- Parametric mesh generation: Turn any
ParametricSurface into GPU-ready meshes using build_attributes_mesh and triangulate_parametric, including tessellation control via TessellationConfig.
- Material creation patterns: Create and attach multiple material types (PBR specular-glossiness, PBR metallic-roughness, and OccStyle/CAD-style) including optional alpha blending and texture-driven setups.
- Scene model wiring & lighting: Connect meshes and materials into standard or non-standard model payloads, set local transforms, and create directional, point, and spot lights.
- Test content module pattern: Add reusable test-scene loaders under
application/viewer/src/viewer/test_content/ and register them through default_scene.rs.
Quick Start
Generate a default 3D test scene by following the viewer’s scene-building recipe: triangulate a parametric surface into a mesh, write it to the scene, create a matching material, wire a scene model with a node transform, and add one or more lights.