Terrain
Dynamic Terrain Rendering Node, Interface _will_ changed int future.
Inheritance
Code
XML encoding
<Terrain heightDataUrl='' textureUrl='' heightDataScale='1.0' heightDataOffset='0.0' sampleDistance='1.0' levelSize='255' enableFrustumCulling='TRUE' useGpuRenderer='FALSE' useVboExtension='TRUE' enableSmoothTransition='TRUE' showBoundingBoxes='FALSE' showTransitionRegions='FALSE' enableUpdate='TRUE' resolution='1' multiResolutionLevel='1' invalidateVolume='FALSE' normalUpdateMode='nice' cacheMode='auto' optimizationMode='auto' logFeature='' />
Classic encoding
Terrain { heightDataUrl [""] textureUrl [""] heightDataScale 1.0 heightDataOffset 0.0 sampleDistance 1.0 levelSize 255 enableFrustumCulling TRUE useGpuRenderer FALSE useVboExtension TRUE enableSmoothTransition TRUE showBoundingBoxes FALSE showTransitionRegions FALSE enableUpdate TRUE resolution 1 multiResolutionLevel 1 invalidateVolume FALSE normalUpdateMode "nice" cacheMode "auto" optimizationMode ["auto"] logFeature [""] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
![]() |
cacheMode | SFString | initializeOnly | auto | auto; dlist; vbo; off | controls the creation of geo cache objects; auto is vbo or dlist for dynamic objects |
![]() |
enableFrustumCulling | SFBool | inputOutput | TRUE | enables the frustum culling mechanism. | |
![]() |
enableSmoothTransition | SFBool | inputOutput | TRUE | enable/disable the smooth transition between different levels of detail | |
![]() |
enableUpdate | SFBool | inputOutput | TRUE | enable/disable view dependent update of the geometry. | |
![]() |
heightDataOffset | SFFloat | inputOutput | 0.0 | offset of the height data (y-value). | |
![]() |
heightDataScale | SFFloat | inputOutput | 1.0 | scaling of the height data (y-value) | |
![]() |
heightDataUrl | MFString | initializeOnly | URL to a grayscale Image used as Heightmap | ||
![]() |
invalidateVolume | SFBool | inputOutput | FALSE | set volume invalid | |
![]() |
levelSize | SFInt32 | inputOutput | 255 | Defines the number of Samples in a terrain level. Must be a power of 2 minus 1. | |
![]() |
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | |
![]() |
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | |
![]() |
multiResolutionLevel | SFInt32 | initializeOnly | 1 | resolution level in progressive mesh | |
![]() |
normalUpdateMode | SFString | initializeOnly | nice | none; fast; nice | force update of normals; nice update is with creaseAngle, fast is without |
![]() |
optimizationMode | MFString | inputOutput | auto | auto; all, none, sharedVertex; stripFan; vertexResort; reduceIndexSize; singleIndex | optimization mode settings; used leading +/- to switch modes on and off |
![]() |
resolution | SFFloat | inputOutput | 1 | factor for subdivision of mesh | |
![]() |
sampleDistance | SFFloat | inputOutput | 1.0 | distance between two height samples | |
![]() |
showBoundingBoxes | SFBool | inputOutput | FALSE | set this to TRUE, to see the bounding boxes used for frustum culling | |
![]() |
showTransitionRegions | SFBool | inputOutput | FALSE | enable/disable the display of the transition regions. This is only for testing purposes. | |
![]() |
textureUrl | MFString | inputOutput | URL to a colorimage used as a texture map for the terrain | ||
![]() |
useGpuRenderer | SFBool | inputOutput | FALSE | Set tu TRUE to use the GPU Version of the Renderer (works only, if GLSL Programs are supported) or FALSE to use the CPU Version. | |
![]() |
useVboExtension | SFBool | inputOutput | TRUE | enable/disable the usage of Vertex Buffers. |