Dry button: can it be hard set

Home Forums AR Sandbox Forum Dry button: can it be hard set

This topic contains 7 replies, has 3 voices, and was last updated by  billberet 3 years, 4 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #101352

    billberet
    Participant

    hey,
    is there a way to hard set the drain button, instead of configuring it every time the sandbox is run?

    #101355

    billberet
    Participant

    sorry, I was being lazy, I just made the change in the code 🙂

    #101356

    alfa
    Participant

    Where’d you find the info on how to do that?

    #101357

    Oliver Kreylos
    Keymaster

    Two options:

    1. Start AR Sandbox as usual.
    2. Assign button function via tool selection menu.
    3. Save tool assignments via Vrui System Menu, Devices, Save Input Graph.
    4. Next time, add -loadInputGraph <input graph file name> to SARndbox’s command line.

    Alternatively, create a new file called Vrui.cfg in the directory from where you run the SARndbox executable, and enter the following:

    section Vrui
      section Desktop
        section Tools
          section DefaultTools
            section DrainButtonTools
              toolClass GlobalWaterTool
              bindings ((Mouse, 1, \ # Button/key used to add water
                                2))  # Button/key used to remove water
            endsection
          endsection
        endsection
      endsection
    endsection

    The AR Sandbox’s underlying Vrui toolkit will pick up a configuration file called Vrui.cfg if it is found in the current directory, and merge it into its global configuration space. Alternatively, name the file SARndbox.cfg or similar, save it anywhere (for example in the directory that already contains BoxLayout.txt), and load it explicitly via -mergeConfig <configuration file path>.

    #101361

    billberet
    Participant

    Thanks Oliver, I was unaware that by leaving the cfg file in the root sandbox directory it would automatically add it to the local configuration. I was doing the -mergConfig. I’m going to rename it to Vrui.cfg and leave it in my root directory and see if it picks it up.

    thanks for the info !!! the closer I can get the box to act like a Kiosk the better.

    <<<EDIT>>>
    now I see it in the VR Toolkit docs, I must have skipped over the 2nd paragraph about the Vrui Initialization
    ***my bad***

    • This reply was modified 3 years, 4 months ago by  billberet.
    #101363

    Oliver Kreylos
    Keymaster

    Not the root directory (/), but the directory that is current in the terminal when you run SARndbox. You can add -vruiVerbose to see exactly which configuration files get loaded.

    #101364

    billberet
    Participant

    by root, I meant the directory that the sandbox is running. not the root of the machine.
    🙂
    force of habit when speaking to my development team, lol

    #101454

    billberet
    Participant

    worked like a charm, input graph loads.
    i think i am finally finished !!!!!!!!

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

You must be logged in to reply to this topic.

Comments are closed.