Software Archive
Read-only legacy content

Unity Setup

Peter_K_8
Beginner
730 Views

Hello, I'm attempting to set up my RealSense so that I can use the Faceshift plugin in Unity, or even just any sort of Unity functions for this camera, but so far no luck.  My Windows 10 camera is tracking my face, and another piece of software, Personify, does work, but in the engine I now followed these instructions:

https://www.youtube.com/playlist?list=PLg-UKERBljNwzzQDKCogpenJcDvnLgQK0

Which have been simplified from the earlier setup instructions found in this forum, I guess the SDK has been updated.  However, after importing everything into Unity it still doesn't react at all.  What might I be doing wrong?

0 Kudos
3 Replies
MartyG
Honored Contributor III
730 Views

A fast way to setup Unity 5 for the RealSense camera is to use the Unity Toolkit application, if you have not done so already.

STEP ONE

Run Unity.

STEP TWO

Go to the RSSDK > Framework > Unity directory of the SDK folder and run the file 'UnityTooolkit'. As stated above, Unity should be running when you activate this file.

Unity will now automatically import the SDK files and the library files that make the camera work into your project, and the camera should now work.  If it does not, please let me know in the comments and I'll suggest the next step.

 

0 Kudos
Peter_K_8
Beginner
730 Views

Yes that's what I did, as shown in the video I linked to.  Still I see no response from my camera, even though I have it working inside of other software.

0 Kudos
MartyG
Honored Contributor III
730 Views

If that fails, this next method usually works.

STEP 1

Go to the 'Plugins' and 'Plugins.Managed' folders that the Toolkit created in your project and delete the contents of those folders.

STEP 2

Go to the RSSDK > bin > x64 SDK folder.  This contains the 64-bit versions of the RealSense library files that Unity 5 needs in order to work with the camera (as Unity switched from 32-bit to 64-bit code after Unity 5).

STEP 3

Open the 'Plugins' folder and drag and drop the 'libpxccpp2c.dll' folder from the 'x64' SDK folder to the Plugins project folder.

STEP 4

Open the 'Plugins.Managed' folder and drag and drop the 'libpxcclr.unity.dll' file from the 'x64' SDK folder to the Plugins'Managed project folder.

In most cases, the camera will now function with Unity 5.  If not, please come back here and we'll try again!

0 Kudos
Reply