Blender Git Loki

Git Commits -> Revision f64f050

Revision f64f050 by Sybren A. Stüvel (sybren-usd)
July 25, 2019, 14:33 (GMT)
USD: Export mesh normals

We now write face-varying mesh normals to USD. When the mesh has custom
loop normals those are written. Otherwise the poly flag `ME_SMOOTH` is
inspected to determine the normals.

This commits also changes the subdivision scheme from the default value
'Catmull Clark' to 'None', indicating we're exporting a polygonal mesh.
This is necessary for USD to understand our normals; otherwise the mesh
is always rendered smooth. In the future we may want to expose this
choice of subdivision scheme to the user, or auto-detect it when we
actually support exporting pre-subdivision meshes.

A possible optimisation could be to inspect whether all polygons are
smooth or flat, and mark the USD mesh as such. This can be added when
needed.

Commit Details:

Full Hash: f64f0506b725412419dc6de55d728fecafdc5b35
Parent Commit: adaf37f
Lines Changed: +50, -0

2 Modified Paths:

/source/blender/usd/intern/usd_writer_mesh.cc (+49, -0) (Diff)
/source/blender/usd/intern/usd_writer_mesh.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021