Hi,
Is there a algorithm available to antialias sprites in Visual Basic (no DirectX)?
Thanx! :)
Printable View
Hi,
Is there a algorithm available to antialias sprites in Visual Basic (no DirectX)?
Thanx! :)
You can't just 'antialias sprites'.
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.
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.
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)
Yes, that's what I want.
Alright...
You using pure VB, GDI, or DirectDraw?
I'm using the BitBlt API.
In that case it's gonna be a bit hard to do it... and slow. If I were you I would forget that idea :)
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 :)