Using Environment Textures in Blender 2.91

This tutorial will demonstrate how to use equirectangular environment textures in Blender. I’m going to use version 2.91 just because that happens to be the latest stable version.

Download Blender 2.91.0

As an example, we’re going to make an “Earth” texture. Before we dive in, we need to download some high-res textures: I got mine from a Google search:

Google "nasa blue marble"

I downloaded the “Explorer Base Map”, published September 1, 2020. The 3600×1800px PNG (6 Mb) is good enough, however in this tutorial I’m going to use the 21600×10800px GeoTIFF (231 Mb) to get even higher resolution.

The texture looks like this:

Explorer Base Map

Now that we have a texture to use, fire up Blender:

Open Blender 2.91.0

…and go straight to the Shading workspace:

Shading workspace

The default cube should have a material called “Material”, go ahead and rename it, e.g. to “Earth”:

Rename material

Add an Environment Texture node:

Add Environment Texture node

Click Open and locate the image file that we downloaded earlier:

Open Environment Texture

Open Environment Texture file

Connect the Color output of the Environment Texture node to the Base Color input of the Principled BSDF node.

Connect Color to Base Color

Once the nodes are connected, the default cube should already have the texture applied:

Default cube with Earth texture, flipped

Note that the above example is viewed from the default camera (Numpad 0) with Viewport Shading enabled:

Enable Viewport Shading

Also note that our cube-Earth is horizontally “flipped”, i.e. it looks as if it would look in a vertical mirror. To fix that we will scale the texture along the X axis by -1.

Start by adding a Texture Coordinate node and connect its Object output to the Vector input of the Environment Texture node:

Add Texture Coordinate

Connect Texture Coordinate node

So far haven’t changed anything, the texture is still flipped. To make the actual transformation, add a Mapping node between the Texture Coordinate and Environment Texture nodes, and change the X axis of the Scale factor from 1 to -1, like so:

Add Mapping node

Mapping node connected

The default cube should have the texture applied the right way now. Here is how it looks, after rotating by 180° degrees around the Z axis (R Z 180):

Default cube with Earth texture

Of course, we can obliterate the default cube and add a UV sphere instead, apply a SubSurf modifier, rotate it 180° along the Z axis and render it to get a more reasonable-looking planet Earth:

Earth

Next step in the series: