Arthur Brainville (Ybalrid)
a2b5caaf2f
Load inside the scene graph the gltf mesh (like the obj)
...
pivot is still invalid
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:21 +01:00
Arthur Brainville
166679563a
Fix linux build in C++11 strict
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:21 +01:00
Arthur Brainville
32c1efafd1
Load the normal vectors of the primitive
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:21 +01:00
Arthur Brainville
44743284b3
Also access the position attribute of the primitive
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:20 +01:00
Arthur Brainville (Ybalrid)
f0d27a93a4
Now load index buffer
...
Added some template infrastructure to read arrays where type is defined by a value.
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:20 +01:00
Arthur Brainville (Ybalrid)
9d08a41841
Add the entry point for loading gltf files.
...
Also switch on the primitive mode of each mesh. Will only attempt to
load lists of triangles for now...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:20 +01:00
Arthur Brainville (Ybalrid)
afa5dae15a
Only attempt to load the obj file if the obj_filename is defined in json
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:20 +01:00
Arthur Brainville (Ybalrid)
136e9dac7e
Small adjustment to the NanoSG readme
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:19 +01:00
Arthur Brainville (Ybalrid)
f63017ef7b
Add files to .gitignore
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:19 +01:00
Arthur Brainville
46c9a46862
Fix where stb image is actually implemented
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:18 +01:00
Arthur Brainville (Ybalrid)
09fc3ce916
Setup CI for raytrace example
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:18 +01:00
Arthur Brainville (Ybalrid)
46621374d4
Add a gltf_filename feild to the renderconfig struct
...
This is to get the filename that will be given to the gltf-loader
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:18 +01:00
Arthur Brainville (Ybalrid)
e6a688e60e
Applyind clang-format on main.cc. Included gltf-loader
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:17 +01:00
Arthur Brainville (Ybalrid)
c8d7a88f28
Move the implementation of stbi to it's own .cc file
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:17 +01:00
Arthur Brainville (Ybalrid)
60417f2ac8
Build the tinygltf loader code
...
Also remove the implementation of STB-Image from obj-loader.cc
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:17 +01:00
Arthur Brainville (Ybalrid)
07f0122056
Make this code buildable as is
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:16 +01:00
Arthur Brainville (Ybalrid)
4902ebcd5c
Add the current code of nanort + nanosg
...
This implementation will be based on commit
b31dc0bd92eb7ac896079849a2205fac4abbd087 from the nanort project
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:16 +01:00
Arthur Brainville (Ybalrid)
835d09e32f
Remove old nanort/nanosg code. Keep the gltf-loader class on hand
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-22 21:50:15 +01:00
Syoyo Fujita
b46856ca2f
Update premake script for glview example. Fixes #39 .
2018-02-23 01:14:13 +09:00
Syoyo Fujita
1522d1da9b
Merge pull request #38 from o-micron/patch-2
...
Fix LoadImageData return value when error occurs
2018-02-10 16:53:00 +09:00
Omar C. F
3cec231409
Fix return value when error occurs
2018-02-10 09:50:35 +02:00
Syoyo Fujita
5a94d3e4f5
Merge pull request #37 from o-micron/patch-1
...
Add missing bmp and gif mimetypes
2018-02-10 16:11:35 +09:00
Omar C. F
8b311835c5
Add missing bmp and gif mimetypes
2018-02-10 09:09:41 +02:00
Syoyo Fujita
d484193480
Merge pull request #36 from Ybalrid/devel_add_gitignore
...
Add gitignore file
2018-02-02 00:57:32 +09:00
Arthur Brainville (Ybalrid)
1d18a7357e
Add gitignore file
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-02-01 15:38:34 +01:00
Syoyo Fujita
4a6652650b
Merge branch 'devel' of github.com:syoyo/tinygltf into devel
2018-01-21 12:20:00 +09:00
Syoyo Fujita
1c6707eb66
Set GL_DOUBLE value from OpenGL spec. Fixes #35 .
2018-01-21 12:19:01 +09:00
Syoyo Fujita
c5a09f6a3b
Suppress clang warnigns.
...
Refactor code to use C++11 features.
2018-01-16 18:55:13 +09:00
Syoyo Fujita
f283d4b070
Add more note on Visual Studio version.
2018-01-11 14:06:10 +09:00
Syoyo Fujita
f262e3b5bb
Merge pull request #34 from Ybalrid/patch-1
...
Add language tags on code snippets in README
2018-01-10 20:52:24 +09:00
Arthur Brainville
0fc7d639e3
Add language tag on code snippets in README
2018-01-10 12:04:51 +01:00
Syoyo Fujita
609e801fc7
Describe note on Visual Studio version.
2018-01-10 18:32:51 +09:00
Syoyo Fujita
96c2123ae1
Merge pull request #33 from Ybalrid/CI_fix
...
Attempt to fix continuous integration (fix #31 )
2018-01-10 18:30:45 +09:00
Arthur Brainville (Ybalrid)
d8d3e6c95d
Change VS version to one that is better compatible with C++11
...
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-10 09:09:21 +01:00
Syoyo Fujita
5ceb834077
Merge pull request #32 from Ybalrid/narrowingConversionWarning
...
Silence a MSVC warning about narrowing conversion
2018-01-10 12:20:28 +09:00
Arthur Brainville
3b05513ba9
Silence a MSVC warning about narrowing conversion
...
We actually want to convert a size_t value into an int value in this
return statement.
Fix the annoying MSVC warning by actually casting the bytestride to an
int
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-10 01:27:12 +01:00
Syoyo Fujita
5364f178ae
Update README of gltf-validator.
2018-01-09 14:28:16 +09:00
Syoyo Fujita
920b12f991
Merge pull request #30 from Ybalrid/simplerMaterial
...
Simpler material data retreival
2018-01-09 12:19:03 +09:00
Arthur Brainville
3cd62e26e8
rename Color to ColorFactor
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-08 18:37:44 +01:00
Arthur Brainville
e4a2b2e942
Const qualify const methods
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-08 18:32:48 +01:00
Arthur Brainville
9adf96e18e
Add little utility methods to access the content of a Parameter object
...
Signed-off-by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info >
2018-01-08 18:25:52 +01:00
Syoyo Fujita
8de2b17bb5
Remove unnecessary text.
2018-01-05 20:21:27 +09:00
Syoyo Fujita
eb80ec13da
Describe more about C++ exception.
2018-01-05 20:17:37 +09:00
Syoyo Fujita
1b0040eff8
Fix argument to catch claus was wrong.
...
Add support to compile TinyGLTF with no C++ exception(TINYGLTF_NOEXCEPTION). Fixes #18 .
Add initial unit tests.
2018-01-05 20:14:46 +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
6f61b712a0
Add name of Adrien and many contributrors.
2017-12-31 18:36:02 +09:00
Syoyo Fujita
d5fa49cc23
Merge pull request #28 from Ybalrid/devel
...
Create LICENSE file according to the terms of the MIT License agreement
2017-12-31 15:02:01 +09:00
Arthur Brainville
f1f71ea8e2
Create LICENSE
...
This library is an awesome project, and I can imagine a lot of 3D application written in C++ would happily use it to load glTF assets ;-)
However, the license wasn't properly stated on the project. To actually put work under the term of the MIT license agreement, a copyright notice **needs** to be distributed alongside the source code.
It is also standard practice to add a warranty disclaimer. This prevent people to hold you liable if (at least they think) something doesn't work because of this library.
I took the liberty to put the file in place, with your full name as stated on your GitHub profile as the copyright holder. This is the text that states that you, the author, grants the to other people to use this as a free/open-source software, with all the thing that comes with it (access to source code, right to modify, redistribute, redistribute modified version, and use for any purpose they like)
Sorry for the annoyance ^^"
2017-12-31 04:07:06 +00:00
Syoyo Fujita
257b222d97
Report error message.
2017-12-19 18:45:22 +09:00
Syoyo Fujita
5dacfedc52
Update README.
2017-12-19 18:29:34 +09:00