Growth Propogation Edge

   4014   4   0
User Avatar
Member
166 posts
Joined: Feb. 2014
Offline
I've been using the technique from Ben Watt's Growth Propagation tutorial [vimeo.com].

I'd like to add a leading edge to the effect. So a hot edge which then leaves what is left behind cooler. Probably easier to see what I mean by looking at the attached file.

Currently I'm using the growth propagation and then Time Shifting another version and using that to delete (by colour) the older points.

This works ok but I feel like there probably is a more elegant solution, quite possibly just in the Attribute VOP in the Solver.

Any pointers appreciated.

Thanks

Attachments:
Spread 4 Fade.hiplc (131.7 KB)

http://simonfarussell.com [simonfarussell.com]
User Avatar
Member
1868 posts
Joined: May 2006
Offline
Here's one way…

Attachments:
Spread_4_Fade_me.hipnc (137.0 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
166 posts
Joined: Feb. 2014
Offline
Thanks again Matt. Much appreciated.

It's a funny thing, it's half way between obvious and head melting.
http://simonfarussell.com [simonfarussell.com]
User Avatar
Member
1868 posts
Joined: May 2006
Offline
Heh, here's an alternative way, might be a little less confusing.

This uses the nearpoints() function rather than pclookup, I find it easier to follow. I also use wrangles rather than vops; any time you're doing looping over things, to my eye it just reads more clearly.

The logic is simple, I tag a few points as active, then in a solver, I use nearpoints to get the closest 10 points with 0.1 units.

I then loop through the points, if any of them have an @active value of 1, I add a small amount of @active to myself, clamping it to 1. This has the effect of spreading @active over the points, at a controllable rate.

I do another test, if the current point has @active of 1, I start trackig its age, by adding 1 to its @age attrib each frame.

Outside the solver, I can then use @age to drive a colour ramp.

Attachments:
solver_growth_ramp.hipnc (100.8 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
1868 posts
Joined: May 2006
Offline
gif….

Attachments:
spread_ramp.gif (545.2 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
  • Quick Links