Tom17 Posted July 25, 2019 Share Posted July 25, 2019 Hello, I would like to filter from the camera all objects within certain distance. For example if I would like to see only objects between 3 - 6 feet distance, how can I achieve that with the Vive SRWorks API for Unity? Does anybody know how to do that? Thanks Thomas @Dario @Daniel_Y Link to comment Share on other sites More sharing options...
Tom17 Posted July 26, 2019 Author Share Posted July 26, 2019 For a better understanding please have a look at this: https://www.youtube.com/watch?v=oIAU2kY485w. With the depth camera feature of the Vive Pro I would like to show only that part of the reality which is within a certain distance. Link to comment Share on other sites More sharing options...
Daniel_Y Posted July 30, 2019 Share Posted July 30, 2019 You could adjust the near and far range as the enclosed figure to select your ROI distance. Link to comment Share on other sites More sharing options...
Tom17 Posted July 30, 2019 Author Share Posted July 30, 2019 Daniel_L, thanks for your reply. I am not sure if that really meets my needs. Your suggested solution gererates a depth mesh collider. I would like to "remove" everything which is not within the specified range. Realsense has a sample implementation of what I would need for Vive Pro. Please have a look at: https://github.com/IntelRealSense/librealsense/tree/master/examples/align-advanced I would need a color image. Indead of a gray background I would need an empty background. Oclusion culling should be actiated as well, just as it´s demonstrated at ViveSRWorksHand example. https://github.com/ViveSoftware/ViveSRWorksHand Thanks Thomas Link to comment Share on other sites More sharing options...
dario Posted July 30, 2019 Share Posted July 30, 2019 Have you tried placing a green sphere resized to the depth you want and centered to follow the camera? Link to comment Share on other sites More sharing options...
Tom17 Posted July 30, 2019 Author Share Posted July 30, 2019 @Dario I guess your post is refering to the ViveSRWorksHand example. Unfortunately I am still not able to run it. Please have a look at my last posting at the ViveSRWorksHand topic https://forum.vive.com/forums/topic/3693-use-depth-image-to-occlude-virtual-objects-in-unity/ Thanks Thomas Link to comment Share on other sites More sharing options...
Daniel_Y Posted July 31, 2019 Share Posted July 31, 2019 Basically, for your referral Realsense example, you could create a mask from depth map according to your ROI distance, and then apply this mask to the undistorted left-eye image in the image center. Link to comment Share on other sites More sharing options...
Tom17 Posted July 31, 2019 Author Share Posted July 31, 2019 I am still quite new to the ViveSRWorks SDK. I don´t know which steps I have to take to create a mask from depth map and to apply this mask to the undistorted left-eye image. As the documentation of the SDK is quite short, I would be interested to know if there would be a more detailled documentation of the SDK beside the Pdf document "SRWorks Unity API Reference.pdf". I am still struggeling with the ViveSRWorksHand example. The description of that example states that it should work with Unity 2018.2.16f1 and SRWorks v0.8.0.2. Unfortunately wihin that environment it throws an exception as mentioned in some posts before. Would there be a solution for that, respectively are you going to update this example as well to the more recent Unity version 2019? @Daniel_Y Link to comment Share on other sites More sharing options...
dario Posted September 3, 2019 Share Posted September 3, 2019 Yes, the sample will be updated to both latest SRWorks and Unity shortly, sorry for the inconvenience. Support for older versions of SRWorks will probably be dropped. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.