Open prolove15 opened 1 year ago
That’s a pretty vast question
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: @.***>
I would really appreciate if you let me know.
I'm no expert in Open3D or Unity for that matter. But the steps should be along those lines:
__declspec(dllexport)
) exporting-from-a-dll-using-declspec[DllImport("O3D_bridge.dll")]
) dllimportattributeThen 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
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:
- Create your "bridging" header (using __declspec(dllexport)) exporting-from-a-dll-using-declspec https://learn.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-declspec-dllexport?view=msvc-170
- Build Open3D into a dynamic library (.so/.dll)
- Add the dll to your assets and declare you C# "bridging" file (using [DllImport("O3D_bridge.dll")]) dllimportattribute https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.dllimportattribute?view=net-7.0
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: @.***>
PS: Open3D binary package with DLL / DSO is available for direct download on Github releases. You don't need to build from source.
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: @.***>
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
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
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:
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.
Checklist
master
branch).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.