Mapas de ambiente

Environment maps take a render of the 3D scene and apply it to a texture, to use for faking reflections. If you want to achieve a very realistic result, ray-traced reflections are a good solution. Environment Maps are another way to create reflective surfaces, but they are not so simple to set up.

Portanto, por que alguém utilizaria mapas de ambiente ?

  • The main reason is probably that they can be much faster than ray tracing reflections. In certain situations they need to be calculated only once, and may be reused like any ordinary texture. You may even modify the precalculated Environment Map in an image editor.
  • Environment maps can also be blurred and render even faster because the resolution can then be lowered. Blurring a reflection with the ray tracer always adds to the render time, sometimes quite a lot.
  • Halos (a visualization type for particles) are not visible to ray-traced reflections, so you need to setup environment maps to reflect them.
  • Keypoint strands (another visualization type for particles) are also not visible to ray-traced reflections, so you need to setup environment maps to reflect them.

Just as we render the light that reaches the viewing plane using the camera to define a viewpoint, we can render the light that reaches the surface of an object (and hence, the light that might ultimately be reflected to the camera). Blender’s environment mapping renders a cubic image map of the scene in the six cardinal directions from any point. When the six tiles of the image are mapped onto an object using the Reflection input coordinates, they create the visual complexity that the eye expects to see from shiny reflections.

Nota

It is useful to remember here that the true goal of this technique is believability, not accuracy. The eye does not need a physically accurate simulation of the light’s travel; it just needs to be lulled into believing that the scene is real by seeing the complexity it expects. The most unbelievable thing about most rendered images is the sterility, not the inaccuracy.

Opções

Importante

For correct results, the mapping of an environment map texture must be set to Reflection (reflection coordinates) in the Map Input panel of the Material tab.

../../../../_images/render_blender-render_textures_types_environment_map-panel.png

Configurações do plano que reflete o mapa do ambiente.

O Blender permite três tipos de mapas de ambiente, como você pode ver na imagem Configurações do plano que reflete o mapa do ambiente.:

Estático
O mapa será calculado apenas uma vez durante uma animação ou após carregar um arquivo.
Animados
O mapa será calculado cada vez que a renderização for acionada. Isto significa que os objetos que se movem são exibidos de maneira correta nas superfícies espelhadas.
Arquivo de imagem

When saved as an image file, environment maps can be loaded from an image file. This allows the fastest rendering with environment maps, and also gives the ability to modify or use the environment map in an external application.

When using planar reflections, if the camera is the only moving object and you have a reflecting plane, the Empty must move too and you must use Animated environment map. If the reflecting object is small and the Empty is in its center, the environment map can be Static, even if the object itself rotates since the Empty does not move. If, on the other hand, the Object translates the Empty should follow it and the environment map be of Animated type.

Especiais
Limpar mapa de ambiente
Clears the currently rendered environment map from memory. This is useful to refresh a Static environment maps and you have changed things in your scene since the last time the environment map was rendered. Animated environment maps do this automatically on every render.
Salvar mapa de ambiente
Saves the currently stored static environment map to an image file on a drive. This can be loaded again with Load.
Limpar todos os mapas de ambiente
Does the same as Free Data, but with all environment maps in the scene. This is a useful shortcut when using recursive environment maps (when the Depth is greater than 0).

Nota

Environment Map calculation can be disabled at a global level by the Environment Map toggle button in the Shading panel of the Render tab.

Objeto de ponto de visão

Environment maps are created from the perspective of a specified object. The location of this object will determine how “correct” the reflection looks, though different locations are needed for different reflecting surfaces. Usually, an Empty is used as this object:

  • For planar reflections, the object should be in a location mirrored from the camera, on the other side of the plane of reflection (see Examples). This is the most accurate usage of Environment maps.
  • For spherical reflections, the object should be in the center of the sphere. Generally, if the reflecting sphere’s object center point is in the center of its vertices, you can just use the name of the actual sphere object as the Viewpoint Object
  • For irregular reflections, there is no hard and fast rule, you will probably need to experiment and hope that the inaccuracy does not matter.
Ignorar camadas

The layers to exclude from the environment map creation. Since environment maps work by rendering the scene from the location of the Viewpoint Object, you will need to exclude the actual reflecting surface from the environment map, otherwise it will occlude other objects that should be reflected on the surface itself.

E.g. If you are rendering an environment map from the center of a sphere, all the environment map will show by default is the inside of the sphere. You will need to move the sphere to a separate layer, then exclude that layer from the environment map render, so that the environment map will show (and hence reflect) all the objects outside the sphere.

Resolução
The resolution of the cubic environment map render. Higher resolutions will give a sharper texture (reflection), but will be slower to render.
Profundidade
The number of recursive environment map renders. If there are multiple reflecting objects using environment maps in the scene, some may appear solid, as they will not render each other’s reflections. In order to show reflections within reflections, the environment maps need to be made multiple times, recursively, so that the effects of one environment map can be seen in another environment map. See Examples.
Clipping Start/End
The clipping boundaries of the virtual camera when rendering the environment map. Sets the minimum and maximum distance from the camera that will be visible in the map.

Amostragem de mapa de ambiente

../../../../_images/render_blender-render_textures_types_environment_map-sampling.png

Amostragem de mapa de ambiente.

Filtro
Caixa
Filtro caixa
EWA

Elliptical Weighted Average. One of the most efficient direct convolution algorithms developed by Paul Heckbert and Ned Greene in the 1980s. For each texel, EWA samples, weights, and accumulates texels within an elliptical footprint and then divides the result by the sum of the weights.

Excentricidade
Excentricidade máxima (mais alto fornece menos desfoque em ângulos distantes ou oblíquos, mas também é mais lento).
FELINE

FELINE (Fast Elliptical Lines), uses several isotropic probes at several points along a line in texture space to produce an anisotropic filter to reduce aliasing artifacts without considerably increasing rendering time.

Sondas
Número máximo de amostras (mais alto fornece menos desfoque em ângulos distantes ou oblíquos, mas também é mais lento).
Área
Excentricidade
Excentricidade máxima (mais alto fornece menos desfoque em ângulos distantes ou oblíquos, mas também é mais lento).
Tamanho do filtro
A quantidade de desfoque aplicada a textura. Valores mais alto irão desfocar o mapa de ambiente para imitar as reflexões desfocadas.
Tamanho mínimo do filtro
Usa o tamanho do filtro como o valor mínimo do filtro em pixeis.

Exemplos

In this example, an empty is used as the Viewpoint Object of the reflecting plane’s environment map. It is located in the specular position of the camera with respect to the reflecting surface. (This is possible, strictly speaking, only for planar reflecting surfaces). Ideally, the location of the empty would mirror the location of the camera across the plane of the polygon onto which it is being mapped.

../../../../_images/render_blender-render_textures_types_environment_example-1.png

Exemplo de reflexão planar.

../../../../_images/render_blender-render_textures_types_environment_example-2.jpg

A esfera em uma superfície reflexiva.

The following images show the effect of the Depth. The first render has depth set to 0. This means the environment map on the plane has rendered before the environment map of the sphere, so the sphere’s reflection is not shown. By raising the Depth, the environment map is rendered recursively, in order to get reflections of reflections.

../../../../_images/render_blender-render_textures_types_environment_example-3.jpg

A reflexão da esfera em uma superfície reflexiva.

../../../../_images/render_blender-render_textures_types_environment_example-4.jpg

Reflecting sphere on a reflecting surface with multiple reflections.

Limitações

Because environment maps are calculated from the exact location of the Viewpoint Object’s object center, and not from actual reflecting surface, they can often be inaccurate, especially with spheres. In the following image, the rectangular prism and the smaller spheres are touching the sides of the large reflecting sphere, but because the environment map is calculated from the center of the sphere, the surrounding objects look artificially far away.

../../../../_images/render_blender-render_textures_types_environment_limitations.jpg

Inaccurate spherical reflection, the colored objects are artificially offset.