Don Havey

Sustainably harvested information

Inverse-kinematic springy grass  

IK grass previewThis isn’t a formal tutorial… just a source code dump. I made this randomized, springy IK grass in Flash for Curiobot a while ago, but decided that it was too CPU-intensive to risk combining with all of the DOM-scripting on the site. As such, I didn’t bother optimizing it much, so that’s up to you.

The files: IK grass classes

The final result: Springy IK grass

Click on the stage and then move your mouse left and right to simulate a breeze through the grass.

The variables contained in the .fla are pretty well labeled… you shouldn’t have any trouble playing around with them. I’m afraid the thing was built in Flash MX 2004… so it’s AS2.0, not AS3.0. But it wouldn’t be hard to convert… it’s already OOPed. I think I’ll put it into Processing soon. Should run much better.

Enjoy!

The article has

13 responses

Written by Don

April 28th, 2008 at 9:31 am

13 Responses to 'Inverse-kinematic springy grass'

Subscribe to comments with RSS or TrackBack to 'Inverse-kinematic springy grass'.

  1. Hi Don,

    I love your grass image. Do you mind if I use this in the logo for my new business?

    Best,
    Lauren

    Lauren

    9 Mar 10 at 00:19:43

  2. Go for it. I’m not using it. A linkback on your website (if applicable) would be appreciated though. Enjoy!

    Don

    9 Mar 10 at 08:51:24

  3. This is very impressive! I’ve tried to make these types of things in flash but I’ve never succeed.
    I’m currently working on a website for and friend and I’s little neighborhood mowing company and would love to use this some where on the website if it is okay with you!

    TJ

    17 Oct 10 at 22:42:34

  4. Don, Your grass image is just what I’d like to use with my first, experimental HTML5 animation. Can I use the grass-preview.jpg file?

    Bruce Martin

    6 Dec 10 at 21:58:00

  5. Can I use this for my science poster background

    James

    13 Jan 11 at 22:56:04

  6. Is it ok if i can copy this into a powerpoint for a project im doing (if you can?) and how do you do it?

    HJC123

    20 Jan 11 at 15:59:01

  7. Hi Don,
    Can I use the figure for my scientific paper? I will put a reference with it.

    Marjolein

    Marjolein

    21 Feb 11 at 08:16:59

  8. Hi Don,

    I am doing a school science fair project on land oil spills. I was just wondering if it’s at all possible to somehow mix oil into the very bottom parts of this grass image?

    Thanks, Sam.

    Samantha

    10 Mar 11 at 13:46:00

  9. Hi don
    love the grass picture. Do you mind if i use it for my growing theme?

    thanks
    Inderpreet Singh Garcha

    Inderpreet

    31 Mar 11 at 10:08:59

  10. HiDon

    Love the image too and would really like to use it on my website. Hope thats ok ? Happy to link back !

    Cath

    Cath

    2 May 11 at 14:35:12

  11. I love this grass and would love to be able to use it for our new website. Would you mind?

    Jennifer

    Jennifer

    6 Jun 11 at 15:05:49

  12. How to make HTML file open in new window?

    Nicola Rubio

    28 Jun 11 at 09:17:14

  13. Sorry about the huge delay in approving comments. Everyone, feel free to use the image as you see fit for non-commercial purposes. Attribution would be nice.

    Don

    28 Jun 11 at 09:30:46

Leave a Reply