Skip to content

Commit bec5d0b

Browse files
committed
Make pointers not to crash the loading
1 parent 24cbc87 commit bec5d0b

File tree

4 files changed

+185
-37
lines changed

4 files changed

+185
-37
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
1. git clone the glTF schema repository to any directory: https://github.com/KhronosGroup/glTF
22
2. Replace the glTF\specification\2.0\schema\extras.schema.json file with the one provided here by the OpenRails project.
3-
3. git clone the gltfLoader repository to the same base directory: https://github.com/KhronosGroup/glTF-CSharp-Loader
4-
4. Open the glTF-CSharp-Loader\CSharp.sln
5-
5. Bump the version of Newtonsoft.Json in the gltfLoader project to match with that one used in OpenRails (11.0.2 as of writing this).
6-
6. Build the Generator project.
7-
7. Build the gltfLoader project.
8-
8. Copy the resulting glTF-CSharp-Loader\glTFLoader\bin\Debug\netstandard1.3\glTFLoader.dll to this directory.
3+
3. Replace the glTF\specification\2.0\schema\animation.channel.target.schema.json file with the one provided here by the OpenRails project.
4+
4. Copy the glTF\extensions\2.0\Khronos\KHR_animation_pointer\schema\animation.channel.target.KHR_animation_pointer.schema.json file in to the glTF\specification\2.0\schema\ folder.
5+
5. git clone the gltfLoader repository to the same base directory: https://github.com/KhronosGroup/glTF-CSharp-Loader
6+
6. Open the glTF-CSharp-Loader\CSharp.sln
7+
7. Bump the version of Newtonsoft.Json in the gltfLoader project to match with that one used in OpenRails (11.0.2 as of writing this).
8+
8. Build the Generator project.
9+
9. Build the gltfLoader project.
10+
10. Copy the resulting glTF-CSharp-Loader\glTFLoader\bin\Debug\netstandard1.3\glTFLoader.dll to this directory.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "animation.channel.target.schema.json",
4+
"title": "Animation Channel Target",
5+
"type": "object",
6+
"description": "The descriptor of the animated property.",
7+
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
8+
"properties": {
9+
"node": {
10+
"allOf": [ { "$ref": "glTFid.schema.json" } ],
11+
"description": "The index of the node to animate. When undefined, the animated object **MAY** be defined by an extension."
12+
},
13+
"path": {
14+
"description": "The name of the node's TRS property to animate, or the `\"weights\"` of the Morph Targets it instantiates. For the `\"translation\"` property, the values that are provided by the sampler are the translation along the X, Y, and Z axes. For the `\"rotation\"` property, the values are a quaternion in the order (x, y, z, w), where w is the scalar. For the `\"scale\"` property, the values are the scaling factors along the X, Y, and Z axes.",
15+
"anyOf": [
16+
{
17+
"const": "pointer"
18+
},
19+
{
20+
"const": "translation"
21+
},
22+
{
23+
"const": "rotation"
24+
},
25+
{
26+
"const": "scale"
27+
},
28+
{
29+
"const": "weights"
30+
},
31+
{
32+
"type": "string"
33+
}
34+
]
35+
},
36+
"extensions": { },
37+
"extras": { }
38+
},
39+
"required": [ "path" ]
40+
}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)