Syoyo Fujita
1390f7f707
Fix compilation.
2015-02-15 17:05:57 +09:00
Syoyo Fujita
9979275835
Format source code.
2015-02-15 16:51:38 +09:00
Syoyo Fujita
672f252195
Fix per-face material.
2015-02-07 00:01:37 +09:00
Julian Simioni
b214cfb4b9
Fix unused variable warnings
2014-10-29 18:54:35 -07:00
Syoyo Fujita
957fa36e70
typo.
2014-09-14 19:52:44 +09:00
Syoyo Fujita
e4d4c65a17
Fix material ID assignment.
...
Fix build of example/obj_sticher.
2014-09-14 19:51:24 +09:00
Syoyo Fujita
cbba0a807e
Initial support of multi-materials per group.
...
Introduce material_id attribute per face.
2014-09-13 23:49:25 +09:00
Mykhailo Parfeniuk
33cd9a4768
Added multiple materials per shape/object
2014-09-07 14:19:22 +03:00
Mattias Harrysson
f72fb80ac9
fix compiler warnings
2014-06-02 20:52:44 +02:00
Narendra Umate
b45fbe6345
Fixed trim newline bugs.
2014-05-16 13:54:05 -04:00
E J Burns
9b4a9343a1
Fixed ior init.
2014-04-29 15:22:01 +01:00
E J Burns
b89a46c417
Code Modified to remove use of C++11 features.
...
Tested compilation with VS2012, clang++ 3.4 and g++.
2014-04-29 13:36:09 +01:00
E J Burns
08ff49d2d0
Added a LoadObj function that reads from a std::istream.
...
+ Added a LoadObj function that reads from a std::istream. This should allow
more generic usage and possibly make testing a little easier.
o This LoadObj accepts a function that returns a
std::unique_ptr<std::istream> for a material.
+ Modified LoadMtl to read from a std::istream to allow more generic
usage.
+ Modified test.cc to check that the changes work as expected and nothing was
broken.
Tests:
+ Compiled test.cc, checked diff of output against pre change output.
Same output where expected.
2014-04-28 20:26:03 +01:00
YarmUI
86b9c625db
set default material
2014-04-21 19:14:06 +09:00
Matt Pharr
6372ccbef2
Add support for parsing 'illum' and 'd'/'Tr' statements.
2014-04-09 09:46:03 -07:00
Sean Jones
7afab4ad56
Cppcheck suggested performance improvement
...
variables should be passed by reference.
They are passed by value. It could be passed as a (const) reference which is usually faster and recommended in C++.
This gives a 9% performance boost in my project.
26.28s to load instead of 28.94s
2013-11-25 20:54:46 +00:00
caryanne
b17d15f5a0
added clearing of unknown parameters map
...
not doing so caused undefined behavior in objects with multiple
materials using custom parameters.
2013-11-14 16:51:06 -05:00
Syoyo Fujita
1544f0c865
Parse ior and transmittance of material parameter.
...
Add .obj sticher example.
2013-09-11 13:03:24 +09:00
Syoyo Fujita
5284dcb19f
Parse multiple group name. Not yet finished fully though.
2013-06-29 13:00:22 +09:00
Syoyo Fujita
6556411006
Add support of group tag('g')
2013-04-25 17:01:52 +09:00
Syoyo Fujita
3ae1bea017
Fix parsing triple.
2012-11-10 14:46:44 +09:00
Syoyo Fujita
c552dbc582
Fix texcoord array indexing.
2012-09-06 00:19:38 +09:00
Syoyo Fujita
04e2eccaa9
Fix build on linux.
2012-08-22 01:38:02 +09:00
YarmUI
fb35a684e5
bugfix
2012-08-21 18:46:10 +09:00
YarmUI
d62fdaf89d
update .mtl loader (Ke, Ns, map_Ka, map_Kd, map_Ks, map_Ns)
2012-08-21 18:35:37 +09:00
Syoyo Fujita
66528fbd6c
Add initial support for loading .mtl. Thanks githole for the patch!
2012-08-20 13:20:06 +09:00
Syoyo Fujita
cf78dd845b
Initial commit.
2012-08-19 14:36:48 +09:00