Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
227 stars 123 forks source link

In Projection2D, the texture is blurred #407

Closed mil5500 closed 10 years ago

mil5500 commented 10 years ago

In Projection2D, the texture is blurred

totallyeviljake commented 10 years ago

Do you have any images that you could attach? Maybe a little more information such as some sample code or more context about what you are doing with the projection matrix??

mil5500 commented 10 years ago

mov108 I haven't changed the projection matrix, only add a CCSprtie with the image, other codes from template.

mil5500 commented 10 years ago

m 03ao8d tadq m4 ucuqne

totallyeviljake commented 10 years ago

Check the content scale factor, which is likely going to be less than 1 in your case. it could also be sampling - anti aliasing.

mil5500 commented 10 years ago

CCDrawManager.ViewMatrix = Matrix.CreateTranslation(.5f, .5f, 0); It looks fine. spritebatch use its own shader, maybe this is a bug of basiceffect.

totallyeviljake commented 10 years ago

What if you disable the PreferMultiSampling on the presentation parameters when you create the CCApplication (your AppDelegate) ??

totallyeviljake commented 10 years ago

This appears to be related to multisampling. if you disable multisampling then it should not leave your sprites fuzzy.