Page MenuHomeAnticto

Mutable for Unreal Engine 4 | Texture Project Node
Updated 467 Days AgoPublic

imagen.png (230×246 px, 23 KB)


Function

Projects one or more textures on a mesh. Transforms a flat image to a layed out version usable as texture for the input mesh. This node does not modify the mesh section or material.


Use Cases

Put a logo customized by the player on a jacket back.
Give the character a tatoo that can be placed anywhere, but no matter how the player moves it, won't affect the eyes or the nails.


Node Properties

imagen.png (132×319 px, 8 KB)
Layout: Index of the mesh layout to use for the projection operation. Beginning at 0, and should be left as 0 for meshes with a single layout.
Textures: Amount of textures that the node offers to modify using the same projection parameters. Among other uses, it's handy for modifying flat color projectors and the masks that define their shape in a single node. Having more channels performs better than having multiple texture projections.


Input Pins

Image (index): Image to be projected on top of the mesh. As many input image pins as textures defined in the node properties.
Mesh: Mesh that will be used in the projection.
Mesh Mask: Texture that defines what part of the mesh can receive the projector. White for full effect, black for no effect, and grayscale for partial projector aplication. This is not intended as a projector shape, but as to detail where the projector can apply. As an example, it would be useful to leave the visor of a helmet black and the hard surface white, to allow the player to project on any solid surface of the helmet but not obstruct the character visual field.
Fade Start Angle: Maximum angle in degrees that a face can have and still receive the full effect of a planar projection. Angles larger than this will receive a faded effect up to the Fade End Angle defined below. The angle is calculated from the face normal to the projector normal. It has no effect on projector types other than planar.
Fade End Angle: Maximum angle in degrees that a face can have and still receive any effect of a planar projection. Angles larger than this will receive no projection at all. The angle is calculated from the face normal to the projector normal. It has no effect on projector types other than planar.
Projector: Projector input, defines the location, orientation and size of the projector. The image will be stretched and rotated to fit this projector, and the projector will have no impact on the texture outside this bounds. It's important that the projector intersects the mesh to get a projection effect.


Output Pins

Image (index): Result texture from projecting the input image on top of the mesh, according to the layout selected in the node properties, and limiting its printable area as defined by the mesh mask. This contains only . As many output image pins as textures defined in the node properties, each output index corresponding to the same index in the input.


Examples

Illustration of fade angles, with texture results at the bottom. Left side has start at 25º and end at 45º. Right side has start at 45º and end at 90º. The red planar projector is directly in front, covers the whole body, but only the faces that have a normal with an angle to the projector normal lower than the start angle receive the full effect of the projector. And those faces with an angle higher than the end angle receive no projection at all, including back faces.

Angl.png (830×759 px, 372 KB)


Illustration of mask input pin, the texture used as mask on the right. The red projector is directly in front, covers the whole body, and has large fade angles that allow it to paint faces in all directions. but can only affect the hands and forearm, as defined in the mask.

Msk.png (545×702 px, 129 KB)

Last Author
ricard
Last Edited
Jun 16 2020, 9:17 AM

Event Timeline

ricard edited the content of this document. (Show Details)
ricard edited the content of this document. (Show Details)
ricard changed the visibility from "All Users" to "Public (No Login Required)".Jun 10 2020, 4:40 PM