OpenGL
文章平均质量分 71
「已注销」
生如夏花之绚烂,死如秋叶之静美!
展开
-
glewInit初始化的错误
1. 如果要使用glew相关的函数,那么一定要先对glew初始化。如果不初始化,那么虽然编译相关的程序不会报错,但是在运行时,则会报告段错误2.初始化的方法按glew官方网站上的说明:#include #include ...glutInit(&argc, argv);glutCreateWindow("GLEW Test");GLenum err原创 2013-02-06 09:34:21 · 8580 阅读 · 0 评论 -
辉光特效
Glows (aka Bloom)Introduction介绍Glow effects simulate the characteristics of a lens that suffers from light bleeding due to a high dynamic range. In photography, most cameras are set to use an翻译 2013-07-13 01:38:57 · 9850 阅读 · 0 评论 -
OpenGL的库的安装
安装OpenGL及glut库 安装freeglut及freeglut-dev库安装libglew-dev库查看OpenGL的版本方法很简单,只需要打开终端。输入以下命令:glxinfo | grep OpenGL安装ImageMagick-6.7.5-0库从主页下载,然后照着文档的方法安装但是要注意,它不提供具体图片类型的解析,如jpeg原创 2013-04-13 23:50:42 · 1934 阅读 · 0 评论 -
材质的颜色
在OpenGL的绘制中,我们一般会给绘制物体加上颜色,根据场景的不同,有几下几种方法:1. 无光照在无光照模型下,是最简单的一种情形,在这种情况下,直接使用glColor*函数来设置每个顶点的颜色,这种方法简单直接。2.有光照在有光照的模型下,模型的颜色受以下几方面的影响:光源的颜色属性 ,以及通过glMaterial*()设置的材质的属性。同时glCo原创 2013-06-25 14:39:56 · 1652 阅读 · 0 评论 -
拾取之颜色编码
Picking Tutorial拾取教程Color Coding颜色编码The Red Book describes an interesting approach to picking based on color coding. This is a very simple approach that can be used instead of using翻译 2013-04-18 09:53:57 · 1027 阅读 · 0 评论 -
拾取之处理命中
Picking Tutorial拾取教程Processing the Hit Records处理命中记录In order to process the hit records the application must first return to the normal rendering mode. This is done calling glRende翻译 2013-04-18 09:52:22 · 914 阅读 · 0 评论 -
拾取之选择模式
Picking Tutorial拾取教程The Selection Mode选择模式So far the OpenGL naming scheme has been presented. This section will show you how to enter the selection mode for picking purposes. The fir翻译 2013-04-18 09:51:30 · 843 阅读 · 0 评论 -
拾取之名字栈
Picking Tutorial拾取教程The Name Stack名字栈The OpenGL API provides a mechanism for picking objects in a 3D scene. This tutorial will show you how to detect which objects are bellow the mou翻译 2013-04-18 09:43:49 · 2260 阅读 · 1 评论 -
拾取之检查颜色
Picking Tutorial拾取教程Cheking the Color检查颜色Checking the color of the pixel where the mouse was clicked involves reading that same pixel from the back buffer. This can be accomplished u翻译 2013-04-18 09:55:30 · 1037 阅读 · 0 评论