Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Sprite Antialiasing Question  (Read 5097 times)

0 Members and 1 Guest are viewing this topic.

alelink

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 31
    • View Profile
    • Overcast - Visual Art
Sprite Antialiasing Question
« on: July 07, 2005, 01:37:10 AM »

Hello,
I have a question:
can all the sprite on the screen be "filtered" smoothing the edge pixels and all?
like a Bilinear filter.

or like Runaway.

thanks
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Sprite Antialiasing Question
« Reply #1 on: July 07, 2005, 06:22:04 PM »

In 3D accelerated mode sprites gets automatically antialiased when scaled (characters for example). But to get sprites with antialiased edges the best approach is to use PNG images with an alpha channel.
Logged
fl*p

alelink

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 31
    • View Profile
    • Overcast - Visual Art
Re: Sprite Antialiasing Question
« Reply #2 on: July 07, 2005, 07:07:41 PM »

Hello,
thanks for reply  ;)
So, if I have an img with a circle, the edge of the circle will be directly antialiased?
I've seen the demo with the CG girl, and the edge does'nt  antialiased.

thanks
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Sprite Antialiasing Question
« Reply #3 on: July 08, 2005, 03:21:55 PM »

I guess you mean the 3d demo with the trinity character from matrix.
If yes then you have to enable antialiasing when running the executable. (2x, 4x or 6x antialiasing option available)
Logged
fl*p

alelink

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 31
    • View Profile
    • Overcast - Visual Art
Re: Sprite Antialiasing Question
« Reply #4 on: July 09, 2005, 01:49:54 AM »

I guess you mean the 3d demo with the trinity character from matrix.
If yes then you have to enable antialiasing when running the executable. (2x, 4x or 6x antialiasing option available)
no I mean the 2d demo
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Sprite Antialiasing Question
« Reply #5 on: July 09, 2005, 10:38:10 AM »

The 2d demo is using bmp format for graphics which doesn't support alpha channel (like PNG).
That's why the edges are blocky. (It's an old demo afterall).

EDIT: And as I said earlier to get antialiased sprites use the png format with an alpha channel (tga format can also support alpha channel but png produces smaller files and it's more used anyway)
« Last Edit: July 09, 2005, 10:51:35 AM by odnorf »
Logged
fl*p

alelink

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 31
    • View Profile
    • Overcast - Visual Art
Re: Sprite Antialiasing Question
« Reply #6 on: July 09, 2005, 11:28:30 AM »

thanks for your usefull reply.

thanks!
Logged
 

Page created in 0.033 seconds with 19 queries.