Heightfield Convert sop creates uv.z breaks COP baking

   710   2   1
User Avatar
Member
15 posts
Joined: Aug. 2017
Offline
I ran into an issue where converting a heightfield to a polygon mesh using the Heightfield Convert SOP leaves values in the uv.z component. This ends up causing baking errors and artifacts when you try to bake down the heightfield in COPs. You can easily fix it by dropping down a wrangle to set uv.z to 0, but it's pretty unclear why it happens and took me quite a while to figure out! I have added an example file.

Image Not Found



Edited by maartennielen - March 31, 2026 11:23:59

Attachments:
BakingIssueAndfix.hip (407.0 KB)
BrokenNormals.jpg (580.8 KB)
Output HFconvert.jpg (154.3 KB)
FixedNormals.jpg (329.2 KB)

User Avatar
Staff
78 posts
Joined: May 2024
Offline
Hi there!
Yeah, this has been reported in other situations where some UV based SOPs output UV.z values.
There is a toggle on Rasterize Setup and Bake Geometry Textures for 'Remove UV Z Values', this toggle is ON by default in Houdini 22, but off by default in H21, as to not break backwards compatibility.
This should help with your bakes which have UV Z values.

Hope this helps!

Attachments:
H21.png (5.4 KB)

Image Processing Technical Director
SideFX
User Avatar
Member
15 posts
Joined: Aug. 2017
Offline
thanks a lot!
  • Quick Links