Commit Graph

498 Commits

Author SHA1 Message Date
Syoyo Fujita
51d13700d8 Skip trailing whitespace in mtl. Fixes #92. v0.9.25 2016-08-02 16:55:50 +09:00
Syoyo Fujita
1983e889dc Update callback API example.
Update API document.
2016-07-28 16:21:48 +09:00
Syoyo Fujita
dfe9d7bcae Merge pull request #91 from adishavit/develop
Changes the value indicating non-existent index to 0.
2016-07-28 16:16:38 +09:00
Adi Shavit @ MacBookPro
4dee4cc673 Changes the value indicating non-existent index to 0. OBJ indices are 1 (or -1) based, so 0 is an invalid value. 2016-07-28 10:12:16 +03:00
Syoyo Fujita
a7ea651bef Suppress clang warnings. 2016-07-28 00:30:52 +09:00
Syoyo Fujita
4c2afb8814 Merge pull request #90 from adishavit/develop
Changes the LoadObjWithCallback() API
2016-07-27 17:45:49 +09:00
Adi Shavit @ MacBookPro
951833812a Changes the LoadObjWithCallback() API to accept std::istream& instead of pointed since this is a required argument.
- Also changing the argument order to allow for defaults for optional arguments.
2016-07-27 11:38:25 +03:00
Syoyo Fujita
e456cc949d Merge pull request #89 from adishavit/develop
Crash bug fix + optimizations in LoadObjWithCallback()
2016-07-27 16:30:36 +09:00
Syoyo Fujita
75e64cd47a Support parsing w element of vertex coordinate, and also third element of texture coordinates. Fixes #88. 2016-07-27 16:16:51 +09:00
Adi Shavit @ MacBookPro
3736a5791f Fix a crash bug in LoadObjWithCallback() when passing a nullptr as MaterialReader *readMatFn.
- This preserves the existing API. If `nullptr` is passed then the material file will be ignored. This is useful when the user is not interested in the materials.
- Note that if `nullptr` is not a valid option for this function, then the API needs to be changed to take `MaterialReader&`.
2016-07-27 10:04:22 +03:00
Adi Shavit @ MacBookPro
0b0bf60137 Move heap-based objects like vectors and strings outside the parse loop in LoadObjWithCallback().
This avoids reallocation on every use making the code faster.
2016-07-27 10:00:13 +03:00
Syoyo Fujita
d496d8eab6 Remove some invalid comments. Fix calling index_cb per f line. Fixes #87. 2016-07-27 00:02:53 +09:00
Syoyo Fujita
22883def8d Support PBR extension for MTL which is proposed in http://exocortex.com/blog/extending_wavefront_mtl_to_support_pbr 2016-07-25 22:46:30 +09:00
Syoyo Fujita
5826f1e149 Merge branch 'develop' of github.com:syoyo/tinyobjloader into develop 2016-07-25 19:03:42 +09:00
Syoyo Fujita
ef6560298e Add Vulkan Tutorial to the list. 2016-07-25 19:02:51 +09:00
Syoyo Fujita
e3a56816d6 Use std::getline() to read arbitrary size of line data. 2016-07-24 15:53:05 +09:00
Syoyo Fujita
5ef400882a Fix pow computation. 2016-07-15 13:25:44 +09:00
Syoyo Fujita
333bb55d84 Revert memcpy'ing input string into local buffer. 2016-07-15 02:01:50 +09:00
Syoyo Fujita
7d6318c3ad Remove redundant & buggy memcpy.
Add verbose option.
2016-07-15 01:38:39 +09:00
Syoyo Fujita
d4a7eefc54 Fix typo in usage. 2016-07-10 00:11:37 +09:00
Syoyo Fujita
d2793bf454 Update performance note. 2016-07-09 01:31:13 +09:00
Syoyo Fujita
d5c722125a Show parsing time. v0.9.24 2016-07-09 00:52:27 +09:00
Syoyo Fujita
16ed0ac129 Update README. 2016-07-06 01:36:16 +09:00
Syoyo Fujita
b8c33156de Update README. 2016-07-01 23:39:36 +09:00
Syoyo Fujita
0389e23847 Show parsing time. 2016-07-01 23:35:39 +09:00
Syoyo Fujita
e85155b2dd Add README on optimized obj loader. 2016-06-28 00:39:36 +09:00
Syoyo Fujita
164dcb8121 Refactor. 2016-06-11 19:34:12 +09:00
Syoyo Fujita
5fc9842e97 Refactor source code of optimized .obj parser. 2016-06-07 18:58:08 +09:00
Syoyo Fujita
831a1a4b8d Initial support of shape data structure and material ids. 2016-06-06 21:22:38 +09:00
Syoyo Fujita
4b9ef527c6 Parallelize merge. 2016-06-01 01:07:14 +09:00
Syoyo Fujita
b69d2a2c55 Add more links. 2016-05-29 16:37:30 +09:00
Syoyo Fujita
629f1825c5 Support retina resolution. 2016-05-29 16:30:54 +09:00
Syoyo Fujita
e210379335 Add Probulator 2016-05-29 14:08:27 +09:00
Syoyo Fujita
659976b8f3 Merge branch 'master' of github.com:syoyo/tinyobjloader 2016-05-29 13:32:24 +09:00
Syoyo Fujita
96ba498d70 Add voxelizer. 2016-05-29 13:09:00 +09:00
Syoyo Fujita
5f4a557d69 Fix memory bug. 2016-05-25 19:48:25 +09:00
Syoyo Fujita
2c7ba7b2ab Merge branch 'develop' of github.com:syoyo/tinyobjloader into develop 2016-05-25 19:06:42 +09:00
Syoyo Fujita
de79540879 Parse material name. 2016-05-24 13:37:13 +09:00
Syoyo Fujita
8880438c36 Optimzie face generation. 2016-05-24 12:58:31 +09:00
Syoyo Fujita
8c03771aac Add ltalloc. 2016-05-19 15:05:57 +09:00
Syoyo Fujita
fc42eb8232 Merge pull request #83 from filipwasil/ReadmeFix
missing size() in radme
2016-05-16 13:31:49 +09:00
Syoyo Fujita
da5d9b1e1c Merge pull request #82 from filipwasil/develop
Enable building as shared library
2016-05-16 13:31:09 +09:00
filipwasil
64164b3a82 missing size() in radme 2016-05-15 22:26:29 +02:00
Syoyo Fujita
8205067928 Support loading .obj from gzip compression. 2016-05-16 01:24:52 +09:00
filipwasil
660cc22b74 Enable building as shared library 2016-05-15 15:47:55 +02:00
Syoyo Fujita
00251e9a5b Remove Makefile. 2016-05-15 19:19:41 +09:00
Syoyo Fujita
54c28bd05f Fix vertex_index creation. 2016-05-15 19:18:21 +09:00
Syoyo Fujita
d392282f02 Fix parser. 2016-05-15 18:49:06 +09:00
Syoyo Fujita
88fe2421d9 Add gl view for testing. 2016-05-15 17:46:59 +09:00
Syoyo Fujita
7ecb0b2f37 Use sefe getline for files with different line breaks. Fixes #81. 2016-05-15 16:20:35 +09:00