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.
- 読み込んだDEMの標高地が砂の表面よりも低いと,全域が青になります(青は砂が多すぎることを意味し,赤は少なすぎることを意味します).
- DEMを垂直方向に調整するには,AR Sandboxを起動して,“Show DEM” tool をどれかのキーに割り当て,そのキーからDEMを読み込みます.
- 一旦読み込ませたら, Vrui’s systemメニューの“Devices”サブメニューから“Save Input Graph…” を選びます.
- そして,一旦アプリを終了させて,保存したファイルをエディタで開きます.
- 保存したファイルは他のVrui設定ファイルとフォーマットは同じで,一つのツールごとに一つのセクションが記述されています
- “toolClass DEMTool”というセクションを探して,以下の行を加えてください.
demVerticalShift 0.0
- ファイルを保存して,AR Sandboxを再度起動させ,保存しておいた input graphを “Devices”サブメニューから開いてください.
- 上記のセクションにDEMファイル名をdemFileNameで記載しておけば,DEMファイルを毎回指定し直す手間が省けます.
- The trick is to fiddle with the vertical shift value by editing the input graph file until you have just enough sand to recreate the entire DEM. You can edit the file while the sandbox is running, and re-load the changes by selecting “Load Input Graph…” again.
- 全域が青の場合は, 一旦大きなマイナス値を設定して全域が赤になるようにしておいて,そこから少しずつ値を増やしながら丁度よい値を決めていきます.
- demVerticalShift moves the DEM up or down to match the total amount of sand in the sandbox.
- demVerticalScale applies vertical exaggeration to the DEM.
- If the DEM appears to be flat or just noise, it is probably using a different unit of measurement for the vertical than for the horizontal.