Forum Replies Created

Viewing 15 posts - 301 through 315 (of 459 total)
  • Author
    Posts
  • in reply to: Some errors at startup #101539

    Oliver Kreylos
    Keymaster

    The required command line parameter is -fpv (“fix projector view”) not -ftp. This shouldn’t cause an issue, but could you please try again?

    Also, what is the full output from SARndbox when it crashes?

    in reply to: Common Issues (READ THIS FIRST!) #101533

    Oliver Kreylos
    Keymaster

    Raspberry Pi natively only supports OpenGL ES (OpenGL for Embedded Systems). The AR Sandbox software is not compatible with OpenGL ES. You can in principle run the AR Sandbox on a Raspberry Pi by installing the Mesa OpenGL library, but performance will be very poor as Mesa emulates OpenGL in software running on the Pi’s main CPU, which is very weak.

    in reply to: Common Issues (READ THIS FIRST!) #101532

    Oliver Kreylos
    Keymaster

    The ProjectorMatrix.dat file is created by the projector calibration step (step 10 in the complete installation instructions).

    You can run the AR Sandbox without projector calibration by leaving off the -fpv command line parameter, but then you will get a regular 3D rendering of the scanned sand surface which will not match the physical sand surface (but which you can pan/rotate/zoom using mouse and keyboard).

    in reply to: Complete Installation Instructions #101517

    Oliver Kreylos
    Keymaster

    I see. The AR Sandbox as it is might not be the ideal tool for that, but the next major version will have a mode where you can pre-load an existing 3D topography model (such as your school grounds) and an aerial or satellite photo, and the software will guide you towards re-creating that model in the sand, and then project the image onto it once the real sand surface matches the model.

    in reply to: Can't edit old posts? #101511

    Oliver Kreylos
    Keymaster

    I fixed one link. Is there another?

    in reply to: benq keystone #101509

    Oliver Kreylos
    Keymaster

    Please see my reply above.

    in reply to: benq keystone #101508

    Oliver Kreylos
    Keymaster

    Yes, I did indeed misunderstand. Just to be clear: When you turn on the projector, it will apply a (bogus) keystone correction setting, which will result in a squished trapezoidal image, and you have to manually undo that every time by resetting keystone correction to zero? Furthermore, once you do reset keystone correction, if you bring up a test image (run XBackground from the Vrui package in full-screen mode), the horizontal and vertical lines have no jaggies, the circles are round, and the horizontal bar in the center has clean alternating black/white vertical lines?

    In that case, you’re probably running into an automatic keystone correction “feature” that’s new to this projector line. None of ours are doing this. Turn the projector on and go to the “DISPLAY” menu. See if there’s an entry for “Auto Keystone.” If so, make sure to turn it off (see page 23 in the projector manual). That ought to fix it.

    in reply to: Lava #101491

    Oliver Kreylos
    Keymaster

    Please see Minor Software Update. I added a graphical user interface to control fluid behavior, and the water attenuation slider makes for maybe not physically accurate, but visually compelling lava at higher settings (around 0.95-0.99).

    Getting the exact behavior you want would require relatively big changes to expose bedding friction in the simulation. I can’t do that right now.

    in reply to: benq keystone #101490

    Oliver Kreylos
    Keymaster

    Have you tried a projector calibration without keystone correction? If you haven’t, would you mind doing it, to see if it works?

    You will have full overprojection during setup and calibration, but once you run the SARndbox itself, the image should be black outside the sandbox’s extents, for the same effect as using the projector’s keystone controls (which don’t do physical blanking either, simply set outside pixels to black).

    You should only get overprojection if your Kinect captures surfaces outside the sandbox, such as the floor.

    in reply to: Editing sandbox variables (on the fly) #101488

    Oliver Kreylos
    Keymaster
    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.

Viewing 15 posts - 301 through 315 (of 459 total)