-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix textures not exporting after loading a world that uses obj models (…
…#874) * fix conditional, extract common code Signed-off-by: ddengster <ed.fan@osrfoundation.org> * add test for worlds that import obj models, checks for textures Signed-off-by: ddengster <ed.fan@osrfoundation.org> * cpplint Signed-off-by: ddengster <ed.fan@osrfoundation.org> * cpplint #2 Signed-off-by: ddengster <ed.fan@osrfoundation.org> Update test/integration/collada_world_exporter.cc Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> * fix path concatencation Signed-off-by: ddengster <ed.fan@osrfoundation.org> * cpplint #3 Signed-off-by: ddengster <ed.fan@osrfoundation.org> Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com> Co-authored-by: Louise Poubel <louise@openrobotics.org>
- Loading branch information
1 parent
7cf129e
commit 9fa9e36
Showing
12 changed files
with
1,346 additions
and
7 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
# The Great Editor v0.0.1 | ||
newmtl floor_1 | ||
Ka 1.0 1.0 1.0 | ||
Kd 1.0 1.0 1.0 | ||
Ke 0.0 0.0 0.0 | ||
Ns 50.0 | ||
Ni 1.0 | ||
d 1.0 | ||
illum 2 | ||
map_Kd blue_linoleum.png |
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,93 @@ | ||
# The Great Editor v0.0.1 | ||
mtllib floor_1.mtl | ||
o floor_1 | ||
v 6.53267851016078 -1.1435613801846989 0 | ||
v 6.53267851016078 -1.1435613801846989 -0.1 | ||
v 8.487429009296054 -1.9423062216146643 0 | ||
v 8.487429009296054 -1.9423062216146643 -0.1 | ||
v 10.123115005198834 -2.370169265455913 0 | ||
v 10.123115005198834 -2.370169265455913 -0.1 | ||
v 11.8122859979555 -2.608608395146717 0 | ||
v 11.8122859979555 -2.608608395146717 -0.1 | ||
v 12.184437619781013 -2.599694229004403 0 | ||
v 12.184437619781013 -2.599694229004403 -0.1 | ||
v 14.079464052312275 -2.5592799562946147 0 | ||
v 14.079464052312275 -2.5592799562946147 -0.1 | ||
v 23.683364858074697 -2.8822216561967937 0 | ||
v 23.683364858074697 -2.8822216561967937 -0.1 | ||
v 23.1498185757523 -6.032037606561247 0 | ||
v 23.1498185757523 -6.032037606561247 -0.1 | ||
v 22.780071154481785 -8.681068739912664 0 | ||
v 22.780071154481785 -8.681068739912664 -0.1 | ||
v 22.494580804070203 -11.2739313145231 0 | ||
v 22.494580804070203 -11.2739313145231 -0.1 | ||
v 19.461766458884213 -11.540704455684297 0 | ||
v 19.461766458884213 -11.540704455684297 -0.1 | ||
v 13.709716631041763 -12.004054854196562 0 | ||
v 13.709716631041763 -12.004054854196562 -0.1 | ||
v 10.789239403337737 -11.952567714141905 0 | ||
v 10.789239403337737 -11.952567714141905 -0.1 | ||
v 7.887470919389182 -11.50794299037494 0 | ||
v 7.887470919389182 -11.50794299037494 -0.1 | ||
v 5.552678957170429 -10.839312805742093 0 | ||
v 5.552678957170429 -10.839312805742093 -0.1 | ||
v 5.0034207162914015 -10.693384604449395 0 | ||
v 5.0034207162914015 -10.693384604449395 -0.1 | ||
v 2.277641406067981 -9.52562037431135 0 | ||
v 2.277641406067981 -9.52562037431135 -0.1 | ||
v 5.189085950700927 -3.7721398778287742 0 | ||
v 5.189085950700927 -3.7721398778287742 -0.1 | ||
vt 6.53267851016078 -1.1435613801846989 0 | ||
vt 8.487429009296054 -1.9423062216146643 0 | ||
vt 10.123115005198834 -2.370169265455913 0 | ||
vt 11.8122859979555 -2.608608395146717 0 | ||
vt 12.184437619781013 -2.599694229004403 0 | ||
vt 14.079464052312275 -2.5592799562946147 0 | ||
vt 23.683364858074697 -2.8822216561967937 0 | ||
vt 23.1498185757523 -6.032037606561247 0 | ||
vt 22.780071154481785 -8.681068739912664 0 | ||
vt 22.494580804070203 -11.2739313145231 0 | ||
vt 19.461766458884213 -11.540704455684297 0 | ||
vt 13.709716631041763 -12.004054854196562 0 | ||
vt 10.789239403337737 -11.952567714141905 0 | ||
vt 7.887470919389182 -11.50794299037494 0 | ||
vt 5.552678957170429 -10.839312805742093 0 | ||
vt 5.0034207162914015 -10.693384604449395 0 | ||
vt 2.277641406067981 -9.52562037431135 0 | ||
vt 5.189085950700927 -3.7721398778287742 0 | ||
vn 0 0 1 | ||
vn 0 0 -1 | ||
usemtl floor_1 | ||
s off | ||
f 31/16/1 35/18/1 33/17/1 | ||
f 34/17/2 36/18/2 32/16/2 | ||
f 31/16/1 29/15/1 35/18/1 | ||
f 36/18/2 30/15/2 32/16/2 | ||
f 29/15/1 27/14/1 35/18/1 | ||
f 36/18/2 28/14/2 30/15/2 | ||
f 27/14/1 5/3/1 35/18/1 | ||
f 36/18/2 6/3/2 28/14/2 | ||
f 5/3/1 3/2/1 35/18/1 | ||
f 36/18/2 4/2/2 6/3/2 | ||
f 3/2/1 1/1/1 35/18/1 | ||
f 36/18/2 2/1/2 4/2/2 | ||
f 11/6/1 15/8/1 13/7/1 | ||
f 14/7/2 16/8/2 12/6/2 | ||
f 21/11/1 11/6/1 23/12/1 | ||
f 24/12/2 12/6/2 22/11/2 | ||
f 11/6/1 9/5/1 23/12/1 | ||
f 24/12/2 10/5/2 12/6/2 | ||
f 9/5/1 25/13/1 23/12/1 | ||
f 24/12/2 26/13/2 10/5/2 | ||
f 9/5/1 7/4/1 25/13/1 | ||
f 26/13/2 8/4/2 10/5/2 | ||
f 7/4/1 5/3/1 25/13/1 | ||
f 26/13/2 6/3/2 8/4/2 | ||
f 5/3/1 27/14/1 25/13/1 | ||
f 26/13/2 28/14/2 6/3/2 | ||
f 21/11/1 15/8/1 11/6/1 | ||
f 12/6/2 16/8/2 22/11/2 | ||
f 21/11/1 17/9/1 15/8/1 | ||
f 16/8/2 18/9/2 22/11/2 | ||
f 17/9/1 21/11/1 19/10/1 | ||
f 20/10/2 22/11/2 18/9/2 |
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,26 @@ | ||
material floor_1_Diffuse | ||
{ | ||
technique | ||
{ | ||
pass | ||
{ | ||
texture_unit | ||
{ | ||
texture blue_linoleum.png | ||
} | ||
} | ||
} | ||
} | ||
material wall_1_Diffuse | ||
{ | ||
technique | ||
{ | ||
pass | ||
{ | ||
texture_unit | ||
{ | ||
texture default.png | ||
} | ||
} | ||
} | ||
} |
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,10 @@ | ||
# The Great Editor v0.0.1 | ||
newmtl wall_1 | ||
Ka 1.0 1.0 1.0 | ||
Kd 1.0 1.0 1.0 | ||
Ke 0.0 0.0 0.0 | ||
Ns 50.0 | ||
Ni 1.0 | ||
d 1.0 | ||
illum 2 | ||
map_Kd default.png |
Oops, something went wrong.