Syoyo Fujita
0067a9e43a
Support gltf-buffer
mime.
...
Make `min` and `max` parameters in `Accessor` optional.
2018-06-04 18:26:05 +09:00
Syoyo Fujita
57f8e7ca3b
Correctly handle filename containing spaces for external resources. Fixes #74 .
2018-06-04 17:52:08 +09:00
Aurélien Chatelain
6d3bfd7e1b
Fix image parsing (2.0)
2017-05-30 15:04:35 +00:00
Aurélien Chatelain
0aab1575d5
Update buffer parsing (2.0)
2017-05-30 15:03:57 +00:00
Syoyo Fujita
40c4a0a60a
Update binary glTF header check(Reading binary glTF is still in progress)
2017-05-30 01:21:36 +09:00
Syoyo Fujita
90e1ed21bc
byteOffset
in Accessor and BufferViews are optional;
2017-05-30 00:47:37 +09:00
Syoyo Fujita
d17ff66b3d
BufferView.byteOffset is optional(default = 0).
2017-05-29 02:53:12 +09:00
Syoyo Fujita
f612015ac2
Keep up with loader_example.cc
...
Update picojson.h
2017-05-27 23:51:23 +09:00
Syoyo Fujita
2057b1ae6e
Merge branch 'feature/update-tinygltf-20' of https://github.com/sketchfab/tinygltf into sketchfab-feature/update-tinygltf-20
2017-05-26 02:16:49 +09:00
Syoyo Fujita
c8d3c76bb1
Sync with tinygltfloader
2017-05-25 01:42:38 +09:00
Aurélien Chatelain
38a6a7565c
Supports glTF morph (glTF 2.0, not tested)
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
8cb98950ff
Supports glTF skinning (glTF 2.0)
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
5cb4346a32
Adds workaround for unsupported images
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
d48bbdcd90
Updates asset object (glTF 2.0)
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
ab7b218385
Updates materials (glTF 2.0)
...
glTF 2.0 has now PBR materials.
Core material is Metallic/Roughness material
Specular/glossiness is still in an extension
Material properties can be number arrays (colors/factors) or JSON objects (textures)
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
a25e495fd9
Updates camera object (glTF 2.0)
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
ee4693e3a1
Supports glTF 2.0 schema
...
- Renaming 'Scene' to 'Model' to avoid confusion
- glTF top objects are now arrays, and objects are referenced by index instead of id
- added a few comments (required)
- default values
2017-05-24 13:48:10 +00:00
Aurélien Chatelain
f4f4ae4d89
Removes Technique/Shader/Program support (glTF 2.0)
2017-05-24 13:47:58 +00:00
Layla
1dbfe0ee13
Possible fix for child values not being properly deserialized.
...
* Add the child_value parsed by ParseObjectProperty to the return value
The omission of adding child_value to the return object appears to have been an oversight, as it is the only case where the parsed value is not added, and because child_value is otherwise unreferenced.
This change also does give us the value that we are expecting in our use case after loading our glTF.
Was this an oversight or an intentional omission?
2017-05-07 16:56:55 -04:00
Syoyo Fujita
4be2f888f7
Fix memory leak of stb_image data.
2016-11-24 16:20:34 +09:00
Syoyo Fujita
a5e63705a3
Remove GL_TRINANGLES restriction for mode
in primitive
parameter.
2016-10-17 18:05:42 +09:00
Syoyo Fujita
7680abf54d
Remove inttypes dependency in TinyGLTFLoader header definition.
2016-10-17 18:02:45 +09:00
Syoyo Fujita
f3447a236b
Fix build on some compilers.
2016-10-17 13:18:08 +09:00
Syoyo Fujita
f696c6f188
Initial support of "extras" property.
...
Change license from BSD to MIT.
2016-10-17 03:48:55 +09:00
Syoyo Fujita
c39d93879a
Merge branch 'master' of github.com:syoyo/tinygltfloader
2016-10-14 19:00:58 +09:00
Syoyo Fujita
0614eb8fa6
Improve error messsage a bit.
2016-10-14 18:50:14 +09:00
r-lyeh
66c1063995
Fix .glb loading (Windows)
...
Fixes loading of https://github.com/KhronosGroup/glTF/blob/master/sampleModels/Duck/glTF-Binary/Duck.glb
2016-08-29 16:56:18 +02:00
Luke San Antonio Bialecki
904612cd23
Use correct value for TEXTURE_WRAP_MIRRORED_REPEAT
2016-08-19 17:28:03 -04:00
Syoyo Fujita
5d8c5c832b
Merge pull request #10 from lukesanantonio/feature-conditional-section-checking
...
Support conditional checking of glTF sections
2016-06-24 12:44:47 +09:00
Syoyo Fujita
90f6ccb55b
Merge pull request #9 from lukesanantonio/feature-texture-formats
...
Add macros for more texture formats
2016-06-24 12:44:35 +09:00
Luke San Antonio
9e36b61ed5
Support conditional checking of glTF sections
2016-06-23 15:16:21 -04:00
Luke San Antonio
b310b4a32e
Prevent a segfault when loading an empty file
...
If the size of the file is zero, we just signal an error and return false.
2016-06-23 15:15:07 -04:00
Luke San Antonio
6d616f5f06
Add macros for more texture formats
2016-06-23 14:33:54 -04:00
Syoyo Fujita
cf6e07b1ec
Suppress clang compiler warnings.
2016-06-21 21:18:12 +09:00
Syoyo Fujita
c261563b0b
Parse sampler
2016-06-19 21:56:06 +09:00
Syoyo Fujita
8c5ab0344f
Initial support of animation
.
2016-06-19 18:16:10 +09:00
Syoyo Fujita
3cdfb3bd07
Support loading binary shader source data for binary glTF.
2016-06-15 20:58:42 +09:00
Syoyo Fujita
92cb3d9c4d
Merge pull request #5 from lukesanantonio/feature_technique
...
Support shaders, programs, and techniques
2016-06-15 15:35:07 +09:00
Luke San Antonio
caa24b0513
Support plain text data URIs
2016-06-15 02:23:09 -04:00
Luke San Antonio
10a3e1da81
Only use valid (triangle) primitive sets
...
ParsePrimitive returns false immediately on error but the return value
wasn't being checked in ParseMesh so invalid / uninitialized primitives
were being added to the mesh.
2016-06-15 02:15:23 -04:00
Luke San Antonio
da8b5d148c
Add newline to error messages in LoadExternalFile
2016-06-14 22:52:06 -04:00
Luke San Antonio
cdf4cb79ed
Add support for shaders, programs, and techniques
2016-06-14 22:51:53 -04:00
Luke San Antonio
19894c7806
Add function to parse string dictionaries
...
A string dictionary in the glTF spec is called a "dictionary object of
strings." For example: mesh.primitives.attributes, technique.attributes,
and technique.uniforms.
2016-06-14 22:47:50 -04:00
Syoyo Fujita
e04b1b56d8
Add error check for scenes
property.
2016-06-05 22:31:20 +09:00
Syoyo Fujita
8c6774c6db
Suppress VS2015 warning.
2016-05-01 20:36:29 +09:00
Syoyo Fujita
6fd9162ed0
Make some compiler happy.
2016-05-01 20:27:30 +09:00
Syoyo Fujita
beded611b7
Initial support of loading binary glTF(.glb).
2016-05-01 20:03:43 +09:00
Syoyo Fujita
ec39a523c2
Merge branch 'master' of github.com:syoyo/tinygltfloader
...
Conflicts:
tiny_gltf_loader.h
2016-05-01 18:33:31 +09:00
Syoyo Fujita
643ce10979
Suppress clang warnings for external code.
2016-05-01 17:19:37 +09:00
Syoyo Fujita
5eebbdc87c
Suppress VC2015 warnings.
2016-04-20 14:13:08 +09:00