Render Lines

From RealMotion Wiki

Image Processing/Process/Render Lines

Renders lines based on a vector of points and a vector of colors ​

Description

The box Render Lines takes a vector of 2D points and a vector of colors to render lines on top of a texture.

The vector of 2D points must indicate each line first and last point.

The vector of color must match the number of lines that will be drawn.

General Usecase : The box Render Lines is often used with the Voronoi box, which already provides the points and color necessary for the box to work.

Inputs

Line Colors Float4 Vector Receives a vector of color values. The size of the vector must match the number of lines for the box Render Lines to work.
Line Points 2D Points Receives a vector of 2D points as coordinates.
Texture 2D Texture Receives the background texture on which the lines will be drawn.

Outputs

Texture 2D Render Target Outputs the texture with all the rendered lines.

Parameters

Line Settings

Line Width Float Sets the line width.

Format

|}

Channel Settings

Set Format Toggle Allows the box to change the format of the texture outputted. This creates a new memory allocation for the new texture.
Format String Changes the format of the outputted matrix.
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

Set Resolution Toggle Allows the box to change the resolution of the outputted texture. Once enabled, this creates a new memory allocation for the texture created.
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.

Alpha

Set Alpha Toggle Allows the box to change the alpha of the texture outputted.
Alpha Float Sets the alpha between 0 and 1.

See Also

Boxes related

Texture Buffer, Voronoi, Join, Float2, ​​

Version Information

Current documentation version: 2.1.1. ​ ​