Commit Graph

174 Commits

Author SHA1 Message Date
Syoyo Fujita
4f9dd612b8 Remove sampler.wrapR parameter(unused tinygltf extension). Fixes #287
Suppress clang `-Wdocumentation-unknown-command` warning.
2020-12-04 00:50:46 +09:00
Eschemann
dc9f7efb8c Deleted unnessecary stuff 2020-09-28 16:04:14 +02:00
Eschemann
9d7483d6db Fixed segfault in example basic on inter graphics hd and corrected path to model 2020-09-28 15:50:45 +02:00
daemyung jang
67c66e0ba2 Add README.md for dxview 2020-07-04 09:24:00 +09:00
daemyung jang
6e9f10fa80 Add dxview 2020-07-04 01:29:41 +09:00
root
921d6e2920 Fixed small error if node has no mesh. 2020-04-09 10:42:41 -04: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
be20d6d266 Use const reference for Buffer to fix compilation.
Removed UTF BOM?
2019-09-04 14:26:58 +09:00
nicolasDEROUINEAU
8ed23ea55f remove extra #endif in examples/basic app 2019-08-13 15:08:01 +02:00
Syoyo Fujita
11656a589f Merge branch '16bit-lodepng' 2019-03-07 21:04:25 +09:00
Arthur Brainville (Ybalrid)
5cf468ce1c glview can now load static geometry modified by sparse accessor 2019-03-06 14:48:44 +00:00
Syoyo Fujita
5a4e3ef6e9 Update TinyEXR. 2019-03-04 02:15:03 +09:00
Arthur Brainville (Ybalrid)
ad65b5949d Simplify byteswap code to convert to big endian 16bit 2019-03-03 16:26:20 +01:00
Syoyo Fujita
8978bdd6a3 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
f5dcd85c34 Add lodepng to save 16bit PNG.
Suppress clang/gcc warnings.
2019-03-03 17:04:49 +09:00
Arthur Brainville (Ybalrid)
f39a8f2cbe 16bit images are 16bit images: added Image::bits and Image::pixel_type 2019-03-02 22:00:48 +01:00
Syoyo Fujita
871d8576b1 Update json.hpp to fix compilation with clang with C++17(-std=c++1z) support. 2019-02-04 16:19:13 +09:00
Arthur Brainville (Ybalrid)
c35996cf7e handle not having default scene 2019-01-27 20:52:04 +00:00
Arthur Brainville (Ybalrid)
24840cdbed fix glview in case gltf asset doesn't have a default scene 2019-01-27 20:52:04 +00:00
Syoyo Fujita
3f4a7798ab 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
446b3147e0 Begin supporting draco. 2019-01-19 03:03:22 +09:00
Syoyo Fujita
e8ed267553 Support macOS + OpenGL 3.3+ GPU 2019-01-14 22:11:11 +09:00
Syoyo Fujita
1ed7c4a2bf Convert UTF16 file to UTF8.
Add premake project to build on Linux.
2019-01-14 21:30:53 +09:00
Tan Meng Yue
0278628a59 Fix bug in handling OS X build via CMake
The OS macros needs to be upper case for the
if statement to work as expected
2018-12-25 17:03:58 +11:00
Nicholas Yue
70af9bf0fb Add support for static GLFW3 library linking 2018-12-25 09:48:26 +11:00
Nicholas Yue
7ace162e97 Fix GLFW3 handling on CentOS 2018-12-25 09:15:13 +11:00
Tan Meng Yue
85d01b26cb Added installation of headers and target binaries 2018-12-07 18:01:08 +11:00
Tan Meng Yue
f6c1b4bddf Add CMake configuration for glview
So that we can build more of the examples consistently
with CMake
2018-12-05 23:56:23 +11:00
viperscape
16fa4eed42 add screenshot 2018-11-15 17:03:38 -05:00
viperscape
049dab3bbc add basic example 2018-11-15 17:02:20 -05:00
viperscape
5e5525d01b add win32 includes 2018-11-14 10:19:39 -05:00
viperscape
e82c54196d rework to include VS 2017 project, fully configured and tested 2018-11-14 10:15:58 -05:00
Peter Kovář
6b9c7aa600 Added include directory ../common/ for trackball.h 2018-10-17 15:29:56 +02:00
Syoyo Fujita
5a2da1742a Fix premake script. 2018-10-07 20:34:45 +09:00
Syoyo Fujita
45e9cc4058 Remove duplicated files. 2018-10-04 15:48:17 +09:00
Syoyo Fujita
7196b0ca67 Fix typo(n2.z -> n1.z) 2018-08-16 15:56:13 +09:00
Syoyo Fujita
6190633db7 Added 'warning' message parameter to glTF loader API.
Asset loading failure messages(e.g. image file is missing) are now stored in `warning` message, not `error` message.
2018-07-27 16:49:10 +09:00
johan bowald
90e28a4d34 update examples with new defines 2018-04-01 14:08:45 +02:00
johan bowald
794c92542c output both embedded and image files, small fix to serializer. 2018-04-01 12:37:18 +02:00
johan bowald
d2cd12ec27 added embed buffers as an option in serializer 2018-03-30 11:52:56 +02:00
Arthur Brainville
5a760c2814 Can select image file format with -f argument in gltf util
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-19 20:24:00 +01:00
Arthur Brainville
15dee6471e Add a "not specified" option to the enum class for image formats
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-19 20:06:59 +01:00
Arthur Brainville (Ybalrid)
4b397b4ec3 Can specify output directory for dumped texture with -o
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-19 17:21:18 +01:00
Arthur Brainville (Ybalrid)
7e233ba2e5 Added basic texture dumper
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-19 17:11:53 +01:00
Arthur Brainville
c9e0a5dac5 Start working on a gltf utility program
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-19 15:49:14 +01:00
Syoyo Fujita
2faf429520 Store relative URI in Buffer serializer. Fixes #48.
Apply clang-format.
Add simple saver sample.
2018-03-15 21:52:00 -05:00
Arthur Brainville
4236dccc3f raytrace: remove code that ouput the 1st loaded texture as PPM
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-02 16:58:30 +01:00
Syoyo Fujita
f7f2354a7c Merge pull request #42 from Ybalrid/pr_raytrace_texture_loading
raytrace: add simple code that load texture data
2018-03-03 00:55:58 +09:00
Arthur Brainville
bd16abeb25 Restored previous behavior when moving node in scene
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-02 16:21:28 +01:00
Arthur Brainville
82533402a4 Update scene when moving gizmo
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
2018-03-02 16:10:20 +01:00