Merlyn Morgan-Graham
7fc9b0fe97
Add stream based material reader implementation
2016-10-02 00:52:45 -07:00
Merlyn Morgan-Graham
71cc967f42
Allow skipping material reads on LoadObj istream overload
2016-10-02 00:52:19 -07:00
Syoyo Fujita
714194d353
Merge branch 'master' of github.com:syoyo/tinyobjloader
2016-08-20 17:58:57 +09:00
Syoyo Fujita
d192402800
Support Tf in MTL.
2016-08-19 20:19:28 +09:00
Grayson Lang
8e53519a27
Ooops, meant "Tf" not "TF".
2016-08-17 13:34:18 -07:00
Grayson Lang
d3d6932efd
Fix MTL "transmission filter" token
...
The "transmission filter" is currently set to Kt, which is undocumented. Adding support for the specified token of "Tf".
2016-08-17 13:30:25 -07:00
Syoyo Fujita
42f04024d4
Remove old version log.
2016-08-12 23:13:05 +09:00
Syoyo Fujita
c7da23795d
Add static keyword to safeGetline().
2016-08-05 19:16:46 +09:00
Syoyo Fujita
0a85945767
Skip trailing whitespace in mtl. Fixes #92 .
2016-08-02 17:04:00 +09:00
Syoyo Fujita
51d13700d8
Skip trailing whitespace in mtl. Fixes #92 .
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
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
e3a56816d6
Use std::getline() to read arbitrary size of line data.
2016-07-24 15:53:05 +09:00
Syoyo Fujita
7ecb0b2f37
Use sefe getline for files with different line breaks. Fixes #81 .
2016-05-15 16:20:35 +09:00
Vazquinhos
bfedfbb1fb
Merge remote-tracking branch 'refs/remotes/syoyo/master'
...
# Conflicts:
# tiny_obj_loader.h
2016-05-13 14:03:03 +02:00
Vazquinhos
41f46c7fd7
Error fixed with no triangulation. Removed warnings and modified coding brace style
2016-05-13 13:54:27 +02:00
Syoyo Fujita
a20e4ede85
Update document and version.
2016-05-13 20:09:49 +09:00
Vazquinhos
9aee576b99
Added dependencies to cmath in order to use sqrt
2016-05-13 12:37:24 +02:00
Vazquinhos
e528741a8b
Flat normals calculation of objects that their normals are empty
2016-05-13 12:25:48 +02:00
Syoyo Fujita
93c495eca8
Fix 'o' callback.
2016-05-13 15:56:12 +09:00
Syoyo Fujita
368312cb4b
Fix index buffer was not filled when !triangulate case.
...
Suppress VS2015 warnings.
Update premake5.exe.
2016-05-02 01:42:18 +09:00
Syoyo Fujita
8d60b4963a
Rename varialble for better understanding.
...
Write some API usage in README.md.
2016-05-01 21:30:50 +09:00
Syoyo Fujita
58fa260605
Show normal vector in viewer example.
2016-04-20 16:00:45 +09:00
Syoyo Fujita
a55247574c
Suppress VC2013 warnings.
...
Update AppVeyor script.
2016-04-19 13:11:55 +09:00
Syoyo Fujita
f4695de408
Suppress compiler warning.
2016-04-19 12:50:41 +09:00
Syoyo Fujita
1e663342bf
Add callback API example.
...
Fix a sentinel value for the vertex index.
2016-04-18 17:52:04 +09:00
Syoyo Fujita
93acf63157
Change API for usemtl callback.
2016-04-18 16:48:37 +09:00
Syoyo Fujita
72ef6cbb76
Add initial unit test codes using Catch.
...
Add Kuroga build script.
2016-04-18 16:03:24 +09:00
Syoyo Fujita
54bd46014c
Use google C++ code style.
2016-04-16 20:25:53 +09:00
Syoyo Fujita
ee7d6cc0fd
Refactor and re-design tinyobjloader.
...
* Separete attribs(vtx,normal,texcoords) and shape.
* Support different index for vtx/normal/texcoord.
2016-04-16 19:49:12 +09:00
Syoyo Fujita
d119dcb976
Cosmetics.
2016-04-15 12:31:47 +09:00
Nicolas Guillemot
b40e8c9427
use sscanf_s in MSVC
...
consistent with other uses of sscanf in the library
2016-04-02 15:15:29 -07:00
Syoyo Fujita
ad9911ef1b
Initialize vertex_index. Fixes #70 .
2016-03-25 18:43:52 +09:00
Syoyo Fujita
bc42bc47ad
Don't create new shape by usemtl. Fixes #68 .
2016-03-12 02:14:52 +09:00
Ambal
cf52401ca7
Replace calls to 'isdigit', 'isSpace' and 'isNewLine' functions to macros. Other small performance tweaks.
2016-02-20 12:20:19 +02:00
Syoyo Fujita
41515c8c78
Apply clang-format.
2016-01-30 00:48:42 +09:00
Syoyo Fujita
968ad8248e
Cosmetic updates.
2016-01-29 19:55:04 +09:00
Syoyo Fujita
b3eed44b3e
Merge branch 'master' of github.com:syoyo/tinyobjloader
2016-01-29 19:50:29 +09:00
Syoyo Fujita
9f24c7c38e
Merge branch 'master' of https://github.com/dboogert/tinyobjloader into dboogert-master
...
Conflicts:
test.cc
tiny_obj_loader.cc
tiny_obj_loader.h
2016-01-29 19:49:07 +09:00
dboogert
2fcdd32bc3
subd support: n-sided polygons & pixar crease tags
...
+ optional parameter to triangulate polygons to maintain compatibility
+ added create tag test & example subd crease tag file from OpenSubD source code
2016-01-28 18:34:08 +00:00
mogemimi
0e23d499c7
Fix minor typos
2016-01-18 08:05:54 +09:00