iDevGames Forums
Line Smooth Problem on iPhone Device - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: Line Smooth Problem on iPhone Device (/thread-8125.html)



Line Smooth Problem on iPhone Device - abelix - Sep 22, 2010 04:04 AM

hi, I'm Developing a game on Cocos 2D and i have a problem:
i'm drawing smoothed lines, i'm using:

glEnable(GL_LINE_SMOOTH);
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);

//draw

it works great on simulator, but on Device isn't work - lines aren't not smoothed... i don't know what is a
problem? do iPhone Device not support line smoothing? can you help? what can i do?

thanks


RE: Line Smooth Problem on iPhone Device - Skorche - Sep 22, 2010 06:28 AM

The simulator uses a software renderer. GPU support for antialiased lines is not always common and is very inconsistent. (though apparently it does support AA points http://www.idevgames.com/forums/thread-3-post-65843.html#pid65843)

You could try Arekusu's old glaarg library: http://homepage.mac.com/arekkusu/bugs/invariance/TexAA.html
It likely won't compile on the iPhone without modification however.