-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Obj texture fix -- simplified. (#3222)
* Texture 2 element fix * Allow for 0-3 fields in texture and 3-4 fields in vertex position * Rename texture dimensions, add W * Allow all dimensions * Allow more than 4 fields in vertex specification * Remove unused * Copy over tests * Add W dimension * Check vertex length
- Loading branch information
1 parent
68adb9c
commit af2450a
Showing
6 changed files
with
272 additions
and
36 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
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,48 @@ | ||
# Vertices: 8 | ||
# Points: 0 | ||
# Lines: 0 | ||
# Faces: 6 | ||
# Materials: 1 | ||
|
||
o 1 | ||
|
||
# Vertex list | ||
|
||
v -0.5 -0.5 0.5 | ||
v -0.5 -0.5 -0.5 | ||
v -0.5 0.5 -0.5 | ||
v -0.5 0.5 0.5 | ||
v 0.5 -0.5 0.5 | ||
v 0.5 -0.5 -0.5 | ||
v 0.5 0.5 -0.5 | ||
v 0.5 0.5 0.5 | ||
|
||
vt -0.5 -0.5 | ||
vt -0.5 -0.5 | ||
vt -0.5 0.5 | ||
vt -0.5 0.5 | ||
vt 0.5 -0.5 | ||
vt 0.5 -0.5 | ||
vt 0.5 0.5 | ||
vt 0.5 0.5 | ||
|
||
vn -0.5 -0.5 0.5 | ||
vn -0.5 -0.5 -0.5 | ||
vn -0.5 0.5 -0.5 | ||
vn -0.5 0.5 0.5 | ||
vn 0.5 -0.5 0.5 | ||
vn 0.5 -0.5 -0.5 | ||
vn 0.5 0.5 -0.5 | ||
vn 0.5 0.5 0.5 | ||
|
||
# Point/Line/Face list | ||
|
||
usemtl Default | ||
f 4/4/4 3/3/3 2/2/2 1/1/1 | ||
f 2/2/2 6/6/6 5/5/5 1/1/1 | ||
f 3/3/3 7/7/7 6/6/6 2/2/2 | ||
f 8/8/8 7/7/7 3/3/3 4/4/4 | ||
f 5/5/5 8/8/8 4/4/4 1/1/1 | ||
f 6/6/6 7/7/7 8/8/8 5/5/5 | ||
|
||
# End of file |
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,49 @@ | ||
# Vertices: 8 | ||
# Points: 0 | ||
# Lines: 0 | ||
# Faces: 6 | ||
# Materials: 1 | ||
|
||
o 1 | ||
|
||
# Vertex list | ||
|
||
v -0.5 -0.5 0.5 0.5 | ||
v -0.5 -0.5 -0.5 0.5 | ||
v -0.5 0.5 -0.5 0.5 | ||
v -0.5 0.5 0.5 0.5 | ||
v 0.5 -0.5 0.5 0.5 | ||
v 0.5 -0.5 -0.5 0.5 | ||
v 0.5 0.5 -0.5 0.5 | ||
v 0.5 0.5 0.5 0.5 | ||
|
||
|
||
v -0.5 -0.5 0.5 -0.5 | ||
v -0.5 -0.5 -0.5 -0.5 | ||
v -0.5 0.5 -0.5 -0.5 | ||
v -0.5 0.5 0.5 -0.5 | ||
v 0.5 -0.5 0.5 -0.5 | ||
v 0.5 -0.5 -0.5 -0.5 | ||
v 0.5 0.5 -0.5 -0.5 | ||
v 0.5 0.5 0.5 -0.5 | ||
|
||
|
||
# Point/Line/Face list | ||
|
||
usemtl Default | ||
f 4 3 2 1 | ||
f 2 6 5 1 | ||
f 3 7 6 2 | ||
f 8 7 3 4 | ||
f 5 8 4 1 | ||
f 6 7 8 5 | ||
|
||
f 12 11 10 9 | ||
f 10 14 13 9 | ||
f 11 15 14 10 | ||
f 14 15 11 12 | ||
f 13 16 12 9 | ||
f 14 15 16 13 | ||
|
||
|
||
# End of file |
Oops, something went wrong.