Interpolation method between nodes

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
jn3hms
Posts: 7
Joined: Mon Feb 27, 2023 8:14 am

Interpolation method between nodes

Post by jn3hms » Mon Mar 13, 2023 5:19 am

Hello.

The description of IntensityGridSeries says "The colors between nodes are interpolated", but how do you complement it?

Is it a technique like "splines"? :oops:

Thank you.

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Interpolation method between nodes

Post by ArctionKestutis » Mon Mar 13, 2023 9:31 am

The graphic pipeline uses triangles (or lines) as primitives for rendering. Each surface is divided into multiple triangles, where user sets colors of vertices (triangle’s corners). Color inside of triangle is the linear interpolation of those three colors. To my knowledge barycentric coordinates used in all graphic shaders. The example could be found here.

jn3hms
Posts: 7
Joined: Mon Feb 27, 2023 8:14 am

Re: Interpolation method between nodes

Post by jn3hms » Tue Mar 14, 2023 1:08 am

Thank you for answering.

Is the interpolation method used in ContourLineType the same? :oops:

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Interpolation method between nodes

Post by ArctionKestutis » Tue Mar 14, 2023 8:57 am

In general, the contour line calculation uses same principles. However, in practice surface is divided into more triangles when contour line is calculated. Therefore, if grid is zoomed-in deeply the line of contour and fill maybe not perfectly aligned. this is not an issue if grid has good/high resolution and gradient Fill is used.

Post Reply