3
$\begingroup$

I set a keyframe for my hdri location via texture coordinates. now I wanna make it parent to my sun so that the sun follows the hdri location. I tracked my sun to my object and now want to parent my hdri to my sun. please let me know if there is away.If not,I will draw a path and sync the rotation by that.

but If there is a way to parent the world rotation to light please let me know. in cycle

$\endgroup$
0

1 Answer 1

7
$\begingroup$

One solution (and probably needlessly complicated) is driving the Sun rotation from the HDRI

  1. Add nodes to your HDRI Mapping node like in the second image
  2. Go Value node > RMB > Copy As New Driver and paste as Sun's Z rotation
  3. The Value node rotates both HDRI + Sun (for animating)
  4. The Add node rotates only HDRI

enter image description here

enter image description here

$\endgroup$
2
  • $\begingroup$ Don't see how it could get much simpler than that..:) $\endgroup$
    – Robin Betts
    Oct 27, 2020 at 20:45
  • $\begingroup$ @Robin Thanks, it's always nice to have you check I didn't miss something obvious :). $\endgroup$ Oct 27, 2020 at 20:53

You must log in to answer this question.

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