Z Combine Node

../../../_images/compositing_types_color_z-combine_node.png

O painel do nó do tipo «Combinar Z».

The Z Combine node combines two images based on their Z-depth maps. It overlays the images using the provided Z values to detect which parts of one image are in front of the other.

Entradas

Imagem
A imagem em plano de fundo.
Z
Z depth of the background image.
Imagem
A imagem em plano frontal.
Z
Z depth of the foreground image.

Propriedades

Usar alfa
The chosen Image pixel alpha channel is also carried over. If a pixel is partially or totally transparent, the result of the Z Combine will also be partially transparent; in which case the background image will show through the foreground (chosen) pixel.
Antisserrilhamento em Z
Aplica Antisserrilhamento para evitar artefatos em arestas ressaltadas ou em áreas de alto contraste.

Saídas

Imagem
If both Z values are equal, it will use the foreground image. Whichever Z value is less decides which image pixel is used. See Z-buffer.
Z
The combined Z depth, which allows to thread multiple Z-combines together.

Exemplos

../../../_images/compositing_types_color_z-combine_example-1.png

Escolhendo os pixeis mais próximos.

no exemplo acima, a saída de renderização a partir das duas cenas foi misturada usando o nó do tipo «Combinar Z» para deslocamento, usando uma entrada a partir de uma esfera com 1.30, e a outra com um cubo de tamanho 1.0. A esfera e o quadrado estão localizados no mesmo lugar. O cubo está um pouco mais a frente, portanto as quinas localizadas no centro estão mais próximas da câmera do que a superfície da esfera; portanto, o deslocamento em Z escolherá os pixeis do cubo. Mas a esfera, é um pouco maior (com um tamanho de 1.30 versus 1.00), portanto ela não se encaixa totalmente dentro do cubo. Em algum ponto, conforme as laterais do cubo recedem se distanciando da câmera, as laterais da esfera situam-se mais próximas. Quando isso ocorre, o deslocamento em Z criado a partir do nó utiliza os pixeis da esfera para criar a imagem resultante.

Este nó pode ser usado para combinar uma imagem de plano frontal e uma imagem de plano de fundo com uma imagem proveniente de telas de alfa. Walt Disney foi o pioneiro na utilização de telas de múltiplos planos, onde três ou mais telas parciais eram pintadas sobre o vidro e posicionadas a esquerda e a direita em diferentes posições de planos Z. Movimentos mínimos de câmera para a direita criam então, a ilusão de profundidade conforme o personagem Bambi se movia através da floresta.

Nota

Entradas válidas

Os conectores de entradas Z não aceitam valores fixos; eles devem receber um conjunto de vetores (veja o nó do tipo «Mapear valores»). Os conectores de entrada de imagens não aceitam cores pois estas não possuem coordenadas UV.

../../../_images/compositing_types_color_z-combine_example-2.png

Mix and match images.

The Z Combine can be used to merge two images as well, using the Z values put out by two render layers. Using the Z values from the sphere and cube scenes above, but threading different images, yields the example to the right.

../../../_images/compositing_types_color_z-combine_example-3.png

Z Combine in action.

In this node setup a render scene is mixed with a flat image. In the side view of the scene, the purple cube is 10 units away from the camera, and the gray ball is 20. The 3D cursor is about 15 units away from the camera. The image is Z-in at a location of 15, thus inserting it in between the cube and the ball. The resulting image appears to have the cube on the table.

Nota

Efeito de homem invisível

If a foreground image with a higher Alpha than the background, is then mixed in the Z combine with a slightly magnified background, the outline of the transparent area will distort the background, enough to make it look like seeing a part of the background through an invisible yet Fresnel-lens object.