Rendering Options

The overall appearance of a rendered scene, such as whether or not texturing is used, wireframe vs. solidshading, lighting, etc, may be controlled at runtime through appropriate parameter settings. In general, rendering options are set and retrieved using the appropriate tvGetXXX()/tvSetXXX() functions described in the Initialization/Control of Visualization Threads section.

A particular rendering option to be set/retrieved is referenced by name, using the enum type tvVariable. See that type description for complete details, but a sampling of the types of rendering options available is:

TV_SHOW_LIGHTING, /* Boolean => showLighting */
TV_SHOW_HEADS_UP, /* Boolean => showHeadsUp */
TV_SHOW_WIREFRAME, /* Boolean => showWireframe */
TV_SHOW_TEXTURES, /* Boolean => showTextures */
TV_SHOW_MODELS, /* Boolean => showModels */
TV_SHOW_SKY, /* Boolean => showSky */
TV_SHOW_GROUND, /* Boolean => showGround */
TV_SHOW_DATASETS, /* Boolean => showDatasets */
TV_SHOW_FRUSTUMS, /* Boolean => showFrustums */
TV_SHOW_TILES, /* Boolean => showTiles */
TV_SHOW_PATHS, /* Boolean => showPaths */
TV_SHOW_LOGO, /* Boolean => showLogo */
For example, to turn on rendering of the sky in a scene, one would call
tvSetBoolean(tvBasePtr, TV_SHOW_SKY, TRUE);

Back to API

Rick Brownrigg
Last modified: Fri Jun 30 10:15:26 CDT 2000