From RealMotion Wiki


Gives the user the possibility to paint in a texture using the mouse. ​


The Paint box generates a texture in order to simulate a user interaction with the system. The result will be based on the brush shape and size.

General Use Case: The Paint box is widely used in graph creation to artificially generate a detected user. The box may also be used to draw a texture over another while dynamically changing position.


Brush Size Float Overrides the Brush Size.
Brush Texture 2D Texture Overrides the Brush Texture.
Pointers Pointer Event Vector Receives the pointer data.
Points 2D Points, Float2 Vector, Float2 Receives points as coordinates.


Painted Points 2D Points Outputs the coordinates of the painted points.
Texture 2D Render Target Outputs the created texture.




Color Float4 Sets the color of the brush. Note than the color is multiplied by the brush texture.
Enable Input Pin: Brush Size Toggle Enables the input of the brush size multiplier.
Brush Size Float Sets the size of the brush in Normalized Screen Coordinates.
Enable Input Pin: Brush Texture Toggle Enables the input of the brush texture.
Brush Uri Allows to change the brush used by the Paint box.


Input Output

Input Source String Selects the input source of the Paint box. The System Input uses the given coordinates by the system, like the mouse position. The Pointers Source enables the Pointers Input Pin to receive coordinates from the Pointers box. The Points Source enables the Points Input Pin to receive coordinates from points.
Enable Output Pin: Painted Points Toggle Enables the Painted Points Output Pin.

Gaps Fill

Distance Threshold Float Sets the minimal distance between two coordinates in Normalized Screen Coordinates. Activates the Gap Fill Iterations.
Gap Fill Iterations Int Sets the number of interpolations between two coordinates.
Enable Idle Timeout Toggle Activates the Idle Timeout.
Idle Timeout Float Sets the maximum time between the reception of two coordinates to trigger the Gap Fill Iterations.



Channel Settings

Format String Sets the format of the outputted texture. RGBA 8 bits is the common format. RGBA 16 bits allows negative vector calculation and is mostly used for simulation. RGBA 32 bits allows high precision but may negatively affect the FPS and the Grayscale has only the Red component.
Format Components String Sets the Components used for the outputted texture.
Format Component Bit Depth String Sets the Bit Depth of the outputted texture. 8 bits is the common format, 16 bits allow negative vector calculation and is mostly used for simulation, 32 bits allow high precision but may negatively affect the FPS.
Format Component Type String Sets the pixels value type depending on the Bit Depth.

Canvas Settings

Resolution Mode String Sets the Resolution Mode. Canvas uses the project configuration settings, Custom uses local setting resolution not shared with other box and Project Aspect Ratio uses the project aspect ratio and proportionally scales the height and width. The parameter chooses the reference Canvas setting the resolution of the outputted texture.
Canvas 2D ResolutionRef Chooses the reference Canvas and sets the resolution of the outputted texture.
Maximum Resolution Int Sets the maximal resolution of the X-axis and calculates the resolution of the Y-axis based on the aspect ratio of the Content Canvas.
Lock Aspect Ratio Toggle Locks the Aspect Ratio for Custom resolution.
Aspect Ratio 2D ResolutionRef Chooses the reference Canvas for the aspect ratio.
Size XY Int2 Sets the size in pixels of the outputted texture.

See Also

Boxes related

Texture, Texture Buffer, Pointer Device, Format, Accumulate, Point Mapping, ​​

Version Information

Current documentation version: 2.1.2. ​ ​