您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. opengl中如何绕轴旋转物体

  2. 如何绕轴旋转这些物体。glRotatef(Angle,Xvector,Yvector,Zvector) 用于绕轴旋转物体, 这是一条十分有用的函数。 Angle 是一个用于指定旋转角度的数字(通常存储于变量中)。 Xvector, Yvector 和 Zvector 这三个参数用于描述一条向量, 以规定物体的旋转轴。 如果你使用 (1,0,0) 这样的值, 你就描述了一条长度为1个单位的、顺着x轴指向右方的向量; 而 (-1,0,0) 这样的值就描述了一条长度为1个单位的、顺着x轴 但指向左方
  3. 所属分类:专业指导

    • 发布日期:2009-08-19
    • 文件大小:16kb
    • 提供者:teacherxy
  1. 3D魔方 C++代码

  2. 部分代码: // FScreen.c // OpenGL SuperBible, Chapter 17 // Program by Richard S. Wright Jr. // This program shows a how to create a full screen // window and render into it with OpenGL. #include #include #include #include #include #include #includ
  3. 所属分类:C++

    • 发布日期:2010-04-18
    • 文件大小:23kb
    • 提供者:lovec001
  1. HumanMotionTrack 全

  2. 基于视频序列捕获人体运动和人体运动分析 如何制作一个可控制的人体骨骼模型 描述:本文提供一种将骨架动作矢量映射到人体骨架模型的一种方法,通过输入各个骨骼的当前方向,反馈给骨架模型,这样就实现了动画的效果。 实验开发工具是VC6.0在OpenGL平台上开发完成。 阅读对象: 假定读者已经熟悉OpenGL编程,就算不熟悉,只要了解基本的旋转,平移,堆栈操作就好。 假定读者已经了解基本的c++编程,其中需要了解递归的算法,递归的方法请参考一下数据结构吧。 制作过程: 第一步,3D模型准备 这一步骤的
  3. 所属分类:其它

    • 发布日期:2010-12-09
    • 文件大小:154kb
    • 提供者:linlin49421
  1. 图形学立方体旋转程序

  2. 立方体旋转程序 /* Rotating cube with color interpolation */ /* Demonstration of use of homogeneous coordinate transformations and simple data structure for representing cube from Chapter 4 */ /* Colors are assigned to the vertices */ /* cube is centered at
  3. 所属分类:C

    • 发布日期:2010-12-10
    • 文件大小:5kb
    • 提供者:cjp449013099
  1. sunearthmoon模拟系统

  2. vc6.0 结合OPENGL库实现的太阳、月亮、地球运转模拟系统 sunearthmoon模拟系统 opengl vc6.0 sunearthmoon glutwiresphere glrotatef sunearthmoon模拟系统 opengl vc6.0 sunearthmoon glutwiresphere glrotatef sunearthmoon模拟系统
  3. 所属分类:C++

    • 发布日期:2011-09-18
    • 文件大小:232kb
    • 提供者:sherry_seu
  1. 计算机图形学制作时钟源代码

  2. 用MFC VC++实现的时钟源代码 // MFCFrame1View.cpp : implementation of the CMFCFrame1View class // #include "stdafx.h" #include "MFCFrame1.h" #include "MFCFrame1Doc.h" #include "MFCFrame1View.h" #include "PointDialog.h" #include "math.h" GLUquadricObj *objCylin
  3. 所属分类:C++

    • 发布日期:2011-12-21
    • 文件大小:44kb
    • 提供者:liang7291476
  1. opengl 3d文字

  2. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(.0f, .0f, -10.0f); glRotatef(rot,1.0f,0.0f,0.0f); // Rotate On The X Axis glRotatef(rot*1.5f,0.0f,1.0f,0.0f); // Rotate On The Y Axis glRotatef(rot*1.4f,0.0f,0.0f,1.0
  3. 所属分类:C

    • 发布日期:2012-09-03
    • 文件大小:8kb
    • 提供者:zhigewuwang
  1. opengl的太阳系模型

  2. 视点变换,旋转,加速减速,星空背景 太阳,光晕 各行星纹理 #include #include #include #include #include #include #include #pragma comment(lib, "winmm.lib") #pragma comment(lib,"wininet") // 纹理图像结构 typedef struct { int imgWidth; // 纹理宽度 int imgHeight; // 纹理高度 unsigned cha
  3. 所属分类:C

    • 发布日期:2013-01-12
    • 文件大小:3mb
    • 提供者:evil29625910
  1. OpenGL读取3DS文件示例

  2. 使用OpenGL读取3DS文件的示例代码。 演示说明了3DS文件的结构、三维控件中视线、旋转设置,以及简单的动画。 重要说明如下 ------------------全局变量------------- g_Load3ds 读入数据的类 g_3DModel 数据本身 g_RotationSpeed 旋转速度 ---------------------函数--------------- 【WinMain】 入口函数。 调用Init初始化OpenGL 调用MainLoop显示 【Init】 初始化O
  3. 所属分类:其它

    • 发布日期:2008-10-01
    • 文件大小:4mb
    • 提供者:shenxiaolu1984
  1. openGL程序

  2. #include #include #include #include #include"../../wgGameLib03/dms/FileImage.h" #include"../../wgGraphLib/GraphElemenfs.h" GLint iWidth, iHeight, iGomponents.h; GLenum eFormat; GLfloat xRot,yRot; GLfloat noLight[4]={0.0f,0.0f,0.0f,1.0f}; GLfloat amb
  3. 所属分类:其它

    • 发布日期:2014-06-02
    • 文件大小:1kb
    • 提供者:qq_16054257
  1. 用opengl绘制一个旋转正方体.cpp

  2. #include #include "stdafx.h" #define GLUT_DISABLE_ATEXIT_HACK #include //#pragma comment(lib, "glut32.lib") GLfloat AngleX;//旋转向量 GLfloat AngleY; void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_MODELVIEW);
  3. 所属分类:C/C++

    • 发布日期:2018-05-21
    • 文件大小:1kb
    • 提供者:qq_42262433
  1. opengl橡皮筋

  2. #include "stdafx.h" #include #include #include #define stripeImageWidth 32 GLubyte stripeImage[4 * stripeImageWidth]; #ifdef GL_VERSION_1_1 static GLuint texName; #endif void makeStripeImage(void) { int j; for (j = 0; j < stripeImageWidth; j++
  3. 所属分类:C/C++

    • 发布日期:2018-05-21
    • 文件大小:1kb
    • 提供者:qq_42262433
  1. opengl/c++贪吃蛇.rar

  2. VS工程奉上,运行逻辑应该无问题,用六面体代表贪吃蛇的身体,绘制用一个数组保存所有的顶点,用一个数组保存顶点的序号。但最后绘制的时候,不是编写循环语句逐个的指定顶点了,而是通知OpenGL,”保存顶点的数组”和”保存顶点序号的数组”所在的位置,由OpenGL自动的找到顶点,并进行绘制。但是没有调gluLookAt和glRotatef,运行起来是二维的。c++和opengl都是初学,请大家指正。
  3. 所属分类:C/C++

    • 发布日期:2020-03-22
    • 文件大小:21mb
    • 提供者:weixin_44562141
  1. Android自制3D View显示组件源代码(3D Widget)

  2. 部分源代码:   gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glMatrixMode(GL10.GL_MODELVIEW); gl.glLoadIdentity(); gl.glTranslatef(0, 0, -3.0f); gl.glRotatef(mAngle, 0, 1, 0); gl
  3. 所属分类:其它

    • 发布日期:2021-03-16
    • 文件大小:102kb
    • 提供者:weixin_38746387