0
$\begingroup$

I'm trying to map in real time the position of a shadow of an object cast on a plane. I'm using as a light source a sun lamp and rendering in eevee.

Render view from top

The plane has a simple shader:

Plane material

I would like to have a sort of array that stores the shadow's position such as:

[(0,0,0),(0,1,0), ..., (x,y,z)]

Is there a way to do this with the Python API without shadow baking? I need it to be done only in eevee and with a sun lamp. I found similar questions with answers such as:

Find the color at a particular surface point on a mesh

and

Is it posible to get the coordinates of the shadow from its rendering?

But I don't want to use particles and the raycasting method doesn't work well with a sun lamp since the position of the point is not important for the light direction.

Thanks!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.