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! / Antialiasing sprites

Author
Message
Eiven
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location:
Posted: 22nd Feb 2008 12:48
Hi,
I have a problem with my 2D game which using Dark GDK. If I rotate my sprite it get´s ugly edges. Has somebody a solution for my problem?
1337 programm3r
16
Years of Service
User Offline
Joined: 19th Nov 2007
Location: Your MOM
Posted: 23rd Feb 2008 20:35
I dont has a solution but im sure that someone else which using GDK alot will has an answer for you

Super Cool
MonoCoder
18
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 23rd Feb 2008 22:05
That's the most useful response to a question I've ever read.


---

Could you post a picture of what the "ugly edges" look like? Alternatively, you'll probably get more answers in the Dark GDK forum as opposed to here.

Give me an ounce of Puyo, good apothecary, to sweeten my imagination.
Hummanoid Typhoon
18
Years of Service
User Offline
Joined: 4th Aug 2005
Location: Middle of nowhere
Posted: 4th Mar 2008 20:15
Two ways around it

1:
Make the sprite image 2-4 (or as many as you want) times bigger than it needs to be then scale it down. I made an asteroids game where i had every sprite 8x bigger gave nice edges

2:
Abandon sprites and use textured planes. Probably will have to set the camera FOV to make it look flat

Van B
Moderator
21
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 5th Mar 2008 10:11 Edited at: 5th Mar 2008 10:12
Using alpha images (like .PNG) and going a little bigger than you need to, say your using a 32x32 sprite, make it 48x48 and scale it in GDK back down to 32x32. This should improve the looks when rotating the sprite, but having a nice soft edge on your sprites will help too. As Typhoon said, the best way to do this is draw at 2 or 4 times the resolution you actually need then scale down.


less is more, but if less is more how you keeping score?

Login to post a reply

Server time is: 2024-05-17 22:17:52
Your offset time is: 2024-05-17 22:17:52