MVG Nodes
MVG Nodes can be created in CGI Studio SceneComposer via the Toolbox. Simply drag and drop the desired MVG Node into the Scene Editor or Scene Tree Panel.
The following MVG Nodes are available:
-
MVG Arc Node
-
MVG Ellipse Node
-
MVG Path Node
-
MVG Rect Node

You can see an application of MVG nodes in Scene Composer's 2D Basic sample.
Configure MVG Nodes
An MVG node is a RenderNode2D and therefore it has the same properties that can be configured in the properties panel:
- General. Name, Full Name, Description...
- 2D Render Node: Render Order Rank...
- Transformation: Position, Pivot Point, Pivot Offset...
- Asset: Id, Symbolic Name...
- Item: Scope Mask, Alpha Value...
- Layout: Vertical Alignment, Horizontal Alignment, Size...
Further details like the visual appearance of MVG nodes can be configured in the node's effect. Each type of MVG node has its appropriate effect:
| MVG Node |
MVG Brush |
| MVG Arc Node | MVGArcBrush |
| MVG Ellipse Node | MVGEllipseBrush |
| MVG Path Node | MVGPathBrush |
| MVG Rect Node | MVGRectBrush |
Select the MVG Node in the Scene Tree and select the attached MVG effect in the right side of the Scene Tree to view its properties in the properties panel.

MVG Arc Node - MVGArcBrush
Can be used to render an arc.
The properties of the MVG Arc Node are those of a regular RenderNode2D. For the attached effect MVGArcBrush, the following properties can be configured:

| Filter |
Filter for rendering (choose between BilinearFilter and NearestFilter). |
| Line Width |
Width of the rendered line in pixels. |
| Stroke Color |
Color of the rendered line. |
| Size |
Vertical (X) and horizontal (Y) size of the arc to be rendered. |
| Angle Start |
The angle of the arc's starting point. |
| Angle End |
The angle of the arc's end point. |
The arcs starting and end point have to be entered in degrees. Please also see the sketch below.

MVG Ellipse Node - MVGEllipseBrush
Can be used to render an ellipse.
The properties of the MVG Ellipse Node are those of a regular RenderNode2dD. For the attached effect MVGEllipseBrush, the following properties can be configured:

| Filter |
Filter for rendering (choose between BilinearFilter and NearestFilter). |
| Line Width |
Width of the rendered line in pixels. |
| Stroke Color |
Color of the rendered line. |
| Size |
Vertical (X) and horizontal (Y) size of the arc to be rendered. |
| Angle Start |
The angle of the ellipse's starting point. |
| Angle End |
The angle of the ellipse's end point. |
| FillColor |
Fill color of the ellipse. |
| PaintMode |
Configures if the ellipse will be rendered with outline and filling or with either of those (choose between Both, Fill and Stroke). |
MVG Path Node - MVGPathBrush
Can be used to render paths with a combination of instructions.
The properties of the MVG Path Node are those of a regular RenderNode2dD. For the attached effect MVGPathBrush, the following properties can be configured:

| Filter |
Filter for rendering (choose between BilinearFilter and NearestFilter). | ||||||||||||||||||||||||||||||||
| LineWidth |
Width of the rendered line in pixels. | ||||||||||||||||||||||||||||||||
| Stroke Color |
Color of the rendered line. | ||||||||||||||||||||||||||||||||
| FillColor |
Fill color of the path. | ||||||||||||||||||||||||||||||||
| PaintMode |
Configures if the path will be rendered with outline and filling or with either of those (choose between Both, Fill and Stroke). | ||||||||||||||||||||||||||||||||
| Segments |
Defines segments.
|
||||||||||||||||||||||||||||||||
| Data | Defines Data according to the specified Segment. |
MVG Rect Node - MVGRectBrush
Can be used to render a rect.
The properties of the MVG Rect Node are those of a regular RenderNode2dD. For the attached MVGRectBrush, the following properties can be configured:

| Filter |
Filter for rendering (choose between BilinearFilter and NearestFilter). |
| LineWidth |
Width of the rendered line in pixels. |
| Stroke Color |
Color of the rendered line. |
| Size |
Vertical (X) and horizontal (Y) size of the arc to be rendered |
| TopLeftRadius |
Radius of the top left corner. |
| TopRightRadius |
Radius of the top right corner. |
| BottomLeftRadius |
Radius of the bottom left corner. |
| BottomRightRadius |
Radius of the bottom right corner. |
| FillColor |
Fill color of the path. |
| PaintMode |
Configures if the rectangle will be rendered with outline and filling or with either of those (choose between Both, Fill and Stroke). |