isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.36k stars 2.29k forks source link

How to use Open3D library in Unity? #6294

Open prolove15 opened 1 year ago

prolove15 commented 1 year ago

Checklist

My Question

Hello everyone. I am Unity developer and going to use Open3D library in Unity. If someone know how to implement it, please teach me. This is urgent project, so I would be really appreciate if you help in short time. Thank you.

melMass commented 1 year ago

That’s a pretty vast question

prolove15 commented 1 year ago

Thank you for your reply. I am going to change the question like the below. How to call the API of Open3D librarary in Unity C# scripts.

On Mon, Aug 14, 2023 at 7:26 PM Mel Massadian @.***> wrote:

That’s a pretty vast question

— Reply to this email directly, view it on GitHub https://github.com/isl-org/Open3D/issues/6294#issuecomment-1677071539, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6AFUGFUY3D2LF7HGSP3ON3XVH4PDANCNFSM6AAAAAA3E3FZ4M . You are receiving this because you authored the thread.Message ID: @.***>

prolove15 commented 1 year ago

I would really appreciate if you let me know.

melMass commented 1 year ago

I'm no expert in Open3D or Unity for that matter. But the steps should be along those lines:

Then you will still have to do the conversion from o3d data to unity and back in your code.

Take all this with a grain of salt and more as pointers than a final answer

Edit: This article goes over all the steps

prolove15 commented 1 year ago

Pretty good. I will test this process and will let you know the result. Thanks again. Regards

On Mon, Aug 14, 2023 at 7:48 PM Mel Massadian @.***> wrote:

I'm no expert in Open3D or Unity for that matter. But the steps should be along those lines:

Then you will still have to do the conversion from o3d data to unity and back in your code.

Take all this with a grain of salt and more as pointers than a final answer

— Reply to this email directly, view it on GitHub https://github.com/isl-org/Open3D/issues/6294#issuecomment-1677098592, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6AFUGHVW6ZKRACDUNYU3D3XVH7AFANCNFSM6AAAAAA3E3FZ4M . You are receiving this because you authored the thread.Message ID: @.***>

ssheorey commented 1 year ago

PS: Open3D binary package with DLL / DSO is available for direct download on Github releases. You don't need to build from source.

prolove15 commented 1 year ago

Thank you for your kind reply. I will try it to use the DLL in Unity, and will let you know. Regards.

On Fri, Aug 18, 2023 at 9:54 PM Sameer Sheorey @.***> wrote:

PS: Open3D binary package with DLL / DSO is available for direct download on Github releases. You don't need to build from source.

— Reply to this email directly, view it on GitHub https://github.com/isl-org/Open3D/issues/6294#issuecomment-1683879039, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6AFUGGLB5F6RPFEJ6W4GGDXV5Q2BANCNFSM6AAAAAA3E3FZ4M . You are receiving this because you authored the thread.Message ID: @.***>

wangjinhoon commented 1 year ago

Hello, I'm also thinking about this. DLLs in Open3D binary packages do not appear to be invoked by Unity C# scripts. I'd appreciate it if you let me know if I'm wrong. I would be very grateful if you could share the results.

Have a good day

camroo29 commented 11 months ago

PS: Open3D binary package with DLL / DSO is available for direct download on Github releases. You don't need to build from source.

Do you mean I can directly import the open3D DLL ( open3d-devel-windows-amd64-0.17.0) to Unity? I am trying to use it with HoloLens2

ssheorey commented 11 months ago

PS: Open3D binary package with DLL / DSO is available for direct download on Github releases. You don't need to build from source.

Do you mean I can directly import the open3D DLL ( open3d-devel-windows-amd64-0.17.0) to Unity? I am trying to use it with HoloLens2

We do not support Unity / C#, but here is what I found online:

https://levelup.gitconnected.com/integrating-native-c-c-libraries-with-unity-as-plugins-a-step-by-step-guide-17ad70c2e3b4

In this tutorial, you can use the Open3D DLL + headers downloaded from Github releases directly and should be able to follow from the "Using the Native DLLs in Unity" step. If this works for you, please write up your experience in

https://github.com/isl-org/Open3D/discussions/categories/show-and-tell

to help other users.