-
DDA 算法的实现
数字微分分析器或只是简略的 DDA 直线绘制算法是用于光栅图形设备中绘制线条。在这种算法,在行的开始和结束位置已提供。
中介像素位置将在起始点和结束点之间的时间间隔的变量线性内插法计算。该算法如下所示:
让开始和结束点线的是 (x 1,y1) 和 (x2,y2),分别。所以坡、 m = (y2-y1)/(x2-x1)。根据 m 和该象限的 (x,y) 的值属于,中介像素职位要计算如下:
职位要计算如下:
象限
m < = 1
m > 1
第一次
x = x + 1
y = y + m
x = x + 1/m
y = y + 1
第二次
x = x 1
y = y + m
- 2022-08-10 08:17:23下载
- 积分:1
-
OPENGL彩色圆环编程示例程序源代码,use openGL 所编写
OPENGL彩色圆环编程示例程序源代码,use openGL 所编写-OpenGL Programming sample program source code, prepared by the use openGL
- 2022-07-13 22:50:15下载
- 积分:1
-
OpenGL基础图形编程
OpenGL基础图形编程-OpenGL foundation graph programs
- 2022-07-01 22:34:31下载
- 积分:1
-
gpu 实现marching cube
使用OPENGL的新特性实现了MARCHING CUBE算法,使用了OPENGL的shader语言glsl,在GPU上实现了MARCHING CUBE算法,提高了速度。 该代码使用GLUT来进行窗口的控制,同时引入了新的库。
控制方式:使用D键来切换数据(共3种数据)
使用A键暂停/继续动画效果
使用VS2010 编辑 需要在工程属性中的INCLUDE路径中包含代码内的GL文件夹
- 2023-05-12 15:00:03下载
- 积分:1
-
OpenGL 蓝宝书 超级宝典 第四版 英文版
作者 Richard S. Wright Jr., Benjamin Lipchak...
OpenGL 蓝宝书 超级宝典 第四版 英文版
作者 Richard S. Wright Jr., Benjamin Lipchak-OpenGL Sapphire fourth edition of the book Super Baodian English author Richard S. Wright Jr., Benjamin Lipchak
- 2023-07-29 07:35:06下载
- 积分:1
-
/ *画圆的半径为9,8和7所示的颜色(0,0)
/* Draw circles of radius 9, 8 and 7 with the colours shown around (0,0)
Draw the x and y axis
Draw the diagonal line
Draw the 12 by 6 quad around (0,0)
When the left mouse button is pressed the diagonal line moves as shown.
When the right button is pressed the diagonal line is reset to its
original position
The right button also toggles the direction from + to - x
Pressing Esc exits the program
*/-/* Draw circles of radius 9, 8 and 7 with the colours shown around (0,0)
Draw the x and y axis
Draw the diagonal line
Draw the 12 by 6 quad around (0,0)
When the left mouse button is pressed the diagonal line moves as shown.
When the right button is pressed the diagonal line is reset to its
original position
The right button also toggles the direction from+ to- x
Pressing Esc exits the program
*/
- 2022-05-20 09:28:51下载
- 积分:1
-
Using 24
Using 24-bit Bitmap Files as OpenGL Images-Using 24-bit Bitmap Files as OpenGL Images
- 2022-11-27 01:25:03下载
- 积分:1
-
如何从文件加载3D模型,并且平滑的从一个模型变换为另一个模型。...
如何从文件加载3D模型,并且平滑的从一个模型变换为另一个模型。-How to load the 3D model from the document, and smooth transformation from one model to another model.
- 2022-04-17 18:28:30下载
- 积分:1
-
读取SLC文件
通过简单了解slc文件格式,进行文件读取操作。通过VTK工具包读取所需slc文件
- 2022-11-23 00:45:03下载
- 积分:1
-
一个表现三维地形的程序,效果不错,直接编译就可以了。
一个表现三维地形的程序,效果不错,直接编译就可以了。-The performance of a three-dimensional topography of the procedure, good results, directly compiled on it.
- 2023-05-26 12:00:04下载
- 积分:1