Wednesday, July 28, 2010

Blending Colliding Splines



To simulate more complex auroral structures, we will eventually want to be able to blend overlapping auroras. This is not an obvious process, and it is not without its flaws. What I have done is to create a weighted average when multiple splines collide. I let W be equal to the product of the thickness and endpoint interpolation (both are functions with a domain and range of [0, 1]). Then each color is put into the average as

Sum(for all i ) [Wi^2*Ci] / Sum(for all i) [Wi^2]

This removes the hard edges along the collision regions, but it also could make colors blend into one another too fast. I will have to do some experiments to figure out a sweet spot. The bottom picture is of three auroras that collide without any alpha attenuation, and with weights equal to 1. The top picture corresponds to the same splines, squared weights, and both skeleton endpoint and height interpolation.

I will try to do some comparisons tomorrow for reference.

No comments:

Post a Comment