Graphic

Visual marker with graphic properties

Library

Body Elements

Description

This block represents a simple 3-D marker with shape, color, and opacity. Shapes include sphere, cube, and frame. A color palette provides a selection of predefined colors. The marker has no inertial properties and therefore does not affect model dynamics. The figure shows the different markers that you can select.

Dialog Box and Parameters

Shape

Geometric shape of the graphic marker. Options include Cube, Frame, and Sphere. The default setting is Sphere.

Size

Absolute size of the graphic marker in pixels. Changing the zoom level in the model visualization pane has no effect on the apparent marker size. The default value is 10.

Visual Properties

Color specification type. Options include Simple and Advanced. Select Simple to specify the solid color and opacity. Select Advanced to add lighting effects such as specular reflections and light emission.

Simple: Color

[R G B] color vector. This vector contains the red (R), green (G), and blue (B) contents of the solid color on a scale of 0–1. The default vector is [0.5 0.5 0.5]. A color picker provides an alternative means of defining the solid color.

Simple: Opacity

Degree to which the solid obscures model components positioned behind it. The opacity value can range from 0 to 1. An opacity of 0 makes the solid completely translucent, while an opacity of 1 makes the solid completely opaque. The default value is 1.0.

Advanced: Diffuse Color

[R G B] or [R G B A] diffuse color vector. The diffuse color is the apparent color of the solid under direct white light. The color vector contains the red (R), green (G), and blue (B) contents of the diffuse color on a scale of 0–1. It can include an optional opacity value (A), also on a scale of 0–1. The default vector is [0.5 0.5 0.5].

Advanced: Specular Color

[R G B] or [R G B A] specular color vector. The specular color is the color of the glossy highlights on the solid surface. The color vector contains the red (R), green (G), and blue (B) contents of the specular color on a scale of 0–1. It can include an optional opacity value (A), also on a scale of 0–1. The default vector is [0.5 0.5 0.5 1.0].

Advanced: Ambient Color

[R G B] or [R G B A] ambient color vector. The ambient color is the apparent color of the solid under indirect ambient light. The color vector contains the red (R), green (G), and blue (B) contents of the ambient color on a scale of 0–1. It can include an optional opacity value (A), also on a scale of 0–1. The default vector is [0.15 0.15 0.15 1.0].

Advanced: Emissive Color

[R G B] or [R G B A] emissive color vector. The emissive color is the color of light generated by the solid. The color vector contains the red (R), green (G), and blue (B) contents of the emissive color on a scale of 0–1. It can include an optional opacity value (A), also on a scale of 0–1. The default vector is [0.0 0.0 0.0 1.0].

Advanced: Shininess

Sharpness of the specular highlights on the solid surface. The shininess value can range from 0 to 128. A low shininess value produces large specular highlights with a gradual falloff in intensity. A large shininess value produces small specular highlights with a sharp falloff in intensity. The default value is 75.

Ports

This block contains frame port R, representing the graphic reference frame.

See Also

|

Was this topic helpful?