Software Archive
Read-only legacy content
17061 Discussions

Unity 3D Sementation

Eric_P_1
Beginner
1,267 Views

Has anyone employed 3d segmentation in Unity? I've tried just about everything else successfully but I don't see an easy way to implement that.

0 Kudos
5 Replies
Vidyasagar_MSC
Innovator
1,267 Views

Are you referring to animation/bone segmentation???

0 Kudos
MartyG
Honored Contributor III
1,267 Views

I believe a Unity application that falls under the segmentation category is the Scene Perception sample that was added to the Sample Browser in the latest R2 release of the SDK.

It does not run properly on my machine though, as it infinite-loops the error 'PXCM Status Item Unavailable'.  You could still take a look at its object hierarchy to see how it is made though.

0 Kudos
Vidyasagar_MSC
Innovator
1,267 Views

Thanks for the info Marty.Haven't tried this yet.

0 Kudos
Eric_P_1
Beginner
1,267 Views

I found it, thanks.

I'm getting a looping error too on it, object reference not set to an instance of an object on line 108 of depthfusion.cs:

m_scenePerception.SetMeshingThresholds(m_maxDiffThreshold, m_avgDiffThreshold);

Unity did mention it was upgrading the project when it loaded, it is perhaps something to do with this being created in an older version of Unity?

I'd love to figure out how 3d segmentation works in Unity but it's hard without a working example.

Thanks

0 Kudos
Pruthviraj_N_
Beginner
1,267 Views

I did not play with the code much due to limited time. But i experimented with SDK Unity toolkit.

It worked for me. 

 

Check these [Refer Intel RealSense SDK documentation]:

SDK framework samples  ->  Unity toolkit samples

SDK Unity Toolkit.

 

You must find the prefabs folder once you import these samples to your Unity project.

Drag-drop prefabs to your scene gameobjects window and try out. It includes 3D segmentation too.

And while you use segmentation, you may have to consider seating at proper distance from the Camera.

 

 

0 Kudos
Reply