Sample programs using the pyopenxr python AR/VR bindings from https://github.com/cmbruns/pyopenxr
hello_xr.py
: This is a faithful translation into python of the hello_xr example from https://github.com/KhronosGroup/OpenXR-SDK-Source/tree/main/src/tests/hello_xr . Watch the colorful cubes attached to various spatial frames, and squeeze the controller triggers to experience an effect. This is a multi-source-file example, because the original C source also spans multiple files.color_cube.py
: This is a one-file example showing a large cube on the floor in the center of your VR space. This example uses a high-levelxr.ContextObject
instance to help keep the example compact.debug_all_the_things.py
: Combines seven different ways to add logging messages to help debugpyopenxr
programs.pink_world.py
: The simplest opengl rendering example. The whole universe is a uniform pink.track_hmd2.py
: Prints the location of the headset to the console.track_controller.py
: Prints the location of the motion controllers to the console.vive_tracker.py
: Print the locations of Vive Tracker devices. But not if they are assigned "handheld_object" role for some reason.