Emmanuel Arias Soto
a894904f11
Fix basic example
...
Context: When parsing a mesh with primitives that have indices pointing to different buffer views, the VAO will use the last GL_ELEMENT_ARRAY_BUFFER that was bound to it. In this scenario, the mesh will not be rendered properly.
When binding a mesh, return VAO and EBOs so that primitives can bind to the proper element array buffer.
2022-05-14 19:54:03 +02:00
Dave LeCompte
0ffdc4334a
Examples/glview - apply translation, rotation, scale in that order
...
Tested on the Kenney.nl CarKit models: https://www.kenney.nl/assets/car-kit
2022-03-02 07:01:34 -08:00
Dave LeCompte
d642c80a86
Fix examples/glview rotations
...
GLtf defines rotations as quaternions, glRotated expects angle/axis, with angle in degrees.
2022-03-01 08:11:22 -08:00
Syoyo Fujita
d1453b5e5e
GLEW_LIBRARY -> GLEW_LIBRARIES
2021-06-09 21:23:37 +09:00
Syoyo Fujita
58ceed1d89
Add CMake file and Makefile for examples/build-gltf
2021-02-26 18:34:00 +09:00
Dov Grobgeld
d1b6b3a5aa
Add example for creating a triangle gltf file from scratch
2021-02-26 09:30:05 +02:00
Syoyo Fujita
2c521b3432
Remove sampler.wrapR parameter(unused tinygltf extension). Fixes #287
...
Suppress clang `-Wdocumentation-unknown-command` warning.
2020-12-04 00:50:46 +09:00
Eschemann
9c59a0b64c
Deleted unnessecary stuff2
2020-09-28 16:06:31 +02:00
Eschemann
452541a231
Deleted unnessecary stuff
2020-09-28 16:04:14 +02:00
Eschemann
78fe8d9b89
Fixed segfault in example basic on inter graphics hd and corrected path to model
2020-09-28 15:50:45 +02:00
daemyung jang
fe01af2f01
Add README.md for dxview
2020-07-04 09:24:00 +09:00
daemyung jang
efdd2b04dc
Add dxview
2020-07-04 01:29:41 +09:00
root
ff48fa0ff4
Fixed small error if node has no mesh.
2020-04-09 10:42:41 -04:00
Syoyo Fujita
5f603c56dc
Do not segfault when the scene does not contain texture images. Fixes #251
2020-04-06 22:11:16 +09:00
Syoyo Fujita
c29bd3d9ce
Use const reference for Buffer to fix compilation.
...
Removed UTF BOM?
2019-09-04 14:26:58 +09:00
nicolasDEROUINEAU
f93642c196
remove extra #endif in examples/basic app
2019-08-13 15:08:01 +02:00
Syoyo Fujita
ca56f726d6
Merge branch '16bit-lodepng'
2019-03-07 21:04:25 +09:00
Arthur Brainville (Ybalrid)
14d259f361
glview can now load static geometry modified by sparse accessor
2019-03-06 14:48:44 +00:00
Syoyo Fujita
8fd91aea04
Update TinyEXR.
2019-03-04 02:15:03 +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
Arthur Brainville (Ybalrid)
f2addc0e44
16bit images are 16bit images: added Image::bits and Image::pixel_type
2019-03-02 22:00:48 +01: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
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
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
7ae7110800
Begin supporting draco.
2019-01-19 03:03:22 +09:00
Syoyo Fujita
b864ea7349
Support macOS + OpenGL 3.3+ GPU
2019-01-14 22:11:11 +09:00
Syoyo Fujita
d6b0b0b990
Convert UTF16 file to UTF8.
...
Add premake project to build on Linux.
2019-01-14 21:30:53 +09:00
Tan Meng Yue
80a85af661
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
f1b5bb12fd
Add support for static GLFW3 library linking
2018-12-25 09:48:26 +11:00
Nicholas Yue
174334eaf4
Fix GLFW3 handling on CentOS
2018-12-25 09:15:13 +11:00
Tan Meng Yue
94fcfdeb9d
Added installation of headers and target binaries
2018-12-07 18:01:08 +11:00
Tan Meng Yue
2dcf79566f
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
c3e34c2ff7
add screenshot
2018-11-15 17:03:38 -05:00
viperscape
0ddfaead8f
add basic example
2018-11-15 17:02:20 -05:00
viperscape
764bcb5a8a
add win32 includes
2018-11-14 10:19:39 -05:00
viperscape
50ada7ff11
rework to include VS 2017 project, fully configured and tested
2018-11-14 10:15:58 -05:00
Peter Kovář
a645cfc840
Added include directory ../common/ for trackball.h
2018-10-17 15:29:56 +02:00
Syoyo Fujita
05a8d0bc52
Fix premake script.
2018-10-07 20:34:45 +09:00
Syoyo Fujita
b5a72a1ba2
Remove duplicated files.
2018-10-04 15:48:17 +09:00
Syoyo Fujita
a6802d10fb
Fix typo(n2.z -> n1.z)
2018-08-16 15:56:13 +09:00
Syoyo Fujita
7c8d4ed748
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
ef151a4fed
update examples with new defines
2018-04-01 14:08:45 +02:00
johan bowald
642a343684
output both embedded and image files, small fix to serializer.
2018-04-01 12:37:18 +02:00
johan bowald
30c5347afe
added embed buffers as an option in serializer
2018-03-30 11:52:56 +02:00
Arthur Brainville
2960379eba
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
4ba01f5968
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)
34c8b60325
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