Commit Graph
747 Commits
Author SHA1 Message Date
Syoyo Fujita b46104daff Add VS2019 build job. 2020-05-30 02:16:41 +09:00
Syoyo Fujita defaf381b5 Add mingw build job 2020-05-30 02:12:48 +09:00
Syoyo Fujita 99b0d6abb5 Add argument to loader_example run 2020-05-30 02:07:00 +09:00
Syoyo Fujita b97f2c3225 add aarch64 cross compile and macos build job. 2020-05-30 02:04:06 +09:00
Syoyo Fujita d87f2bdd23 Fix yaml syntax. 2020-05-30 02:00:03 +09:00
Syoyo Fujita d574e858cf Add gcc-4.8 build job. 2020-05-30 01:59:02 +09:00
Syoyo Fujita a33b33c192 Fix workflow 2020-05-30 01:56:35 +09:00
Syoyo Fujita 362af687ed Add rapidjson build job 2020-05-29 22:21:24 +09:00
Syoyo Fujita ceccca0106 Create github actions workflow 2020-05-29 20:57:39 +09:00
Syoyo Fujita 0b08e9200d Merge pull request #265 from ivovandongen/ivd_rapidjson_size_t
cast size_t to uint_64_t for rapidjson serialization
2020-05-29 18:19:07 +09:00
Ivo van Dongen be5639536d cast size_t to uint_64_t for rapidjson serialization 2020-05-29 11:24:11 +03:00
Syoyo 3851ef0ba0 Add TDME2 2020-05-22 01:25:03 +09:00
Syoyo Fujita 66938e0ea5 Support llvm-mingw(clang + libcxx) to open UTF-8 path in ifstream. 2020-05-18 20:50:45 +09:00
Syoyo Fujita 67c27aa091 Fix existing "extensions" were overwritten in serialization when the scene contains lights(serialized as "KHR_light_punctual")
Append "KHR_light_punctual" to `extensionsUsed` if not exist in serialization.
Apply clang-format.
Fixes #261
2020-05-15 21:32:06 +09:00
Syoyo Fujita e306c0fc7f Only serialize light.range when range > 0. Fixes #260 2020-05-13 21:22:23 +09:00
Syoyo Fujita 3639a23222 Return type must be int for GetNumberAsInt(). Fixes #258 2020-05-11 19:07:00 +09:00
Syoyo 4e803bdd96 Serialize extension and extras for Camera. Fixes #257 2020-05-09 02:41:07 +09:00
Syoyo Fujita 5d34059f06 Fix float and int comparison. 2020-04-29 19:16:35 +09:00
Syoyo Fujita bd73fe76f1 Include cmath for std::fabs 2020-04-29 17:33:48 +09:00
Syoyo Fujita 3ca5b278a1 Return false for zero-sized asset. Fixes #255 2020-04-28 01:06:34 +09:00
Syoyo Fujita 01f6c7d5c6 Merge pull request #254 from LHLaurini/master
Fix write functions so they work with MinGW
2020-04-14 01:40:00 +09:00
Luiz Henrique Laurini 8a127d5771 Fix write functions so they work with MinGW 2020-04-12 16:00:33 -03:00
Syoyo Fujita 6197d99c53 Merge pull request #252 from freddiehonohan/master
Fixed small error if node has no mesh in examples/basic.
2020-04-10 02:04:12 +09:00
root 921d6e2920 Fixed small error if node has no mesh. 2020-04-09 10:42:41 -04:00
Syoyo Fujita 3e5ca8ff9f Merge branch 'master' of github.com:syoyo/tinygltf 2020-04-06 22:12:39 +09:00
Syoyo Fujita 261f2d9ee2 Do not segfault when the scene does not contain texture images. Fixes #251 2020-04-06 22:11:16 +09:00
Syoyo Fujita c91003e7bd Merge pull request #250 from FsiGuy00015623/prevent-cloning-buffer-images
Prevent cloning of images in buffers
2020-03-10 14:53:13 +09:00
FsiGuy00015623 5d104f637a Prevent cloning of images in buffers
Now, in UpdateImageObject, if an image has no URI but had a valid bufferView, it will no longer change the image object or copy the buffer object to an outside file at baseDir. 
(When saving files from streams, this function would previously save textures in buffers as "#.png" in the program's working directory instead of the model file's directory, and create a broken link in the updated image object if the two locations were different.)
2020-03-09 16:57:21 -05:00
Syoyo Fujita 2a1dc1b9e3 Merge pull request #249 from CesiumGS/accessor-index-fix
Ensures only valid bufferViews are mentioned in accessor
2020-03-05 23:59:23 +09:00
Sanjeet Suhag 164a84f090 Ensures only valid bufferViews are mentioned in accessor 2020-03-04 17:40:10 -05:00
Syoyo Fujita 70456ba892 Merge branch 'uri-decode' 2020-03-03 18:49:27 +09:00
Syoyo Fujita 027e39e8fb Update copyright year.
Add note on the result from fuzzer test.
2020-02-24 01:36:24 +09:00
Syoyo Fujita b3012ec8cf Merge pull request #243 from mfpgs/reading_copyright
Reading copyright field in ParseAsset()
2020-02-20 23:42:14 +09:00
Miguel Sousa 632810eeca Reading copyright field in ParseAsset() 2020-02-20 14:16:58 +01:00
Syoyo Fujita 65b84dc4d0 Merge pull request #242 from Selmar/some_empty_array_fixes
Some empty array fixes
2020-01-29 01:27:44 +09:00
Selmar Kok 694f27461d Merge remote-tracking branch 'origin/master' into some_empty_array_fixes 2020-01-28 13:46:22 +01:00
Selmar Kok 3c15e73a6b dont serialize a couple of empty arrays 2020-01-28 13:45:38 +01:00
Syoyo Fujita 6f8ae41bad Merge pull request #240 from kacprzak/master
Set target for bufferView used by MorphTargets
2020-01-22 22:32:41 +09:00
Marcin Kacprzak 327d1da3ee Set target for bufferView used by MorphTargets 2020-01-22 13:13:35 +01:00
Syoyo Fujita 1bb2cd5ee1 Merge pull request #239 from Selmar/channel_target_extensions
Channel target extensions
2020-01-22 03:52:20 +09:00
Selmar Kok 02da28450a Merge remote-tracking branch 'origin/master' into channel_target_extensions 2020-01-21 18:46:58 +01:00
Selmar Kok 2ded9adf42 add channel.target extensions 2020-01-21 18:45:24 +01:00
Syoyo Fujita 853477d8d1 Add clang fuzzer tester. 2020-01-18 20:31:54 +09:00
Syoyo Fujita fbcf87bbcb Merge pull request #238 from sammyKhan/patch-1
Initialize defaultScene to -1
2020-01-17 21:58:00 +09:00
sammyKhan b0b17ed287 Initialize defaultScene to -1
To prevent undefined behavior if the model is serialized without defaultScene being set explicitly.
2020-01-17 13:41:16 +01:00
Syoyo Fujita 77e876f188 Possible fix for error: invalid path 'models/CubeImageUriSpaces/ 2x2 image has multiple spaces.png ' on Windows(NTFS? dislikes extra white space after the file extension ) 2020-01-17 16:15:03 +09:00
Syoyo Fujita d9da585754 Merge pull request #237 from FrankGalligan/fix_image_uri_with_spaces
Fix loading images with spaces on Linux
2020-01-14 18:00:48 +09:00
Frank Galligan d2cdff2070 Fix loading images with spaces on Linux
This change quotes the string before it is passed into wordexp.

This addresses issue https://github.com/syoyo/tinygltf/issues/236
2020-01-13 15:06:56 -08:00
Syoyo Fujita 8c96c56a6e Add dlib license. 2020-01-08 02:39:46 +09:00
Syoyo Fujita fabe172bf0 Initial support of decoding percent-encoding URI. 2020-01-08 02:38:01 +09:00