c# - XNA No 2D anti-aliasing when using Texture2D.FromStream -


i have looked around quite bit , have not found working solution rendering 2d textures anti-aliasing. have image;

enter image description here

when render using xna results on left. when render flash, browser or graphics proggy results on right.

enter image description here

i have searched , suggestion has bee change settings in graphicsdevice cannot seem work. give me working example of anti aliasing (possibly using image provided).

thank help. appreciate it.

when processing hundreds of images different sources not in game, can load them texture2d.fromstream now. doesn't handle alpha well.

i going dive game's source @ how did when stumbled upon this post gamedev.se gives options solve issue, , illustration on happening:

http://i.stack.imgur.com/ubu9y.jpg

while option #1 faster, go #2, may complex @ first have tried , works well.

now if ever happen have issue antialiasing, or want enable/disable it, can so: graphics.prefermultisampling = true;


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -