COPs: Rasterized N to offset tangent space normal map. How?

   237   2   1
User Avatar
Member
578 posts
Joined: 8月 2014
Offline
What are the steps required for converting the result of rasterization of N vertex attribute, which I believe is (and please do correct me if I'm wrong) a signed world space normal map, into a proper offset tangent space normal map? Can this be done with currently available COPs, or does it require a custom implementation in OpenCL?
User Avatar
Member
8822 posts
Joined: 7月 2007
Offline
What would you expect from such tangent space normal map?
It would be {0.5, 0.5, 1} everywhere, since the Normal in tangent space of the same surface points directly along Z

Only if you represent normal direction of one surface in a tangent space of a different surface you will get varying values typical for baked normal maps where high detail surface normal is represented in a tangent space of lower res surface
Edited by tamte - 2024年12月14日 18:39:52
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
578 posts
Joined: 8月 2014
Offline
Hi Tamte and thanks for your reply. Your second paragraph pretty much describes my goal. I have two geometrical representations of the same object: one subdivided, one not. Both have the same UV seams and UV positions of seam vertices. What I'd like to do, is to investigate and assess the resulting quality of skipping normal map baking, and instead, directly applying rasterized normals of the highpoly object to its lowpoly counterpart, thanks to texture processing capabilities of COPs. Without user interaction or creation of additional files (which texture baking requires). I'd like everything to happen in COPs, except of maybe TBN calculation of target lowpoly object, which I believe is required for the conversion and needs to be calculated in SOPs (if I'm not mistaken, "Tangent" convenience SOP based on PolyFrame SOP does it out-of-the-box).

So, what I'm looking for, is the proper algorithm/pseudocode/step-by-step instructions for conversion of rasterized WSNM of high poly geometry to TSNM of the low poly one, or (and ideally) a robust COPs recipe for this operation. I've seen so many formulas and solutions on the interwebs, that I'm not sure which one is the correct one anymore.
Edited by ajz3d - 2024年12月15日 15:34:48
  • Quick Links