8
$\begingroup$

enter image description here

I have a moon object and I'd like it not to be affected by parallax for the camera. I want it to look as if it's infinitely far away, without just moving it really far away in my scene. Is this possible?

$\endgroup$
2

1 Answer 1

14
$\begingroup$

You could make the moon move relative to the camera.

  1. Select the camera and ⇧ ShiftS snap the cursor to it. Then add an empty at that position. ⇧ ShiftA
    add empty
  2. Select the moon. ⇧ Shift select the the empty and parent the moon to the empty ⎈ CtrlP.
    parent menu
  3. Select the empty. Add a Copy Location Constraint. Choose the camera as the target. constraint
  4. Fake lighting by the moon with a sun lamp. The sun lamp type sends parallel rays, which simulate an object which is infinitely far away.
  5. You may encounter that the moon is casting a shadow (from the sun light) or emitting light (if you're using the cycles render engine). To prevent that in cycles, you modify the moons visibility settings and disable all options except camera.
    ray visibility
    If you are using EEVEE, simply move the sun light between all object and the moon, which has to have the furthest distance to the camera.

Due to the relative offset, the moon is always at the same position.

result

$\endgroup$
6
  • $\begingroup$ Thanks a lot for the detailed answer, this works perfectly. What does step 4 do exactly, and how do I do it? I'm new to blender $\endgroup$
    – max
    Commented Dec 26, 2019 at 15:22
  • $\begingroup$ I have added the last two steps. Is it clearer now? $\endgroup$
    – Leander
    Commented Dec 26, 2019 at 15:36
  • $\begingroup$ That's perfect, thank you. $\endgroup$
    – max
    Commented Dec 26, 2019 at 16:19
  • $\begingroup$ Ahh.. so the location of a sun lamp does make a difference in EEVEE. Learned something today. $\endgroup$
    – Robin Betts
    Commented Dec 26, 2019 at 17:10
  • $\begingroup$ Won't this break if you have any kind of reflective or bounce lighted materials? Or shadows? $\endgroup$
    – MooseBoys
    Commented Dec 27, 2019 at 18:43

You must log in to answer this question.

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