Closed heojun990322 closed 2 years ago
Hi @heojun990322 The L515 camera model has been compatible with the RealSense Unity wrapper since SDK version 2.37.0 and the Unity wrapper is also compatible with Unity 2020.
May I first confirm that you are able to use the camera normally outside of Unity in the RealSense Viewer tool, please?
If the camera does work correctly in the Viewer, have you followed the Unity wrapper setup method below?
https://github.com/IntelRealSense/librealsense/releases/tag/v2.50.0
Launch Unity and open a project. A clean new project will be best for testing purposes.
Go to Assets > Import Package > Custom Package and select the Intel.RealSense.unitypackage file from the location on your computer that it was downloaded to (likely to be the Downloads directory of your Windows user account folder). The RealSense Unity wrapper should then import into your project.
Go to the Assets > RealSenseSDK2.0 > Scenes folder in your Unity 'Assets' panel and double-leftclick on the scene file called StartHere. When the scene has loaded, click on the small triangular 'Play' button at the top of your Unity screen (not the File > Build and Run method) to run the scene in the Unity editor.
Thanks for reply @MartyG-RealSense I confirmed my L515 works correctly in the RealSense Viewer tool. Then I followed steps you suggest from 1 to 4 accurately. But I got same result.
When I clicked play button is
And when I clicked start is
Below is console..
The warning Couldn't resolve requests indicates that a resolution or FPS speed was being requested that the L515 camera does not support.
Could you provide an image of the camera profile details listed in the RsDevice component for the 'StartHere' scene please?
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/unity#realsensedevice
Profile listed in my RsDevice component
The camera profile looks fine for an L515 that has firmware 1.5.8.1 installed (to provide 640x480 RGB support).
I ran my own tests in Unity 2021.1.16f1 with an L515 in a new project with the '3D' template (not HDRP) using the 4-step procedure I described earlier. I didn't experience the ExternalException red error that you did. Furthermore, my StartHere scene had a full list of samples provided when run.
The StartHere scene and the individual sample programs in the RealSense 'Scenes' folder were also able to run correctly on my L515.
I had downloaded Unity 2021.1.16f1 and tesed L515 following steps again. But I experienced same problems. And I had tried it on my labtop too, not my PC. Strangely, the result was same..
You have said that your L515 camera works correctly in the Viewer, which suggests that it is a problem that is not related to the camera hardware or the firmware driver.
Is there any difference if you unplug the micro-sized end of the USB cable from the base of the L515 camera, turn the connector around the other way and re-insert it into the camera base (USB-C cables are two-way insertion at the micro-sized end).
Hi @heojun990322 Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
I downloaded unity package latest version and the others im using are latest version. I played on start scene but i couldnt use L515.. error message like below
what can i do currently??