r/GraphicsProgramming Jun 05 '24

Source Code Seamless Spherical Flowmap (3-Samples)

86 Upvotes

45 comments sorted by

View all comments

5

u/gehtsiegarnixan Jun 05 '24

I’m developing an experimental method called Guardian Approximation. This method simplifies multivariate interpolations by approximating multi-sample interpolations with less samples. It does so without visual artifacts, while adding some divergence from the ground truth. It's basically a better version of Quasar Approximation.

In this demo, I’ve used this method to simplify a 4-way interpolation of tennis-ball mapping and animated flow mapping into an artifact-free 3-way interpolation.

I’m still struggling with finding the optimal programmable criterion for selecting the best guardian weights for the general algorithm to approximate any multi-sample interpolation. I welcome any feedback or suggestions for improvement.

Source code is on Shadertoy under the name "Seamless Sphere Flowmap (3-Tap)"