View my account

How to start proprely on Unity ?

Comments

48 comments

  • MartyG

    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.

    0
    Comment actions Permalink
  • Youcefbouzgaou

    Thank you for your reply, I followed all your steps but when I open the Start Here scene, it doesn't seem to recognize the camera that is properly connected to my PC.

    Are there any specific drivers/software I need to download for Unity to detect the camera?

    0
    Comment actions Permalink
  • MartyG

    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?

    0
    Comment actions Permalink
  • Youcefbouzgaou

    I think it was 2.50 (the last one avaible) and the only other thing i've download was this:

    0
    Comment actions Permalink
  • MartyG

    You can find the camera's firmware version by launching the RealSense Viewer and left-clicking on the 'Info' option at the top of the Viewer's options side-panel.

     

    0
    Comment actions Permalink
  • Youcefbouzgaou

    My camera is not reconize by "RealSense Viewer" which is weird because i can use it as a webcam in every other softwares.

    i can't see the info panel because of that i think.

    0
    Comment actions Permalink
  • MartyG

    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

    0
    Comment actions Permalink
  • Youcefbouzgaou

    Yes i can see them and i've followed the steps but i have not get any differences, my camera isn't detected by realSense Viewer nor Unity.

    But again, it's usable as a webcam on other software like messenger or discord, so the camera isn't broken or something like that.

    0
    Comment actions Permalink
  • MartyG

    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

    0
    Comment actions Permalink
  • Youcefbouzgaou

    I followed your step again and it doesn't change anything but as you can see it is still detected by Discord ! 

    0
    Comment actions Permalink
  • MartyG

    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

    0
    Comment actions Permalink
  • Youcefbouzgaou

    After launching the "rs-capture" file there's 2 window screens opened for 5 sec, then they just disapear and nothing else happen. (i tried 10 times and also with a rebooting too...)

    0
    Comment actions Permalink
  • MartyG

    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.

     

    0
    Comment actions Permalink
  • Youcefbouzgaou

    Hi, all my drivers are already updated.

    0
    Comment actions Permalink
  • MartyG

    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.

    0
    Comment actions Permalink
  • Youcefbouzgaou

    Hello, after you're message i've tried to use another PC of my friend, and it works !! 

    As you said the problem came form my own PC but actually i really need to work from it, do you have any idea where the problem came from ?

    0
    Comment actions Permalink
  • MartyG

    Do you have any antivirus software installed on your PC?  If so then this could block a camera.  

    https://support.microsoft.com/en-us/windows/camera-doesn-t-work-in-windows-32adb016-b29c-a928-0073-53d31da0dad5

     

    https://windowsreport.com/fix-antivirus-blocking-camera/

    0
    Comment actions Permalink
  • Youcefbouzgaou

    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.

    0
    Comment actions Permalink
  • MartyG

    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.

     

    0
    Comment actions Permalink
  • Youcefbouzgaou

    0
    Comment actions Permalink
  • MartyG

    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.

    0
    Comment actions Permalink
  • Youcefbouzgaou

    Here's the only window i got for 10 seconds, then it closed and that's it....

    0
    Comment actions Permalink
  • MartyG

    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.

     

    0
    Comment actions Permalink
  • Youcefbouzgaou

    No, the only things i have is that:

    0
    Comment actions Permalink
  • MartyG

    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?

    0
    Comment actions Permalink
  • Youcefbouzgaou

    I've tried every single USB port on my pc, but it doesn't work.

    (I only have 3.0 USB on my pc btw, is it something important to note?).

    0
    Comment actions Permalink
  • MartyG

    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.

     

     

    0
    Comment actions Permalink
  • Youcefbouzgaou

    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?

    0
    Comment actions Permalink
  • MartyG

    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

    0
    Comment actions Permalink
  • Youcefbouzgaou

    I do not have any other cameras as you can see:

    Discord store all previous cameras used, it's why there's all my previous cameras, but there not plug in.

    0
    Comment actions Permalink

Please sign in to leave a comment.