From 2dd08d042aae468b23e5943ac2e9d807e5b5f6ba Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 21 Jan 2025 14:33:37 +0100 Subject: update doc --- doc/resources.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'doc/resources.md') diff --git a/doc/resources.md b/doc/resources.md index 05b4cfc..c015ab7 100644 --- a/doc/resources.md +++ b/doc/resources.md @@ -99,12 +99,19 @@ white except normals are zero. ## Armature +Armature is used for humanoid avatar rigging and generally follows VRM +specification. Joints are arranged in a hierarchy where transforms are +inherited. Attribute values are zipped similar to vertex attributes. + | Key | Value Type | | | ----------- | ----------- | -------------------------------------- | | `parent` | `[u16]` | Parent indecies, Root points to itself | | `transform` | `[Affine3]` | | | `name` | `[String]` | Each string prefixed with u16 length | +- **Names**: Indirectly controlled joints have an empty name. All other bones + are named like in [VRMC_vrm]. + ## LightPart | Key | Value Type | @@ -124,10 +131,13 @@ white except normals are zero. ## EnvironmentPart -| Key | Value Type | | -| -------- | -------------- | ---------------- | -| `skybox` | `Res` | | -| `sun` | `Vec3`, `Vec3` | Direction, Color | +| Key | Value Type | | +| -------- | -------------- | ------------------------ | +| `skybox` | `Res` | OpenEXR support required | +| `sun` | `Vec3`, `Vec3` | Direction, Color | + +- **Skybox**: Equirectangular projection is used. TODO: Unit for Luminous + intensity? lm/sr? ## Texture @@ -155,3 +165,5 @@ Only one key for shape should be set. [KHR_materials_dispersion]: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_dispersion [KHR_lights_punctual]: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_lights_punctual [KHR_lights_unlit]: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_lights_unlit +[VRMC_vrm]: https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_vrm-1.0 +[VRMC_springBone]: https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_springBone-1.0 -- cgit v1.2.3-70-g09d2