Solver/Fade

   6095   4   1
User Avatar
Member
166 posts
Joined: Feb. 2014
Online
Hey,

I'm trying to get my head around the SOP Solver (and VOPs)

Specifically I'd like to use the Attribute VOP to create a fade (or lag) on a colour change. E.g. It goes red with the Attribute Transfer then the red slowly fades off.

It's almost identical to what Danil does here https://vimeo.com/133310380 [vimeo.com] at
25.40 but with Att VOPs.

In the attached project I'm trying to simply get the VOP in the Solver to write down a trail of red. Ideally I'd like this to happen but the trail to fade.

Clearly I'm missing some important logic in all this and am a little befuddled. Any help would be appreciated.

Thanks,
Simon

Attachments:
Fade 1.hiplc (109.2 KB)

http://simonfarussell.com [simonfarussell.com]
User Avatar
Member
1850 posts
Joined: May 2006
Offline
You missed a couple of things;

The getattrib vop needs 3 things; the geometry to use, the attribute to find and a point number to lookup. You didn't connect the point number (@ptnum).

With that, the colour left a trail, but never faded. I added a multconstant to multiply the colour by 0.95, which will gradually fade it over time.

I also included a point wrangle, which I think is easier to use in this case (the @opinput1_Cd syntax automatically looks up from the 2nd input, using the same ptnum as the current point).

-matt

Attachments:
fade_fix.hipnc (116.1 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
Online
Thanks Matt. Much appreciated.
And thanks for your website. It's a fantastic resource.




mestela
You missed a couple of things;

The getattrib vop needs 3 things; the geometry to use, the attribute to find and a point number to lookup. You didn't connect the point number (@ptnum).

With that, the colour left a trail, but never faded. I added a multconstant to multiply the colour by 0.95, which will gradually fade it over time.

I also included a point wrangle, which I think is easier to use in this case (the @opinput1_Cd syntax automatically looks up from the 2nd input, using the same ptnum as the current point).

-matt
http://simonfarussell.com [simonfarussell.com]
User Avatar
Member
1850 posts
Joined: May 2006
Offline
Heh, no probs!

You're site is great, fantastic collection of interesting work. One of your pieces indirectly inspired one of the wiki examples (the rectilinear particles in Dysco), should go back and finish that off as a proper tribute.

-matt
http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
User Avatar
Member
166 posts
Joined: Feb. 2014
Online
mestela
Heh, no probs!

You're site is great, fantastic collection of interesting work. One of your pieces indirectly inspired one of the wiki examples (the rectilinear particles in Dysco), should go back and finish that off as a proper tribute.

-matt

Thanks man!

http://simonfarussell.com [simonfarussell.com]
  • Quick Links