Grasshopper

algorithmic modeling for Rhino

I'm looking to animate a field of sand dunes using height maps generated by another program. I got the image sampler to run fine and dandy and even got the mesh from points component to play nice, but I was wondering if there would be a faster way to cycle through the 100 images that generate the animation in an easier method than manually changing the input for each image.

I'm not sure if david or any of the other wonderful Dev characters will see this but an additional input to the image sampler for the image path in the future-ish would be super.

Thanks! 

Views: 2632

Replies to This Discussion

(+1) Totally agree with you, it would be a great feature.

I started this Discussion, (with impressive results with the help of Andrew and Florian), about controlling image sampler with a file path, but the idea of the external File Path is to play with the channels of the image sampler (colour brightness, saturation, hue). So I used split HSV, but takes a lot of time to compute. and with Florian's script the problem is the updates.

Hi Kameron, Erick,

you could use the LoadBitmap and BitmapSampler from Firefly.
I've attached an example of how I sample image sequences.

Attachments:

Thank you peter!

Huge help I really appreciate it!

You're welcome Kameron. Glad you like it.
I am curious about your sand dunes sequence!

hey Pieter,


thanks a lot for the 'image sequence' component.

I hoped to use it as an alternative for 'video player' component (while creating an 'optical flow' based dynamic mesh texture). the 'video player' reduces the frame rate according to real time computing power, but I need every frame to get a smooth result and real time appearance isn't important to me as I plan to slider animate it at the end. so it seemed a perfect solution until I tried it out and realized that Firefly doesn't read the sequence of video frames the same way as it reads the video bitmaps.

do you know if there's a way to transform the output of image sequence so that other components would treat it the same way as the output of video player? in other words, is there a way to transform an ordinary bitmap into video bitmap?

thanks in advance,

Jo

Attachments:

Hi Johanna,
I'm afraid I don't understand your question and goal. Please attach your files in order to clarify things.
Best ask at the firefly group about the firefly media types I think.

How many frames is your video in total? Couldn't you just export all frames of your video as bitmaps, and set the path for [Image Sequence] to the folder that contains them? But again: I don't understand what you asked.
B.t.w. I couldn't even guess if the yellow text in your second image was in english or estonian, or if it was in fact text at all...

hey Pieter,

thanks for the reply.


"Couldn't you just export all frames of your video as bitmaps, and set the path for [Image Sequence] to the folder that contains them?"

yes, that's exactly what I did (image 2). but it wasn't a solution, because the output of [Image Sequence] component is [Load Bitmap]; the output of [Video Player] component is [Raw Video Bitmap]; and some components like [Optical Flow] seem to work only with the latter. and its a shame because components that output [Raw Video Bitmap] read the video in real time, and thus reduce the frame rate (image 1), making it impossible to export a smooth animation of the outcome.

I was just thinking maybe you've run into the problem, because it seemed like a perfect use for your component (using it instead of [Video Player] to make sure no frames are skipped). as it occurs you haven't, I made a separate discussion for this matter. hopefully there still is a workaround for that issue.

thanks anyway,

Jo

(and zooming might be useful.)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2021   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service