Height Fields Tracing Mismatch

   287   2   1
User Avatar
Member
711 posts
Joined: Sept. 2013
Online
How to avoid mismatching borders when tracing height fields with increasing thresholds?
Edited by Konstantin Magnus - Aug. 26, 2025 10:36:59

Attachments:
traced_hf_mismatch.hip (171.4 KB)
hf_borders.png (93.0 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
User Avatar
Member
275 posts
Joined: Feb. 2016
Offline
This seems tricky, since it's going to interpolate between the voxels.
You could fuse to a grid after tracing, using the grid spacing of the hf (and maybe a slight smooth after)
Otherwise you'll probably need to cook up a trace that does not interpolate between voxels.
Edited by AslakKS - Aug. 27, 2025 15:53:39

Attachments:
hf_trace_fuse.png (219.9 KB)

User Avatar
Member
711 posts
Joined: Sept. 2013
Online
Thank you AslakKS,

I ended up setting the tracer's boundary color to a really low value which seems to avoid this issue.
Edited by Konstantin Magnus - Aug. 28, 2025 06:25:16

Attachments:
hf_tracing.png (808.7 KB)
height_field_trace_foreach.hip (371.8 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links