links: http://www.slideshare.net/Mark_Kilgard/opengl-32-and-more
1) Problem: body disappearing and flickering when going very close to it
Example: Going to earth to a few tenths or hundredths of a meter, you will notice the earth will flicker and disappear
(I get it starting from around 0,7-0,2 meters).
Solution: Using the new OpenGL Depth Clamp within an if statement (for opengl versions) :
Code: Select all
if (gl_FragCoord.z == 0)
gl_FragColor = vec4(0,0,0,1);
Presentation: Slide 50-53
2)Problem: Cube map seams, was discussed but aborted
Example: not applicable, cube maps were never implemented
Solution: Using the new OpenGL seamless cube map thing within an if statement (for opengl versions):
Code: Select all
glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS)
Presentation: Slide 54-55
I'll started and I'll continued with this:
3)Problem: Aliasing
Example: goto earth, zoom in/out until the earth is a few pixels across (20-40), move so that the body of the earth intersects the sun. Look closely to see the jaggies.
Look at smaller planet's edge in this image, first switch to full resolution to see it good: http://www.shatters.net/forum/download/file.php?id=1734&mode=view
Another image: http://www.shatters.net/forum/download/file.php?id=1706&mode=view
Solution: Use the new OpenGL multisample stuff
Links:
Scroll to bottom to see a good image comparison, unfortunately in Direct X 10, all other links are about OpenGL but the technique is roughly the same:
http://drilian.com/category/development/graphics/deferred-shading/
http://dabroz.scythe.pl/tag/OpenGL
http://dabroz.scythe.pl/2009/09/15/deferred-global-illumination
http://www.geeks3d.com/20090917/opengl-3-2-explicit-multisample-demo/
http://docs.google.com/gview?a=v&q=cache:nmIRUeNetvwJ:www.ii.uj.edu.pl/~filipek/tutorials/pracownia_letni/podstawy1/GDC2002_Multisample.pdf+nvidia+true+multisample+texture&hl=nl&gl=be&sig=AFQjCNFILfTIlSB1z37qVT0ltwn4sGVAzA