搜索资源列表
water_reflect2
- 水面反射和折射,提供源代码,通过下面几步实现: 1.设定一个附加裁减平面 2. 并把摄像机位置设置到当然视点对称的位置, 渲染平面以上部分到一个纹理. 3. 将反射平面的顶点传入VS, 并乘以投影矩阵.得到平面投影点的坐标. 4. 将上述插值传入PS, 并同时除以W, 并(projCoord+1.0f)*0.5f. 5. 再查询渲染得到的纹理, 并加入点噪声, 有水波纹的效果. -surface reflection and refraction, providing
visKDTree
- kdtree. 用于最近点搜索。 可输入点的三维坐标,再输入查询点,即可得到指定的最近点坐标。
eight
- 八叉树的实现 功能: 1、创建八叉树。 此八叉树为满树,即所有节点/叶子全部创建。 用户可以自定义此八叉树的深度和所处的三维场景中的位置。 注a:由于创建树时为满树创建,故层数太大时创建时间可能会比较久,请耐心等待。 注b:创建顺序为(1)上层左前节点-(2)上层右前节点-(3)上层右前节点-(4)上层右后节点 -(5)下层左前节点-(6)下层右前节点-(7)下层右前节点-(8)下层右后节点-(1)-(2)…… 2、先序遍历八叉树。 八叉树创建成功后
在OpenGL中实现基本的计算机绘图
- 在OpenGL中实现如下基本的计算机绘图功能: 1.为屏幕显示定义一个坐标系统; 2.熟悉绘点函数,并上机实习课件上的几个画点函数的例子; 3. 熟悉画线方法,并熟悉不同的画线状态,并上机实习课件上的几个画线函数的例子; 4. 在模板中添加代码,实现DDA法和Bresenham法绘制直线图元; 5.实现Bresenham法绘制圆图元; 6.实现中点法椭圆图元的生成(选做); 7.掌握顶点阵列和象素阵列绘制图元的方法,用顶点阵列绘制一个长方体,并设置表面颜
OpenGL san wei dian ji
- 在VC环境下利用OpenGL作出简单的三维坐标系,并画出一个简单点迹-In the VC environment, the use of OpenGL to make a simple three-dimensional coordinate system, and draw a simple point mark
opengl-read-points-from-files
- opengl从text里读取数据点的坐标,然后在opengl里画图-opengl read from the text in the coordinates of data points, and then drawing in opengl
insert_curve
- opengl+控制台,鼠标左键输出点坐标,程序画出经过点的曲线-opengl+ console output point coordinates of the left mouse button, the program after a point to draw the curve
TyreArithmetic
- 此程序采用C++builder开发平面任意点在空间曲面圆柱体上映射的点的三维坐标程序,曲面圆柱体的横截面和平面点坐标由用户输入。-This procedure using C++ Builder development of planar arbitrary point in space on the cylinder surface mapping of the three-dimensional coordinates of the point process, surface cross-
ZHD
- 曲面求交线 提取点,点的坐标能显示出来-Extracting surface intersection point, point coordinates can be displayed
MYSDOPENGL
- 用opengl自带的glReadPixels(以及gluUnProject()函数和点落在三角形内的矢量判断IntersectTriangle然后转成三维坐标的两种方式获取屏幕点选的场景坐标,通过对比发现其值是一样。-Use opengl own glReadPixels (as well as gluUnProject () function and the points fall within the vector triangle to determine IntersectTriangl
openglfk
- opengl 实现拾取与反馈,可以获得三维窗口中的任意点的三维坐标。-pick-up and feedback to achieve opengl obtain three-dimensional window of three-dimensional coordinates of any point.
proj1
- 在Windows系统中,安装GLUT库:打开glut-3.7.6-bin.zip,取出glut.h,glut32.lib,glut32.dll,分别放置。 使用Visual Studio C++编译已有项目工程,并修改代码生成以下图形: 在此基础上,修改各顶点颜色,使得每个顶点颜色不一样,多边形内部颜色渐变。 操作方法和实验步骤: 1.使用GL_POLYGON模式绘制白色的多边形,由于所绘多边形为凹多边形,故从最左上角的点开始绘制,以防得到不可预测的图形。注意求得各凹角(refl
Sun-Earth-Moon
- 该程序是一个简单的太阳、地球和月亮的旋转系统。基于VS2005开发平台,使用C++和OpenGL编写。该程序使用了OpenGL基本的坐标变换功能,实现球体的公转和自转。加入了光照和纹理,使其场景真实。另外,用户可以和场景进行简单的交互,方向键可以控制场景的坐标旋转,鼠标可以点击太阳、地球和月亮,变换其渲染模式(无纹理渲染和有纹理渲染),并且窗口标题会提示当前点击的对象。-The program is a simple sun, Earth and moon rotation system. VS
Rotate
- opengl中任一坐标点旋转后,得到新坐标点的例子。通过glGetFloatv函数获取glRotate变换后的模型视图矩阵,然后乘以当前点坐标,进行旋转变换,得到变换后的坐标点位置信息。并与glRotate函数进行比较。-A mehtod to get the vertex postion after roate. This method is implemented buy using glGetFloatv function to get the ModelView Matrix, Then
CalibrationTest
- 基于对话框的摄像头标定程序,采用快速的直接算法。能把图像上的点对应到OPenGl的坐标中实施显示。功能挺多的-Dialog-based camera calibration procedure, using a fast direct algorithm. Can point the image coordinates corresponding to the OPenGl implemented in display. Function Tingzhi
Howtoobataintheworldcoordinatesofthree-dimensional
- Opengl中怎么通过鼠标单击事件获得所绘三维点的世界坐标-How to obatain the world coordinates of three-dimensional points by mouse-click in Opengl
Class-and-Object
- 设计并测试一个名为Rectangle的矩形类,其属性为矩形的左下角与右上角两个点的坐标,能计算矩形的面积。-Design and test a Rectangle called the rectangular types, the property of the top right corner of the rectangular with two point coordinates, can calculate the area of the Rectangle
6-DOF-simulation-platform
- 六自由度平台是各种飞行及航海等领域操作模拟器的重要组成部分,可由数字计算机实时控制提供俯仰、偏航、滚转、升降、纵向和横向平移的六自由度瞬时运动仿真。仿真的基础是建立不同类型载体的运动特性关系,即力→加速度→速度→位置、力矩→角加速度→角速度→姿态,另外还要计入多种影响因素,才能使运动仿真平台较真实地模拟实船的运动,在实验室中最大限度地对运动系统、预报软件等进行测试及完善。 近年来,为保证平台运动控制精度,人们开发并使用了很多种传感器,但尚无针对液压并联六自由度平台运动特性的专用测试设备,多借用
Circle_ThreePoint
- 计算过空间三点的圆的的半径及法矢量:用户输入空间三个点的三维坐标,自动计算出通过该三点的圆的半径、圆心坐标以及法矢量-The Computation of the radus and normal vector of the circle passing three 3D point
huizhisanjiaotuxing
- 在已知点的坐标和节点编号杆件两段接点标号的情况下绘制三维图形-Known node coordinates and the bars at both ends of the case of contact numbers drawn three-dimensional graphics.
