Blender Git Loki

Git Commits -> Revision f01a7d5

Revision f01a7d5 by Ankit Meel (soc-2020-io-performance)
June 11, 2020, 15:42 (GMT)
Export UV vertex coordinates & their indices.

This commit adds support for UV vertex coordinates in the form:
`vt u v` for all vertices in the texture map.

Also, their indices are exported as per file format specification [1,2]
`f */vt1/* */vt2/*` for all polygons.

The text written by this and the python exporter has different order
of coordinates and thus their indices too. So direct diff of the two
files will not work.

Minor comments about 0-based/ 1-based indices are also added.

[1]: https://en.wikipedia.org/wiki/Wavefront_.obj_file#File_format
[2]: http://www.martinreddy.net/gfx/3d/OBJ.spec

Commit Details:

Full Hash: f01a7d508d0d5ba9e3949c18d6c713506efbabd7
Parent Commit: 37074c2
Lines Changed: +89, -4

3 Modified Paths:

/source/blender/io/wavefront_obj/intern/wavefront_obj.hh (+9, -0) (Diff)
/source/blender/io/wavefront_obj/intern/wavefront_obj_exporter.cc (+59, -2) (Diff)
/source/blender/io/wavefront_obj/intern/wavefront_obj_file_handler.cc (+21, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021