Jump to content


Photo

Sparse Color Gradient Fuse

fuse

  • Please log in to reply
8 replies to this topic

#1 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 14 February 2012 - 03:45 AM

Posted Image
I've been working on a fuse to draw procedural gradients using inverse distance weighting. You can find a preliminary version here.

Currently, it's quite slow since it doesn't have OpenCL support yet. But this will be my next step. Here's a demo video:

http://www.youtube.com/watch?v=hu8WWfGvXuU

It has several uses/features:
  • a four-corner-gradient with freely movable corners
  • a linear ramp that gets extrapolated beyond its points
  • a barycentric 3-corner-gradient
  • combining multiple tools for more than 4 colors (data is passed via image metadata)
I wrote the fuse to try out if the sparse color feature found in ImageMagick would have helped me in a matte painting situation I had to solve last year. I had to remove something on a street with cars passing by which changed the brightness of the asphalt in unpredictable ways. I was looking for a procedural solution that would at least get me 90% of the way and I ended up cornerpinning a four-color-gradient with animated colors. I think this fuse would have helped me back then :-)

Plans for the future: DoD support, OpenCL acceleration and a variant of this tool that is better suited to produce distortion maps to create a poor man's Photoshop liquify tool.

#2 pingking

pingking

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 893 posts

Posted 14 February 2012 - 05:14 AM

you have too much time ;)

but great to see another fuse from you

#3 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 14 February 2012 - 05:17 AM

I took the whole month off after a blockbuster project that left zero room for creativity! :mf_w00t2:

#4 Pilalitos

Pilalitos

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 791 posts

Posted 14 February 2012 - 05:41 AM

It looks cool!

#5 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 28 February 2012 - 10:10 AM

Great idea, thank you!

#6 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 28 February 2012 - 12:56 PM

Very cool. Keep on rocking, Stefan!

Attached a fast and cheaty method for voronoi :)

Attached Files



#7 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 11 March 2012 - 08:47 AM

version 1.0 with OpenCL and DoD support can now be found on vfxpedia:
http://www.vfxpedia....lor_Description

#8 robocop

robocop

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 485 posts

Posted 11 March 2012 - 09:01 AM

hoolly-molly! cool! thanks Stefan!

#9 Kristof

Kristof

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 263 posts

Posted 11 March 2012 - 03:55 PM

Blazej, that's a nice trick. Thanks!





Also tagged with one or more of these keywords: fuse

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users