Heightfield File doesn't work in Unity [SOLVED]

   2626   2   0
User Avatar
Member
7 posts
Joined: 4月 2016
Offline
I'm creating a simple HDA tool with a heightfield and heightfield file node. The heightfield node is using loading png file which is the heightmap. Everything is ok in Houdini. In Unity I get warnings and nothing is cooked:

Houdini Engine: Cooking finished with some errors for asset: island1
Object (ID: 0): /obj/island1

Geo (ID: 4): /obj/island1/terrain/null1
No geometry generated!


Is assume has to do with the heightmap image. Probably Houdini engine can not retrieve the file via the Unity Houdini Engine or something like that. Is there a solution to this issue?
Edited by AndreasNull - 2020年9月20日 09:02:35
Andreas Diktyopoulos
Creative Director
beyondthosehills.com
User Avatar
Member
7 posts
Joined: 4月 2016
Offline
I tried to set the file as a parameter to the tools in order to expose it to the Unity editor. Again everything works in Houdini, but in Unity, I get the same warning with no luck so far.
Andreas Diktyopoulos
Creative Director
beyondthosehills.com
User Avatar
Member
7 posts
Joined: 4月 2016
Offline
Ok. I found 3 solutions

1. You can use full paths and will work.

2. Lock the file node.

3. Add texture as an embedded asset via the “Extra Files” tab in “Type Properties…” window. And then you can get the texture (or any embedded asset) with:
opdef:..?<filename>

e.x.
opdef:..?mytexture.png
).
Edited by AndreasNull - 2020年9月20日 09:06:58
Andreas Diktyopoulos
Creative Director
beyondthosehills.com
  • Quick Links