How to start proprely on Unity ?
Hello, I recently bought a D455 to use it in the development of a facial recognition application on Unity.
Nevertheless, it is very difficult for me to find simple and effective tutorials that allow the setting up of a workspace on Unity.
Are there any videos or clear and efficient tutorials that show the steps to follow? I have followed some but I often have either bugs or an inability to follow the steps.
I have already worked on the application using my phone, and I would just like to transpose the RealSense technology into my already existing project if possible.
For confirmation, I use Unity 2020.3.15f2.
Thank you for taking the time to answer me.
-
Hi Youcefbouzgaou A quick setup guide for the RealSense Unity wrapper at the link below that I wrote recently should be helpful.
https://github.com/IntelRealSense/librealsense/issues/10215#issuecomment-1028721410
Whilst ideally the wrapper would be set up on a clean project, it should be able to successfully import the necessary files into an existing project too.
-
The D455 is compatible with Unity. It does however tend to have this non-detection issue with the Unity wrapper compared to older camera models such as D415 and D435 / D435i that are detected correctly.
Which version of the RealSense SDK (e.g 2.50.0) and camera firmware driver are you using, please?
-
Are you able to locate the Depth and RGB drivers for your D455 in the 'Cameras' section of the Windows Device Manager interface?
If they are listed, please try using the driver uninstallation guide at the link below to fully uninstall the Depth and RGB drivers and reinstall them to see whether it makes any difference regarding whether the D455 can be detected in the Viewer.
https://support.intelrealsense.com/hc/en-us/community/posts/4419989666323/comments/4431239847443
-
As you are using Windows, please check in the Windows camera privacy settings that access to the camera hardware and permission for applications to access the camera are both set to On. Instructions for doing so are at the link below.
https://github.com/IntelRealSense/librealsense/issues/3381#issuecomment-503424789
-
Is the camera able to be accessed by the RealSense SDK's rs-capture example program and display the camera's streams? Instructions for launching rs-capture on Windows to test this are in the link below.
https://github.com/IntelRealSense/librealsense/issues/8024#issuecomment-747630656
-
Thanks very much for testing rs-capture.
Next, please try updating the graphics drivers on your Windows computer to eliminate the possibility that out of date graphics drivers (the OpenGL driver in particular) is causing your problem. You can perform the update in the Display adaptors section of the Device Manager.
-
I installed Unity 2020.3.15f2 on a Windows computer, created a new project with the 3D template and imported the Unitypackage file for RealSense SDK version 2.50.0. I opened the StartHere scene without a D455 camera attached and ran it using the small 'play' triangle at the top of the Unity window. I was presented with the Connect a RealSense device message.
I then plugged in the D455 and it was automatically detected correctly and then generated the list of example programs. The examples launched and ran correctly when clicked on.
I then tested connecting the computer to a network to see whether a network could interfere with detection. Once the network was connected, I unplugged the camera and was returned to the 'Connect a RealSense device' message. I re-inserted the camera and it was correctly detected despite the network connection and listed the examples again.
The fact that the rs-capture example program was unable to launch successfully on your computer suggests that the problem is not in the RealSense Unity wrapper but elsewhere on your computer. I verified that if rs-capture is launched without a camera plugged in then it demonstrates the behavior you described, with two windows opening and then closing after 5 seconds. This suggests that your D455 was not being detected.
You confirmed earlier that the camera's depth and RGB drivers are listed in the Device Manager interface of Windows though, and Discord can list the drivers too.
rs-capture can also display the behavior that you described if the camera is already being accessed in another program first (for example, if the depth stream is enabled first in the Viewer and then rs-capture is launched secondly whilst the Viewer is still streaming). Can you confirm that you have no other programs accessing the camera before you launch the Viewer, Unity or rs-capture, please.
-
Do you have any antivirus software installed on your PC? If so then this could block a camera.
-
I followed all the steps provided in the link without any result...
I have deactivated my anti virus, updated all drivers, reinstall the application....
The last thing I can think of is maybe windows defender? but I can't find a link with the camera.
My problem is really persistent and makes me lose a lot of time in my development, I really hope we can fix it. -
Does your computer have an Intel or an AMD processor? You can find this by typing system into the text box at the bottom of your Windows screen, next to the button where you shut down the PC, to find the System Information tool. The 'Processor' line of the System Information panel lists the processor details.
-
Thanks very much. Your processor looks fine. Next, please return to the SDK Tools folder where you launched rs-capture from and this time run rs-hello-realsense. This program prints out a plain-text value for the depth instead of using graphics and so is useful for eliminating graphics as the possible cause of a problem.
-
If you click on the Add Source button at the top of the Viewer side-panel, is the camera listed there in the data sources that can be added even though it is not listed automatically in the panel when the camera is plugged in? If it is in the Add Source list then this could suggest that it is not being properly detected on your computer as a RealSense camera and instead is being regarded as though it is an ordinary video webcam.
-
Do you have a mains electricity powered USB 3 hub that you can test the camera on if you have not done so already, in order to test whether it is an issue related to insufficient power being supplied by your particular computer's USB port for the camera to operate as a RealSense camera instead of an ordinary webcam?
-
RealSense cameras can operate on USB 2.1 connections. At least USB 3.1 Gen 1 is recommendable on USB 3 connections though, and USB 3.1 Gen 1 is listed.in the Tech Specs section of the 400 Series camera listings on the official RealSense Store.
https://store.intelrealsense.com/buy-intel-realsense-depth-camera-d455.html
You could test whether a USB 3.0 port is a factor by misleading the RealSense Viewer into thinking that the camera is using a USB 2.1 connection, in which case the camera should appear in the Viewer with 2.1 beside its name. This can be done by slowly inserting the USB connector into the USB port, stopping when the connector is only partially inserted once you hear the 'doo doo doo doo' Windows USB device connection sound effect.
-
I've followed your steps, and nothing happend again...
I tried to run "Depth quality tool for intel" but an infinite loading screen comes up.
I know that what I'm about to say makes little sense but at this point I'm starting to exploit all the possibilities...
is it possible that the 750W power supply is impacting the camera in some way? Do you think it's more of a hardware or software issue? -
The wattage strength of the power supply would not be a factor. The stability of the supply of power to the USB port is what matters more. A mains-plug powered USB hub can provide more stable power than a USB port that is drawing power from the computer's power supply unit.
As the camera works correctly on another PC, the camera hardware and camera firmware driver (which is stored inside the camera hardware instead of the computer), camera or firmware are not likely to be the cause of the problem. The RGB and depth drivers do not seem to be a factor either, as the drivers are listed in the Device Manager and in Discord.
Your earlier Discord image shows that 'Logi Capture' and 'OBS Virtual Camera'. Presumably these would not be installed on the other computer that you tested on and so would be worth exploring as a possible factor in the problem that you are having.
Do you have any other cameras aside from the RealSense depth and RGB drivers listed under the Cameras section of the Device Manager? If you do and they are not unpluggable, are you able to right-click on their Device Manager listing and select Disable device to disable them to see whether they are blocking the camera? They can be easily restored after being disabled by right-clicking on them again and selecting Enable device
Please sign in to leave a comment.
Comments
48 comments