摘要: I started learn NeHe OpenGL lessons in university, but I never went though all of his lessons. I wish this time my blog will go though all of content, and figure out all of the OpenGL technology poin... 阅读全文
posted @ 2012-08-23 23:12 opencoder 阅读(306) 评论(0) 推荐(0) 编辑
摘要: NeHe OpenGL Lesson02 – Your First Polygon. This lesson shows how to draw polygons with OpenGL API. The following lines are source code that used to draw a triangle. As you see, it is very easy and ... 阅读全文
posted @ 2012-08-23 23:08 opencoder 阅读(241) 评论(0) 推荐(0) 编辑
摘要: This sample shows how to add color to your primitives. The main idea used here is that specify the vertex color for each vertex or the next all vertexes. And the vertex color was added by the functio... 阅读全文
posted @ 2012-08-23 23:03 opencoder 阅读(205) 评论(0) 推荐(0) 编辑
摘要: This program shows how to make the objects rotated. OpenGL API is kind of so low level graphic API that allows the user create some separate matrix components. Here this sample just give some basic... 阅读全文
posted @ 2012-08-23 22:58 opencoder 阅读(194) 评论(0) 推荐(0) 编辑
摘要: This programs show how to build 3d objects and render them with OpenGL. Those shapes displayed here are very primitive, they were hard code in the source code. When you come to some games, you wil... 阅读全文
posted @ 2012-08-23 22:54 opencoder 阅读(270) 评论(0) 推荐(0) 编辑
摘要: This program shows us how to apply texture mapping with OpenGL. Well, texture mapping increase the visual effect significantly. And also until now, the texture mapping was vastly used. Those textures... 阅读全文
posted @ 2012-08-23 22:51 opencoder 阅读(354) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to bring texture mapping, different texture filtering, lighting and Widget keyboard control together. Keyboard ‘page up’ or ‘page down’ to zoom out or zoom in. Key ‘L’ tog... 阅读全文
posted @ 2012-08-23 22:47 opencoder 阅读(378) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to use blending operation with OpenGL API. Blending, I guess, may be the only way to access the destination pixels from the current color buffer. In the previous lesson, we c... 阅读全文
posted @ 2012-08-23 22:41 opencoder 阅读(265) 评论(0) 推荐(0) 编辑
摘要: So Cool! Well, I would like to say that this sample shows us the beautiful and the magic of mathematic. The programming knowledge or OpenGL API involved in here are not too much or just a very lit... 阅读全文
posted @ 2012-08-23 22:38 opencoder 阅读(162) 评论(0) 推荐(0) 编辑
摘要: This sample shows us a small proto-type how to write a game with OpenGL. This is the first lesson that abandon using hard code game world. It seems like a engine, a small one. What is an engine? An e... 阅读全文
posted @ 2012-08-23 22:35 opencoder 阅读(361) 评论(0) 推荐(0) 编辑
摘要: This demo shows us how to wave texture though vertex position changing at the running time instead of moving texture coordinated. You could get such cool effect with the method used here. But obvious... 阅读全文
posted @ 2012-08-23 22:27 opencoder 阅读(371) 评论(0) 推荐(0) 编辑
摘要: This lesson shows us how to use the OpenGL display list. Display list is a special feature with OpenGL, that D3D does not have. A Display list is an OpenGL commands optimized cache. Some of it’s c... 阅读全文
posted @ 2012-08-23 22:24 opencoder 阅读(259) 评论(0) 推荐(0) 编辑
摘要: This demo shows us how to display some characters on the screen with OpenGL bitmap fonts. This is a very useful feature that we could used to display some text, debug information, fps or even menu co... 阅读全文
posted @ 2012-08-23 22:19 opencoder 阅读(329) 评论(0) 推荐(0) 编辑
摘要: This sample program show us how to display 3d characters on the screen. Those characters are called outline fonts. They are different from the bitmap fonts that are 2d only. Outline fonts are creat... 阅读全文
posted @ 2012-08-23 22:15 opencoder 阅读(362) 评论(0) 推荐(0) 编辑
摘要: This sample program shows us how to texture mapping outline fonts. It seems the outline fonts does not generate 3d font object texture coordinates for us. And luckily, OpenGL provide some interfac... 阅读全文
posted @ 2012-08-23 22:11 opencoder 阅读(308) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to use OpenGL fog feature. we will learn how to use 3 different fog filters, how to change the color of the fog, and how to set how far into the screen the fog starts and how... 阅读全文
posted @ 2012-08-23 22:06 opencoder 阅读(231) 评论(0) 推荐(0) 编辑
摘要: This sample show us how to display 2D texture font on the screen with OpenGL. This 2d texture font is just an image painted with characters instead of windows fonts. The mainly workflow for 2D text... 阅读全文
posted @ 2012-08-23 22:00 opencoder 阅读(485) 评论(0) 推荐(0) 编辑
摘要: This sample will introduce us to the wonderful world of quadrics. With quadrics you can easily create complex objects such as spheres, discs, cylinders and cones. These object can be created with jus... 阅读全文
posted @ 2012-08-23 21:55 opencoder 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Here is a simple particle engine. The particle effect is a very important element in game. It could be used simulate an explosion, water fountain, flaming star and so on. Generally speaking, a par... 阅读全文
posted @ 2012-08-23 21:51 opencoder 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑