Game Development Community

Blurry Images?

by Martin Mc · in Torque Game Builder · 05/11/2005 (4:03 pm) · 5 replies

Not sure if this is the right forum, but here goes anyway....

I'm having a problem at the moment where a sprite that I load appears much blurrier than I expected it too. The sprite is loaded from a cell image which is a .png with a transparent background. Its displayed at about the original size in the correct aspect ratio, but still seems much blurrier than it does in Photoshop.

Anyone seen anything like this and know what I might be doing wrong?

I will try and post example images later if I get a chance.

Cheers,
Martin

#1
05/11/2005 (4:25 pm)
Sounds like normal hardware filtering to me. It will happen if the image is scaled at all, even if you maintain the same aspect ratio. You can't really get around it until there's support for non-filtered rendering, which I think is on one of the to-do lists.
#2
05/11/2005 (4:26 pm)
Cheers - is there a workaround that we can use?

I notice that this problem doesn't seem to affect the spacescroller demo. Must investiagte this further.
#3
05/11/2005 (7:09 pm)
It seems you can turn off the bilinear filtering, see this thread.

About the craft in the spacescroller, my guess is that:
(a) the spacecraft is at high enough resolution, especially low res textures will seem blurrier on screen
(b) the spacecraft is already anti-aliased so the percieved difference between texture and on screen is less

If you're after a blocky retro look (as I do in my current project), you can try enlarging your texture by x2 .. this way 'one pixel' (now 2x2) will look pretty square instead of fuzzy.
#4
05/19/2005 (11:17 am)
Cheers for the tips Edo. I'm going to use your x2 technique - its works pretty well.
#5
05/24/2005 (4:07 pm)
Does anyone know why when I load an image into the t2d engine it doesnt load it at the correct size? Im doing this basic tutorial where I have a ship onscreen and there is one part of the code that deals with the size of the ship aparently. but nothing happens when I change the values:

function CreatePlayer()
{
// Create the player's ship sprite
$player = new fxStaticSprite2d() { scenegraph = t2dSceneGraph; };
$player.setPosition("-30 0");
$player.setSize("14 7");
$player.setImageMap (playershipImageMap );

the part where it says $player.setSize("14 7"); should affect the size right? yet nothing happens when I change the values.....any idea?