Skip to content

Commit

Permalink
Change write_ply to write UVs in fields s,t instead of u,v
Browse files Browse the repository at this point in the history
This improves compatibility with both Meshlab and Blender, which both do not recognize the "u,v" naming but work with "s,t".
  • Loading branch information
dvicini authored and njroussel committed Apr 6, 2023
1 parent 0152850 commit fe4e448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ MI_VARIANT void Mesh<Float, Spectrum>::write_ply(const std::string &filename) co
}

if (has_vertex_texcoords()) {
stream->write_line("property float u");
stream->write_line("property float v");
stream->write_line("property float s");
stream->write_line("property float t");
}

for (const auto&[name, attribute]: vertex_attributes)
Expand Down

0 comments on commit fe4e448

Please sign in to comment.