Tips 
セットアップ後の追加セッティング(降水など) 
熔岩・雪・雨 
熔岩への変更 
- 水の効果のソース
share/SARndbox-<version>/Shaders/SurfaceAddWaterColor.fs
- Comment out line 177:
// float colorW=pow(dot(wn,normalize(vec3(0.075,0.075,1.0))),100.0)*1.0-0.0;
- Comment/uncomment lines 179 and 180:
// vec4 waterColor=vec4(colorW,colorW,1.0,1.0); // Water
vec4 waterColor=vec4(1.0-colorW,1.0-colorW*2.0,0.0,1.0); // Lava
地球? 
~/Vrui-3.1/bin/ShowEarthModel
How to 
wiki 
四角ではない砂箱 
改造版 

3D Print STL 
DEMファイルに格納されている地形の復元 
- SARndboxは保存済みのDEMデータを読み込むことができます.
- 逆に,砂箱の砂の形状に応じて表示されている現状のDEMも保存しておくことができます.
- まず“Save Bathymetry” toolをキーに割り当てておき,そのキーを押すと,現在の砂山の形状のDEMがUSGS DEM formatでSARndboxのディレクトリに保存されます.
- DEMを読み込むには,まず“Show DEM” toolをキーに割り当ててください.これにより,読み込もうとしているDEMファイルを指定するダイアログが表示されますので,gridの拡張子がついたファイル(フォーマットについては下記に詳述)を指定してください..
- gridファイルが正しく読み込まれると,同じ割り当てキーを押すことで,AR SandboxがDEMモードと通常モードを行ったり来たりするようになります.
- DEMモードでは,砂が標高値よりも高くなっている部分が青色で,砂が標高値よりも低くなっているところが赤色で表示されます.
- 青い部分の砂を削って赤い部分に盛ってやるります.標高値と一致すると白色になります.
- ほとんどのエリアが白くなったら,“Show DEM” toolに割り当てたキーを押して,通常モードにしてみてください.
- 平面のスケーリングについては,BoxLayout.txtで設定されている砂箱の四角形のスケールに合わせて自動調整されます.
- 高さ方向については,砂箱に入っている砂の量によって表現できる起伏が決まりますので,砂の量に応じてgridファイルの値を調整する必要があります.
- 現時点では,SARndboxは以下のような単純なバイナリグリッドフォーマット(拡張子はgrid)のファイルだけを認識します.
- two 32-bit integers (n and m, number of grid vertices in x and y) followed by four 32-bit floats defining the grid’s left, bottom, right, and top edges in some coordinate system, followed by n*m 32-bit floats defining each grid vertex’s elevation.
- The format is binary, with little-endian (Intel) byte order. The first two entries are the number of columns and rows in the DEM, stored as 4-byte signed integers.
- The next four entries are the spatial extents of the DEM represented as a rectangle using some arbitrary units and coordinate system. More precisely, they are the left, bottom, right, and top edges of the DEM, stored as 4-byte IEEE 754 standard floating-point numbers.
- After that follow the DEM’s elevation postings, as numRows x numColumns 4-byte IEEE 754 floating-point numbers in row-major order. The AR Sandbox assumes that the elevation values are in the same unit of measurement as the DEM’s spatial extents.
The DEM mapping tool can be configured to adjust the DEM’s vertical level (to make the DEM
match the total amount of sand in the box), its vertical exaggeration, and the tolerance level
when the sand is colored white. To adjust these settings, it is easiest to assign a DEM tool as above,
and then save the current tool setup by selecting “Save Input Graph” from the “Devices” sub-menu
of the Vrui system menu. This creates a text file with the settings for the DEM tool inside.
After adjusting the settings, the complete tool setup can be loaded back from inside the AR Sandbox
by selecting “Load Input Graph,” or at startup by passing -loadInputGraph <your input graph file name>
on SARndbox’s command line.