Grasshopper

algorithmic modeling for Rhino

After yesterday's faux shader experiment ( http://www.grasshopper3d.com/photo/image-from-shader ) I thought it might be nice to actually implement infinite cosine wave gradients as a thing which exists. This is an entirely different type of gradient from the 'coloured-grip' one, in that the number of grips is fixed, the grips are two-dimensional and the gradient is expressible as a single equation instead of a bunch of complicated interpolation algorithms.

@Daniel Hambleton, the background here is drawn using a C# 'shader'. Every horizontal pixel is evaluated on every redraw. I do cheat and repeat the one row of pixels as often as necessary, it wouldn't run at 60 fps if I had to draw _every_ pixel in the background that way, but it's still pretty awesome.

Views: 320

Comment

You need to be a member of Grasshopper to add comments!

Comment by Martin Siegrist on November 14, 2016 at 2:54pm

Hahaha David! That's a funky solution and I like it. Does not need to be easier. Thanks

Comment by David Rutten on November 14, 2016 at 11:46am

@Martin, I was planning to implement this for for the Colour Wheel, but I think I ran out of time or something and it's just random. You can however use Populate 3D to generate random points in a 0~1 cube, then convert the xyz to rgb. But I agree it should be easier to generate such palettes.

Comment by Martin Siegrist on November 14, 2016 at 2:51am

Dear David,

excited for what's coming!

Similar topic: is there a simple solution to generate a number of easily distinguishable colours for object preview?

Comment by David Rutten on November 12, 2016 at 10:20am

@Daniel, of course, the whole point here is to provide an SDK which makes it easy to do things right and consistently. Putting a sparkle(tm) onto any control is just one line of code now, no matter who you are. If you want to develop one that looks different, that's possible too, just a bit more typing.

Curves with varying thickness like the waves in the animation above is now fairly easy to do because I made sure to not make that code part of the gradient editor, but to put it in an accessible place. I sometimes feel that half of Grasshopper 2.0 is extension methods to make the other half easier to write and maintain.

Comment by Daniel González Abalde on November 12, 2016 at 10:05am

You are putting graphic quality too high and beautiful. I hope that the developers can customize the components with micro animations or those cool things that you have been doing lately :)

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service