1

The situation is as follows: I would like to create an image where the pixel values (RGB) correspond to the position (XYZ) of the point in space (world coordinate).

Create a new material, like in this post How to render world position pass, seems to be a good idea. And I could render a scene with this new material overriding all materials in a scene. However, this does not take into account the current material of the object, which defines its shape using transparency. For example, a leaf is usually a rectangle with leaf texture (which composes of both leaf image and transparent parts). So this way, a leaf in Position-Image will appear as just a rectangle, and it is not desired.

I am wondering if there could be another way around, ideally a render pass that would output such XYZ values, or a way to incorporate this material with the current material of a object. Manually do so for all object is not a good idea as they are so many.

AugLe
  • 437
  • 5
  • 19
  • I wonder if the answers to this question might give some ideas about mixing in an alternate material at the end of the node setup. – sambler Dec 19 '16 at 09:49
  • It seems that answer is more on manually fork the materials, which I am avoiding to do since there are too many of them. – AugLe Dec 19 '16 at 15:13

0 Answers0