摘要: This sample shows us how to display a reflection effect with stencil buffer and plane clipping in OpenGL. The stencil buffer usually goes with the depth buffer in the display card, and also called ma... 阅读全文
posted @ 2012-08-23 21:14 opencoder 阅读(855) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to create dynamic volume shadows with OpenGL. The main technology used here are, create the shadow volumes, figure out the shadow area in the stencil buffer. The first pr... 阅读全文
posted @ 2012-08-23 21:05 opencoder 阅读(717) 评论(0) 推荐(0) 编辑
摘要: Well, this samples shows us how to create Bzeier Patches based on some math ideas. And OpenGL used to just display those patches. The main idea underneath the Bzeier Patches math is how to calcula... 阅读全文
posted @ 2012-08-23 20:49 opencoder 阅读(406) 评论(0) 推荐(0) 编辑
摘要: This samples shows us how to load raw texture (or customized texture format file) and image alpha blend, image copy operations (namely Blitter function). When I got into the source code, I found s... 阅读全文
posted @ 2012-08-23 20:41 opencoder 阅读(228) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to work with collision detection and response. At first, it provide some ideas about how to determine whether a intersection happened between a ray and a plane, a ray and a c... 阅读全文
posted @ 2012-08-23 20:36 opencoder 阅读(288) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to parse, load and display texture mapped Milkshape3D models. Milkshape3D is a free modeling package. Of course it is not popular as Maya or 3D Max. If you want to save mone... 阅读全文
posted @ 2012-08-23 09:15 opencoder 阅读(188) 评论(0) 推荐(0) 编辑
摘要: This simple game shows us how to do something funny that already detailed as in the title. 1) Screen mouse picking: We could emit a 3D ray from the current viewer position and do intersection tes... 阅读全文
posted @ 2012-08-23 09:11 opencoder 阅读(371) 评论(0) 推荐(0) 编辑
摘要: As the title describes, we could learn how to load TGA images as texture from this sample. Nothing special to advance about this lesson. The only thing that need to mention may be that refactoring an... 阅读全文
posted @ 2012-08-23 09:03 opencoder 阅读(126) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to create a landscape by means of height mapping. As the word height mapping means that the height of the landscape come from a gray image. Of course, you could apply other ... 阅读全文
posted @ 2012-08-23 08:59 opencoder 阅读(204) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to play AVI files with OpenGL. In addition to get AVI files frame animation images, the author used windows native AVI playing library instead of re-writing his own AVI file ... 阅读全文
posted @ 2012-08-23 08:53 opencoder 阅读(274) 评论(0) 推荐(0) 编辑