mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-14 19:36:23 +08:00
Importing obj files without usemtl
Summary: When there is no "usemtl" statement in the .obj file use material from .mtl if there is one. https://github.com/facebookresearch/pytorch3d/issues/1068 Reviewed By: bottler Differential Revision: D34141152 fbshipit-source-id: 7a5b5cc3f0bb287dc617f68de2cd085db8f7ad94
This commit is contained in:
committed by
Facebook GitHub Bot
parent
12f20d799e
commit
ef21a6f6aa
9
tests/data/missing_usemtl/cow.mtl
Executable file
9
tests/data/missing_usemtl/cow.mtl
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user