Closed GoogleCodeExporter closed 8 years ago
Wow!
I'd find some tutorial doc and infos on the web:
http://www.gamedev.net/community/forums/topic.asp?topic_id=382035
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=23309
0
And after two modifs (in OGLGraphicsContext.cpp):
/* set opengl attributes */
CoreVideo_GL_SetAttribute(M64P_GL_DOUBLEBUFFER, 1);
CoreVideo_GL_SetAttribute(M64P_GL_BUFFER_SIZE, colorBufferDepth);
//CoreVideo_GL_SetAttribute(M64P_GL_DEPTH_SIZE, depthBufferDepth);
CoreVideo_GL_SetAttribute(M64P_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
I have the image I attached:
Look how the gun look clear!
So, I know it's not easy as 1-2-3. You have to do some check before (and only
24 bit
depth buffer seem to work on ATI card).
But games are wonderful! o_O!
(I will post some other pict later)
Original comment by dorian.f...@gmail.com
on 23 Feb 2010 at 5:35
Attachments:
After test, the Depth buffer size of 16 don't seem to be a problem. This also
give FSAA:
/* set opengl attributes */
CoreVideo_GL_SetAttribute(M64P_GL_DOUBLEBUFFER, 1);
CoreVideo_GL_SetAttribute(M64P_GL_BUFFER_SIZE, colorBufferDepth);
CoreVideo_GL_SetAttribute(M64P_GL_DEPTH_SIZE, depthBufferDepth);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
But I suppose it depend of the graphic card and/or drivers.
Original comment by dorian.f...@gmail.com
on 23 Feb 2010 at 5:47
Attachments:
this option has been committed to the bitbucket repository
Original comment by richard...@gmail.com
on 27 Feb 2010 at 2:02
Original issue reported on code.google.com by
dorian.f...@gmail.com
on 23 Feb 2010 at 4:43