Files
orx/orx-jvm/orx-kinect-v1
Edwin Jakobs b7ba6f6daa Feature variants (#376)
Migrate from buildSrc to build-logic. Setup feature variants.
2025-09-17 10:03:02 +02:00
..
2024-03-16 09:11:55 +01:00
2025-09-17 10:03:02 +02:00

orx-kinect-v1

Support for the Kinect V1 RGB and depth cameras.

If using Linux, add the udev rules to be able to access the camera without being a root user.

Example usage

fun main() = application {
    configure {
        fullscreen = Fullscreen.CURRENT_DISPLAY_MODE
    }
    program {
        val kinects = getKinectsV1()
        val kinect = kinects.startDevice()
        kinect.depthCamera.enabled = true
        kinect.depthCamera.mirror = true
        extend(kinect)
        extend {
            drawer.image(kinect.depthCamera.currentFrame)
        }
    }
}