Skip to content

Conversation

@bitreal
Copy link

@bitreal bitreal commented Oct 26, 2025

Unity is exporting wrong normals to Houdini at the moment. It converts positions from the local space into the world space, but keeps normals in the local space. I added a local-to-world conversion for normals in this PR.

Keep in mind that we should use a transposed worldToLocal matrix instead of a regular localToWorld matrix with normals to make it work correctly with nonuniform or negative scales.

I made this PR for 19.5 because I'm working with this version of Houdini. But it seems that the same issue is in 20.5 as well.

dpernuit and others added 7 commits July 20, 2022 19:22
Houdini Engine Version: 5.0 (API: 0)
…ly set in Houdini due to sizing inconsistencies.
Houdini Engine Version: 5.0 (API: 0)
  The issue was caused by corner sampling actually adding an extra voxel to the input data,
  that then caused a discrepancy in the output terrain size, causing the tearing of the data.
Houdini Engine Version: 5.0 (API: 5)
…ecooked (but not the first one!).

  This was caused by the asset name being used to retrieve the curve parameters/geo data.
@bitreal bitreal closed this Oct 26, 2025
@bitreal
Copy link
Author

bitreal commented Oct 26, 2025

I closed the PR because I had created it for the wrong branch (20.5 instead of 19.5)
A new PR is here - #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants