Jagged edges

Hi,

I have an issue when I rotate some objects their edges become jagged. For example I have a plank and when its rotated it becomes jagged until I rotate it back to the original position. Have checked it both on the simulator and an ipad with same results.

Any ideas? [import]uid: 44553 topic_id: 19847 reply_id: 319847[/import]

Saw the other thread you posted in and am passing it on to the team to see if I can get any info for you.

Peach :slight_smile: [import]uid: 52491 topic_id: 19847 reply_id: 77225[/import]

Thanks Peach. [import]uid: 44553 topic_id: 19847 reply_id: 77258[/import]

Hey Peach, anything back on this? Its just something I need to try resolve quickly if possible.

Thanks for passing it on. [import]uid: 44553 topic_id: 19847 reply_id: 77677[/import]

Ya i have the same problem. I know what you mean. The image does not look the same anymore. Thanks. [import]uid: 66985 topic_id: 19847 reply_id: 77697[/import]

Hey,

Not yet, sorry - hopefully I’ll have more info for you soon.

Peach [import]uid: 52491 topic_id: 19847 reply_id: 77702[/import]

Try enabling anti-aliasing within your “config.lua” file. That should remove the jagged-ness from your images, but please note that enabling this will hurt the performance of your app. You can find more details via the link below.

http://developer.anscamobile.com/content/configuring-projects#Anti-aliasing
[import]uid: 32256 topic_id: 19847 reply_id: 77793[/import]

Hi Joshua, thanks for that but had already tried it to no avail. Any other suggestions? [import]uid: 44553 topic_id: 19847 reply_id: 77927[/import]

Is the jaggedness you are seeing only on the borders of the image? If so, then I recommend that you add at least a 1 pixel transparent border around your image. This way the OpenGL system has room on the texture to do alpha-blending on the sides. Just try it with one image to see if it does anything.

If you are seeing jaggedness inside the image, then I suspect that the image is being scaled too much for the rendering system to smooth out. In which case, I recommend that you look into using Corona’s “dynamic image resolution” feature. With this, you would create different sizes of an image where Corona will choose the appropriate image size depending on the resolution of the screen. This way, a higher resolution image would be used for a higher resolution display, reducing the amount of scaling (and hopefully jaggedness/artifacts too) of the image. Have a look at the below links and try this feature with one of your images to see if it solves your problem.

http://developer.anscamobile.com/content/configuring-projects#Dynamic_Image_Resolution
http://blog.anscamobile.com/2011/01/dynamic-image-resolution-made-easy

I hope this helps. [import]uid: 32256 topic_id: 19847 reply_id: 78145[/import]