Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: diagram for sandbox #116205

    ajy00
    Participant

    seek and he shall find …. its all in the site https://arsandbox.ucdavis.edu/instructions/hardware-2/ 😉

    in reply to: USB Button Solution #116180

    ajy00
    Participant
    in reply to: USB Button Solution #116074

    ajy00
    Participant

    if you mean swapping the shaders by running sh switch-to-water.sh or sh weather.sh from your scripts directory then yes. The standalone shader files (SurfaceAddWaterColor-Water.fs etc) are config files used by the main program, so you can’t ‘run’ them.

    in reply to: USB Button Solution #116059

    ajy00
    Participant

    Hi
    Suggest you create a directory under ~/src for your various scripts and custom items, such as ~/src/scripts

    Create a new file something like weather.sh and with your text editor copy the script file from https://arsandbox.ucdavis.edu/forums/topic/usb-button-solution/#post-103570
    Save and then enable execution with chmod a+x ~/src/scripts/weather.sh

    Create new files for each of the conditions in weather.sh in the same directory for example:
    switch-to-water.sh with the syntax
    cp ~/src/scripts/SurfaceAddWaterColor-Water.fs ~ /src/SARndbox-2.5/share/Shaders/SurfacceAddWatercolor.fs
    and again enable execution as above

    You need to ensure you have all appropriate .fs config files saved in the same scripts directory (or appropriately referenced if they’re elsewhere). You can find versions that work from https://arsandbox.ucdavis.edu/forums/users/mkaszuba/

    Once all that is in place, assign the key or button from the Tool Menu, using the option Utility/Script Executor

    Hope that helps!

    in reply to: USB Button Solution #116057

    ajy00
    Participant

    If you’ve got the first buttons working, you’ll have no trouble with adding new ones for other functions… just follow the script set up and Oliver’s guidance (bless the man for a great piece of work!) on linking to a script … you can use a keyboard link too which is almost essential as an option if you’re working with a group of kids who LOVE buttons….

    I have updated /extended my version of the script (https://arsandbox.ucdavis.edu/forums/topic/usb-button-solution/#post-103570) to include the ice/toxic waste etc from https://arsandbox.ucdavis.edu/forums/users/mkaszuba/ … so have a couple of startup scripts depending on how many/which options I want on the cycle button.

    I’ve now also added a ‘screenshot’ button which means that I can work through a scenario where a group creates a landscape and captures a screenshot to compare with others or against a target topo map… nothing like a bit of competition to keep them at it!

    Shout if you get problems!

    in reply to: Hills like hollows, holes like mountains.. #115897

    ajy00
    Participant

    Hi

    You might also like to see this from an earlier solution as part of the selection options

    USB Button Solution

    in reply to: full screen shortcut doesn't work #103692

    ajy00
    Participant

    try F11 (single key press)

    in reply to: USB Button Solution #103658

    ajy00
    Participant

    No changes at all… rerun and fine ever since!

    in reply to: USB Button Solution #103656

    ajy00
    Participant

    @jkrienert … can’t see your last q here, but the first time the script ran the program crashed, but since then it runs with no problems.. you’re script & config looks identical to the one i use as above…
    I load the whole config and assignment from a saved input graph. hope you resolve the problem! 😁

    in reply to: Suggestions for PC or LAPTOP #103643

    ajy00
    Participant

    Does not need to be a laptop … the hardware will depend on how you want to use the installation, and while a laptop is easier if you’re moving it around, as the sandbox itself is pretty big, it really makes no odds. Much more important is the graphics capability. Basically get the best you can afford! That is often more easily upgraded in a PC than a laptop, and allows you to select NVIDIA rather than the laptop OEM kit.

    have fun – its a great resource when you have it

    AJY
    River Wey Trust

    in reply to: No rain formation #103642

    ajy00
    Participant

    I had this problem with the default graphics driver – suggest you might need to find/load the genuine Nvidia driver ??

    AJY
    River Wey Trust

    in reply to: Linux noob with a GeForce GTX 1060 #103641

    ajy00
    Participant

    I don’t think your problem is with the Nvidia – I’m using a (Palit version) GTX GeForce GTX 1070 with the same drivers you have running on Serena using an i5 and the same memory with no issues. From the error you show, it looks very much like the issue raised in https://arsandbox.ucdavis.edu/forums/topic/complete-installation-instructions/page/7/#post-103218 using a Kinect v2 rather than the basic v1…. hope that helps
    AJY
    River Web Trust

    in reply to: USB Button Solution #103570

    ajy00
    Participant

    For the RiverWey Trust version of the SARndbox, I’ve now set up three USB buttons – Flood, Drain, and Cycle – where the first is the global water tool, Drain is.. drain, and the third assigns a script (as in Oliver Kreylos’ post above) which cycles round the Water, Lava, Snow options
    three buttons on the box

    As a green bash script coder this works but is probably a bit clunky!

    # weather.sh
    #!/bin/bash
    
    # pick up current state
      weather=$( cat /home/sandbox/src/scrip/weather_file.tmp )
      echo "Current state is " $weather
     
    # use case statement to set the assignment to the next cycle value
        case $weather in
         "rain") echo "Changed rain to lava"
                sh /home/sandbox/src/scrip/switch-to-lava.sh
                echo "lava" > /home/sandbox/src/scrip/weather_file.tmp
                ;;
         "lava") echo "Changed lava to snow"
                sh /home/sandbox/src/scrip/switch-to-snow.sh 
                echo "snow" > /home/sandbox/src/scrip/weather_file.tmp
                ;;
         "snow") echo "Changed snow to rain"
                sh /home/sandbox/src/scrip/switch-to-water.sh 
                echo "rain" > /home/sandbox/src/scrip/weather_file.tmp
                ;;
        esac
    

    The switch scripts are versions of those appearing in the ‘snow shader’ topic in this forum ..

    cp ~/src/scrip/SurfaceAddWaterColor-Lava.fs ~/src/SARndbox-2.3/share/SARndbox-2.3/Shaders/SurfaceAddWaterColor.fs
    

    using suitably updated versions of SurfaceAddWaterColor.fs

    For the USB buttons, the Reyann branded button options in UK came out at some hugely inflated price on Amazon UK (equivalent $60+)… so xSource (https://www.amazon.co.uk/d/Joysticks/XCSOURCE-Delay-Arcade-Encoder-Joystick-Fighting-AC488/B01LAUYCXE/ref=pd_sim_107_2?_encoding=UTF8&psc=1&refRID=DFKRG5PA12K6NTNXYZK9) at £16.99 ($22) for the same solution is much better … and there is an option for the board without buttons should you wish.

    in reply to: Welcome to the AR Sandbox Forum! #103519

    ajy00
    Participant

    Someone remind me to buy Oliver Kreylos a drink next time I’m in California! Another AR Sandbox in use by the River Wey Trust (Hampshire, UK) and proving to be a great success with kids of all ages – http://www.riverweytrust.org.uk/AR%20Sandbox.htm
    AJ Young

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