mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-22 19:52:57 -05:00
New crate effectcraft-model (L2): glTF 2.0 (.gltf/.glb, data URIs, external buffers and images, PBR metallic-roughness with base/MR/normal/occlusion/emissive textures, node hierarchy, skins, step/linear/cubic animations) and OBJ/MTL import, parametric primitives, extruded/bevelled outline meshes and polygon triangulation with holes. Project: FootageKind::Model, LayerSource::Model/Primitive, Layer::environment, Geometry and Material Options builders, Environment light Source. Media probes and loads models (FootageSource::model). Engine: layer.newModel, layer.new3dPrimitive/newPrimitive, comp.renderer, layer.environment, material.set/reset/duplicateAssign/revealSource (stubs replaced); File > Import and layer.addItem pick up models. Hand-written fixtures with attribution sidecars. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
536 B
Plaintext
30 lines
536 B
Plaintext
# EffectCraft test fixture: a unit cube with texture coordinates and normals (original work).
|
|
mtllib cube.mtl
|
|
o Cube
|
|
v -0.5 -0.5 0.5
|
|
v 0.5 -0.5 0.5
|
|
v 0.5 0.5 0.5
|
|
v -0.5 0.5 0.5
|
|
v -0.5 -0.5 -0.5
|
|
v 0.5 -0.5 -0.5
|
|
v 0.5 0.5 -0.5
|
|
v -0.5 0.5 -0.5
|
|
vt 0 0
|
|
vt 1 0
|
|
vt 1 1
|
|
vt 0 1
|
|
vn 0 0 1
|
|
vn 0 0 -1
|
|
vn 1 0 0
|
|
vn -1 0 0
|
|
vn 0 1 0
|
|
vn 0 -1 0
|
|
usemtl Red
|
|
f 1/1/1 2/2/1 3/3/1 4/4/1
|
|
f 6/1/2 5/2/2 8/3/2 7/4/2
|
|
f 2/1/3 6/2/3 7/3/3 3/4/3
|
|
usemtl Gold
|
|
f 5/1/4 1/2/4 4/3/4 8/4/4
|
|
f 4/1/5 3/2/5 7/3/5 8/4/5
|
|
f -4/1/6 -3/2/6 -7/3/6 -8/4/6
|