simscape.multibody.AdvancedVisualProperties Class
Namespace: simscape.multibody
Superclasses: simscape.multibody.VisualProperties
Description
Use an object of the simscape.multibody.AdvancedVisualProperties
class to
specify advanced visual properties, including shininess and ambient, diffuse, emissive, and
specular light on the rendered object. You can specify each of the four color properties by
using a 1-by-3 or 3-by-1 vector that specifies the red, green, and blue color components. You
can also add an optional fourth element to the RGB vector to specify the opacity of each
color.
Each element of the RGB vector of the AmbientColor
,
DiffuseColor
, and SpecularColor
properties
specifies the reflectivity of the corresponding color component. For example, the first
element of the SpecularColor
property gives the proportion of red light
in the specular reflection on the rendered object surface. The
EmissiveColor
property specifies the color of the light emitted by the
rendered object itself.
The Shininess
property specifies the size and sharpness of a specular
highlight. A rendered object with a small value for the Shininess
property has duller surface and produces a big and fuzzy specular highlight. In contrast, an
object with a large value for the Shininess
property has a shiny surface
that produces a small and sharp specular highlight.
Class Attributes
Sealed | true |
ConstructOnLoad | true |
RestrictsSubclassing | true |
For information on class attributes, see Class Attributes.
Creation
Description
creates an advanced visual properties object with default values.avis
= simscape.multibody.AdvancedVisualProperties
Properties
Version History
Introduced in R2022a