Record data

Home Forums AR Sandbox Forum Record data

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #101166

    Hi, is there any method to record and output the elevation data as a file? It could be either raw data from the Kinect viewer or through the AR Sandbox program.

    For context, I am using the software to attempt to capture surface deformation in a lab experiment. I am deforming gelatin, using a pressure source from below, and want to record what happens at the surface.


    Oliver Kreylos

    It’s a bit complicated. The Kinect camera captures elevation in a projective coordinate system, and the AR Sandbox only unprojects those measurements into a regular 2D grid on the GPU as part of water simulation.

    The best way to intercept that grid is to patch the updateBathymetry method in WaterTable2.cpp. After line 273, you could read the contents of the 2D texture containing the just-rendered bathymetry to a 2D array on the CPU side using glGetTexImage, and write that to a file. Note that the bathymetry texture is a single-component texture with 32-bit floating-point components.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed.