摘要: Problem: A error occurred when I defined "NormalMapping normal"( used for manaing relative shader ) in my OpenGLApp class. The compiler return error message "access violation at location 00000000 ".Analysis: The error message seems to indicate that I had invoked some gl-function 阅读全文
posted @ 2013-10-29 23:10 swdever 阅读(168) 评论(0) 推荐(0)
摘要: These days texture mapping hardware is really cheap, so we use texture maps a lot. One of the more interesting aspects of texture mapping is the space that texture coordinates live in. Most of us like to think of texture space as a simple 2D affine plane. In most cases this is perfectly acceptable.. 阅读全文
posted @ 2013-10-10 15:07 swdever 阅读(442) 评论(0) 推荐(0)
摘要: (quote from "Mathematics for3D Game Programmingand Computer GraphicsThird Edition") As the figure above showing,correct interpolation across the face of a triangle isnot linear since equally spaced steps taken on the projection plane correspond tolarger steps taken on the face of a triangl 阅读全文
posted @ 2013-10-10 00:29 swdever 阅读(583) 评论(0) 推荐(0)
摘要: glTexImage2D: Access Violate when invoke glTexImage2D. This problem may happen when specify a color system which is not correspond to the exact color system.Eg. The texture uploaded is store in RGB color system,but when invoke glTexImage2D, I specify that the texture is in RGBA color system.Then, a. 阅读全文
posted @ 2013-10-08 23:49 swdever 阅读(264) 评论(0) 推荐(0)