Björn Steinbrink
ebdbd8a231
Avoid unnecessary reallocations of the "linebuf" string
...
safeGetline() already clears the string buffer before writing to it, so
the same buffer can be used multiple times, but the loops calling
safeGetline() have the string scoped within the loop, so its
constructed and destructed in each loop iteration, causing lots of
unnecessary allocations.
Parse times for some large .obj files (without asan):
File A File B File C
Before 2743ms 589ms 615ms
After 2500ms 573ms 545ms
2016-10-24 12:13:56 +02:00
Syoyo Fujita
fed4322d26
Merge branch 'master' of github.com:syoyo/tinyobjloader
v1.0.1
2016-10-18 17:34:15 +09:00
Syoyo Fujita
039d4a6c54
Fix a shape is lost if obj ends with a 'usemtl'. Fixes #104
2016-10-18 17:33:28 +09:00
Syoyo Fujita
28ee1b42ce
Merge pull request #103 from chrisliebert/master
...
Issue #74 : Added basic diffuse texture support to examples/viewer
2016-10-08 14:02:11 +09:00
Chris Liebert
35889026d6
added additional bounds checking
2016-10-07 21:21:33 -07:00
Chris Liebert
e81ac971b0
Issue #74 : Added basic diffuse texture support to examples/viewer using stb_image. The previously used color based on the normal is combined with the diffuse color from the material definition.
2016-10-07 20:58:04 -07:00
Syoyo Fujita
e05ce6aff0
Merge pull request #102 from Entalpi/master
...
Minor spelling fix
2016-10-07 11:40:33 +09:00
Alexander Lingtorp
e4598ba84a
Minor spelling fix
2016-10-06 19:30:21 +02:00
Syoyo Fujita
79513077f3
Fix compilation on pre-C++11 compiler.
2016-10-02 17:37:02 +09:00
Syoyo Fujita
72acadca79
Merge pull request #101 from kavika13/master
...
Make it easier to use an existing stream reader
2016-10-02 17:35:36 +09:00
Merlyn Morgan-Graham
398e358826
Add unit tests for reading from existing file stream
2016-10-02 01:25:07 -07:00
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
3ddad1e377
Merge pull request #97 from middlefeng/url-update
...
Metal viewer URL update.
2016-09-09 00:45:08 +09:00
middleware
92805d3088
Metal viewer URL update.
2016-09-07 06:31:08 -07:00
Syoyo Fujita
60acd05a03
Add brief README.
2016-09-06 02:18:24 +09:00
Syoyo Fujita
4a18e241d9
Measure zstd decompress time.
2016-09-06 02:11:23 +09:00
Syoyo Fujita
1b88a1e3c7
Support reading .obj from ZStd compressed format.
2016-09-04 19:34:05 +09:00
Syoyo Fujita
b3feefafdf
Add link to MetalExamples.
2016-09-03 21:43:00 +09:00
Syoyo Fujita
a7a16db908
Add a link to GeeXLab.
2016-08-23 02:48:06 +09:00
Syoyo Fujita
9f92ba34a6
Update Feature list.
2016-08-23 02:44:32 +09:00
Syoyo Fujita
25cf039953
Add more link.
2016-08-23 02:37:47 +09:00
Syoyo Fujita
6bf145d7cf
Add link to "Fast OBJ file importing and parsing in CUDA".
2016-08-23 02:35:31 +09:00
Syoyo Fujita
69240e18b4
Add link to PBGI.
2016-08-23 02:29:41 +09:00
Syoyo Fujita
5b9f431512
Update TODO list.
2016-08-20 18:16:50 +09:00
Syoyo Fujita
ad79762212
Update README.
v1.0.0
2016-08-20 18:03:18 +09:00
Syoyo Fujita
64149943cc
Add link to examples.
2016-08-20 18:01:27 +09:00
Syoyo Fujita
714194d353
Merge branch 'master' of github.com:syoyo/tinyobjloader
2016-08-20 17:58:57 +09:00
Syoyo Fujita
9d81c24934
Update AppVeyor script.
2016-08-20 17:54:24 +09:00
Syoyo Fujita
25c194bf71
Update README.
2016-08-20 17:53:07 +09:00
Syoyo Fujita
5a4c5ff668
Merge branch 'develop'
2016-08-20 17:49:59 +09:00
Syoyo Fujita
f06e814d7c
Update README.
2016-08-20 16:23:41 +09:00
Syoyo Fujita
5eef2b0914
Fix python binding.
2016-08-20 16:23:20 +09:00
Syoyo Fujita
49988672f4
Add link to tinyobjloader-c.
2016-08-19 20:22:26 +09:00
Syoyo Fujita
d192402800
Support Tf in MTL.
2016-08-19 20:19:28 +09:00
Syoyo Fujita
646f1312f1
Parse 'Tf' field in MTL.
2016-08-18 16:13:27 +09:00
Syoyo Fujita
db62a6c1cc
Merge pull request #95 from graysonlang/patch-1
...
Fix MTL token for transmission filter.
2016-08-18 11:49:51 +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
dea325cdcb
Fix face num calculation.
2016-08-13 19:27:13 +09:00
Syoyo Fujita
2b50b31657
Return parsed material information in parseObj API..
...
Parse PBR extension in MTL
2016-08-13 18:38:45 +09:00
Syoyo Fujita
110b49a0c8
Rename vertex_index struct.
2016-08-13 15:27:35 +09:00
Syoyo Fujita
319746d3db
Fix parsing benchmark flag.
2016-08-13 15:09:58 +09:00
Syoyo Fujita
2cb73fa85d
Fix the ordefing of a constructor call of vertex_index.
2016-08-13 02:52:36 +09:00
Syoyo Fujita
5a832b470a
Update README.
2016-08-12 23:13:31 +09:00
Syoyo Fujita
42f04024d4
Remove old version log.
2016-08-12 23:13:05 +09:00
Syoyo Fujita
07852e206d
Apply clang-format.
2016-08-12 23:12:46 +09:00
Syoyo Fujita
156b47760d
Merge branch 'develop' of github.com:syoyo/tinyobjloader into develop
2016-08-12 20:40:16 +09:00
Syoyo Fujita
673501749f
Apply clang-format.
2016-08-12 20:39:42 +09:00
Syoyo Fujita
b56fc1a0cc
Fix appveyor script.
2016-08-12 19:01:51 +09:00