The UVProject node sets the uv coordinates for the object, allowing you to project a texture image onto the object. If the object already has uv coordinates, this node replaces them.
1. | Select 3D > Modify > UVProject to insert a UVProject node anywhere after the 3D object you want to modify. |
2. | Attach a Viewer to the node to see your changes. |
3. | In the node’s controls, use the display dropdown menu to select how you want to view your object in the Viewer while making changes to it. |
4. | Connect an Axis or a Camera node to the UVProject node’s axis/cam input. If you connect an Axis node, project the texture UV coordinates onto the object using the axis transform values (that is, translation, rotation, scale, etc.). If you connect a Camera node, do a similar projection as with the axis but also use the camera lens information, such as the aperture. |
5. | Adjust the following parameters: |
• From the projection dropdown menu, select the projection type. Usually, it’s best to select a type that’s close to the object’s surface shape. For example, if your object is a sphere, like a football or a planet, select spherical.
• From the plane dropdown menu, select the projection direction: XY, YZ, or ZX to project the texture image along the z, x, or y axis. This dropdown menu is only available if you selected planar as the projection type.
• From the project on dropdown menu, select both, front or back depending on whether you want to project the texture on the front face of the object, its back face or both. The front face of an object is the one facing the camera and similarly the back face is the one furthest away from the camera.
• Check view frustum culling if you want the UVProject node to affect only the vertices inside the camera view frustum. Any vertices outside the view frustum are not affected and they still keep their original UV coordinates. Uncheck if you want the node to affect all vertices.
• To mirror the texture UV coordinates in the horizontal direction, check invert u. To mirror them in the vertical direction, check invert v.
• To scale (stretch or squash) the texture UV coordinates in the horizontal direction, adjust the u scale slider. To scale them in the vertical direction, adjust the v scale slider. The higher the value, the more the texture is stretched.
• To change the name of the attribute that’s used as the vertex’s UV coordinates to find the image pixel, enter a name in the attrib name field.