随笔分类 -  OpenGL - NEHE

摘要: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 阅读(279) 评论(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 阅读(457) 评论(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 阅读(245) 评论(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 阅读(265) 评论(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 阅读(857) 评论(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 阅读(718) 评论(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 阅读(189) 评论(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 阅读(372) 评论(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 阅读(275) 评论(0) 推荐(0) 编辑
摘要:This sample shows us how to implement a radial blur effect with OpenGL render into a texture technology. To render objects into a texture: 1) set the view port size with the texture size; 2)... 阅读全文
posted @ 2012-08-23 08:45 opencoder 阅读(946) 评论(0) 推荐(0) 编辑
摘要:This sample shows us how to do Cel-Shading with OpenGL. The cel-shading contain two part: one is the color grading on the object surface; the other one is the outline effect. To get the color grad... 阅读全文
posted @ 2012-08-23 08:35 opencoder 阅读(572) 评论(1) 推荐(0) 编辑
摘要:This sample shows us how to load the texture data from the .exe file instead of external image files on the disk. The method was based on the Visual Studio resource data. That means you need to use V... 阅读全文
posted @ 2012-08-23 08:28 opencoder 阅读(207) 评论(0) 推荐(0) 编辑
摘要:This sample gives us some basics information about Physical Simulations. Some terminologies like Mass, Force, acceleration, velocity, time, position and the relationships among them are described h... 阅读全文
posted @ 2012-08-23 08:23 opencoder 阅读(161) 评论(0) 推荐(0) 编辑
摘要:This sample provides us an ArcBall module that we could use to rotate object along the screen with mouse. The underneath idea is mapping a 2d screen position into a 3d sphere coordinate. A rotation... 阅读全文
posted @ 2012-08-23 08:10 opencoder 阅读(568) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示