摘要: This sample shows us how to implement masking effect with OpenGL using blend operation instead of alpha testing. Masking is an important effect, that could be used build tree leaves, some complicated... 阅读全文
posted @ 2012-08-23 21:46 opencoder 阅读(317) 评论(0) 推荐(0) 编辑
摘要: This sample shows us a simple 2d game with only basic OpenGL knowledge: draw lines, timing, ortho view. Draw Lines The way to draw lines is the same as draw other primitives, just set GL_LINES o... 阅读全文
posted @ 2012-08-23 21:41 opencoder 阅读(278) 评论(0) 推荐(0) 编辑
摘要: This sample shows how to do bump mapping with OpenGL. The bump mapping technology used here for approximating diffuse lighting. The concept behind this article was Embossed bump mapping. The frag... 阅读全文
posted @ 2012-08-23 21:33 opencoder 阅读(571) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to do a Sphere Mapping when work with auto-generate texture coordinates in OpenGL. For sphere mapping, you need a sphere map. What you need to do in PS is selecting distor... 阅读全文
posted @ 2012-08-23 21:26 opencoder 阅读(456) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to extract the OpenGL extensions into tokens and scissor testing. In the masking example, I already wrote some code of loading TGA textures. But here, another TGA loading ... 阅读全文
posted @ 2012-08-23 21:22 opencoder 阅读(244) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to do vertex morphing and load objects from text files. For vertex morphing, you could apply such technology to transform smoothly object A to object B, like transform a h... 阅读全文
posted @ 2012-08-23 21:19 opencoder 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(852) 评论(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 阅读(710) 评论(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 阅读(403) 评论(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 阅读(227) 评论(0) 推荐(0) 编辑