8

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?

jcaron
  • 103
  • 4
max
  • 105
  • 5

1 Answers1

14

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

Leander
  • 26,725
  • 2
  • 44
  • 105