Line Smooth Problem on iPhone Device

Nibbie
Posts: 1
Joined: 2010.09
Post: #1
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
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
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...#pid65843)

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

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  what iPhone device versions to target for physics based games? mixedup 3 1,724 Sep 30, 2013 01:22 PM
Last Post: mawigator
  Test Applications On Device [iPhone] Hoodad 5 5,048 Mar 19, 2010 03:21 AM
Last Post: Hoodad
  Best Device to get for a Seasoned Developer New to iPhone Rasterman 1 2,353 Feb 10, 2010 01:28 PM
Last Post: Zwilnik
  Smooth List Scroll sunkingac 1 2,176 Jul 9, 2009 08:52 AM
Last Post: daveh84
  Checking if the device is an iPhone or iPod Touch monteboyd 5 3,736 May 1, 2009 02:15 AM
Last Post: monteboyd