All Videos Tagged c++ (Grasshopper) - Grasshopper 2020-09-22T14:29:44Z https://www.grasshopper3d.com/video/video/listTagged?tag=c%2B%2B&rss=yes&xn_auth=no Maya Fluids in Grasshopper via UDP 2: vector field tag:www.grasshopper3d.com,2009-07-25:2985220:Video:15228 2009-07-25T13:51:25.014Z Luis Fraguada https://www.grasshopper3d.com/profile/LuisFraguada <a href="https://www.grasshopper3d.com/video/maya-fluids-in-grasshopper-via"><br /> <img alt="Thumbnail" height="150" src="https://storage.ning.com/topology/rest/1.0/file/get/2778152052?profile=original&amp;width=240&amp;height=150" width="240"></img><br /> </a> <br></br><a href="http://www.livearchitecture.net">http://www.livearchitecture.net</a><br></br> This video shows another example of communication between Autodesk's Maya 2009 and McNeel's Rhinoceros/Grasshopper via UDP. This is all made possible with the collaboration of Shajay Bhooshan (http://data-tribe.net/wework4her/index. php), who is creating custom Maya nodes through the API using… <a href="https://www.grasshopper3d.com/video/maya-fluids-in-grasshopper-via"><br /> <img src="https://storage.ning.com/topology/rest/1.0/file/get/2778152052?profile=original&amp;width=240&amp;height=150" width="240" height="150" alt="Thumbnail" /><br /> </a><br /><a href="http://www.livearchitecture.net">http://www.livearchitecture.net</a><br /> This video shows another example of communication between Autodesk's Maya 2009 and McNeel's Rhinoceros/Grasshopper via UDP. This is all made possible with the collaboration of Shajay Bhooshan (http://data-tribe.net/wework4her/index. php), who is creating custom Maya nodes through the API using C++ and the Open Frameworks (<a href="http://www.openframeworks.cc/">http://www.openframeworks.cc/</a>) platform. This fluidNode communicates to Grasshopper via UDP and a custom vb.net component. The GH canvas is refreshed at an interval with Giulio Piacentino's (<a href="http://www.giuliopiacentino.com/">http://www.giuliopiacentino.com/</a>) "The Engine" component written in C#.<br /> <br /> Here I am grabbing the velocity vector values from maya and rendering fluid velocity direction and magnitude. Video is in real time on a single Pentium M processor @ 2.26GHz and 2GB of ram. Maya Fluid to Grasshopper via UDP tag:www.grasshopper3d.com,2009-07-24:2985220:Video:15160 2009-07-24T21:26:33.619Z Luis Fraguada https://www.grasshopper3d.com/profile/LuisFraguada <a href="https://www.grasshopper3d.com/video/maya-fluid-to-grasshopper-via"><br /> <img alt="Thumbnail" height="150" src="https://storage.ning.com/topology/rest/1.0/file/get/2778234193?profile=original&amp;width=240&amp;height=150" width="240"></img><br /> </a> <br></br>In a collaboration with Shajay Bhooshan (http://data-tribe.net/wework4her/index.php), Autodesk Maya 2009 can communicate with McNeel’s Rhinoceros::Grasshopper. The work on communicating to and from Grasshopper via the user datagram protocol (UDP) was to effectively speed up communication between programs without the use of each program writing and reading a text file. This… <a href="https://www.grasshopper3d.com/video/maya-fluid-to-grasshopper-via"><br /> <img src="https://storage.ning.com/topology/rest/1.0/file/get/2778234193?profile=original&amp;width=240&amp;height=150" width="240" height="150" alt="Thumbnail" /><br /> </a><br />In a collaboration with Shajay Bhooshan (http://data-tribe.net/wework4her/index.php), Autodesk Maya 2009 can communicate with McNeel’s Rhinoceros::Grasshopper. The work on communicating to and from Grasshopper via the user datagram protocol (UDP) was to effectively speed up communication between programs without the use of each program writing and reading a text file. This investigation was begun to open up Grasshopper to the outside world and eventually use it to drive physical associations via arduino and other interfaces. Processing was used initially as it is a very simple platform to used to test communication to and from Grasshopper. The first objective of the investigation was to eventually connect up with a custom plugin which Shajay Bhooshan has been developing.<br /> <br /> On the Maya side, Shajay is controlling and augmenting this already vast platform with custom C++ API Nodes. His work can be seen on We Work 4 Her. This particular ‘fluid_UDP_Node’ transmits fluid data per voxel over UDP. Shajay has also taken advantage of the Open Frameworks, leveraging some of the code within the Maya plugin.<br /> <br /> On the Rhino Grasshopper side, I have developed a very simple UDP receiver component in vb.net. The data is transmitted as one long string of comma separated values. Currently Shajay can send me fluid density and velocity information per voxel, but really, any type of information could be sent out. This information is parsed in the GH component and used to visualize the fluid as a Surface. As with the rest of the UDP experiments, Giulio Piacentino’s “The Engine” (<a href="http://www.giuliopiacentino.com/grasshopper-tools/">http://www.giuliopiacentino.com/grasshopper-tools/</a>) component made the refreshing of the Grasshopper canvas possible.<br /> <br /> As you can tell, running all of these applications (including screen capturing) start to have an effect on this single processor machine. Maya can effectively optput the data between 8 - 12 frames per second depending on how many applications are running. The promising aspect of using UDP is that data can be sent from one computer to another via a network. This could effectively distribute the workload of complex combinations of processes to many devices.