jrkoonce
ce7fa7419b
Support simultaneous gltf load/saves
...
Added support for RapidJSON's CrtAllocator which is stateless and allows multiple documents to be in use at once, removing that restriction on default documents. Enable with TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR
2019-09-04 13:31:44 -05:00
jrkoonce
906f98fa74
Revert "Support simultaneous gltf load/saves"
...
This reverts commit d2a2703ec59fcd86f546c350f68502199eded8e6.
2019-09-04 13:30:02 -05:00
jrkoonce
d2a2703ec5
Support simultaneous gltf load/saves
...
Added support for RapidJSON's CrtAllocator which is stateless and allows multiple documents to be in use at once, removing that restriction on default documents. Enable with TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR
2019-09-04 12:19:27 -05:00
jrkoonce
95f05757d6
Revert "Support simultaneous gltf load/saves (TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR)"
...
This reverts commit ab63db63188375dfa4f4b70383365c9b3f0a85b4.
2019-09-04 12:15:51 -05:00
jrkoonce
ab63db6318
Support simultaneous gltf load/saves (TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR)
...
This allows multiple gltf's to be loaded/saved in parallel. It removes the restriction of a single JsonDocument active at once which is default behavior. Enable with TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR
2019-09-04 12:01:39 -05:00
jrkoonce
6ff95392b0
Fix Compiler Warnings
2019-09-04 10:50:55 -05:00
Syoyo Fujita
c29bd3d9ce
Use const reference for Buffer to fix compilation.
...
Removed UTF BOM?
2019-09-04 14:26:58 +09:00
jrkoonce
63419a11e1
Revert accidental committed change
...
Put "JsonX" helpers back in anonymous namespace to keep them inside local translation unit.
2019-09-03 17:06:41 -05:00
jrkoonce
06c30c4d04
Fixed Bugs/Unit Tests Pass
...
Fixed bugs found by unit tests and got unit tests running with RapidJSON as well as nlohmann.
2019-09-03 15:56:48 -05:00
jrkoonce
67e6160a9a
Fixed move bugs
2019-09-03 10:42:39 -05:00
jrkoonce
a3b8b355ae
Merge branch 'pr/1'
2019-09-03 10:30:19 -05:00
jrkoonce
5145394239
Made C++14 optional, default off.
2019-09-03 09:48:30 -05:00
Syoyo Fujita
67aa2ca75e
Merge pull request #200 from ux3d/feature/allow-scenes-without-nodes
...
allow scenes without nodes
2019-09-02 22:12:15 +09:00
Benjamin Schmithüsen
ce25385eab
remove extra parenthesis
2019-09-02 13:43:24 +02:00
Benjamin Schmithüsen
6143c6662b
don't fail if a scene has no nodes property (which is not required)
2019-09-02 13:41:59 +02:00
Syoyo Fujita
81d75df48a
Rename typeSizeInBytes to numComponents.
2019-08-30 19:19:52 +09:00
DingboDingboDingbo
83ccb9f28d
GetTypeSizeInBytes not returning Type Size In Bytes
...
Changed name to be less misleading.
2019-08-29 18:49:15 -04:00
jrkoonce
9b6f52e98a
Fix bug in ParseNumberArrayProperty()
...
Only doubles were being accepted instead of any number (including ordinals)
2019-08-29 13:56:58 -05:00
jrkoonce
5cecc41db9
More cleanup
...
1. Reserve array memory when converting JSON to Value for heap efficiency.
2. Grouped more JSON abstraction functions together and put in anonymous namespace instead of making each static.
2019-08-29 11:45:04 -05:00
jrkoonce
208c3058bf
Remove test code accidentally commited
2019-08-29 11:28:07 -05:00
jrkoonce
cba5d6caae
RapidJson 1.1 support + More move semantics
...
*Support for RapidJson 1.1, use TINYGLTF_USE_RAPIDJSON to toggle between RapidJson and nlohmann
*Lot more move semantics enabled. All parsing and serialization now move all json objects with far fewer copies
2019-08-29 11:26:22 -05:00
jrkoonce
d1e1472992
Update tiny_gltf.h
...
Add/Enable move semantics to most all structs/classes
2019-08-27 11:51:02 -05:00
Syoyo Fujita
ff51570c26
Apply clang format.
...
Remove `const static std::string` global variable.
2019-08-24 16:29:14 +09:00
Syoyo Fujita
a472a3fa0f
Add Set/Get SerializeDefaultValues method(W.I.P.)
2019-08-21 14:23:00 +09:00
Syoyo Fujita
1f160d5b8f
Merge pull request #195 from ux3d/fix/parse-int-as-double
...
(also) parse int as double
2019-08-20 19:33:20 +09:00
Syoyo Fujita
5150a46072
Merge branch 'master' of github.com:syoyo/tinygltf
2019-08-20 17:11:29 +09:00
Syoyo Fujita
cea69e37a5
Suppress clang warnings.
2019-08-20 17:10:30 +09:00
Syoyo Fujita
8b56c016ab
Merge pull request #193 from Selmar/emissiveFactor_defaults
...
Emissive factor defaults
2019-08-20 13:13:12 +09:00
Benjamin Schmithüsen
c7e205be87
when parsing a number from an int, also set the 'real value' to the value
2019-08-19 16:16:43 +02:00
Selmar Kok
6dba6c6aac
[emissiveFactor] correct default values
2019-08-19 11:23:31 +02:00
Selmar Kok
6df800d2b6
[emissiveFactor] fix inconsistency with baseColorFactor where default values were set only for baseColorFactor and not emissiveFactor
2019-08-19 11:05:28 +02:00
Syoyo Fujita
2f044e77f1
Merge pull request #191 from Selmar/animation_extension_properties
...
Animation extension properties
2019-08-17 01:09:34 +09:00
Selmar Kok
af5a5ef026
Merge branch 'master' of github.com:syoyo/tinygltf into animation_extension_properties
2019-08-16 17:54:14 +02:00
Syoyo Fujita
6591ba4461
Merge pull request #190 from ux3d/feature/parse-node-weights
...
parse/serialize node weights
2019-08-16 22:21:48 +09:00
Benjamin Schmithüsen
74c3c10121
serialize node weights
2019-08-16 14:24:26 +02:00
Benjamin Schmithüsen
ad63bf748b
parse node weights
2019-08-16 14:19:27 +02:00
Selmar Kok
5d43cf8e64
Merge branch 'master' of github.com:syoyo/tinygltf
2019-08-16 14:08:31 +02:00
Selmar Kok
4e2988eebd
add extension property for Animation and AnimationChannel
2019-08-16 14:08:08 +02:00
Syoyo Fujita
ee179b2cb6
Set default value of minFilter and magFilter in Sampler to -1(unset), since glTF 2.0 spec does not declare default values for it.
...
Fixes #186
2019-08-16 13:11:30 +09:00
Syoyo Fujita
4ebd6368fb
Fix inequality of texture index check when serializing texture of material.
...
Texture info was written even if it have invalid index(-1). Fixes #189
2019-08-15 12:25:50 +09:00
Syoyo Fujita
67d3d2504d
Merge pull request #188 from ux3d/fix/alphaMode
...
Fixed saving of alphaMode if not OPAQUE
2019-08-14 21:40:07 +09:00
Patrick Härtl
d9a468bbb4
Fixed saving of alphaMode if not OPAQUE
...
Removed duplicated code for alphaCutoff
2019-08-14 14:14:07 +02:00
Syoyo Fujita
c7bae71f7f
Merge pull request #185 from DerouineauNicolas/endif
...
remove extra #endif in examples/basic app
2019-08-14 03:09:53 +09:00
nicolasDEROUINEAU
f93642c196
remove extra #endif in examples/basic app
2019-08-13 15:08:01 +02:00
Syoyo Fujita
f68d5e1f2a
Merge pull request #182 from ux3d/textureinfo
...
[TextureInfo] fix default value checks for serialization
2019-07-26 01:29:23 +09:00
Benjamin Schmithüsen
1c84fc22a5
fix default value checks for serialization
2019-07-25 16:07:27 +02:00
Syoyo Fujita
150f243b1b
Change the behavior of NUMBER value in Value
class. NUMBER now reprents the value is either int or real(floating point).
2019-07-25 19:22:44 +09:00
Syoyo Fujita
0ee273fdfa
Update README. Add note on tinygltf::Value
for extensions.
2019-07-24 19:55:04 +09:00
Syoyo Fujita
046400b17f
Now material is parsed as a struct with explicit parameter definitions.
...
Implement Material struct serialization.
2019-07-24 19:26:48 +09:00
Syoyo Fujita
89fd93f815
Introduce TextureInfo class(W.I.P.)
2019-07-23 22:37:06 +09:00