[Question]Lose terrain layer after cooking node in unity

   1414   1   1
User Avatar
Member
5 posts
Joined: Sept. 2021
Offline
Hi guys,

I am learning this tutorial:
https://www.sidefx.com/tutorials/pdg-for-indie-gamedev-section-3-creating-terrains/?collection=61 [www.sidefx.com]

I ran into difficulties in the course of Part10:Splitting Terrains with TOPs.

For I use houdini version18,I use the generic generator instead of the removed attribute Iterations option in Heightfield Tilesplit node.
When I import the PDG into Unity and cook the terrain split node, only one piece of terrain leave the terrain layer and the others are missing.

I'm really want to solve this problem.

Thank you!
Edited by Jake6 - Nov. 23, 2021 20:34:49

Attachments:
@D05}FGH8E{0S[Q}29L0SQ3.jpg (172.0 KB)
P8$V)6BT(MT4HP{8GRE1)]B.jpg (185.4 KB)
6DAS{)YM1}WUF55@0RY%EAV.jpg (11.7 KB)
Dingtalk_20211123172713.jpg (67.0 KB)

User Avatar
Member
5 posts
Joined: Sept. 2021
Offline
Hi guys,

I have already solve this problem!
The main point of this problem is the Attribute Create node set in texture HDA.

As Indie-Pixel author commented at the bottom of this tutorial:
https://www.sidefx.com/tutorials/pdg-for-indie-gamedev-section-3-creating-terrains/ [www.sidefx.com]

I used "unity_hf_terrainlayer_file" in Attribute Create node,that is the point why we lose the terrainlayer after cooking split node.
We should use "unity_hf_texture_diffuse" and "unity_hf_texture_normal" instead of "unity_hf_terrainlayer_file".

I don't know what exactly work in unity, thoughbut it worked out.
Hope guys found this useful.
Edited by Jake6 - Nov. 24, 2021 05:59:07
  • Quick Links