Forum Replies Created

Viewing 15 posts - 346 through 360 (of 494 total)
  • Author
    Posts
  • in reply to: Editing sandbox variables (on the fly) #101487
    Oliver Kreylos
    Keymaster

    See my post about the new 1.6 SARndbox package. The named pipe does not support changing the base plane elevation, as that would have all kinds of bad side effects. But it should support your desired feature in a better way: you can create multiple elevation color maps with different water levels, and switch between them on-the-fly. If you edit the color maps such that the part above the current desired water level is always exactly the same, you will get a very nice effect where the water level seems to rise and fall, but everything else stays exactly the same.

    in reply to: benq keystone #101485
    Oliver Kreylos
    Keymaster

    If you can live with overprojection, meaning some of the image will end up outside the box or on the floor, then I recommend not using keystone correction in the projector. It’s flaky and reduces image quality.

    Aim the projector such that the image covers the inside of the box, reset keystone correction on the projector to zero across the board, and let the CalibrateProjector utility take care of the rest. It does keystone correction internally, with no impact on image quality.

    The next major SARndbox update will have an option to black out non-rectangular screen regions to limit the projection image to the inside of the sandbox.

    in reply to: AR Sandbox mostly complete! Few questions left. #101475
    Oliver Kreylos
    Keymaster

    My bad. Color components are clamped to [0.0, 1.0] right before being written to the screen, but during computation, any values, even negative ones, are allowed. Color components larger than one will blow out the blending calculation between liquid and terrain color that’s done in the next shader line.

    in reply to: Snow shader (and a cool tool) here! #101446
    Oliver Kreylos
    Keymaster

    One reason I recommend Mate is that keyboard shortcuts work as expected. The other reason is that Mate doesn’t try to be smart, and just does what it’s told.

    I fixed the instructions above.

    in reply to: Snow shader (and a cool tool) here! #101443
    Oliver Kreylos
    Keymaster

    Please try the built-in way to make the Sandbox start in full-screen and let me know if that works.

    If SARndbox is the only Vrui application you use regularly, edit Vrui.cfg in ~/Vrui-3.1/etc, and find “section Window” inside “section Desktop”. Then change windowFullscreen false to windowFullscreen true.

    To do this on demand, create a new file, say Fullscreen.cfg, inside ~/Vrui-3.1/etc/, with the following contents:

    section Vrui
      section Desktop
        section Window
          windowFullscreen true
        endsection
      endsection
    endsection

    Then start SARndbox with the additional -mergeConfig Fullscreen.cfg command line parameter.

    Pausing topography updates via a button: This is a source code-level change, but it’s simple.

    In Sandbox.h, insert the line

    virtual void eventCallback(EventID eventId,Vrui::InputDevice::ButtonCallbackData* cbData);

    after the line

    virtual void display(GLContextData& contextData) const; (line 189)

    and save.

    In Sandbox.cpp, insert the line

    addEventTool("Pause Updates",0,0);

    after the line

    LocalWaterTool::initClass(*Vrui::getToolManager()); (line 436)

    Then insert the lines

    void Sandbox::eventCallback(Vrui::Application::EventID eventId,Vrui::InputDevice::ButtonCallbackData* cbData)
      {
      if(cbData->newButtonState)
        {
        pauseUpdates=!pauseUpdates;
        }
      }

    before line

    void Sandbox::initContext(GLContextData& contextData) const (line 1147)

    and save. Re-make the SARndbox application, and now you can bind an arbitrary button or key to the new “Pause Updates” tool. The same toggle button in the main menu will no longer reflect the current pause state, but oh well.

    in reply to: AR Sandbox mostly complete! Few questions left. #101440
    Oliver Kreylos
    Keymaster

    vec4 waterColor=vec4(0.0,0.0,1.0,1.0); // Blue

    The first three components of the vector are red, green, and blue components, each from 0.0 (off) to 1.0 (full on). The fourth component is opacity, and should be left at 1.0. To get white:

    vec4 waterColor=vec4(1.0,1.0,1.0,1.0); // White

    Toxic waste would be:

    vec4 waterColor=vec4(0.2,1.0,0.2,1.0); // Toxic waste

    etc.

    in reply to: Black/Blank Screen – SARndbox #101439
    Oliver Kreylos
    Keymaster

    Does the AR Sandbox run if you use the following command line:

    $ ./bin/SARndbox -ws 0.0 0 -fpv

    This will disable water simulation. The GL error means that your graphics card / driver don’t support some required features.

    Do you have an Nvidia card, and did you install the Nvidia-provided drivers (see thread on full installation instructions)?

    in reply to: Dry button: can it be hard set #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.

    in reply to: Weird pattern #101358
    Oliver Kreylos
    Keymaster

    This is a side effect of how the Kinect works. It’s a combination of flaws in the diffraction grating that creates the infrared speckle pattern, and the limited resolution of the infrared camera. They all have this, but the number and strength of the vertical stripes differs. This here is a particularly obvious case.

    in reply to: Dry button: can it be hard set #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>.

    in reply to: USB problems with Kinect #101347
    Oliver Kreylos
    Keymaster

    That’s unfortunate. It is possible that the fault lies with your Kinect itself, or maybe its cable. Do you happen to have access to another one you could try?

    in reply to: Rain setup (options) #101346
    Oliver Kreylos
    Keymaster

    There isn’t a good solution in the current SARndbox software. It only looks for non-moving objects in the rain elevation range, and if your shoulders or elbows happen to be inside that range, they will likely cause rain.

    There will be an entirely new rain creation method in the next software version, but it’s not done yet.

    in reply to: Lava #101345
    Oliver Kreylos
    Keymaster

    I haven’t tried this, but you could slow down the water simulation by passing -ws <speed factor> 30 on SARndbox’s command line. <speed factor> is a multiplier with 1.0 being normal speed. A small number, such as -ws 0.1 30 might make the fluid behave lava-ish. Some experimentation would be required to find the best-feeling speed factor.

    in reply to: Legal or Not Legal to Crowd Source #101344
    Oliver Kreylos
    Keymaster

    Note: The following applies primarily to the USA, but should be similar in most other places.

    The GNU General Public License (GPL) explicitly does not forbid selling a GPL-licensed software product. Without going into legalese, the only thing a licensee of a GPL software product can not do is re-license that software product to a third party under a non GPL-compatible license, such as, for example, a closed-source license. This is how Red Hat can sell Linux.

    What this means in practice is that you can sell the SARndbox software (or any software derived from the SARndbox software) to a third party, for any amount of money you see fit. What you can not do is take those same rights away from your licensees: you have to give them the full source code of the software you sold, and you cannot prevent them from copying or modifying the software, or re-selling the software to a fourth party.

    “Free” in the GPL means unencumbered by restrictions, not “free” as in no cost. Or in Richard Stallman’s words, “free as in speech, not free as in beer.”

    Regarding the other hardware components (PC, projector, Kinect, etc.): These are goods as defined by ownership law, and legal owners can do with them as they please, including reselling them, say during a yard sale, or on eBay, or as part of an AR Sandbox sale. Some argue that complex goods such as projectors or 3D cameras also contain intellectual property, such as firmware or industrial designs, but fortunately, the US Supreme Court in 2013 upheld the first-sale doctrine, which explicitly allows resale, including resale for profit, of copyright- or trademark-protected physical objects by their legal owners.

    in reply to: Thoughts on build appreciated! #101285
    Oliver Kreylos
    Keymaster

    You’ll be fine with the Core i5 CPU, but think twice about dropping from a 970 to a 960. The 970 is almost twice as fast at running the water simulation as the 960. The 960 is roughly comparable to a 770, which we currently have in our AR Sandbox, and water gets choppy sometimes. It’s not a dealbreaker, but it’s pretty annoying when it happens.

Viewing 15 posts - 346 through 360 (of 494 total)