-
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
-
Simple Draw using Opengl primitives in c++, this time the most easy draw: a poin...
Simple Draw using Opengl primitives in c++, this time the most easy draw: a point
- 2022-02-07 12:41:03下载
- 积分:1
-
用openGL编写,通过分割二十面体得到的带有纹理的球体。
用openGL编写,通过分割二十面体得到的带有纹理的球体。-Prepared using openGL through Icosahedron be split with the texture of the ball.
- 2023-08-26 10:20:03下载
- 积分:1
-
first install the JRE, install java3d Pack (Java 3D package of documents called...
首先安装JRE,再安装java3d包(Java 3D包的文件名为java3d-1_3_1-windows-i586-opengl-sdk.exe,可以到百度,GOOGLE和北大天网上去搜索这个文件,就会有下载的)。默认情况下java3d包会安装在你的$JBuilder9jdk1.4目录下。会在$JBuilder9jdk1.4jrelibext下添加几个jar文件,会在$JBuilder9jdk1.4demo目录下添加一个java3d目录,里面是例子。如果安装没有问题,打开目录 $JBuilder9jdk1.4demojava3dHelloUniverse下的网页HelloUniverse.html应该可以正常显示。-first install the JRE, install java3d Pack (Java 3D package of documents called java3d- 1_3_1-windows-i586- opengl- sdk.exe can go to Baidu, Google and Beijing University days of the Internet to search the file, then you will have to download). Default under java3d package will be installed in your $ JBuilder9 jdk1.4 directory. The $ JBuilder9 jdk1.4 jre lib ext Add several jar document, the $ JBuilder9 jdk1.4 demo directory add a java3d directory, there"s example. If you have no problem, open directory $ JBuilder9 jdk1.4 demo java3d HelloUniverse HelloUniverse.html the website should be able to display normal.
- 2023-08-26 17:10:03下载
- 积分:1
-
这是一个在VC中OpenGL波仿真结果的源环境,使…
这是一个在VC环境下利用OpenGL模拟水波效果的源程序,充分运用 OpenGL的纹理坐标,贴图坐标相关函数。是学习OpenGL纹理与贴图的理想示例代码。-This is an environment in VC OpenGL wave simulation results of the source, make full use of OpenGL texture coordinates, mapping coordinates correlation function. Learning OpenGL texture mapping with the ideal sample code.
- 2022-07-15 20:54:57下载
- 积分:1
-
用OpenGL编写的彩色立方体
用OpenGL编写的彩色立方体-prepared with OpenGL color cube
- 2022-03-23 11:53:48下载
- 积分:1
-
粒子系统的一段水特效,大家可以一起来评价一下
粒子系统的一段水特效,大家可以一起来评价一下-Particle system special effects for some water, we can work together to assess the
- 2022-02-26 20:32:47下载
- 积分:1
-
基于OPENGL的光照球体,点击可以变换多种色,
基于OPENGL的光照球体,点击可以变换多种色,-based on the OpenGL light sphere, it may change a variety of colors,
- 2022-03-25 21:50:50下载
- 积分:1
-
opengl人体动画设计
这是一个关于opengl的应用程序,基于MFC程序框架 ,用opengl设计人体动画,喜欢opengl的朋友可以看看,很有趣的,学习opengl的朋友也可以看看
- 2022-01-28 11:34:26下载
- 积分:1
-
本源码是为实现对象的旋转而专门编写的一个小程序,对初学vc者有很大的帮助!...
本源码是为实现对象的旋转而专门编写的一个小程序,对初学vc者有很大的帮助!-the source object is to achieve the rotation specially prepared in a small program for beginners vc are of great help!
- 2022-02-06 21:11:12下载
- 积分:1