This is a Unity plugin for Lynx that allows you to record video with passthrough, AR, and VR support. It is a community-driven project and is not officially endorsed or supported by Lynx. The Lynx Recorder plugin enables you to capture and record video frames with various modes and options.
- Adjustable frame rate for video recording.
- Real-time video frame composition for VR, AR or Passthrough Only.
- Multithreading Architecture which doesn't slow the usage of your app.
- Open a project which can build on the Lynx.
- Import Unity3D Previews SDK in your project (Samples should not be needed), and DISABLE DEVELOPMENT BUILD.
- Make sure you have the camera permissi enabled. You can (re)install your .apk and give it all the permissions with
adb install -g yourapp.apk
and test with Lynx Samples if the app can access cameras. - Import the UnityPackage from this repo or the files in the Unity folder. (Be careful that the .so files are located in Plugins/Android/)
- Attach the
LynxRecorder
script to a GameObject in your Unity scene. - Configure the parameters in the Unity Inspector (see the Configuration section below for details).
- Enable PressTopRightButtonToRecord and press the top button in your app, OR call StartRecord/EndRecord from one of your scripts, when you need to.
- The recorded video will be saved as an MP4 file in the persistent data path of your Unity project. (Android/data/[app_name]/files)
You can access your Lynx files by using the command :
adb shell svc usb setFunctions mtp
after plugging the USB.
- FPS: Set the frame rate for video recording, ranging from 1 to 30 frames per second. (Avoid going >20fps)
- Capture Type: Choose from three capture types: AR, VR, or PassthroughOnly.
- Recording Camera: Optionally specify a camera to be used for VR image capture.
- Press Top Right Button to Record: If enabled, you can start and stop recording by pressing the specified button.
- Time distorsion if the fps are too high.
- Record -> Sleep -> Record makes the app crashes.
This Lynx Recorder Unity Plugin is released under the CC0 (Creative Commons Zero) License. You are free to use, modify, and distribute the code without any restrictions.
Please note: This plugin is not officially endorsed or supported by Lynx. Use it at your own discretion.
For specific licensing information and details on how to contribute or report issues, please refer to the LICENSE file and the project's repository.
By contributing to this project, you agree to release your contributions under the CC0 (Creative Commons Zero) License.
For more information about the CC0 license, visit Creative Commons CC0.