silverweed
8fd9f6e57b
ensure mtl_basedir ends with a directory separator
2018-06-01 12:02:38 +02:00
Syoyo Fujita
24bd8b49ff
Merge branch 'master' of github.com:syoyo/tinyobjloader
2018-05-31 16:34:01 +09:00
Syoyo Fujita
4a0e79985d
Bump version.
2018-05-31 16:29:14 +09:00
Syoyo Fujita
06f6139d1f
Limit # of tags when parsing SubD tag('t').
2018-05-31 16:25:39 +09:00
Syoyo Fujita
0c8db8ee23
Hardened implementation(fix some seg faults, out-of-bound access) found by fuzzer.
2018-05-31 15:49:56 +09:00
Syoyo Fujita
bce1bb8387
Merge branch 'master' of github.com:syoyo/tinyobjloader
2018-03-26 20:10:55 +09:00
Syoyo Fujita
7fcfafb39a
Fix compilation for double precision mode( Fixes #167 ).
2018-03-26 20:09:56 +09:00
Syoyo Fujita
b85714b4cf
Skip parsing incomplete or invalid face definition(e.g. f definition only contains 1 or 2 indices).
2018-02-23 20:25:13 +09:00
Syoyo Fujita
eaf8623e61
Fix build of viewer example.
...
Bump version.
2018-02-04 14:05:36 +09:00
Syoyo Fujita
dcad3e6c50
Add per-face smoothing groupd ids to mesh_t.
...
Add unit test for smoothing groups.
2018-01-31 22:13:52 +09:00
Syoyo Fujita
2dfc37a475
Introduce face_t structure which stores per-face smoothing group and vertex indices.
2018-01-31 20:07:34 +09:00
Syoyo Fujita
9a6390cdee
Add padding.
2018-01-31 14:24:37 +09:00
gopalss
1754669b07
Fix for #29 Normal Generation by Smoothing Group Id - Commit 3
2018-01-30 10:31:02 -05:00
gopalss
15f47e2e35
Fix for #29 Normal Generation by Smoothing Group Id
2018-01-29 18:37:39 -05:00
Syoyo Fujita
12bf4165be
Fix assertion when there is no normal/texcoord assigned to the face. Fixes #161 .
...
Suppress clang warnings.
2018-01-29 13:41:33 +09:00
Richard Fabian
ac3c36ffda
increase the size of the epsilon to give better axis choice for triangulation
2018-01-14 18:53:20 +00:00
Richard Fabian
3b681805aa
fixed the bug where the wrong axis was selected for doing the pnpoly check
2018-01-14 16:45:59 +00:00
Richard Fabian
ca49183639
added ear clipping triangulation
2018-01-14 14:21:46 +00:00
Syoyo Fujita
94fc413466
Fix parsing of crease tags(t)
...
Support parsing texture filename containing whitespace.
2017-10-13 18:13:36 +09:00
Syoyo Fujita
1c6dbf9bd8
Merge branch 'master' of github.com:syoyo/tinyobjloader
2017-10-13 02:04:11 +09:00
Syoyo Fujita
88ad575f62
Initial support of parsing vertex color(extension format)
2017-10-12 19:04:38 +09:00
Syoyo Fujita
75a4bd1d35
Add zero-value check when parsing `f' line. Fixes #140 .
2017-09-25 02:30:24 +09:00
Syoyo Fujita
1065d7cfb2
Change to add a shape when shape.mesh.indices.size() > 0 once g tag appears. Fixes #138 .
2017-09-12 02:18:27 +09:00
Syoyo Fujita
785af4491d
Add support for parsing map_Bump in mtl.
2017-08-20 18:30:54 +09:00
Syoyo Fujita
99518b6d3e
Suppress some clang warnings.
2017-06-05 02:00:32 +09:00
Shane Loretz
6eca09f2bf
Removed double import of sstream
2017-06-02 07:31:19 -07:00
Shane Loretz
a1324f17fd
Replaced snprintf with stringstream
...
Deleted now unused TINYOBJ_SSCANF_BUFFER_SIZE
2017-06-02 07:28:20 -07:00
Shane Loretz
56fa047ba9
Replace sscanf with snprintf
2017-06-01 14:14:52 -07:00
Shane Loretz
0f4a955e01
4096 -> TINYOBJ_SSCANF_BUFFER_SIZE
2017-06-01 14:09:15 -07:00
Shane Loretz
fb80e04212
Check sentry to remove unused variable warning
2017-06-01 14:05:03 -07:00
Syoyo Fujita
44bff466e5
Initial support of reflection map(refl).
2017-05-24 17:43:45 +09:00
Syoyo Fujita
47989b591f
Update copyright year and version.
2017-05-24 17:22:46 +09:00
alangfel
cc948e4c44
Deal with more than one texture option
...
After processing one textureoption like "-s u v w" the next option " -o u v w" has a beginning whitespace. Due to this it does not match to the option "-o" and it is skipped.
2017-05-12 08:34:05 +02:00
Syoyo Fujita
e60d33385e
Bump version 1.0.6
2017-04-25 04:34:45 +09:00
noma
d5ca258817
Renamed realValues back to flaotValues, as it is part of the external interface and renaming would break existing code.
2017-04-24 17:49:39 +02:00
noma
69e56db124
Replaced all float types by real_t ones. Also adapted names accordingly.
2017-04-24 17:31:42 +02:00
noma
13412b0898
Added real_t, defined to float or double depending on CMake option TINYOBJLOADER_USE_DOUBLE
2017-04-24 17:25:21 +02:00
nyatsenk
345560040b
Add std namespace for pow, ldexp, sscanf function calls.
2017-02-22 11:34:39 +01:00
Syoyo Fujita
156b709556
Move TINYOBJLOADER_IMPLEMENTATION outside of TINY_OBJ_LOADER_H_ ifdef guard. Fixes #122 .
2017-02-02 14:11:13 +09:00
Syoyo Fujita
7c3206f919
Ignore Tr parameter when d exists in MTL( #43 )
2016-12-31 21:05:37 +09:00
dPavelDev
91c727e204
Fixed error in getting material name in LoadObjWithCallback
2016-12-29 15:45:23 +03:00
Syoyo Fujita
c2ff3f12fc
Support multiple filenames for mtllib line. Fixes #112 .
2016-12-06 23:44:55 +09:00
Syoyo Fujita
aa4dabe64f
Describe default behavior of mtl_basedir.
2016-11-23 17:17:35 +09:00
Nikita Krupitskas
7d5699118e
Little intuitive improvements
2016-11-03 11:23:21 +03:00
Syoyo Fujita
0948ca0417
Add more support for parsing texture options.
...
Add more unit testing for texture options.
2016-11-03 02:58:44 +09:00
Syoyo Fujita
582eb2b818
Initial support of texture options.
2016-11-02 02:11:17 +09:00
Syoyo Fujita
c2474e27ab
Fix seg fault when no material assigned to object in viewer example.
...
Bump version v1.0.2.
2016-10-24 23:58:33 +09:00
Syoyo Fujita
4d6649cc6d
Suppress compiler warnings.
2016-10-24 23:54:20 +09:00
Björn Steinbrink
d6eeb14216
Avoid unnecessary ldexp() and pow() calls
...
Parse times for some large .obj files (without asan):
File A File B File C
Before 1239ms 294ms 271ms
After 1037ms 203ms 190ms
2016-10-24 14:47:59 +02:00
Björn Steinbrink
aa670fe91e
Use a lookup table to speed up float parsing
...
The pow() function is pretty expensive, so creating a small lookup
table for the first few negative powers of ten provides a big speedup.
Parse times for some large .obj files (without asan):
File A File B File C
Before 2500ms 573ms 545ms
After 1239ms 294ms 271ms
2016-10-24 12:15:42 +02:00