Main Content

Specify Rendering Techniques

You can change the rendering of the scene through the controls on the navigation panel or options on the rendering menu. Thevrpendandvrplanetsexamples are used to show the viewer functionality.

你可以把现场的反锯齿或off. Antialiasing applies to the textures of a world. Antialiasing is a technique that attempts to smooth the appearance of jagged lines. These jagged lines are the result of a printer or monitor not having enough resolution to represent a line smoothly. WhenAntialiasingis on, the jagged lines are surrounded by shades of gray or color. Therefore, the lines appear smoother rather than jagged.

The following figure depicts thevrplanetsexample View on Earth viewpoint withAntialiasingon. To display the effects of antialiasing better, turnHeadlighton. You can turn antialiasing on or off to observe the differences.

You can turn the camera headlight and the lighting of the scene on or off. WhenHeadlightis off, the camera does not emit light. Therefore, the scene can appear dark. For example, the following figure depicts thevrpendexample withHeadlighton.

The scene looks darker whenHeadlightis set to off.

Note

It is helpful to define enough lighting within the virtual scene so that it is lit regardless of theHeadlightsetting.

WhenLightingis off, the virtual world appears as if lit in all directions. The金宝app®3D Animation™viewer does not compute and render all the lighting effects at the surfaces of the objects. Shadows disappear and the scene loses some of its 3-D quality. The following is thevrpendexample withLightingoff.

IfTransparencyis off, transparent objects are rendered as solid objects.

TurningWireframeon changes the scene objects from solid to wireframe rendering. The following is thevrpendexample withWireframeon.

If theTexturesoption is on, objects have texture in the virtual scene. Here is thevrplanetsexample withTextureson:

IfTexturesis off, objects do not have texture in the virtual scene. The following is thevrplanetsexample withTexturesoff.

You can specify the maximum size of a texture used in rendering thevrfigureobject. This option gives you a list of texture sizes to choose from. See thevrfigureMaxTextureSizeproperty for further details.

Turn Off Rendering for Performance

You can use theRenderingproperty for either avrfigureorvr.canvasobject to turn off rendering for the object in theSimulink 3D AnimationViewer. For example, if your code does batch operations on a virtual figure, you can turn off rendering during that processing and then turn it back on after the processing.

You can also use the newSimulink 3D Animation>World>Default Figure Renderingpreference (DefaultFigureRendering) to specify whether to render a newly created virtual figure or canvas object.

See Also

Functions

Related Examples

More About