Software Archive
Read-only legacy content
17061 Discussions

Please Help! Unity Realsense Error.

Jonathan_C_1
Beginner
783 Views

Thank you for any help in advance.

I'm on a Windows 7 64 bit with the F200 Front Facing Camera. I'm using Unity 5.

 

With the Unity Realsense Toolkit, I get this error when using any actions:

 

Unable to initialize all modalities
UnityEngine.Debug:LogError(Object)
RSUnityToolkit.SenseToolkitManager:OnEnable() (at Assets/RSUnityToolkit/Internals/RealSenseInput/SenseToolkitManager.cs:333)
RSUnityToolkit.SenseToolkitManager:Update() (at Assets/RSUnityToolkit/Internals/RealSenseInput/SenseToolkitManager.cs:550)

The camera does not turn on as well.

Thanks again!

0 Kudos
4 Replies
Colleen_C_Intel
Employee
783 Views

You have to be on Windows 8.1 or 10.

0 Kudos
Jonathan_C_1
Beginner
783 Views

Alright, I'll virtual port to Windows 8 and see if that solves the problem. Thank you for answering!

0 Kudos
Jane_M_
Beginner
783 Views

I am on Windows 8.1 and I'm having the same problem.  Did you find a solution?

0 Kudos
MartyG
Honored Contributor III
783 Views

Jane, as well as using at least Windows 8.1, you also need to manually copy 64-bit RealSense library files int your project if you have not already done so, as Unity 5 runs on 64-bit code instead of the 32 bit that earlier versions such as Unity 4.6.used.  Once you copy these files into your project then the camera should turn on.

You can find the 64-bit versions of the files in the RSSDK/bin/x64 folder of the SDK.  

I personally would carry out the process using the following steps.

1.  Open your Unity project in Unity 5.

2.  If you have not done so already, go to the RSSDK/framework/Unity folder and run the application 'RSUnityToolkit'.  This will import all of the Unity SDK files into your project by creating three folders in your Assets panel - Plugins, Plugins.Managed and RSUnityToolkit.

3.  The Unity Toolkit currently imports the 32-bit versions of the camera's library files into the project (Intel's engineers are working on a solution for this).  You need to replace these files with the 64-bit versions.

4.  Delete the contents of the Plugins and Plugins.Managed folders in your Unity project.

5.  Go to the RSSDK/bin/x64 folder of the SDK.  

Open the Plugins folder in your Assets panel and then find the file called LIBPXCCPP2C.DLL in the x64 folder.  Drag and drop this file into the Plugins folder in Unity to import it into your project.

Now open the Plugins.Managed folder in your Assets panel and then find the file called LIBPXCCLR.UNITY.DLL in the x64 folder.  Drag and drop this file into the Plugins.Managed folder in Unity to import it into your project.

The camera should now be able to turn on when your Unity program is run.  If you still have errors, please come back to the forum and let us know so we can work out where to go next!

 

 

 

 

0 Kudos
Reply