PDA

Click to See Complete Forum and Search --> : Antialias


Joost
Oct 24th, 2001, 12:20 PM
Hi,

Is there a algorithm available to antialias sprites in Visual Basic (no DirectX)?

Thanx! :)

Janus
Oct 24th, 2001, 06:43 PM
You can't just 'antialias sprites'.

/\/\isanThr0p
Oct 24th, 2001, 07:56 PM
hm are you sure you got the right meaning of antialias?
what you could do is blur it or do some aplhablending to make it look better against the background if that is what you want to do.

Joost
Oct 25th, 2001, 03:09 AM
The sprites are not anti-aliassed. They should be anti-aliassed when they are being drawed on the background. :)

The background is controlled by the user, so the anti-aliassed should be done at run-time.

Sastraxi
Oct 25th, 2001, 07:19 AM
I think he wants a filter that basically makes the edges look non-jaggy (something like how the GeForce 2/3 and Voodoo 4/5 have full-scene antialiasing)

Joost
Oct 25th, 2001, 08:57 AM
Yes, that's what I want.

Janus
Oct 26th, 2001, 02:17 AM
Alright...
You using pure VB, GDI, or DirectDraw?

Joost
Oct 26th, 2001, 04:25 AM
I'm using the BitBlt API.

Jotaf98
Oct 26th, 2001, 03:00 PM
In that case it's gonna be a bit hard to do it... and slow. If I were you I would forget that idea :)

Janus
Nov 4th, 2001, 11:34 PM
Try altering the edges of the mask to &H808080 or &H7F7F7F instead of &HFFFFFF... That'll do something similar to what you want. Though it won't look all that nice :)