-
作者: junglesong
这是我过去进行一个OpenGL项目时使用到的"三维空间向量/点"类及相关函数,使用它们可以定义一个空间向量/点,实现向量的平移...
作者: junglesong
这是我过去进行一个OpenGL项目时使用到的"三维空间向量/点"类及相关函数,使用它们可以定义一个空间向量/点,实现向量的平移,缩放和旋转等,使用相关函数还可以实现两向量的叉乘,得到一个向量的绝对长度,将一个向量单位化,得到一个三点决定的平面的垂直向量(经过单位化),得到空间中两点的距离,得到两向量的点积,得到两向量的夹角等操作,为方便用户的使用,每个函数都有详细的注释,特别重要的向量计算如点积,叉乘还有相关说明,希望对大家有所用处.
由于源程序涉及到保密问题不能和盘托出,请见谅.
junglesong@etang.com-Author : junglesong This is my last OpenGL for a project to use the "three-dimensional vector space/point "and related functions, they can use a definition of space vector/points, for the vector translation, zooming and rotation, using correlation function can also achieve two fork by Vector, a vector to be the absolute length of a vector unit, 3:00 been a decision of the vertical plane of Vector (those units), a space to be the distance between two points, Vector to be the two plot points, to be the angle between two vectors such operations, as a user-use, Each function has detailed notes, a particularly important point if the calculation vector plot, fork also took note, we hope to have use
- 2023-01-23 15:20:04下载
- 积分:1
-
用opengl和VC++实现的雪花的下落过程
用opengl和VC++实现的雪花的下落过程-Use opengl and VC to achieve the whereabouts of the process of snow
- 2022-01-30 14:55:44下载
- 积分:1
-
二值化方法 Nibleka
该方法的想法是在亮度阈值二值化 B 变异从一个点到另一个点基于本地的标准偏差。阈值亮度点 (x,y) 的计算公式如下: B (x,y) = m (x,y) + ks (x,y),
其中 μ (x,y)-平均值和 s (x,y)-给附近居民样本的标准偏差。邻里的大小应该是最小的但保持局部细节。同时,大小应足够大,以减少噪声对结果的影响。K 值确定边界的对象是对象本身采取的哪一部分。K 值 =-0.2 给对象的分离效果相当好,如果他们都提出了在黑色,而 k 值 = +0.2,-,如果对象是白色的。
- 2022-03-07 01:49:01下载
- 积分:1
-
OepnGL simulations for multipl sensor environment in all types of conditions.......
OepnGL simulations for multipl sensor environment in all types of conditions-OepnGL simulations for multipl sensor environment in all types of conditions.....
- 2022-09-20 08:25:03下载
- 积分:1
-
使用OpenGL绘制三维钻石心形状参数
应用背景我们需要用不同的形状画出一个三维钻石。我开始听了它的形状。用户希望这个形状能在三维空间中绘制,比如用户可以改变任何形状的参数。像直径,表的大小,gurdle大小,pavallion角,起始角度,等等。OpenGL在三维形状画什么好的开发工具。所以我更愿意选择它。关键技术在这个项目中我使用一个开源的三维图形库调用opengl。我做了很多计算,以画一个心形。首先,我创建顶点,然后我画不同的面和存储在一些数组中。并通过适当的方式,根据给定的参数,钻石心形状相结合,生成的钻石心形状;
- 2022-07-21 14:45:06下载
- 积分:1
-
本程序在窗口中显示了一个加入纹理的场景,使得该场景更加真实,平滑,是基于单文档的MFC应用程序。 在本程序中,纹理场景是通过SetCheckTexture()函...
本程序在窗口中显示了一个加入纹理的场景,使得该场景更加真实,平滑,是基于单文档的MFC应用程序。 在本程序中,纹理场景是通过SetCheckTexture()函数生成的,然后通过DoTransform()函数 将―个顶点从物体坐标系转换到窗口坐标系,利用openGL进行矩阵计算,通过UpdateModelView()函数和InitMatrices()函数实现。-the procedures in the window shows a scene by adding texture, making the scene more real, smooth, is based on the MFC single document applications. In this process, the texture scene through SetCheckTexture () function generator, and then through DoTransform () function to-vertex from the object coordinate system conversion to the window frame, using openGL for matrix calculation, UpdateModelView () function and InitMatrices () Function.
- 2022-05-17 22:41:58下载
- 积分:1
-
扫描二维或三维区域的交叉部分,通过三维曲线,得到交叉部分的曲面区域...
扫描二维或三维区域的交叉部分,通过三维曲线,得到交叉部分的曲面区域-Sweeps out a 2D cross section (a circle, square, whatever, doesn t even have to be a closed path) through a 3D curve, and returns the generated surface as [X,Y,Z] for use with SURF.
- 2022-11-05 00:25:02下载
- 积分:1
-
vc6.0+opengl 环境下开发的简单的snock游戏程序源代码
vc6.0+opengl 环境下开发的简单的snock游戏程序源代码-vc6.0+ opengl environment developed a simple game snock source code
- 2022-04-20 07:25:58下载
- 积分:1
-
OpenGL代码,显示在贪婪的立方体。颜色方法和三维图形
opengl code, shows the cube in greed. colour method and 3d graphic-opengl code, shows the cube in greed. color method and 3d gra phic
- 2022-02-03 18:55:23下载
- 积分:1
-
初学opengl的简单代码
对于初学者来说是一篇很不错的学习opengl的代码,本人已经在自己的电脑上运行成功,可以直接进行学习,希望对大家有很好的帮助。
- 2022-05-18 04:37:07下载
- 积分:1