Flattening terrain on one side of a fence.

   672   3   2
User Avatar
Member
2 posts
Joined: Aug. 2023
Offline
Hi I've been working on this procedural fence.

I need the terrain under the fence and to one side of it (inside the fence) to be level.
Using an attribtransfer I managed to do the part under the fence.

Now how would I expand this attribute to fill one side?

Attachments:
image_2024-08-08_201557216.png (555.8 KB)

User Avatar
Member
9118 posts
Joined: July 2007
Offline
here is an example

Attachments:
ts_flatten_inside_fence.hipnc (337.4 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
143 posts
Joined: June 2024
Offline
compare the vector from the ground point to the fence with the fence normal vector. For points on one side, the dot poduct will be positive, for the other side, it will be negative. Voila.
User Avatar
Member
2 posts
Joined: Aug. 2023
Offline
tamte
here is an example
That works absolutely perfectly.
Thank you so much.
  • Quick Links