Skip to main content

All Questions

2 votes
1 answer
235 views

What is a common approach to smooth structures in textures?

I have a screen-aligned texture resulting from multiple rendering passes. It looks about this: I want the edges to appear smoother than they do now (but still keep their characteristic shape). When ...
Muad's user avatar
  • 165
6 votes
1 answer
554 views

Image rescaling algorithm

Suppose I have to use bilinear interpolation to rescale image. I more or less understand how enlargement works in case of integer scale factor. But what to do with non-integer scale and especially ...
justanothercoder's user avatar
3 votes
1 answer
383 views

Find closest point on surface interpolated by 2d matrix of points

I have rectangular matrix of 3d points sampled from a parametric surface. In my program this matrix provides base points for bilinear interpolation of surface (In any (u,v) point it returns 3d point ...
Ibraim Ganiev's user avatar
5 votes
1 answer
2k views

Is there a way to interpolate color across the line with only integer calculation ?`

Here is my function that does interpolation ...
user avatar
4 votes
2 answers
1k views

Linear interpolation on Plane (Marching Cubes)

Let's assume I have the following cube. Let's assume the isovalue = 0. I would like to draw the resulting triangles of the isosurface. I know that first I define which values are inside or outside ...
john john's user avatar
  • 423
5 votes
1 answer
2k views

Which interpolation algorithm does MS Paint on Windows 7 use for image rescaling?

I was about to scale this image down to 64x64 pixels: The result I got on MS Paint on Windows 7 was surprisingly good (i.e. crisp edges): , whereas scaling it with GIMP resulted in for cubic and ...
dialer's user avatar
  • 151