English Amiga Board    


Go Back   English Amiga Board > » abime.net - Hosted Projects > project.Sprites

Reply
 
Thread Tools
Old 22 November 2005, 00:39   #1
Codetapper
Moderator
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Age: 38
Posts: 2,465
Send a message via Skype™ to Codetapper
Question Algorithm to double the size of a tile based picture smoothely?

A few years back I found a website with information about smoothening out a bitmap picture when you doubled it in size. It doesn't work on photos etc, but for old games with limited palettes it worked very well.

A normal program that doubles will give very chunky pixels. Most programs like Photoshop end up with a smoother picture, but far less crisp and the edges are kind of blurry. If you sharpen you get weird looking edges.

A website I visited had some information about a 2x2 filter which worked on pictures with a low number of colours and would do some tricks such as interpolating pixels based on the adjacent pixels. For example, if you have a picture which is 2x2 pixels where the numbers 1 and 2 represent a colour, and you wish to double the picture to 4x4 pixels:

Code:
12
21

(double)

1122
1122
2211
2211

(apply 2x2 filter)

1122
1222  <- extra 2 inserted over a 1
2221  <- extra 2 inserted over a 1
2211
The algorithm was something like the above, where it would copy a pixel if it was found diagonally, or below and to the right etc, producing a much more smooth picture but with the same number of colours as the original.

I think there was a 4x4 version aswell which ran the 2x2 process twice. It might have been something that is in an emulator or MAME or something.

Does anyone recognise this, know a website detailing this process or know exact what it's called etc? I cannot find the site anymore and want to check out exactly what they did!
Codetapper is offline   Reply With Quote
Old 22 November 2005, 00:47   #2
Duke
HOL-Team
 
Duke's Avatar
 
Join Date: Apr 2002
Location: Germany
Age: 32
Posts: 515
Send a message via ICQ to Duke Send a message via Skype™ to Duke
This one: http://scale2x.sourceforge.net/ ? There are others too, like Eagle or SuperSai.
Duke is offline   Reply With Quote
Old 22 November 2005, 00:59   #3
Codetapper
Moderator
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Age: 38
Posts: 2,465
Send a message via Skype™ to Codetapper
Legend! That's it! Thanks Duke!
Codetapper is offline   Reply With Quote
Old 22 November 2005, 09:14   #4
Dizzy
DEAD
 
Join Date: Jan 2002
Location: .
Posts: 3,399
nice info. Shouldn't this thread be put somewhere else, so it's not deleted. Think this is usefull info
Dizzy is offline   Reply With Quote
Old 22 November 2005, 09:24   #5
Haakon
Registered User
 
Join Date: Sep 2004
Location: Norway
Age: 38
Posts: 180
wow, why has'nt this evolved into a standard in graphic programs like Photoshop?
Haakon is offline   Reply With Quote
Old 24 November 2005, 01:45   #6
Gambit37
Registered User
 
Join Date: Oct 2005
Location: Brighton, England
Age: 40
Posts: 25
Because Photoshop is primarily designed to work with high-res, continous tone, true colour images (ie, photos) and this scaling effect is usless for such imagery.
Gambit37 is offline   Reply With Quote
Old 24 November 2005, 06:24   #7
Chuckles
The Ancient One
 
Join Date: Feb 2002
Location: Kansas City/USA
Age: 58
Posts: 684
Quote:
Originally Posted by Codetapper
I think there was a 4x4 version aswell which ran the 2x2 process twice. It might have been something that is in an emulator or MAME or something.
You do know that WinUAE includes the Scale2x algorithm among the handful of different filters it provides, right? If you're looking for examples of it's use, you might want to look at how it is implemented in the WinUAE source code.
Chuckles is offline   Reply With Quote
Old 24 November 2005, 08:31   #8
Haakon
Registered User
 
Join Date: Sep 2004
Location: Norway
Age: 38
Posts: 180
Quote:
Originally Posted by Gambit37
Because Photoshop is primarily designed to work with high-res, continous tone, true colour images (ie, photos) and this scaling effect is usless for such imagery.
Yes, but would'nt this techniqe make better images when doing digital zoom (opposed to optical zoom). If you zoom a picture beyond its quality, you will eventually see the pixels. By using this simple (?) method, the illusion of a better picture would be present a bit further...
The method is fairly simple, and not limitied to numbers of colours?
Haakon is offline   Reply With Quote
Old 31 January 2006, 02:46   #9
Feltzkrone
Junior Member
 
Feltzkrone's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 101
Please visit this site, too. IMHO it's the algorithm with the highest quality for increasing sizes of pixeled/paletted images.

http://www.hiend3d.com/
Feltzkrone is offline   Reply With Quote
Old 31 January 2006, 04:36   #10
Adderly
[Satan^God]
 
Adderly's Avatar
 
Join Date: Oct 2005
Location: Germany
Posts: 701
Send a message via ICQ to Adderly
The example gfx on the sourceforge website impressed me. Metal Slug rocks! Does anyone know how winuae is using this? It is the "Display->Line Mode->Doubled" option?
Adderly is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
jst problems with some files based installers pbareges support.Games 11 04 March 2005 13:01
PD turn-based strategy, like Laser Squad Gabe Looking for a game name ? 7 23 October 2004 21:19
What about creating Hired Guns2 (based on HR1) wlcina project.CARE 20 08 October 2004 11:44
looking for Amiga disk based mag technium Looking for a game name ? 0 25 August 2004 10:31
A500 disk based games to cd rom backtoskooldaze Retrogaming General Discussion 7 23 October 2003 04:01


All times are GMT +2. The time now is 00:59.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.19744 seconds with 9 queries