Documentation Center

  • Trials
  • Product Updates

Graphic

Visual marker with graphic properties

Library

Body Elements

Description

This block represents a 3-D graphic marker with simple shape, color, and opacity. Shapes include sphere, cube, and frame. A color palette provides a selection of predefined colors. The graphic has no inertial properties and it does not affect model dynamics.

Dialog Box and Parameters

The dialog box contains one active area, Properties.

Shape

Select a marker shape to represent block in Mechanics Explorer. Options include Sphere, Cube, and Frame. The default is Sphere.

Size

Enter the marker absolute size in screen pixels The default is 10.

Visual Properties

Select the method used to specify the color and opacity of the solid. For the most realistic graphical appearance, select Advanced. The default method is Simple.

MethodParameters
SimpleColor and opacity.
AdvancedColor (ambient, diffuse, specular, and emissive) and shininess.

Simple: Color

Enter the color RGB vector. This is a three-element vector with the red, green, and blue components of a color. Values must lie in the range 0–1. You can also select a color directly from the color palette.

 Color Palette

Simple: Opacity

Enter the solid opacity. This is a measure of how much light the material blocks. Values must lie in the range 0–1.

Advanced: Diffuse Color

Diffuse color RGBA vector. This is a four-element vector with the red, green, blue, and opacity color components. Values must lie in the range 0–1.

The diffuse color is the apparent color of a rough surface exposed to direct white light. Light scatters equally in all directions in accordance with Lambert's law, causing the intensity and color of the scattered light to appear the same from all angles. The diffuse color normally provides the dominant contribution to the color of a solid surface. The default diffuse color, given in the form of a three element vector, is [0.5 0.5 0.5].

Advanced: Specular Color

Diffuse color RGBA vector. This is a four-element vector with the red, green, blue, and opacity color components. Values must lie in the range 0–1.

The specular color is the apparent color of the glossy highlights arising from a solid surface exposed to direct light. The size of the specular highlights depends on the value of the Shininess parameter. The intensity of the specular color is not uniform and has a strong dependence on the viewing angle. The default specular color is [0.5 0.5 0.5 1.0].

Advanced: Ambient Color

Diffuse color RGBA vector. This is a four-element vector with the red, green, blue, and opacity color components. Values must lie in the range 0–1.

The ambient color is the apparent color of a solid surface exposed only to indirect light. The default ambient color is [0.15 0.15 0.15 1.0].

Advanced: Emissive Color

Diffuse color RGBA vector. This is a four-element vector with the red, green, blue, and opacity color components. Values must lie in the range 0–1.

The emissive color is the apparent color of direct light produced by the solid surface. The default emissive color is [0.0 0.0 0.0 1.0].

Advanced: Shininess

Scalar quantity that encodes the size and rate of decay of the specular highlights arising from the solid surface. The scalar value must fall in the range 0–128.

A small shininess value corresponds to a specular highlight with large area and gradual falloff in the highlight intensity. A large shininess value corresponds to a specular highlight with small area and sharp falloff in the highlight intensity. The default value is 75.

Ports

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

See Also

|

Was this topic helpful?