Elevate Up
Node
Elevation Grid • Attributes
Description
An ElevationGrid, laying on the ground, with an alternating per-vertex height along the Y-axis.
VRIGNETTE Notes
ElevationGrids can be used to create shapes ranging from rolling hills to warped faces as long as the shape you need is rectangular.
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D Elevation Grid Example"> </worldInfo> <navigationInfo headlight="true"> </navigationInfo> <viewpoint position="6.0 1.0 20.0"> </viewpoint> <!-- Light --> <pointLight location="-15.0 5.0 0.0" color="1.0 0.9 0.9" intensity="0.75" radius="25.0"> </pointLight> <transform rotation="1 0 0 0.196"> <transform rotation="0 1 0 0.392"> <shape> <appearance> <material diffuseColor="1.0 1.0 1.0"> </material> </appearance> <elevationGrid xDimension="5" zDimension="5" xSpacing="2.0" zSpacing="2.0" solid="false" height="2.0 0.0 1.0 0.0 2.0 2.0 0.0 1.0 0.0 2.0 2.0 0.0 1.0 0.0 2.0 2.0 0.0 1.0 0.0 2.0 2.0 0.0 1.0 0.0 2.0" creaseAngle="0"> </elevationGrid> </shape> </transform> </transform> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>