Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Doubling the resolution of an image without quality loss?

Author
Message
Sunflash
21
Years of Service
User Offline
Joined: 28th Jun 2005
Location: Seattle, Wa
Posted: 29th Oct 2006 20:33
I guess the title says it all. I've been wondering for awhile now, is there anyway to increase the resolution of an image without loss of quality? I have some 512x512 textures that I would like to double to 1024x1024. Is there anyway this can actually be done?
Thanks,
-Sunflash

With all the FPSC media packs, and the DBPro DLLs, and every single TGC product, how does one manage not going broke? Register here, it's awesome: http://www.surfjunky.com/?r=sunflash
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 29th Oct 2006 21:47 Edited at: 29th Oct 2006 21:51
You can either resize it within Darkbasic or use a drawing program like Paint Shop Pro... they both do just about the same thing. The only difference in Paint Shop Pro you can tweak the image till you're happy with it.

This loads the image and resizes it.
Sunflash
21
Years of Service
User Offline
Joined: 28th Jun 2005
Location: Seattle, Wa
Posted: 29th Oct 2006 21:48
Yeah, but then there's substantial loss in image quality.

With all the FPSC media packs, and the DBPro DLLs, and every single TGC product, how does one manage not going broke? Register here, it's awesome: http://www.surfjunky.com/?r=sunflash
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 29th Oct 2006 22:01
The only way then is to put it into a drawing program and put multiple images of the 512x512 image into a 1024x1024 image... till you get one complete texture.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Oct 2006 14:09
You can't, you'd just end up with a bigger and smooth version.

Your asking for detail that was never there, and it's never pretty - really your turning each pixel into 4, and they all have the same colour or they all get blended. DBPro will smooth images, so the results are the same, except for the performance advantage of 512x512 over 1024x1024.

Really if it's a tileable texture, do as Grog suggests and make a 4x4 grid thing, then as long as you don't touch the edges of the image, you can make a 1024x1024 tileable texture from it, like adding detail in the middle, breaking up the pattern with the clone brush.


Scaling down is actually a lot more usefull, like scaling a 1024x1024 image down to 512x512 actually improves it's looks at that resolution - it all depends on screen drawing, try to get the texture resolution to roughly the same as what is drawn on screen at the highest resolution you need. If a texture is only shown at 100x100 on screen, make the texture resolution 128x128. When you start off big, then convert to smaller resolutions for your game, you get a nice anti-alias effect and the results are always better than when you draw at 512x512.

''Stick that in your text and scroll it!.''
Frank Geppert
20
Years of Service
User Offline
Joined: 20th Dec 2005
Location: Germany
Posted: 1st Nov 2006 11:12
If you upsize an image it will get blurry for sure. But you could sharpen it a bit and will still not be satisfied. Overlay a detail texture at its native resolution and it will instantly look better. That is the same what game engines do with terrains or upsized models.

Models, Textures, Sky Cubes and Games at www.dexsoft-games.com
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 1st Nov 2006 12:21 Edited at: 1st Nov 2006 12:22
if the texture is a mathematical equation size is irrelevant.
if you dev at 1024 or 512 then export down your future proofing your artwork a few steps ahead.
if the texture is a pattern that can be repeated you can clone it.

if you have the shoddy corel draw from version 9 days it can take a snapshot of the screen at a higher res then the actual 72 dpi and you could with some tweaking get a slightly better result then upsizing.
its the only feature thats usefull in that package.

bitoart
22
Years of Service
User Offline
Joined: 20th Nov 2003
Location: California
Posted: 16th Nov 2006 00:58
If for some reason, you must have the same image double in size (again, as has been stated, this means each block of 4 pixels are duplicates of the 1 original-), you can avoid the blurring in some art programs (such as Photoshop or Debabelizer Pro) by selecting nearest neighbor as a resample option.
NA170425
User Deleted
Posted: 20th Nov 2006 20:35
Try this.



ThinkDigital
20
Years of Service
User Offline
Joined: 18th Aug 2005
Location: A galaxy far, far away...
Posted: 24th Nov 2006 20:22
It is literally impossible to resize a raster image without some kind of quality loss. Only vector images can be resized, in theory, without quality loss.
NA170425
User Deleted
Posted: 24th Nov 2006 20:44 Edited at: 24th Nov 2006 20:45
What do you mean it's impossible? You will not get any quality loss whatsover scaling an image to twice the size unless there's anti-alising or something messing with the colors; each pixel will become 4 pixels. The only time you get quality loss is if you're scaling down or scaling up by a factor that's not a power of 2.

ThinkDigital
20
Years of Service
User Offline
Joined: 18th Aug 2005
Location: A galaxy far, far away...
Posted: 25th Nov 2006 01:00
Quote: "each pixel will become 4 pixels"

I was counting that as quality loss.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 25th Nov 2006 05:17 Edited at: 25th Nov 2006 05:17
photocopying it can produce some results. however whos got a $10000 colour copier at home.
I used that technique with a 72 dpi album cover for a friend by visiting the local Colour Copy World.

QuothTheRaven
23
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 28th Nov 2006 21:20 Edited at: 28th Nov 2006 21:22
Ok, let's start this thread over.

There are many software applications avaliable that will do this for you, and they use custom interpolation algorithms to achieve results. Take this example page, for example:
http://www.benvista.com/main/skin1/images/content/ourproducts/photozoompro/pzp2_example1.htm
That software costs $150, but I'm pretty sure there are much cheapr ones avaliable, and some that are even free (I haven't actually had a need to use any so I haven't done much work on the subject). I believe that if you resize in Photoshop you want to use Bicubic filtering when you enlarge, and check "resample image" to minimize problems. I believe there are some programs out there which use fractal noise interpolation which I believe works pretty well. It's worth researching a bit.

Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 26th Dec 2006 21:16
man that guy is UGLY.

:: 3Ghz Pentium 4 / Hyper Threading, 1024mb RAM, 250GB HDD, 256mb Radeon 9600XT Graphics ::


Login to post a reply

Server time is: 2026-07-05 01:13:50
Your offset time is: 2026-07-05 01:13:50