The Sample Pos. to UV projection type converts the screen space position of the current sample to the UVW coordinate (figure 1). This projection type is designed to be used with the Global Texture AOV. This projection is simple and can be used to create masks for compositing on-the-fly. This is not the same as screen space projection, which maps the sample position in world space into screen space.


In figure 1, The Sample Pos. UV node is used to project the OTOY logo so that it is always facing the camera regardless of camera position. A 2D Transfrom node is also used to place the logo in the upper left corrner of the render. The display of the logo occurs by viewing the Output AOV node network in the Render Viewport window.



Sample Pos. to UV



Figure 1: Projecting a Check texture using the Sample Pos. to UV node as the projection type



Sample Pos. To UV



Figure 2: The resulting render from figure 1