-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: When there is no "usemtl" statement in the .obj file use material from .mtl if there is one. #1068 Reviewed By: bottler Differential Revision: D34141152 fbshipit-source-id: 7a5b5cc3f0bb287dc617f68de2cd085db8f7ad94
- Loading branch information
1 parent
12f20d7
commit ef21a6f
Showing
7 changed files
with
12,062 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Acknowledgements | ||
|
||
This is copied version of docs/tutorials/data/cow_mesh with removed line 6159 (usemtl material_1) to test behavior without usemtl material_1 declaration. | ||
|
||
Thank you to Keenen Crane for allowing the cow mesh model to be used freely in the public domain. | ||
|
||
###### Source: http://www.cs.cmu.edu/~kmcrane/Projects/ModelRepository/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
newmtl material_1 | ||
map_Kd cow_texture.png | ||
|
||
# Test colors | ||
|
||
Ka 1.000 1.000 1.000 # white | ||
Kd 1.000 1.000 1.000 # white | ||
Ks 0.000 0.000 0.000 # black | ||
Ns 10.0 |
Oops, something went wrong.