Fabien Freling
9056aee823
Serialize accessor 'normalized' attribute.
2019-03-21 17:06:22 +01:00
Syoyo Fujita
29c431b2f2
Add build option with draco in Makefile.
v2.2.0
2019-03-08 14:01:06 +09:00
Syoyo Fujita
d06b2c2022
Merge pull request #154 from Ybalrid/patch-3
...
Fix the display of the version history
2019-03-08 13:32:31 +09:00
Arthur Brainville
339c9d578a
Fix the display of the version history
...
Markdown is like HTML: simple line-breaks don't work.
Besides, making a list with dots here looks nicer :)
2019-03-07 19:40:57 +01:00
Syoyo Fujita
7c315fa8a8
Merge pull request #153 from Ybalrid/patch-2
...
fix a few typos in README.md
2019-03-07 21:30:20 +09:00
Arthur Brainville
0f04ed018a
fix a few typos in README.md
2019-03-07 13:23:59 +01:00
Syoyo Fujita
ca56f726d6
Merge branch '16bit-lodepng'
2019-03-07 21:04:25 +09:00
Syoyo Fujita
e8a46c4e1d
Update README.
...
Check bit depth when saving image as PNG.
2019-03-07 20:50:58 +09:00
Syoyo Fujita
9cd14a461b
Update README.
2019-03-07 01:05:02 +09:00
Syoyo Fujita
1ef603ea2a
Merge pull request #150 from Ybalrid/sparse_accessor
...
Sparse accessor
2019-03-07 00:49:29 +09:00
Arthur Brainville (Ybalrid)
14d259f361
glview can now load static geometry modified by sparse accessor
2019-03-06 14:48:44 +00:00
Arthur Brainville (Ybalrid)
9223d3133a
Ran clang-format on tiny_gltf.h
2019-03-06 14:00:56 +00:00
Arthur Brainville (Ybalrid)
9b321a8515
clang-format + added sparse accessor in loader_example
2019-03-06 12:39:39 +00:00
Arthur Brainville (Ybalrid)
7e9f734d73
Parse sparse accessors
2019-03-06 12:27:23 +00:00
Arthur Brainville (Ybalrid)
9d86405d3d
Fix accessor ctor
2019-03-06 11:33:30 +00:00
Arthur Brainville (Ybalrid)
1ccb4ff580
added sparse structure to accessors
2019-03-06 11:30:00 +01:00
Syoyo Fujita
8fd91aea04
Update TinyEXR.
2019-03-04 02:15:03 +09:00
Syoyo Fujita
8f76d790b8
Merge pull request #148 from Ybalrid/16bit-lodepng-good-byteswap
...
When writing out a 16bit image with lodepng, simplify the byteswap to big-endian
2019-03-04 01:15:20 +09:00
Arthur Brainville (Ybalrid)
853f6df7b5
Simplify byteswap code to convert to big endian 16bit
2019-03-03 16:26:20 +01:00
Syoyo Fujita
758a1240c9
Reorder 16 bit pixel data to big endian when saving it as 16 png, since lodepng::encode expects image data is in big endian manner.
...
Add OpenEXR saver for 16bit image as a bonus.
2019-03-03 21:21:18 +09:00
Syoyo Fujita
7bdfed3bec
Add lodepng to save 16bit PNG.
...
Suppress clang/gcc warnings.
2019-03-03 17:04:49 +09:00
Syoyo Fujita
bf9c2f4abd
Merge pull request #146 from WARP-LAB/master
...
Fix for when json and stb is aready used in project
2019-03-03 15:31:09 +09:00
kroko
fc0116b323
rename TINYGLTF_BYPASS_INCLUDE_x to TINYGLTF_NO_INCLUDE_x
2019-03-03 08:28:49 +02:00
Syoyo Fujita
962552c5c8
Merge pull request #145 from Ybalrid/upgrade_stb_libs
...
Upgrade the STB libraries, and fix #132
2019-03-03 13:39:10 +09:00
kroko
606e5dde31
be more precise in readme about include bypassing flags
2019-03-03 01:56:34 +02:00
kroko
6a0d4c57b1
Fix for when json and stb is aready used in project v2
2019-03-03 01:28:45 +02:00
kroko
f4b6d11abc
Fix for when json and stb is aready used in project
2019-03-03 01:11:31 +02:00
Arthur Brainville (Ybalrid)
5a4c898912
Fixed wrong metadata in case 16bit image wasn't actually loaded
...
The fallback to 8 bit would have been broken.
2019-03-02 22:03:34 +01:00
Arthur Brainville (Ybalrid)
f2addc0e44
16bit images are 16bit images: added Image::bits and Image::pixel_type
2019-03-02 22:00:48 +01:00
Arthur Brainville (Ybalrid)
70d16a7b92
Upgrade the STB libraries, and fix #132
2019-03-02 16:10:54 +01:00
Syoyo Fujita
326d7ea310
Merge pull request #144 from SaschaWillems/master
...
Add direct access to texture coordinate set on texture parameter
2019-02-24 14:42:51 +09:00
Sascha Willems
eb011068c0
Added function to easily access texture coordinate set index on a texture parameter
2019-02-23 21:15:45 +01:00
Syoyo Fujita
87be0ce34b
Define WIN32_LEAN_AND_MEAN to save the number of including files.
2019-02-19 21:36:32 +09:00
Syoyo Fujita
7d9a0bda3a
Define NOMINMAX to avoid defining MIN/MAX macros on Windows. Without defining NOMINMAX, MIN/MAX macro would affect other header/c++ files. Fixes #143
2019-02-19 16:03:23 +09:00
Syoyo Fujita
7ece5c8275
Merge pull request #142 from ebirenbaum/animation-sampler-interpolation
...
Change AnimationSampler::interpolation to a non-required field.
2019-02-15 14:04:06 +09:00
Evan Birenbaum
6bdffedcbe
Change AnimationSampler::interpolation to a non-required field. The spec states to default to LINEAR when not present.
2019-02-14 13:30:57 -08:00
Syoyo Fujita
d2fb7dc2af
Merge pull request #140 from timmmeh/master
...
Adding default values for min and mag filter.
2019-02-10 00:01:11 +09:00
Syoyo Fujita
c0d0251e2c
Update json.hpp to fix compilation with clang with C++17(-std=c++1z) support.
2019-02-04 16:19:13 +09:00
timmmeh
62a72c4845
fix compile
2019-01-31 11:46:19 -08:00
timmmeh
73584ba7b7
Adding default values for min and mag filter.
2019-01-30 18:38:46 -08:00
Syoyo Fujita
ead876fce9
Merge pull request #138 from dolphineye/dolphineye/add_mode_line_strip
...
Add line strip primitive mode define
2019-01-30 23:19:30 +09:00
Thomas Tissot
6c4a006496
Add line strip primitive mode define
...
This small commit adds the `TINYGLTF_MODE_LINE_STRIP` primitive mode
define whose value is set to `3` as per the GLTF 2.0 specification.
2019-01-30 13:10:51 +01:00
Syoyo Fujita
281af41b6c
Merge pull request #137 from Ybalrid/pr_fix_glview_no_scene_no_nodes
...
Fix glView in case there is no default scene
2019-01-28 13:00:26 +09:00
Arthur Brainville (Ybalrid)
215e1fae61
handle not having default scene
2019-01-27 20:52:04 +00:00
Arthur Brainville (Ybalrid)
cba75b9927
fix glview in case gltf asset doesn't have a default scene
2019-01-27 20:52:04 +00:00
Syoyo Fujita
4de57db325
Add TINYGLTF_ENABLE_DRACO flag to README.
v2.1.0
2019-01-27 00:43:02 +09:00
Syoyo Fujita
a32fa80102
Add support for building glview with draco.
...
Fix out-of-bounds access when calling DrawMesh().
Fix potential out-of-bounds access when filling window title string.
2019-01-27 00:38:34 +09:00
Syoyo Fujita
5f34dab548
Merge pull request #136 from abwood/draco
...
Fixed decoding bugs in draco
2019-01-26 23:22:55 +09:00
Alexander Wood
0d77a291f7
Updates to draco decoding:
...
- When injecting draco decoded meshes into accessor data, update count to match the optimized and decoded draco mesh
- accessor.componentType is now used for extraction of decoded draco meshes.
Fixes #135
2019-01-26 08:58:45 -05:00
Syoyo Fujita
b926195ef8
Merge pull request #134 from abwood/draco
...
Initial support for draco mesh compression
2019-01-25 16:45:33 +09:00