Grasshopper

algorithmic modeling for Rhino

Plugin to send Grasshopper mesh to Unity in realtime.

Hi all,

I'm making this new plugin for Grasshopper recently to connect with Unity to send mesh data in realtime. You can send the mesh geometry as it is to Unity and view it any app which includes VR app, IOS app... etc that are built by Unity.

This plugin is using Socket.IO to send geometry through network so not only you can send the mesh locally but you can send it through internet as well. I haven't made a component yet but technically you can also send and receive geometry between multiple grasshopper files in realtime as well (not sure if this function is useful though).

Still in early beta but if anyone who's interested in testing let me know.

Views: 8572

Comment

You need to be a member of Grasshopper to add comments!

Comment by Joun Kim on May 4, 2020 at 11:29am

Hi Junichiro,

Thank you very much for making this plug in and sharing it!

But I have some issues, I downloaded all the plugin and files you uploaded, but the code doesn't work properly. I also tried the debug problem solving you uploaded too.

I don't know any of C# or java script but according to my searching, I think these problems are due to version difference. Do you have plans to adjust the scripts for upper versions?

On Unity script, first there were missing script on MainScene/TestSocket. Is this suppose to be empty? cause the SocketIO in prefabs file had 'SocketIOComponent' script. Second, I tried the beep.js example file to check the problems, it says the } and ) is an error. I don't know why that is an error though. Also, Keyframe.tangentMode doesn't work(VectorTemplates.cs in Assets/SocketIO/JSONObject). It's because the tangentMode script has moved to AnimationUtility class in Unity 2018 (this is my current version).

On Node.js part, I think the app.js works properly cause the 'server connected.' message popped up on the console, but it isn't receiving the data from the grasshopper. The message from the grasshopper plugin also randomly shifts from 'disconnected', 'error' and 'reconnected' every time I change the toggle true. I'm using Rhino 6 now, could it also be because of the version difference?

Thanks!

Comment by Arian Sadafi on April 11, 2020 at 5:47am

Hi Junichiro,

really nice project.

I just downloaded your package from GitHub, but I think the GH plugin isn't yet released.

If it's possible, I would love to try it.

Thanks

Comment by Sebastien Perrault on December 18, 2019 at 3:51pm

Hi Junichiro, 

Is it possible to send mesh colors with your component ?

I followed your "How to use vertex colors in Unity" tutorial; I am successfull with .fbx imports but not with streamed meshes: Am I missing something ?

Cheers -

Comment by vineet_kamboj on February 22, 2019 at 2:45am

I want to try this plugin. Where can I find a compiled version of this? 

Thanks :D

Comment by Yorika Sunada on November 2, 2018 at 6:14pm

Great Components and Programs! 

Thanks a lot.

Comment by Viola Cambié on September 20, 2018 at 1:42am

Many thanks @satolas! I'm going to test it and let you know!

Cheers guys

Comment by Bonny on September 19, 2018 at 10:44am

Thanks @Satolas for sharing your video...it's a great resource for using the plugin!

Comment by satolas on August 31, 2018 at 7:32am

Hello Viola,
Did you grabbed the file from there ?
https://github.com/jhorikawa/MeshStreamingGrasshopper
I guess this version is the stable one.

The answer I gave to Bonny was based on another problem I think.
Just to be sure I made a little video capture to show the steps to follow. I hope that will help you:
https://youtu.be/6o62HBaTQ1s

ps: in the video I do "open scene" (my mistake ^^) but of course on your side do "open project"
And once in the project open the "MeshReceiving" scene.
Let me know if you still have problems :-)
Cheers,

Comment by Viola Cambié on August 18, 2018 at 5:24am

Hey Satolas and Bonny

I'm new of Unity so apologize in advance for my question :)

I'm having problem to connect gh. As @Bonny, I did npm install for the json package, ran app.js in the command line, and the server is running.

I have also changed the ip address in GH with my own ip but I'm not sure where to change in Unity. @Satolas suggest to look for "receive component (c#) " but I'm not sure where can I find it.

Any suggestion?

Thanks

Comment by Bonny on July 21, 2018 at 7:57am

Hi Satolas,

Thank you so much! I think launching the command prompt as administrator did the trick :)

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service