Capturing Cropped Image Based on Eye Gaze and Slider (Magic Leap SDK C API)

Give us as much detail as possible regarding the issue you’re experiencing.

ML2 OS version:
MLSDK version: v1.12.0
Host OS: (Windows/MacOS)

Hi Magic Leap Developers,

I’m working on a project using the Magic Leap SDK C API where I need to create a dynamic red rectangle that follows the user’s eye gaze, with the ability to adjust its size via a slider. When the user clicks “Save”, the system should capture and save the content inside the rectangle (cropped).

I’m looking for help with:

  1. Tracking the user’s eye gaze.

  2. Creating the adjustable rectangle.

  3. Capturing and saving the cropped image inside the rectangle.

Any resources or code samples would be greatly appreciated. Thanks in advance!

Please see our Unity Developer Portal for information about the APIs and the Magic Leap SDK as well as the new Magic Leap OpenXR SDK.

This topic was automatically closed after 18 days. New replies are no longer allowed.