Playnetary

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Tools #2111
    Playnetary
    Participant

    @nicgeosciences:

    did you load the grid file using the “Load Input Graph” menu, specifying the demFileName, demVerticalScale and demVerticalShift parameters in the input graph file?
    If so, then try and play with the demVerticalScale value. This worked for me.

    in reply to: Tools #2107
    Playnetary
    Participant

    Remainder of the reply:

    Then python script to convert the DEM files into the grid file that the ARSanBox can actually ingest, showing the Lake Geneva surroundings (including the Mont Blanc).

    in reply to: Tools #2106
    Playnetary
    Participant

    Hi Lithop.
    I’ve had difficulties uploading my replies…

    Fetch DEM files of any part of the Earth, at a 30 meter resolution, from this URL (possibly needs an account creation, but it’s all free).

    in reply to: Tools #2097
    Playnetary
    Participant

    Here is the link to a nice DEM.grid file that I generated. It represents on one side of the play area the Olympus Mons (tallest volcano in the Solar System, on Mars, 26km high) versus the Himalayas (including the Mount Everest, 8.8km high).

    in reply to: Tools #2088
    Playnetary
    Participant

    I found the answer to my questions above (see the extract below from Matt Wilkie):

    To load a DEM.grid file into the AR Sandbox, press any key while it’s running, and select “Show DEM” from the tool selection menu. In the file selection box that appears, select a DEM file. If the file could be read correctly, pressing the same key afterwards will toggle the AR Sandbox into DEM mode, where blue indicates an excess of sand, and red indicates a lack of sand. Move sand from the blue to the red areas until everything is white (ideally). Pressing the bound key again will toggle back to regular mode.

    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 on SARndbox’s command line.

    If everything is blue, the loaded DEM is below the current sand surface everywhere (blue means too much sand, red means too little sand).

    To adjust the DEM vertically, run the sandbox and load your DEM by assigning a “Show DEM” tool to some button. Once it’s assigned, select “Save Input Graph…” from the “Devices” sub-menu of Vrui’s system menu. Then exit the sandbox and open the file to which you saved.

    It’s the same format as other Vrui configuration files, with one section per assigned tool. Find the section that says “toolClass DEMTool”. Into that section, put a new line demVerticalShift 0.0 then save the file, run the sandbox again, and load the saved input graph from the “Devices” sub-menu.

    You can also put the DEM file name in that section via demFileName so you don’t have to select it every time.

    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.

    If you have blue everywhere, use a large negative shift until everything is red. Then bisect until you get it just right.

    It will look something like this:

    section DEMTool2
    toolClass DEMTool
    bindings ((Mouse, 4))
    demFileName /home/okreylos/Projects/Sandbox/LakeTahoe.grid
    demVerticalScale 4.0
    demVerticalShift -1.5 # Positive values make it blue-er, negative values red-er
    endsection

    • This reply was modified 2 years ago by Playnetary.
    in reply to: Tools #2072
    Playnetary
    Participant

    Hello Oliver.

    Thanks a thousand times for the creation and distribution of the ARSandbox. Brilliant stuff. It keeps amazing every soul that get near it!

    Now I am having difficulties with loading DEM files. The ‘Show DEM’ process does open up a dialog box from which I choose my custom DEM file, but the terrain projected on the sand looks dead flat, whatever the scaling factor I use to exaggerate the Z-direction in the DEM file. I suspect this is related to an issue also reported here, where the manual loading of DEM files seems to be somehow broken.
    The former support forum contained quite a bit of help in handling DEM files in the ARSandbox but this unfortunately disappeared. Any chance you can get me (and others) going with the DEM handling, either manually via the ‘Show DEM’ menu or even through configuration files or command line arguments?
    Thanks a bunch.

Viewing 6 posts - 1 through 6 (of 6 total)