Antialias
I''m trying to blit a bunch of images on top of eachother. However i would like to "antialias" the whole buffer.
Is there any way to blur or "antialias" a surface after i''ve placed my images on it?
I''m using dx8sdk and directdrawsurface7 and c++.
.Pangplast
This might be more than you''re looking for, but the EffectsBrowser from nVidia demonstrates how to do this with pixel shaders (although you could do it with texture stage states...)
So you''re using DirectDraw...
You need to do all your "work" on a buffer that''s about two (or more for better quality) times the size of your backbuffer, and then you need to scale it down using bilinear interpolation, and blit that to the backbuffer. This is the kind of thing that 3d hardware, with its bilinear filtered textures, is great for. If you don''t want to do that, you''ll need to write a software routine to do it, probably in ASM using MMX if you want any kind of speed. If you are rendering geometric shapes like lines, then you won''t need to use supersampling; there are algorithms that can quickly draw antialiased lines, splines, etc.
You need to do all your "work" on a buffer that''s about two (or more for better quality) times the size of your backbuffer, and then you need to scale it down using bilinear interpolation, and blit that to the backbuffer. This is the kind of thing that 3d hardware, with its bilinear filtered textures, is great for. If you don''t want to do that, you''ll need to write a software routine to do it, probably in ASM using MMX if you want any kind of speed. If you are rendering geometric shapes like lines, then you won''t need to use supersampling; there are algorithms that can quickly draw antialiased lines, splines, etc.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement