Commit Graph

44 Commits

Author SHA1 Message Date
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
Arthur Brainville (Ybalrid)
5cf468ce1c glview can now load static geometry modified by sparse accessor 2019-03-06 14:48:44 +00: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
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
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
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
Syoyo Fujita
b46856ca2f Update premake script for glview example. Fixes #39. 2018-02-23 01:14:13 +09:00
Syoyo Fujita
c7ebe93a70 Add method for computing byteStride to Accessor struct.
This would fix issue #29.
2018-01-03 17:47:08 +09:00
Syoyo Fujita
770995fa00 Use C++11 flag. 2017-12-02 21:18:59 +09:00
Syoyo Fujita
0fc763d219 Accessor.min and Accessor.max are now optional parameter.
Set BufferView.byteStride default value to 0(= tightly packed). Fixes #13.
2017-07-12 18:29:29 +09:00
Syoyo Fujita
d44e2d2612 Remove Accessor.byteStride. 2017-07-03 00:56:16 +09:00
soma_arc
3b031090d5 Fix file/define/class name referenced in glview 2017-06-22 13:34:53 +09:00
Syoyo Fujita
4de15d04c7 Remove unused examples.
Refactor source code.
2017-06-04 17:42:41 +09:00
Syoyo Fujita
0269a33812 Show geomeric normal for mesh object. 2016-11-24 17:55:20 +09:00
Syoyo Fujita
e849d49f5b Fix draw length for GL_LINES. 2016-11-24 17:41:44 +09:00
Syoyo Fujita
06e76d7c9b Initial support of node hierarchy. 2016-11-24 03:10:02 +09:00
Syoyo Fujita
8d44a946cc Fix mouse button state management. 2016-11-23 21:41:53 +09:00
Syoyo Fujita
6b8100a0b5 Rename function. 2016-11-23 18:26:49 +09:00
Syoyo Fujita
d1b86d1345 Comented debug printf. 2016-11-23 18:22:04 +09:00
Syoyo Fujita
a5f1895cb1 Improve UI for one-button mouse. 2016-11-23 17:45:35 +09:00
Syoyo Fujita
5b0cdf40eb Initial GL rendering support of curves primitive(render as GL_LINES). 2016-10-18 20:39:33 +09:00
Syoyo Fujita
c254c5b250 Fix typo(extra -> extras)
Add some curves support to glview.
2016-10-17 20:00:19 +09:00
Syoyo Fujita
42246ec25c Improve windows build.
Don't report error when `in_normal` is not used in the shader.
2016-06-11 16:10:39 +09:00
Syoyo Fujita
ffee8a95f5 Print warning when bufferView.target == 0. 2016-06-06 01:20:52 +09:00
Syoyo Fujita
e06f56a43b Retinal display fix for glview. 2016-06-05 22:35:37 +09:00
Syoyo Fujita
3ba3cadee4 Initial support of loading binary glTF(.glb). 2016-05-01 20:03:43 +09:00
Syoyo Fujita
eab5ced99b Apply cpplint.
Use Google C++ style.
2016-04-20 14:06:56 +09:00
Syoyo Fujita
98388933f9 texture support. 2016-02-07 17:38:17 +09:00
Syoyo Fujita
928a63d126 Use GLFW_INCLUDE_GLU 2015-12-21 11:48:32 +09:00
Syoyo Fujita
a4d26881cb Initial commit. 2015-12-20 20:27:54 +09:00