Bryn Lloyd
d955fd38e7
minor cleanup of cmakelists
2023-06-21 18:26:43 +02:00
Emmanuel Arias Soto
540a4d3862
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
ddaa493677
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
824c484ff7
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
d152dd91b9
GLEW_LIBRARY -> GLEW_LIBRARIES
2021-06-09 21:23:37 +09:00
Syoyo Fujita
879d53d130
Add CMake file and Makefile for examples/build-gltf
2021-02-26 18:34:00 +09:00
Dov Grobgeld
2cb49f138a
Add example for creating a triangle gltf file from scratch
2021-02-26 09:30:05 +02:00
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