HeightField Project node works wrong after transformed heightfield?

   1848   3   0
User Avatar
Member
4 posts
Joined: June 2018
Offline
Hi

I found HeightField Project node not works as expected on a transformed heightfield.


It works fine if I ues HeightFiled Transform instead of normal Transform node,But in some cases I must use the normal Transform node, for example UE4 plugin use transform node internally to rotate the input landscape into right axis.

Attachments:
111.png (162.4 KB)

User Avatar
Member
8551 posts
Joined: July 2007
Online
submit a bug

and if you want to temporarily fix it
unlock it, dive inside and on perform_projection node change line 35 from this:
float   dist = dot(hitpos, up);
to this
float   dist = distance(@P, hitpos) * sign(dot(raydir, up));
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
333 posts
Joined: Oct. 2012
Offline
I think transform SOPs are not intended for use with heightfields. Use the heightfield transform SOP instead.
User Avatar
Member
8551 posts
Joined: July 2007
Online
while not intended it should work as it changes the domain of the heightfield volume, that's no reason to break the tools

but of course to transform the height values use Heightfield Transform, however Heightfield Transform contains transform SOP inside too so if you are using Positioning and your HF Orientation is not XZ it will break the projections too, even though that could be considered another bug as HF Transform shouldn't assume XZ orientation
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links