Cycles Standalone: Expose vertex normals and tangent space attributes in XML API #9
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: blender/cycles#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "howetuft/cycles:tangents"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The vertex normals and tangent space attributes are not currently exposed by
the XML API, in the Mesh node. This notably prevents the XML API user
from applying normal maps to meshes in tangent space.
To overcome this situation, this commit adds three attributes to the Mesh node:
VN: vertex normals
T: tangents
TS: tangent signs
Nota: at the moment, these attributes are only available for non-subdivided
meshes.
@brecht @thomasdinges
Hello guys,
Just in case you missed it... Many thanks in advance!
Expose vertex normals and tangent space attributes in Cycles XML APIto Cycles Standalone: Expose vertex normals and tangent space attributes in XML APIFor the XML attributes, can you use the same names as
Attribute::standard_name
?For
mesh->attributes.add
, leave out the name, it should be filled in automatically to the standard name.Sure! A question however: should I apply it to existing
UV
attribute as well? Attribute's standard name isuv
(lower case) whereas current name isUV
(upper case...).It's been
UV
for years and may break some existing user's code, but you may find it more consistent with your request: just let me know...For UV, you could support reading both the lowercase and uppercase perhaps?
fe633936ab
to82b7c730c5
Yes, that's the best idea, thank you!
I've updated (squashed) the commit to meet your requested changes, it is at your disposal for merging if it's ok for you, or do not hesitate if you have any other request.
Many thanks in advance!
Thanks.
Thanks to you!