Pixmaps look "fuzzy" after 1.4 upgrade

View previous topic View next topic Go down

Pixmaps look "fuzzy" after 1.4 upgrade

Post  chondrite on Wed Sep 23, 2009 1:21 pm

Hi all,

My SIO2images look "blurry" since I've upgraded to 1.4.

Is there a new setting which I need to change to make them sharp?

My images are .PNGs.


Thanks!!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  sio2interactive on Thu Sep 24, 2009 1:07 am

Hummm you can always change the sio2->afilter and sio2->tfilter... for more info on this check tutorial11

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  chondrite on Thu Sep 24, 2009 12:55 pm

Thanks.

The texture in tutorial17 looks crisp, whereas mine looks fuzzy. So it's obviously something on my end.

Thanks again!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  chondrite on Fri Sep 25, 2009 9:00 am

I figured out the source of the problem.

Old versions of SIO2 tutorials include this code, to set widget position:

_SIO2widget->_SIO2transform->loc->x = 0.5f;
_SIO2widget->_SIO2transform->loc->y = -0.05f;


Note this is a float value. It causes a blurry pixmap from in V1.4.

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  chondrite on Fri Sep 25, 2009 12:49 pm

sio2interactive, I can confirm the widget is blurry whenever you set the position using a float.

Can you suggest an alternative way to specifically set the position of the widget without this effect?


Thank you!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  sio2interactive on Fri Sep 25, 2009 5:54 pm

Ok send me a clean template project reproducing the bug isolated from any other code. I'll take a look at it... simply send me the xcode project and the source, no need to send me anything else than that...
Cheers,

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  chondrite on Fri Sep 25, 2009 6:37 pm

Hi,

To reproduce this bug, simply add this to template.mm of tutorial17:

//set the position
_SIO2widget->_SIO2transform->loc->x = 0.5;
_SIO2widget->_SIO2transform->loc->y = 0.5;


Right before:

_SIO2stream = sio2StreamClose( _SIO2stream );


You will see that the preloader image becomes blurry.


Thanks!

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  sio2interactive on Sat Sep 26, 2009 5:33 am

ho! I see what you mean OF COURSE that's totally normal the screen is in pixels with a 1/1 ratio... if you want to use some .??? simply use anisotropic filtering... that will fix the issue and smooth the image... this is NOT a bug... its the way the driver is implemented and have NOTHING to do with SIO2 whatsoever Wink

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  chondrite on Sat Sep 26, 2009 9:34 am

This line does not fix the problem:

sio2->afilter = SIO2_IMAGE_ANISOTROPIC_1X;


This problem did *not* exist before v1.4

Did you actually try it?

chondrite

Posts : 24
Join date : 2009-06-15

View user profile

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  sio2interactive on Sun Sep 27, 2009 11:12 pm

Send me a template project reproducing the bug. I'll check it out...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 37
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Pixmaps look "fuzzy" after 1.4 upgrade

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum