Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Rhino.Compute in Unity for WebGL #449

Open
pedrocortesark opened this issue Feb 17, 2022 · 0 comments
Open

Using Rhino.Compute in Unity for WebGL #449

pedrocortesark opened this issue Feb 17, 2022 · 0 comments
Labels

Comments

@pedrocortesark
Copy link

Testing a possible workflow from Unity and compiling for WebGL

Project review

El proyecto tiene el objetivo de testear un posible workflow en el que Unity pueda compilar un proyecto que utilice Compute (en este ejemplo he utilizado un servidor local) para WebGL. Algunos usuarios lo han solicitado en Discourse:

https://discourse.mcneel.com/t/unity-webgl-build/105308

Workflow

The user executes a function on the Unity canvas (create MeshSphere) that communicates with the Unity directives to the Javascript code (rhino3dm.js), where it creates a simple sphere. This sphere is sent to compute to calculate the mesh and the resulting json is transferred to the Unity canvas.

Back in Unity, we need to make use of rhino3dm.net to deserialize the json and obtain the mesh to visualize.

Here you have a simple schema of this function:

UnityWebGL

Error

When trying to deserialize the json by using rhino3dm, I got the error:
DllNotFoundException: Unable to load DLL 'librhino3dm_native'

I don't know if there is a workaround to solve this...

@fraguada fraguada added the dotnet label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants