I've just uploaded my changes to the renderer to enable multi sampling (link). I've did some very limited testing on a 3GS, so consider this alpha stage at best. Code is based on 0.9.9.4 RC2.
It would help me out if some of you could test this code and see if you get any artifacts and how the performance is holding up on your device.
This only works on OS4
To use it,
- If you initialized the EAGLView manually change the following line:
EAGLView *glView = [EAGLView viewWithFrame:[window bounds] pixelFormat:kEAGLColorFormatRGBA8 // RGBA8 color buffer depthFormat:GL_DEPTH_COMPONENT16_OES // 16-bit depth buffer preserveBackbuffer:NO multiSampling:YES numberOfSamples:4];
depth buffer is optional
If you use the CC_DIRECTOR_INIT macro, look it up in ccmacro.h,add the multiSampling and numberOfSamples argument also
change the pixelFormat to kEAGLColorFormatRGBA8.
- If you use Interface builder to create your view, you're out of luck.
EDIT: In the director uncomment line 210 to set a projection.
For current limitations click on the link above.