Grasshopper

algorithmic modeling for Rhino

Previous Comments:

George

I'm playing around with examples and I've connected grasshopper with processing via UDP. 
I'm sending the division points from a torus from grasshopper and I need also to send an attractor point that will transform the previous points so I will have a new list of points.
Should I send the attractor it self or I need to send both attractor and the new list of points to get the expected result? 
Any advice or ideas of how I can do this?

Luis: Please Clarify a bit, you want to deform a torus in GH and send the deformed points to Processing?

George:

I want to send the deformed points but also an attractor point that affects the points dynamically so when attractor changes position, the points are also affected.

Luis

Yes, but I still do not understand. The attraction and deformation is calculated in Grasshopper?  What are you doing in processing?

In general, you should open a new thread to deal with specific questions as the comments area is not the greates for following up on a topic.

George

Yes eveyrthing is calculated in Grasshopper. The deformation and the attractor.

I need to trasnfer everything in Processing. A later on I will create UI via ControlP5 to control the parameters via Processing in order to export it as application.

Views: 1211

Replies to This Discussion

I see.

So you would need a UDP sender to send off the vertex positions of the torus like so:

pt1X,pt1Y,pt1Z;pt2X,pt2Y,pt2Z;...ptNX, ptNY, ptNZ;

In Processing you will receive a string which you will need to split twice, once for the semicolons to get each point as a separate object, and then with commas to access each coordinate.

The gHowl examples should give you some clues (send and receive example) on how to go about it.

Exactly, I have done this.

I'm actually in the procedure of sending an attractor which transofrms the previous points creating new ones. It is important to send the attractor point on processing to alter the points dynamically (via ControlP5 in Processing).

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service