Commit Graph

46 Commits

Author SHA1 Message Date
LZaw
707014f843 Update obj_writer.cc 2018-03-08 15:48:45 +01:00
LZaw
12837cc8b2 Adapt v 1.0.x
Added an attributes parameter
2018-03-08 15:47:06 +01:00
Syoyo Fujita
eaf8623e61 Fix build of viewer example.
Bump version.
2018-02-04 14:05:36 +09:00
gopalss
78c7c9011a Fix for #29 Normal Generation by Smoothing Group Id - Commit 4 2018-01-30 10:55:10 -05:00
gopalss
1754669b07 Fix for #29 Normal Generation by Smoothing Group Id - Commit 3 2018-01-30 10:31:02 -05:00
gopalss
1f7b4a49c0 Fix for #29 Normal Generation by Smoothing Group Id - Commit 2 2018-01-30 09:51:16 -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
Sho Iizuka
13951d6459 Remove empty lines at EOF 2018-01-16 18:11:05 +09:00
Syoyo Fujita
be46318a52 print some material infos. 2017-08-08 16:02:12 +09:00
Syoyo Fujita
f59f93d7dc Rename variables to avoid confusion. Fixes #108 . 2017-07-17 18:48:04 +09:00
Syoyo Fujita
cdb5c2d375 Fix the number of triangle calculation. Fixes #127 2017-06-02 03:04:42 +09:00
Syoyo Fujita
cc9897316f Do not exit program when there is no texture coordinate in .obj. 2017-02-09 20:13:27 +09:00
Syoyo Fujita
e43580bd9a Fix build with pre-C++11 compiler 2017-02-09 16:10:19 +09:00
Syoyo Fujita
60ffb3ca9a Add missing files. Fixes #115. 2016-12-09 01:51:03 +09:00
Syoyo Fujita
2daec8be53 Search .mtl and texture from .obj's base dir.
Fix bad memory access.
2016-12-07 00:54:12 +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
6c6390f034 Fix typo. 2016-10-24 23:58:23 +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
07852e206d Apply clang-format. 2016-08-12 23:12:46 +09:00
Syoyo Fujita
1983e889dc Update callback API example.
Update API document.
2016-07-28 16:21:48 +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
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
629f1825c5 Support retina resolution. 2016-05-29 16:30:54 +09:00
Syoyo Fujita
2d16510c15 Measure .obj parsing time. 2016-05-13 16:33:40 +09:00
Syoyo Fujita
1a4e018053 Merge branch 'develop' of github.com:syoyo/tinyobjloader into develop 2016-05-12 19:40:26 +09:00
Syoyo Fujita
d3fbf6bb7b Merge branch 'develop' of github.com:syoyo/tinyobjloader into develop 2016-05-12 19:38:48 +09:00
Syoyo Fujita
0a3d47fdad Update README. 2016-05-12 19:38:29 +09:00
Syoyo Fujita
73af05bc23 Add assertion check. 2016-05-12 19:33:22 +09:00
Syoyo Fujita
bbb6aeff6a Adjust near/far clipping value. 2016-05-12 02:57:41 +09:00
Syoyo Fujita
e9a7c76c23 Add build script for Windows.
Fix build on Windows.
2016-05-11 23:38:36 +09:00
unknown
7dc1418e2b viewer: Cleaned up Makefile and added a semblance of a Mingw64-target for Windows. 2016-04-26 19:42:42 +02:00
Syoyo Fujita
58fa260605 Show normal vector in viewer example. 2016-04-20 16:00:45 +09:00
Syoyo Fujita
7399aedfdd Initial support of linux for viewer example. 2016-04-19 20:34:51 +09:00
Syoyo Fujita
ec5df8a48f Merge branch 'develop' of github.com:syoyo/tinyobjloader into develop 2016-04-18 20:07:48 +09:00
Syoyo Fujita
1703ab087d Add simple OpenGL viewer example. 2016-04-18 20:07:04 +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
e7e7eed616 Change API and handle no-mtl-file case correctly. Fixes #58. 2015-11-07 23:08:39 +09:00
Syoyo Fujita
276c7e151e Update drone.yml
Add Zup conversion in obj_writer.
2015-01-17 22:37:31 +09:00
Syoyo Fujita
e4d4c65a17 Fix material ID assignment.
Fix build of example/obj_sticher.
2014-09-14 19:51:24 +09:00
anton
2ce2af9d02 add missing includes
Signed-off-by: anton <haglundanton+github@gmail.com>
2014-04-18 17:52:06 +02:00
Matt Pharr
665c129488 Fix small bug in obj_writer.cc (one too many "%f"s in format string). 2014-04-09 09:45:38 -07:00
Syoyo Fujita
0d943a8a9d Fix texcoord export. 2013-09-13 00:58:48 +09:00
Syoyo Fujita
8cc26a6abb Emit facevarying position/normal/uv. 2013-09-13 00:52:33 +09:00
Syoyo Fujita
1544f0c865 Parse ior and transmittance of material parameter.
Add .obj sticher example.
2013-09-11 13:03:24 +09:00