Build Dependencies for Unity integration
Hello,
Thank for your patience with what may be obvious to the community, I'm an artist trying to get started with Unity Wrapper for RealSense SDK 2.0 (with D435)... and I'm stuck on step 1 (librealsense/wrappers/unity at master · IntelRealSense/librealsense · GitHub)
Step 1 - Build Dependencies And Open The Unity Project
mkdir build
cd build
cmake .. -DBUILD_CSHARP_BINDINGS=ON -DBUILD_UNITY_BINDINGS=ON -DBUILD_SHARED_LIBS=ON \
-DDOTNET_VERSION_LIBRARY=3.5 -DCMAKE_GENERATOR_PLATFORM=x64 \
-DUNITY_PATH=<path_to_unityeditor>/Unity.exe
where do i run the above commands? I installed Cmake, but don't know what that is or how to use, are there other dependencies that it needs. nor do i know where to locate the librealsense root dir
I have the Intel.RealSense Unity package file (.unitypackage) in unity but nothing is there
under Assets > Scenes > Start Here . on the home screen i have blue title screen, with no links
thank you
-
Hi Palov As a first step, could you confirm please whether you are using Windows? Thanks!
-
Thanks very much. If you are using Windows then the setup process for the Unity wrapper should be straightforward.
1. Install the full Windows version of the RealSense SDK using the installer file in the Assets file list on the SDK 'Releases' page.
2. Download the realsense.unitypackage file.
3. Create a new Unity project with the '3D' template.
4. Double-leftclick on the realsense.unitypackage file whilst the new empty Unity project window is open. This will import the RealSense files into the empty scene.
5. Go to the Assets > Scenes folder in Unity and double-leftclick on the StartHere scene file to load the RealSense starter scene, which is a list of buttons that launch RealSense tutorials. It is the blue and white screen shown at the top of the Unity wrapper web page.
6. Make sure that the D435 camera is plugged in and then click the triangular Play button at the top of the Unity editor window to run the scene. The program should then detect the camera and allow you to launch sample programs by left-clicking on the options.
Please sign in to leave a comment.
Comments
4 comments