mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
Summary: Fix for GitHub issue #381. The example mesh provided in the issue only had material properties but no texture image. The current implementation of texture atlassing generated an atlas using both the material properties and the texture image but only worked if there was a texture image and associated vertex uv coordinates. I have now modified the texture atlas creation so that it doesn't require an image and can work with materials which only have material properties. Reviewed By: gkioxari Differential Revision: D24153068 fbshipit-source-id: 63e9d325db09a84b336b83369d5342ce588a9932
11 lines
109 B
Plaintext
11 lines
109 B
Plaintext
|
|
mtllib model.mtl
|
|
|
|
v 0.1 0.2 0.3
|
|
v 0.2 0.3 0.4
|
|
v 0.3 0.4 0.5
|
|
v 0.4 0.5 0.6
|
|
usemtl material_1
|
|
f 1 2 3
|
|
f 1 2 4
|