上一页 1 ··· 24 25 26 27 28
摘要: 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 阅读(567) 评论(0) 推荐(0) 编辑
摘要: This samples us how to apply Cg vertex shader in OpenGL. Shader is a kind of short c-like code that could run on the GPU. One the one hand, we could get much flexibility while rendering our-own vis... 阅读全文
posted @ 2012-08-22 01:03 opencoder 阅读(429) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to switch on the MSAA (Multiple sampling Anti-Aliasing) on windows. I remember some material that I read before. The MSAA just sample several pixels instead of only one pix... 阅读全文
posted @ 2012-08-21 09:14 opencoder 阅读(591) 评论(0) 推荐(0) 编辑
摘要: This samples shows us how to put the mesh render data such as the vertex position, texture coordinates and even more vertex data upload into the video hardware. The samples what saw before that ver... 阅读全文
posted @ 2012-08-21 01:10 opencoder 阅读(349) 评论(0) 推荐(0) 编辑
摘要: This samples shows us how to render a 3D lens flare with OpenGL. A lens flare effect go with a light source. Before divide into the render part, there are several things that need to be addressed f... 阅读全文
posted @ 2012-08-20 23:22 opencoder 阅读(958) 评论(0) 推荐(0) 编辑
摘要: This samples shows us how to create anti-aliased font. The WGL font bitmap saved with binaries image, that means only one bit per pixel. This will cause some aliased problem as you zoom in the font... 阅读全文
posted @ 2012-08-18 21:56 opencoder 阅读(377) 评论(0) 推荐(0) 编辑
摘要: This sample shows us how to implement a complete physics simulation. The key point to build a simulation is to create a group of physics settings properly. During the simulation update, solve all ... 阅读全文
posted @ 2012-08-18 12:33 opencoder 阅读(541) 评论(0) 推荐(0) 编辑
摘要: This samples shows us how to create multiple views in one window. With OpenGL command glViewport, we could place our scene into any rectangle area on the window. Usually, we will set the view p... 阅读全文
posted @ 2012-08-17 09:18 opencoder 阅读(278) 评论(0) 推荐(0) 编辑
摘要: This samples shows us how to create some fog effect that does not fall off by the distance between the viewer and vertex position. With OpenGL command glFogCoordf, we could specify a fog densi... 阅读全文
posted @ 2012-08-17 08:23 opencoder 阅读(983) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28