Terrain Sensor
Here's a vrml custom terrain sensor using a PlaneSensor in conjunction with a TouchSensor. This is the makings of a very simple terrain editing vrml script.
Click here to download the wrl file: terrain_sensor.wrl. You can also launch this file in 3D.
We can take it a step farther by actually doing something with the values. In this example, moving your mouse over the terrain moves a ball to an area on the terrain. Mouse drag the ball up or down to watch the height field change dynamically. All done in vrmlscript, yahoo i say!
Click here to download the wrl file: terrain_edit.wrl / 3D
|