CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Visual Studio Graph
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - Visual Studio Graph - List
[
OpenGL program
]
proj1
DL : 0
在Windows系统中,安装GLUT库:打开glut-3.7.6-bin.zip,取出glut.h,glut32.lib,glut32.dll,分别放置。 使用Visual Studio C++编译已有项目工程,并修改代码生成以下图形: 在此基础上,修改各顶点颜色,使得每个顶点颜色不一样,多边形内部颜色渐变。 操作方法和实验步骤: 1.使用GL_POLYGON模式绘制白色的多边形,由于所绘多边形为凹多边形,故从最左上角的点开始绘制,以防得到不可预测的图形。注意求得各凹角(reflex convex)处的顶点坐标。 2.下面考虑修改各顶点颜色。首先多边形绘制改为从位于图形中心的(0,0)处开始,并设为白色。 3.此后对于六个凹角处的顶点分别设定其颜色为黄色,绿色,青色,蓝色,洋红色及红色。默认状态下多边形将出现渐变的效果。 4.此时运行程序将得到如右图所示效果:为此,我们再次绘制前面所绘制的第一个多边形顶点,即可得到所要求图形。 -In the Windows system, install the GLUT libraries: Open glut-3.7.6-bin.zip, remove glut.h, glut32.lib, glut32.dll, were placed. The use of Visual Studio C++ compiler has been the project works, and modify the code generates the following graph: On this basis, modify the vertex colors to make different colors for each vertex, polygon internal color gradient. Operational methods and experimental steps: 1. Use GL_POLYGON draw white polygon models, as painted concave polygon as a polygon, so starting from the most upper left point rendering, in case the graphics to be unpredictable. Note to seek the concave angle (reflex convex) at the vertex coordinates. 2. The following consider amending the vertex colors. First, change from the rendering polygon graphics center located at (0,0) at the beginning, and set to white. 3. Then for the six respective concave corner vertex set its color to yellow, green, cyan, blue, magenta and red colors. Polygon will appear by default gradient e
Date
: 2025-12-25
Size
: 6kb
User
:
小痴狗子
[
OpenGL program
]
SharpGL-2.0-Source-Code
DL : 0
SharpGL的例程源代码,一个开源类库,SharpGL让你是使用OpenGL非常方便。这些工程源码是针对Visual Studio开发环境。-SharpGL is a project that lets you use OpenGL in your Windows Forms or WPF applications with ease! With all OpenGL functions up to the latest 4.2 release, all major extensions, a powerful scene graph and project templates for Visual Studio, you have all the tools you need to create compelling 3D applications- or to port existing code to a new platform.
Date
: 2025-12-25
Size
: 2.82mb
User
:
talkbig
[
OpenGL program
]
glutEx3
DL : 0
一、实验目的和要求 在OpenGL编程基础上,通过实现实验内容,掌握OpenGL的矩阵使用,并验证课程中矩阵变换的内容。 二、实验内容和原理 使用Visual Studio C++编译已有项目工程,并修改代码生成以下图形: “平移的桌子,旋转的桌子”-First, experimental purposes and requirements of the OpenGL programming, based on the contents through the realization of the experiment and master the use of OpenGL matrix and verify the contents of the curriculum matrix transformation. Second, experimental content and principles have been compiled using Visual Studio C++ project, and modify the code to generate the following graph: " translation table, rotary table"
Date
: 2025-12-25
Size
: 1kb
User
:
robin
[
OpenGL program
]
glutEx5
DL : 0
一、实验目的和要求 在模型变换实验的基础上,通过实现下述实验内容,掌握OpenGL中三维观察、透视投影、正交投影的参数设置,并能使用键盘移动观察相机,在透视投影和正交投影间切换,验证课程中三维观察的内容; 进一步加深对OpenGL三维坐标和矩阵变换的理解和应用。 二、实验内容和原理 使用Visual Studio C++编译已有项目工程,并修改代码生成以下图形: “桌子和茶壶的正投影和透视投影” 可以使用键盘改变camera位置与观察方向 (按键为asdwzc,也可以自行设定) 添加键盘对茶壶的控制,主要是茶壶沿着桌面的平移操作和茶壶绕自身轴的旋转操作;按键为:l, j, I, k, e。-First, experimental purposes and requirements on the basis of model transformation experiments, by implementing the following experiment content, master OpenGL three-dimensional observation, perspective projection, orthogonal projection parameter settings, and can use the keyboard to move the observation camera in perspective projection and positive switching between AC projection, content verification curriculum dimensional observation further deepen the OpenGL 3D coordinates and matrix transform the understanding and application. Second, experimental content and principles have been compiled using Visual Studio C++ project, and modify the code to generate the following graph: " tables and teapots orthographic and perspective projection" can use the keyboard to change the camera position and viewing direction (key for asdwzc, you can set their own) to add keyboard control of the teapot, mainly along the teapot and tea desktop panning rotation around its own axis operation t
Date
: 2025-12-25
Size
: 2kb
User
:
robin
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.