wxGUI.Nviz.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <h2>DESCRIPTION</h2>
  2. <b>Note:</b> <em>wxGUI Nviz extension is currently under development. Not
  3. all functionality is implemented.</em>
  4. <p>
  5. <b>wxGUI Nviz extension</b> allows users to realistically render multiple
  6. <em>surfaces</em> (raster data) in a 3D space, optionally using
  7. thematic coloring, draping 2D <em>vector</em> data over the surfaces,
  8. displaying 3D vector data in the space, and visualization
  9. of <em>volume</em> data (3D raster data).
  10. <p>
  11. To start the wxGUI Nviz extension, choose '3D view' from the map toolbar.
  12. <p>
  13. Nviz is emphasized on the ease and speed of viewer positioning and
  14. provided flexibility for using a wide range of data. A low resolution
  15. surface or wire grid (optional) provides real-time viewer positioning
  16. capabilities. Coarse and fine resolution controls allow the user to
  17. further refine drawing speed and detail as needed. Continuous scaling
  18. of elevation provides the ability to use various data types for the
  19. vertical dimension.
  20. <p>
  21. For each session of Nviz, you might want the same set of 2D/3D raster
  22. and vector data, view parameters, or other attributes. For consistency
  23. between sessions, you can store this information in
  24. the <em>workspace</em> file (gxw). Workspace file contains information
  25. to restore "state" of the system in 2D and if Nviz is enabled also in
  26. the 3D display mode.
  27. <h2>Data visualization</h2>
  28. <h3>Surfaces</h3>
  29. Each active raster map layer from the current layer tree is displayed
  30. as surface in the 3D space. Separate raster data or constants can be
  31. used for various attributes of the surface:
  32. <ul>
  33. <li><b>topography</b> - raster map or constant values used as elevation (z
  34. values) for the current surface.</li>
  35. <li><b>color</b> - raster map or constant color to drape over the current
  36. surface. This option is useful for draping imagery such as aerial
  37. photography over a DEM.</li>
  38. <li><b>mask</b> - raster map that controls the areas displayed from
  39. the current surface.</li>
  40. <li><b>transparency</b> - raster map or constant value that controls
  41. the transparency of the current surface. The default is completely
  42. opaque. Range from 0 (opaque) to 255 (transparent).</li>
  43. <li><b>shininess</b> - raster map or constant value that controls
  44. the shininess (reflectivity) of the current surface. Range from 0 to
  45. 255.</li>
  46. <li><b>emission</b> - raster map or constant value that controls the
  47. light emitted from the current surface. Range from 0 to 255.</li>
  48. </ul>
  49. <h3>Vector data</h3>
  50. 2D vector data can be draped on the selected surfaces with various
  51. markers to represent point data; you can use attribute of vector
  52. features to determine size, color, shape of glyph.
  53. 3D vector data including volumes (closed group of faces with one
  54. kernel inside) is also supported.
  55. <h3>Volumes</h3>
  56. Volumes can be displayed either as isosurfaces or slices. Various
  57. attributes of the isosurface can be defined, similarly to surface
  58. attributes:
  59. <ul>
  60. <li><b>level</b> - reference isosurface level (height in map
  61. units).</li>
  62. <li><b>color</b> - raster map or constant color to drape over the
  63. current volume.</li>
  64. <li><b>mask</b> - raster map that controls the areas displayed from
  65. the current volume.</li>
  66. <li><b>transparency</b> - raster map or constant value that controls
  67. the transparency of the current volume. The default is completely
  68. opaque. Range from 0 (opaque) to 255 (transparent).</li>
  69. <li><b>shininess</b> - raster map or constant value that controls
  70. the shininess (reflectivity) of the current volume. Range from 0 to
  71. 255.</li>
  72. <li><b>emission</b> - raster map or constant value that controls the
  73. light emitted from the current volume. Range from 0 to 255.</li>
  74. </ul>
  75. <h2>Nviz Toolbox Window</h2>
  76. The toolbox window has currently three tabs:
  77. <ul>
  78. <li>View<li>
  79. <li>Layer properties<li>
  80. <li>Settings</li>
  81. </ul>
  82. <h3>View</h3>
  83. You can use this panel to set the <em>position, direction, and
  84. perspective</em> of the view. The position box shows a puck with a
  85. direction line pointing to the center. The direction line indicates
  86. the look direction (azimuth). You click and drag the puck to change
  87. the current eye position. The box annotations are North, South,
  88. East, and West. You can also set exact position using <em>Look
  89. at</em> choice control.
  90. <center>
  91. <br><img src="wxGUI_nviz_tools_view.jpg" border="1"><br><br>
  92. </center>
  93. You can adjust the viewer's height above the scene, angle of view or
  94. twist value to rotate the scene about the horizontal axis. An angle of
  95. 0 is flat. The scene rotates between -90 and 90 degrees.
  96. <p>
  97. You can also adjusts the vertical exaggeration of the surface. As an
  98. example, if the easting and northing are in meters and the elevation
  99. in feet, a vertical exaggeration of 0.305 would produce a true
  100. (unexaggerated) surface.
  101. <p>
  102. <em>Reset</em> returns all current settings to their default values.
  103. <h3>Surface properties</h3>
  104. This panel controls how loaded surfaces are drawn. The top half of the
  105. panel has options to set, unset or modify attributes of the current
  106. surface.The bottom half has drawing style options, masking or changing
  107. surface position in the space.
  108. <center>
  109. <br><img src="wxGUI_nviz_tools_surface.jpg" border="1"><br><br>
  110. </center>
  111. Surface can be drawn as a wire mesh or using filled polygons (most
  112. realistic). You can set draw <b>mode</b> to <em>coarse</em> (fast
  113. display mode), <em>fine</em> (draws surface as filled polygons with
  114. fine resolution) or <em>both</em> (which combines coarse and fine
  115. mode). Additionally set coarse <b>style</b> to <em>wire</em> to draw
  116. the surface as wire mesh (you can also choose color of the
  117. wire) or <em>surface</em> to draw the surface using coarse resolution
  118. filled polygons. This is a low resolution version of the polygon
  119. surface style.
  120. E.g. surface is drawn as a wire mesh if you set <b>mode</b>
  121. to <em>coarse</em> and <b>style</b> to <em>wire</em>. Note that it
  122. differs from the mesh drawn in fast display mode because hidden lines
  123. are not drawn. To draw the surface using filled polygons, but with
  124. wire mesh draped over it, choose <b>mode</b> <em>both</em>
  125. and <b>style</b> <em>wire</em>.
  126. Beside mode and style you can also choose style of <b>shading</b> used
  127. for the surface. <em>Gouraud</em> style draws the surfaces with a
  128. smooth shading to blend individual cell colors together, <em>flat</em>
  129. draws the surfaces with flat shading with one color for every two
  130. cells. The surface appears faceted.
  131. <p>
  132. To set given draw settings for all loaded surfaces press button
  133. "All".
  134. <h3>Vector properties</h3>
  135. This panel controls how loaded 2D or 3D vector data are drawn.
  136. <p>
  137. You can define the width (in pixels) of the line features, the color
  138. used for lines or point markers.
  139. <center>
  140. <br><img src="wxGUI_nviz_tools_vector.jpg" border="1"><br><br>
  141. </center>
  142. If vector map is 2D you can display vector features as flat at a
  143. specified elevation or drape it over a surface(s) at a specified
  144. height. Use the height control to set the flat elevation or the drape
  145. height above the surface(s).
  146. <p>
  147. For display purposes, it is better to set the height slightly above
  148. the surface. If the height is set at zero, portions of the vector may
  149. disappear into the surface(s).
  150. <p>
  151. For 2D/3D vector points you can also set the size of the markers and
  152. the width (in pixels) of the line used to draw the point markers (only
  153. applies to wire-frame markers). Currently are implemented these
  154. markers:
  155. <ul>
  156. <li><b>x</b> sets the current points markers to a 2D "X";</li>
  157. <li><b>sphere</b> - solid 3D sphere;</li>
  158. <li><b>diamond</b> - solid 3D diamond;</li>
  159. <li><b>cube</b> - solid 3D cube;</li>
  160. <li><b>box</b> - hollow 3D cube;</li>
  161. <li><b>gyroscope</b> - hollow 3D sphere;</li>
  162. <li><b>asterisk</b> - 3D line-star;</li>
  163. </ul>
  164. <h3>Volume properties</h3>
  165. This panel controls how loaded volumes are drawn. Volume can be drawn
  166. in two different modes: <b>isosurface</b> or <b>slice</b>. The top
  167. part of the panel has drawing style options. The middle part has
  168. controls to add, delete, move up/down selected isosurface or
  169. slices. The bottom part has options to set, unset or modify attributes
  170. of the current isosurface or slice.
  171. <center>
  172. <br><img src="wxGUI_nviz_tools_volume.jpg" border="1"><br><br>
  173. </center>
  174. Similarly to surface panel you can define draw <b>shading</b>
  175. - <em>gouraud</em> (draws the volumes with a smooth shading to blend
  176. individual cell colors together) and <em>flat</em> (draws the volumes
  177. with flat shading with one color for every two cells. The volume
  178. appears faceted). As mentioned above currently are supported two
  179. visualization modes:
  180. <ul>
  181. <li><b>isosurface</b> - the levels of values for drawing the
  182. volume(s) as isosurfaces;</li>
  183. <li>and <b>slice</b> - the levels of values for drawing the volume
  184. as cross-sections.</li>
  185. </ul>
  186. <h2>Settings</h2>
  187. This panel has controls which allows user to set default surface,
  188. vector and volume data attributes. You can also modify default view
  189. parameters, or to set the background color of the Map Display Window
  190. (the default color is white).
  191. <h2>To be implement</h2>
  192. <ul>
  193. <li>Improve intuitive navigation (mouse, fly mode)</li>
  194. <li>Interactive lighting controls</li>
  195. <li>Animation capabilities</li>
  196. <li>Data querying and measuring</li>
  197. <li>Arbitrary cutting planes</li>
  198. <li>Labels, decoration, etc.</li>
  199. <li>Scripting capabilities</li>
  200. <li>Better workspace support (view settings, lighting)
  201. <li>Image Dump</li>
  202. <li>Surface - mask by zero/elevation, more interactive positioning</li>
  203. <li>Vector points - implement display mode flat/surface for 2D points</li>
  204. <li>Volume - slice draw mode</li>
  205. <li>...</li>
  206. </ul>
  207. <p>
  208. <b>Please note that the wxGUI Nviz extension is under active development and
  209. distributed as &quot;Experimental Prototype&quot;.</b>
  210. <h2>SEE ALSO</h2>
  211. See also <a href="http://grass.osgeo.org/wiki/WxNVIZ">wiki</a> page.
  212. <br><br>
  213. Command-line module <em><a href="nviz_cmd.html">nviz_cmd</a></em>.
  214. <br><br>
  215. Original <a href="nviz.html">TCL/TK-based</a> Nviz.
  216. <h2>AUTHORS</h2>
  217. Martin Landa, Google Summer of Code 2008 (Mentor: Michael Barton)
  218. <p>
  219. <i>$Date$</i>