vfx_yFan
Oct. 14, 2019 05:25:15
When I used the terrain tree instance, when I separated the terrain, only the trees on the first terrain were there, and all the trees on the other terrain were on the first terrain.Thank you in advance!!!
Attachment: HDA and pictures
vfx_yFan
Oct. 14, 2019 21:45:58
Hello, you guys, I'm really sorry, I don't know if my question is clear enough.My English is not good, also ask you to help answer!!
seelan
Oct. 17, 2019 09:10:59
This is a known issue that requires a fix. Basically when you merge the heightfields and the scatter points, the heightfields are still exported separately as tiles, but the points will be a single geo. The plugin uses the ‘tile’ attribute to map the scatter point geo to corresponding terrain tile, in this case it is the first tile.
Current recommendation is not to merge everything. But I will update this thread when a fix is in, though no ETA on it yet.
jumuNXRT
Oct. 27, 2020 05:58:43
Any news on this topic? I ran into the exact same problem today.
Daehuck Kim
March 10, 2021 04:26:54
any updates??
anthonyt2
March 24, 2021 11:16:21
Should be fixed in Houdini 18.5.527.
anthonyt2
May 25, 2021 15:35:15
It seems like the previous "fix" was erroneous in certain situations, (i.e. having more than one prototype index). I implemented a fix in Houdini 18.5.589 that requires the use of a point attribute "unity_hf_tile". Set the point attribute to be equal to the tile number. See it here when the documentation gets updated:
https://www.sidefx.com/docs/unity/_attributes.html [
www.sidefx.com]
Daehuck Kim
July 30, 2021 03:45:27
When I use "unity_hf_tile" point attribute then result looks weird.
I group points according it's bounding volume and set attributes
but results is like this
anthonyt2
July 30, 2021 15:01:06
Hi, it's hard to say without the HDA, but it looks conceptually correct. Can you send the HDA for reference or file a bug report with the HDA attached?
Daehuck Kim
Aug. 3, 2021 02:07:16
Here's my hda file.
I think this should works but looks weird.
Could you make a simple example hda about splited terrain & scattered points?
anthonyt2
Aug. 6, 2021 14:49:35
I took a brief look at your example. I think you're mixing up details and trees? I attached both an example of trees using the unity_hf_tile attribute to instance different trees on different tiles. (simple_tree_prototype_split.hda)
Also, here's a simple example of using simple_hf_detail_prefab. (simple_hf_detail_prefab.hda)
Monumental
Aug. 16, 2022 10:11:07
EDIT: I got this working, the issue was that I browsed to the asset in Unity and opened in Windows explorer to copy the path, which uses '\' and the attrib string path needs '/'. Doh....
---------------------------------------------------
I've tried using your example with Houdini 19.5.303 and Unity 2020.3.33f1, but it does not work. Is there an updated workflow for this? I'm also using session sync, but tested by dropping in the HDA as well (and changing the tree file path).
The tree prototype is invalid, but its just a prefab with a plane (mesh filter and renderer).
s@unity_hf_tree_prototype0 = "Assets\Environment\Test_GrassClump_01.prefab";
Tree removed: invalid prototype 0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
HoudiniEngineUnity.HEU_TerrainUtility:ApplyScatterTrees (UnityEngine.TerrainData,HoudiniEngineUnity.HEU_VolumeScatterTrees,int) (at Assets/Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_TerrainUtility.cs:973)
HoudiniEngineUnity.HEU_BaseSync:GenerateTerrain (int,System.Collections.Generic.List`1<HoudiniEngineUnity.HEU_LoadBufferVolume>) (at Assets/Plugins/HoudiniEngineUnity/Scripts/Sync/HEU_BaseSync.cs:725)
HoudiniEngineUnity.HEU_BaseSync:GenerateGeometry (HoudiniEngineUnity.HEU_ThreadedTaskLoadGeo/HEU_LoadData,int) (at Assets/Plugins/HoudiniEngineUnity/Scripts/Sync/HEU_BaseSync.cs:355)
HoudiniEngineUnity.HEU_BaseSync:GenerateObjects (HoudiniEngineUnity.HEU_ThreadedTaskLoadGeo/HEU_LoadData) (at Assets/Plugins/HoudiniEngineUnity/Scripts/Sync/HEU_BaseSync.cs:339)
HoudiniEngineUnity.HEU_BaseSync:OnLoadComplete (HoudiniEngineUnity.HEU_ThreadedTaskLoadGeo/HEU_LoadData) (at Assets/Plugins/HoudiniEngineUnity/Scripts/Sync/HEU_BaseSync.cs:319)
HoudiniEngineUnity.HEU_ThreadedTaskLoadGeo:OnComplete () (at Assets/Plugins/HoudiniEngineUnity/Scripts/Tasks/HEU_ThreadedTaskLoadGeo.cs:566)
HoudiniEngineUnity.HEU_ThreadedTask:Update () (at Assets/Plugins/HoudiniEngineUnity/Scripts/Tasks/HEU_ThreadedTask.cs:135)
HoudiniEngineUnity.HEU_ThreadManager:Update () (at Assets/Plugins/HoudiniEngineUnity/Scripts/Tasks/HEU_ThreadManager.cs:114)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
anthonyt2
I took a brief look at your example. I think you're mixing up details and trees? I attached both an example of trees using the unity_hf_tile attribute to instance different trees on different tiles. (simple_tree_prototype_split.hda)
Also, here's a simple example of using simple_hf_detail_prefab. (simple_hf_detail_prefab.hda)
sasad3
June 5, 2023 23:31:52
Hi, guys! I still got this problem in Houdini 19.5.605.
Any solution for this? Thanks!