PDA

View Full Version : Interpolation



LiquidIce
19-02-2003, 12:21 AM
Is it possible in Direct X 8.1 ?
If so how ?

LP
19-02-2003, 05:24 AM
What do you mean by interpolation specifically? You can do texture interpolation, but I'm not sure that's what you are asking for...

LiquidIce
19-02-2003, 08:17 PM
What do you mean by interpolation specifically? You can do texture interpolation, but I'm not sure that's what you are asking for...

For example, in SNES they use like Kreed's Super2x Sal .

Here is a screen shot without interpolation:
http://www.aotaonline.com/nointerpolation.gif

And here is one with it:
http://www.aotaonline.com/interpolation.gif

I saw something like it when resizing DX surface (image gets stretched), but it is not quite of what I am looking for.

savage
20-02-2003, 12:25 AM
I could be wrong, but are you looking for anti-aliasing routines?

Clootie
20-02-2003, 08:00 AM
It's not clear from images you have proveded (because of color quantization in GIF format), but seems what it's linear filtering of lower resolution image to higher resolution screen. And it can be done with DirectDraw by stretching and in Direct3D by providing enlarged desting rect during Present (or by using render to texture technique for advanced processing).

Paulius
20-02-2003, 01:02 PM
2xSAI is a very cool algorythm which doubles the size of the image and interpolates it(calculates mising pixels) through special line and edge detection rutines which make it less blurry compared to simple bilinear filtering. Check out its creators homepage http://elektron.its.tudelft.nl/~dalikifa/. It's great for emulators which emulate low resolution consoles, but is a bit slow and i have no idea why would you want to use it for something else. It has nothing to do with directx, but you could implement it by hand.