摘要: BBC News with David Austin (1)President Goodluck Jonathan of Nigeria has challenged the Islamist(伊斯兰) militant(好战的) group Boko Haram to identify themselves and clearly state their demands as a basis for dialogue. He said military intervention(干预) was not the sole means of ending the conflict. " 阅读全文
posted @ 2012-02-09 11:48 何解一直犯相同错误? 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 4001:Catch That Cow查看提交统计提问时间限制:2000ms内存限制:65536kB描述Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,000) on the same number line. Farmer John has two 阅读全文
posted @ 2012-02-08 11:09 何解一直犯相同错误? 阅读(303) 评论(0) 推荐(0) 编辑
摘要: C语言中定义: void gluSphere(GLUquadricObj *qobj, GLdouble radius, GLint slices, GLint stacks) 参数: qobj:二次曲目对象(GLUquadricObj * qobj,初始化:cylinder_obj= gluNewQuadric();) radius :球半径; slices: Z轴方向片数,经度方向; stacks: z轴方向片数,维度方向。 描述: gluSphere draws a sphere of the given radius centered around the origin. ... 阅读全文
posted @ 2012-02-06 01:33 何解一直犯相同错误? 阅读(4277) 评论(0) 推荐(0) 编辑
摘要: glulookat函数是用来在世界坐标系中设置相机的,也就是用于设置view 变换矩阵的它的参数为别代表相机在世界坐标中的位置, 相机朝向和用于固定相机旋转的向量要对物体进行缩放,移动或旋转的话应该是用model 变换矩阵,glScalef(...); glTranslatef(...); glRotatef(...);总体来说如下: // Position(相机位置) View(相机对准的位置) Up Vector(右手法则,用于固定相机旋转的向量) gluLookAt(0, 3, 6, 0, 0, 0, 0, 100, 0); 阅读全文
posted @ 2012-02-06 00:20 何解一直犯相同错误? 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 看了Opengl的相关程序,发现有些东西还是特别迷茫,尤其是gluLookAt的函数做啥用的,而gluPerspective又有什么功能.在网上查看到了这篇: 终于搞明白gluPerspective和gluLookAt的关系了(zz)http://cowboy.1988.blog.163.com/blog/static/751057982010101574732212/我感觉它里面没有说清楚这些函数到底是做什么用的,只是说了不同的参数有什么效果. 我相信它做法是对的,但我更希望获取why to do it? not just how to do it.然后在网上又搜索到了: OpenGL入门学 阅读全文
posted @ 2012-02-05 09:31 何解一直犯相同错误? 阅读(510) 评论(0) 推荐(0) 编辑
摘要: opengl中glulookat函数的意思gluLookAt( 摄像机x,摄像机y,摄像机z, 目标点x,目标点y,目标点z, 摄像机顶朝向x,摄像机顶朝向y,摄像机顶朝向z )osg中camera->setViewMatrixAsLopengl 的函数相当于opengl中的glulookatopenGL变换小节:视图:指定观察者或摄像机的位置模型:在场景中移动对象模型视图:描述视图变换盒模型变换的对偶性投影:对视见空间进行修剪和改变大小视见区: 对到窗口的最终输出进行缩放眼坐标:来自观察者的观察点,与可能发生的任何变换无关,可以把它们视为“绝对”屏幕坐标。因此并不是真正的坐标,而是代表 阅读全文
posted @ 2012-02-04 19:51 何解一直犯相同错误? 阅读(898) 评论(0) 推荐(0) 编辑
摘要: glLoadIdentity()将当前的用户坐标系的原点移到了屏幕中心:类似于一个复位操作 1.X坐标轴从左至右,Y坐标轴从下至上,Z坐标轴从里至外。 2.OpenGL屏幕中心的坐标值是X和Y轴上的0.0f点。 3.中心左面的坐标值是负值,右面是正值。 移向屏幕顶端是正值,移向屏幕底端是负值。 移入屏幕深处是负值,移出屏幕则是正值。glTranslatef(x, y, z)沿着 X, Y 和 Z 轴移动。注意在glTranslatef(x, y, z)中,当您移动的时候,您并不是相对屏幕中心移动,而是相对与当前所在的屏幕位置。其作用就是将你绘点坐标的原点在当前原点的基础上平移一个(x,y,.. 阅读全文
posted @ 2012-02-04 11:41 何解一直犯相同错误? 阅读(581) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-02-03 22:45 何解一直犯相同错误? 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-02-03 07:45 何解一直犯相同错误? 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-02-03 07:37 何解一直犯相同错误? 阅读(3) 评论(0) 推荐(0) 编辑