Jump to content

  • Log In with Google      Sign In   
  • Create Account

Anti-aliasing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
11 replies to this topic

#1 WytRaven   Members   -  Reputation: 122

Like
Likes
Like

Posted 22 February 2000 - 10:03 AM

I would really appreciate a few opinions on how to go about performing anti-aliasing in real time. I already have info on wu-lines and such but I am more interested in applying the technique to a "sprite'n'tile" situation. Description of algorithms preffered, I'd like to come up with the code myself Edited by - WytRaven on 2/22/00 4:34:29 PM

Sponsor:

#2 trixter   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 February 2000 - 08:52 AM

alphablend the edges of the sprites with the backbuffer

this isnt anti-aliasing, but it produces good images and can be done in real time.

the algorithms for true edge anti-aliasing is similar but looks better at a much greater cost. you''d have to take several pixels from the backbuffers and sprite and compute an average color to replace the edge of the sprite on the backbuffer. there are other methods too, but most are slower. look some up in a graphics book or graphics website.

if you meant full scene aa... then you gotta do with hardware like a v5 for realtime.



#3 WytRaven   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 February 2000 - 09:08 AM

Thanks Trixter,

I''ll give it a shot.

Please excuse my ignorance, but just out of curiosity, what is a v5?

#4 trixter   Members   -  Reputation: 122

Like
Likes
Like

Posted 23 February 2000 - 09:16 AM

voodoo5. i was abreviating

#5 Sphet   Members   -  Reputation: 631

Like
Likes
Like

Posted 24 February 2000 - 01:01 PM

I see this comment a lot:

''Alphablend the edge pixels''.

That makes sense.. except how do you find which pixels are on the edge?

#6 WytRaven   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 February 2000 - 06:04 PM

I was thinking of using a mask but if anyone else has any better ideas i would be very interested

#7 Ingenu   Members   -  Reputation: 930

Like
Likes
Like

Posted 24 February 2000 - 08:38 PM

Most of today 3D accelerators have anti aliasing.
Full scene for PowerVR, Glaze3D and Voodoo5, edge for some other cards.
You should better use those hardware features, which are faster and easy to use.
(at least using D3D)
:o)

-* Sounds, music and story makes the difference between good and great games *-

#8 Starfall   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 February 2000 - 03:11 PM

If you add an alpha channel to your images then you can render onto that via most 3D rendering programs (if that is how you are creating your images). If you have antialiasing enabled in your 3D program it will usually use the alpha channel to provide alphablending around the edge pixels. If you write graphics code to handle this then you can also do some neat effects with transparent areas of images, etc, not just around the edges.

Good luck

Starfall

#9 MadKeithV   Moderators   -  Reputation: 971

Like
Likes
Like

Posted 28 February 2000 - 10:48 PM

quote:
Original post by Ingenu

Most of today 3D accelerators have anti aliasing.
Full scene for PowerVR, Glaze3D and Voodoo5, edge for some other cards. You should better use those hardware features, which are faster and easy to use.



Most of those aren''t even available yet, much less commonplace with users, so banking on support there is limiting your customer base severely, hence NOT a good idea.




#10 Ingenu   Members   -  Reputation: 930

Like
Likes
Like

Posted 29 February 2000 - 01:15 AM

PowerVR Serie2 (the one in the dreamcast) is available since september for the PC.
Voodoo4 and Glaze3D will support anti aliasing and is going to ship.
I think that NV10 supports AA...

Even if todays accelerators don''t support this feature, by the time you''ll release your engine/program, it''ll be and maybe became a standard

You can do AA via full scene oversampling, and shrunking it to the resolution, altought I think you''ll lost some quality.
Forget about finding edges, it''s far too slow.

-* Sounds, music and story makes the difference between good and great games *-

#11 MadKeithV   Moderators   -  Reputation: 971

Like
Likes
Like

Posted 02 March 2000 - 12:58 AM

You could store the edge-alpha information in with the bitmap though ( storing as an RGBA bmp instead ), meaning there''s no realtime calculation to be done.
After all we''re talking 2D tiling.


#12 Matthew Allen   Members   -  Reputation: 122

Like
Likes
Like

Posted 02 March 2000 - 08:13 AM

On a similar note, does anyone know of any source code I could use to implement anti-aliasing? I''ve found that I learn better while looking at some code as an example. Any suggestions?

- mallen22@concentric.net
- http://www.cfxweb.net/mxf/




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS