Heightfield conversion

   2011   4   0
User Avatar
Member
17 posts
Joined: Dec. 2019
Offline
Hi

I setting the heightfield size 1024*1024. I will got size 1026*1026 in unity. But when I cooked(TopNetwork), The size will change to 1024*1024. How to use the final size result(1024) to round trip between engines?

Thanks!
Edited by Dean_Lv - April 20, 2020 05:45:56
User Avatar
Member
571 posts
Joined: May 2017
Offline
Which version of Houdini are you using? Also, is this through the PDG Asset Link, and loading the generated bgeo in Unity?
Edited by seelan - April 20, 2020 09:05:45
User Avatar
Member
17 posts
Joined: Dec. 2019
Offline
I use 18.0.418 ver.
yes, I use HDA creat the terrain first, Then use the ROP geometry output node to export bgeo file.
Finally, add them to the PDG process.
Once the terrain is added to the cook process,it will change size to 1024.I can't have them to round trip between the two engines again.

Attachments:
screenshot.PNG (11.9 KB)

User Avatar
Member
571 posts
Joined: May 2017
Offline
I believe this to be a bug with the HEU_GeoSync not generating the HFs with the recent changes using corner sampling. Please attach a generated bgeo file if possible. I'll update this post when I fix it.
User Avatar
Member
17 posts
Joined: Dec. 2019
Offline
Hi,

This is bgeo file. I think we load the bgeo file generated by PDG Asset Link ,In unity the size should be power of 2 + grid spacing.
If the size doesn't change. They won't be able to round trip between the engines.
So the PDG asset link generates the final file also satisfies the rules of corner sampling?

In addition, I export output geo and load geo file in unity, Each round trip to unity and disk. The size of the terrain will be subtracted by 2.(1026 1024 1022 1020…).Is this normal?

Thanks for your patient reply

have good day!

Attachments:
Landscape_Gen.Landscape_Gen0_2.0.bgeo.sc (792.3 KB)

  • Quick Links