Forum Replies Created

Viewing 15 posts - 1 through 15 (of 403 total)
  • Author
    Posts

  • Oliver Kreylos
    Moderator

    This is possible in principle, but not built into the current AR Sandbox software.

    in reply to: Problem with OpenGL #115839

    Oliver Kreylos
    Moderator

    Check for your graphics card model by running in a terminal:

    lspci | grep VGA

    Then check for OpenGL driver support by running in a terminal:

    glxinfo | grep vendor

    If the first command lists an Nvidia graphics card and the second one does not mention Nvidia, you need to install Nvidia’s proprietary driver as indicated in the installation instructions, step 2.

    in reply to: Rain and Lava #115809

    Oliver Kreylos
    Moderator
    in reply to: How to control the rain function #115808

    Oliver Kreylos
    Moderator

    That’s an unrelated error to disabling water simulation. It usually means that your Kinect is already being used by another application. Check that there are no other instances of SARndbox or RawKinectViewer etc. still running. If the problem persists, reset your Kinect (KinectUtil reset all), or if that still doesn’t work, unplug and re-plug your Kinect.

    in reply to: Show height matrix values #115807

    Oliver Kreylos
    Moderator

    There are two height value arrays. The first one is maintained by the FrameFilter class and contains filtered depth values from the depth camera, at the camera’s native resolution (640×480 for Kinect v1). However, these depth values are in depth image space and need to be un-projected by the inverse camera projection matrix before they can be used for most purposes. Once un-projected, they no longer form a regular grid of elevation values.

    The second height value array is used for water flow simulation, and maintained by the WaterTable2 class. It is a re-sampled version of the un-projected filtered camera depth image and forms a regular elevation grid at whatever resolution the water simulation is using. It is probably what you want, but as the re-sampling is done on the GPU and the resulting grid is only used on the GPU, CPU-side code cannot access it directly. You need to request a copy of the current bathymetry grid from the WaterTable2 object, and then retrieve it when the object tells you it has got it. You can look at the BathymetrySaverTool class to see how this works in practice.

    in reply to: Show height matrix values #115795

    Oliver Kreylos
    Moderator

    What do you mean by “height matrix?”

    in reply to: Cannot make the full projection #115792

    Oliver Kreylos
    Moderator

    There may be an “automatic keystone correction” feature somewhere in the projector menus. If it’s there, make sure it’s disabled and see if that changes things.

    in reply to: Calibration program won't launch with new projector #115791

    Oliver Kreylos
    Moderator

    Your projector’s native resolution is stated as 1280×800. Set your display resolution to that and see if things work again.

    in reply to: How to control the rain function #115790

    Oliver Kreylos
    Moderator

    Add -ws 0.0 0 to SARndbox’s command line.

    in reply to: Errors in Per-Pixel Depth Correction #115723

    Oliver Kreylos
    Moderator

    Which version of the Kinect camera are you using?

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

    Oliver Kreylos
    Moderator

    The coordinate system of your Kinect camera is inverted, i.e., the z axis is facing downwards instead of upwards. This should not happen.

    You might be able to fix this by negating all four numbers in the base plane equation, i.e., change to

    (-0.0247072, -0.0738473, 0.996963), -106.452

    (note that the third number is now positive).

    in reply to: Attaching function keys to lava & ice script #115720

    Oliver Kreylos
    Moderator

    The first step is to create a shell script that will do the function you want, say copy a fragment program with lava over the standard fragment program:

    #!/bin/bash
    
    SHADERDIR=~/src/SARndbox-2.4/share/SARndbox-2.4/Shaders
    cp SHADERDIR/Lava.fs SHADERDIR/SurfaceAddWaterColor.fs

    You would call this “ToLava.sh” or something, store it in ~/src/SARndbox-2.4/bin, and make it executable:

    chmod a+x ~/src/SARndbox-2.4/bin/ToLava.sh

    Then you create a custom configuration file for SARndbox, as described in step 15 in the complete installation instructions. At the beginning of the “Tools” section, add “ScriptExecutorTool” to the tool class names, and bind a tool of that class to the key/button you want to use (L in this example):

    section Vrui
        section Desktop
            ...
            section Tools
                toolClassNames += (ScriptExecutorTool)
                ...
                section DefaultTools
                    ...
                    section LavaTool
                        toolClass ScriptExecutorTool
                        bindings ((Mouse, l))
                        executablePathName /home/<username>/src/SARndbox-2.4/bin/ToLava.sh
                    endsection
                    ...
                endsection
                ...
            endsection
            ...
        endsection
        ...
    endsection

    Replace <username> with your actual user name.

    You can create more of those tool binding section to bind other scripts to other keys/buttons, e.g., switching back to water.

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

    Oliver Kreylos
    Moderator

    That is strange; it might be related to using a Kinect One instead of a Kinect 360. I haven’t done much testing with Kinect One.

    Did you do the step where you download the Kinect’s internal calibration data:

    sudo /usr/local/bin/KinectUtil getCalib 0

    ?

    in reply to: No detection of the hand for rain #115715

    Oliver Kreylos
    Moderator

    This may sound silly, but give it a try. Cut a hand shape out of a piece of cardboard, glue it to a stick, and hold it flat underneath the camera, some height above the sand. See if that works.

    in reply to: Command Lines to change Elevation #115714

    Oliver Kreylos
    Moderator

    You do that by editing the base plane equation in BoxLayout.txt. Changing the fourth number in the first line will adjust the zero-elevation plane up or down. The elevation value is in centimeters.

Viewing 15 posts - 1 through 15 (of 403 total)