cops: how to normalize a normal map?

   1900   4   2
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Hi!

I'm trying to make a normal map of a vdb cloud. I've coposited renders of the cloud and I get something close to a normal map. Is there a node to normalize the result? ...or is it possible to write vex in there?!

-Olivier

Attachments:
Houdini_cloud_cops_normals.JPG (84.7 KB)

User Avatar
Member
1007 posts
Joined: April 2017
Offline
...On another note, I'm getting some odd gliches. Anybody knows what can cause this? it's in my composite view but if I look at the preview on the node itself, it looks good. And when I export a .exr of it, the glitch is there too.

-Olivier
Edited by olivierth - Dec. 24, 2020 16:05:34

Attachments:
Houdini_cloud_cops_normals_02.JPG (56.2 KB)

User Avatar
Member
134 posts
Joined: Dec. 2006
Offline
Hey, you are looking at a unpremultiplied channel in the exr, you should see some render garbage. If you want it to look right you should premultiply the image, just remember you need a unpremultiplied normal map if you want it to work properlyso this would just be for your viewing pleasure.

hope this helps
User Avatar
Member
575 posts
Joined: Nov. 2005
Offline
If Your normal maps is not normalized You can do it in a vopcop2filter in a COPNetwork, connect the RGB float channels to a "float to vector" node, normalize the output and write it back to the output channels
GlobalRGB>floattovector>normalize>vectortofloat>RGBOutput
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Thanks for the replies, I'll check that out.
  • Quick Links