Interacting with SARndbox source code

Home Forums AR Sandbox Forum Interacting with SARndbox source code

This topic contains 3 replies, has 3 voices, and was last updated by  Franzzzzzzzz 3 days, 4 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #103707


    I’ve been trying to integrate a slope stability analysis in the sandbox but I am running into issues to get and display the data from the SARndbox code.
    Basically I want to be able to extract the corrected elevation data from the SARndbox software in some kind of array or buffer, do some processing, and display a map of values with a certain scale (eg. between 0 and 90 to display slope angle for example) and a certain colorbar. All that would be done in an additional c++ class to the SARndbox software. The problem is that I can’t manage to get a meaningful elevation data that would be calibrated (I only manage to get the raw informations from the kinect buffer, which I can rescale and offset manually but it is not ideal), and I can’t manager to get the projector to display an array of arbitrary value.
    I should probably indicate that although I know c++ I don’t know anything about OpenGL programming or graphic card programming. At the same time I don’t really mind if the computations runs slow, I can leave with a 1 fps or less update rate.

    I hope my questions make some sense and that you’ll be able to help me. In any case, thanks for your great work in developing the Sandbox!



    This sounds great. I would also like to be able to show something other than height on the sand surface.



    There are probably a few ways to do this. One is that there is a DEM saver for the elevation data. You can go find that code and use it to get the projected and calibrated elevation. This would
    probably be the easiest.

    If you learn more OpenGL you can actually have a buffer that gets filled in with the fixed-up elevations from the processing that is done in OpenGL to fic the data. This is pretty quick and the Host CPU
    does very little work, you can get the elevation for every update frame. You would then have to process the data and then feed the info back into OpenGL. You would still need some OpenGL coding, but probably
    not too bad.

    The other technique is to really learn the graphics shaders and add a new shader that would take the elevation data in the OpenGL engines and process it and color the output with your data instead.
    this is the fastest to run, probably the hardest to do if you don’t know OpenGL and shaders.

    I once did something with the get the OpenGL to process the buffers and then hand the buffers to the Host, so that the Host could then save them out. I may be able to find that code. It isn’t clean, but I did get what appeared to be corrected elevation data.




    Thanks for your answer.
    I guess one of the first 2 methods are probably the way to go for me, I don’t have that much time to spare to learn OpenGL for this project.

    If you can find the code you are talking about, even if it is not clean it would probably be very helpful in pointing me in the right direction to grab the elevation data.

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

You must be logged in to reply to this topic.

Comments are closed.