Grasshopper

algorithmic modeling for Rhino

hi there,

i have a question towards realtime input from let´s say a movie or a sound source into grasshopper.
i looked through previous posts, especially the one about sound in the old forum with a lot of nice ideas but
no final "yes, you can ".
does someone no of a way to import realtime data into grasshopper?

thanks a lot in advance

Views: 2416

Replies to This Discussion

You probably haven't gotten a definitive answer because of 2 reasons... 1) You'll likely have to code it yourself, so if you can't code or can't kidnap someone who can, you're a little out of luck 2) it also depends on whether there's an interface out there for connecting to whatever medium you're looking to connect to. There are plenty out there, but it may take some digging and some interesting workarounds.

Here's two examples from Luis Fraguada...
http://www.livearchitecture.net/archives/4489
http://www.livearchitecture.net/archives/3664

I think there was also something that someone did with Wii nunchucks and I believe Andy Payne was working on an Arduino unit or something.
Hi Karl,
Yes, it's not too difficult to import live data from a sound source or a movie and have it control some geometry in GH... the question really is what is it that you want to do? I have two files on my site (www.liftarchitects.com) that allow you to read/write live sensor data into GH over the serial port via an arduino micro controller using a custom VB script component and some arduino code. If you're into live sensor data... then this would be the way to go. If you're trying to take sound information, from a movie or mp3... then it might be easiest to use Processing (www.processing.org) to run your analysis and send that data to GH over UDP. In this case, I would recommend looking at Luis' code as there is already a UDP component floating around. I think the bigger question to you is to figure out exactly what it is you want to do... and there is enough information out there to at least get you started. I hope this helps.
thanks to both of you. i think i give it a go via processing / UDP.
would like to hear what you think about it as soon as i get first results.

thanks once more
karl
Have you checked out the thread from the old newsgroup? There's a program called Spectrum Lab, mentioned in that thread, that works quite well. Supposedly, it can send data to other programs, but i can't figure out how to make that work. It's easy, though, to constantly overwrite a text file with data and read that file from grasshopper. Here's an example:
http://www.grasshopper3d.com/video/real-time-audio-to-gh
The audio is from a keyboard connected to the audio-in of the sound card. The screen capture software makes the delay between audio/video seems longer that what it really is (but there is a small delay).
I found out the screen capture software has an option to delay the video recording over the audio, so i decided to cheat. This video is delayed 200 milliseconds:
http://www.grasshopper3d.com/video/real-time-audio-in-gh-cheating
I think the real delay i get is around 50 ms using this method, if you add more complex geometry the main bottleneck is Grasshopper, not the link with the Spectrum Lab software.
wow, thanks for all your help! i am kind of new to this forum and didn´t expect that much response......

RSS

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