Login - Create Account
Bookmark and Share

Lerp / Blend option in noise and pattern components

Login or Register to post new topics or replies
Sphinx.
Filter Optimizer

Posts: 1344
Filters: 38
It is not always clear when FF uses a blending approach rather than a simple interpolation scheme. Patterns and noises use blending and gradients use lerp (interpolation).

Also it is not given what actually IS the pragmatically correct approach - it depends on the actual construction. Sometimes blending is useful, other times lerping is useful and then mostly it doesn't matter since input colors are all opaque.

Since lerping is cheaper itself (computationally, compared to blending) and is more simple which in most component cases makes it possible to skip fetching either "Foreground" or Background depending on the weight, I propose this option be added where applicable ("Use fast lerp").
Njyldgarkn sample cache!
  Details E-Mail
uberzev
not uberfez

Posts: 1821
Filters: 36
I've noticed that chaining thresholds is pretty much the fastest way to blend multiple layers in certain situations. Not sure if that has to do with what your saying...
  Details E-Mail
Sphinx.
Filter Optimizer

Posts: 1344
Filters: 38
Well, it is kind of related. The Threshold is infact using that optimization opportunity I'm talking about. What you're doing sounds like a Clipping Tree variation..
Njyldgarkn sample cache!
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

15,398 Registered Users
+8 new last day!

112,665 Posts
+15 new last day!

10,106 Topics
+6 new in 7 days!

Online Users Last 15 minutes:

Burt, 15 unregistered users.

Recent Wiki Edits:

Follow filterforge on Twitter