Draw Surface

From RealMotion Wiki

Surface Mapping/Draw Surface

Draws a texture into a specified zone of another texture. ​

Description

The Draw Surface box draws an input texture over another in a specified zone.

General Use Case: The Draw Surface box is useful to assemble multiple pipeline sections into a final render. The input texture can also be blended over the other.

Inputs

Bottom-Right Float2 Receives the Bottom-Right Corner of the surface.
Center Float2 Receives the center of the surface.
Opacity Float Receives the opacity level of the drawn surface.
Render 2D Texture Receives the texture to draw on.
Size Float2 Receives the size of the surface.
Surface Zone Receives the cropping surface and overrides the Surface parameter.
Texture 2D Texture Receives the texture to draw into the specified surface.
Top-Left Float2 Receives the Top-Left Corner of the surface.

Outputs

Texture 2D Render Target Outputs the blended texture.

Parameters

Inversion

Rotate String Rotates clockwise the texture.
Mirror X Toggle Inverts the image horizontally.
Mirror Y Toggle Inverts the image vertically.

Surface Control

Creation Mode String Selects the surface creation mode.

Config Surface

Surface Toggle Enables the Surface Input Pin.
Surface Zone Sets the Surface to use for drawing. The Surface is created and modified in the Surface Editor.

Custom Centered

Center Toggle Enables the Center Input Pin to override the Center Corner parameter.
Center Float2 Sets the center of the surface.
Size Toggle Enables the Size Input Pin to override the Size parameter.
Size Float2 Sets the size of the surface.
Lock Source Aspect Ratio Toggle Locks the aspect ratio of the drawn surface to avoid deformation.

Custom Corners

Top-Left Toggle Enables the Top-Left Input Pin to override the Top-Left Corner parameter.
Top-Left Float2 Sets the top-left corner of the surface.
Bottom-Right Toggle Enables the Bottom-Right Input Pin to override the Bottom-Right Corner parameter.
Bottom-Right Float2 Sets the bottom-right corner of the surface.

Blend

Opacity Toggle Enables the Opacity Input Pin.
Enable Blend Toggle Enables the Blend function.
Blend Mode String Sets the blend mode used to draw the texture.
Source Blend Factor String Sets the blend factor for the RGB components of all Source textures.
Destination Blend Factor String Sets the blend factor for the RGB components of all Destination texture.
Blend Operation String Sets the operation used for the blend.
Alpha Source Blend Factor String Sets the blend factor for the Alpha of all Source textures.
Alpha Destination Blend Factor String Sets the blend factor for the Alpha of the Destination texture.
Alpha Blend Operation String Sets the operation used for the blend of the alpha.

See Also

Boxes related

Warp Grid, Blend, Crop, Add, Point Mapping, Surface, Surface Components, Surface Mapping, Surface Test, ​​

Version Information

Current documentation version: 2.1.2. ​ ​