briankulig
June 3, 2018 16:02:58
Hey guys,
I am working with Unreal 4.19 and Houdini Engine. I am trying to use dynamic lighting using mesh distance fields and am finding that houdini hda meshes don't show up in Unreal's mesh fields. This happens even when I bake the geo in unreal and place it in the scene from the content browser.
In Unreal, I tried setting the “Distance Field Resolution” to 1 on the hda actor and baked geometry, but it didn't help. On the baked geo I also tried checking on “Generate Mesh Distance Field” but that didn't help either.
I included the simple Box.hdalc for testing and a gif showing me placing a regular unreal box and then the hda and toggling on and off “Viewport>Show>Visualize>Mesh Distance Fields”
Funny enough, while first placing the hda, the houdini logo mesh shows up in the Mesh Distance Field before cooking to the box.
I am wondering if there is just a setting I am missing somewhere, or if this is a bug I should report.
-bk
mark0s
June 7, 2018 09:58:51
You have to set “Distance Field Resolution Scale” in the asset to something and than Recook Asset.
briankulig
June 7, 2018 15:19:22
Thanks mark0s! Yeah I figured that out. I am gonna see if I can set it as a uproperty so I don't have to place and then recook it each time. Puts an unnecessary steps in the workflow.
Strangely when I baked the geo it stayed in the wrong state despite changing the "Distance Field Resolution Scaleā to a proper value. But yeah, changing the value and recooking definitely fixes it.
Thanks again!
Len
Aug. 17, 2020 21:09:44
Dealing with this issue right now.
Found I can set this Detail attribute to set the property:
@unreal_uproperty_GeneratedDistanceFieldResolutionScale = 1;
Weirdly, won't process this when first placing HDA. Change a param or force recook and it works as intended with Mesh Distance Fields updating.
briankulig
Aug. 19, 2020 12:54:45
@Ien Yeah that resembles some of the behavior I was seeing. It made me wonder why the initial cook on placement seemed to behave differently than subsequent cooks. It's been a while since I dealt with the issue, since that project ended and I have been doing raytracing on my current one.
dpernuit
Aug. 20, 2020 13:23:26
@len: are you using version1 or version2 of the plugin ?
Len
Sept. 11, 2020 19:24:53
We're on version 1
Considering the jump to version 2 but “alpha” is a scary word.
Len
Jan. 28, 2021 14:48:17
@dpernuit: Ok, we've made the jump to v2 but now that detail attribute doesn't seem to work any more.
GlenD
May 16, 2022 08:45:21
Len
@dpernuit: Ok, we've made the jump to v2 but now that detail attribute doesn't seem to work any more.
We are using v2 of the plug-in and it is not working for us as well. Were you able to find a solution?
Just to clarify, we are trying to set the Distance Field Resolution Scale in the LOD 0 details.
Glen