Readit News logoReadit News
olpyhn commented on How to render a mesh gradient using RBF interpolation   notion.so/Smooth-Mesh-Gra... · Posted by u/olpyhn
smidgeon · 2 months ago
RBFs are splendid, but you don't need to have them "decay with distance", indeed, ones which don't (mutliquartics etc) often have better approximation properties and better-conditioned linear systems to solve, give them a go! https://www.sciencedirect.com/science/article/abs/pii/S09557...
olpyhn · 2 months ago
Interesting, will try it out. Thank you!

Tbh, I tried several different functions, but nothing worked better than inverse quadric function. Though, I'm not sure if I tried anything without decay

olpyhn commented on How to render a mesh gradient using RBF interpolation   notion.so/Smooth-Mesh-Gra... · Posted by u/olpyhn
olpyhn · 2 months ago
Mesh gradients are a powerful way to create smooth, organic color transitions. Traditional techniques like spline-based interpolation or multiple overlapping radial gradients can be effective—but they also come with trade-offs: visual artifacts, complexity, or the need for structured meshes.

In this article, I’ll show you how to use Radial Basis Function (RBF) interpolation to generate seamless gradients from just a set of colored points. This approach is portable, flexible, and simple to implement.

u/olpyhn

KarmaCake day6October 25, 2021
About
I specialize in android development, building performant apps using Kotlin, OpenGL, Compose and other fancy technologies.

Also, I know a thing or two about machine learning, algorithms, and people management.

Currently, I work at WhatsApp.

View Original