4
$\begingroup$

I am attempting to recreate some sort of line-of-sight sensor functionality using the Raycast node. Currently, my scene consists of two objects -- a terrain and a "sensor". The sensor is built from isolating some faces from a UV sphere that aim downward towards the terrain.

enter image description here

My current goal is to simply draw a cube or something on the terrain at each point where a ray cast from the center of the sensor through a normal of one of its faces would intersect the terrain surface. Here, is the geometry node setup:

enter image description here

Currently, the result is a single cube located at the origin.

enter image description here

The desired result is for the scenario shown would be a trail of cubes in the XZ-plane following the terrain. However, I would like to find a solution that works when the sensor is moved and, most importantly, rotated. Any help would be greatly appreciated!

$\endgroup$

1 Answer 1

6
$\begingroup$

i am not sure, but i hope you want this?

enter image description here

enter image description here

if you animate changing the y value of the ray direction you will get:

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .