Normals the wrong way around when importing HDALC into Unity

   895   2   0
User Avatar
Member
4 posts
Joined: April 2020
Offline
Hi, I just got an Indie trial for Houdini, have managed to make a HDALC file for use in Unity that will take a curve and build a 2.5d platformer terrain. My problem is that the UVs are facing backwards. I've tried adding a Normal node and including the Reverse Normals flag in the HDA package parameters and whether reverse normals is checked or not they're the wrong way around in Unity.

I'm taking the curve, extruding it out backwards, applying bevel
create group for floor, generate UVs for floor,
create group for sides/cliffs, generate UVs
scale UVs
add different materials to different groups
normals weren't right so I added a recalculate normals node, which didn't help.

Attachments:
terrain_from_curve.hdalc (24.8 KB)
terrain_in_unity.png (1.9 MB)
terrain_in_houdini.png (690.3 KB)
houdini_terrain_graph.png (85.9 KB)

User Avatar
Member
7737 posts
Joined: Sept. 2011
Offline
Revering the normals doesn't reverse the geometry. Use a reverse node to make the geometry right side out.
User Avatar
Member
4 posts
Joined: April 2020
Offline
thanks! I was extruding the wrong way, so just removing the - fixed it.
  • Quick Links