4
$\begingroup$

I modeled a sun, placed it up in the sky of my scene, and rendered an HDR image to use as an environment map.

The problem is that when I then make a World material and load this image into the Environment Texture node it is totally out of alignment with where the sun object is in my sky.

My camera is in the World center, and I've tried various rotation settings, including clearing its rotation. No luck. I've also tried to shift the alignment of the Environment Texture node's image via its Vector input, but that caused nothing to show up at all. Any ideas what I need to do differently?

$\endgroup$
6
$\begingroup$

To transform an environment texture you'll want to manipulate the Generated coordinates:

enter image description here

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thanks, very useful to know how to control this! Now knowing this I realize that, when rendering the Camera should be rotated X:90 Y:0 Z:0 (placed in the World center, of course) - and the rotation in the Mapping node when using that rendered image should be X:0 Y:0 Z:-90. Of course, we could choose to render with the Camera at a different rotation, but in any case the mapping rotation will differ from the Camera rotation, and these values seem to be the easiest to manage. $\endgroup$ – Mentalist Jun 30 '15 at 18:40
  • $\begingroup$ Related: blender.stackexchange.com/questions/24145/… $\endgroup$ – Jacco Nov 10 '17 at 13:50

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.