-
球在两个面间的碰撞检测
一个小球在面上的碰撞检测的样本程序,语句后有注解。大家都知道游戏碰撞的基本处理方式也就莫过于几种:矩形碰撞,圆形碰撞,线性碰撞,几何碰撞,像素碰撞.以上几种碰撞处理方法从效率的角度来看,前两种检测方式是相当快的,但是适用面很窄!它们只能运用于碰撞检测精度不高的游戏中。这里用的是圆形检测。
- 2022-12-03 06:35:03下载
- 积分:1
-
OpenGL教程基础教程,chm格式
OpenGL教程基础教程,chm格式-OpenGL based tutorial guides, chm format
- 2022-05-19 03:53:43下载
- 积分:1
-
采用OPenGL编写的小程序。
采用OPenGL编写的小程序。-prepared using OpenGL small procedures.
- 2022-02-21 09:39:39下载
- 积分:1
-
opengl高级编程与可视化系统开发(系统篇)
opengl高级编程与可视化系统开发(系统篇)-opengl Advanced Programming and Visualization System (the System Part 1)
- 2022-04-10 10:51:51下载
- 积分:1
-
opengl,VC++代码能够实现摄像机漫游,具体请看演示程序
opengl,VC++代码能够实现摄像机漫游,具体请看演示程序-opengl, VC++ code to realize the camera roaming, see the specific demo program
- 2022-10-06 12:55:03下载
- 积分:1
-
image processing to the needs and would like to achieve th ree
本人为了图像处理的需要,很想实现二维图像的三维显示,于是写了本代码,希望与此有兴趣的读者共享。图像的获取一是bmp图像文件,二是来自剪贴板。本代码在MFC中调用OpenGL库函数来实现二维图像的三维显示,图像的宽度、高度和象素的亮度分别为三维空间的x,z,y坐标。程序主要有初始化、绘图、资源释放和操作部分,这些功能在OGL_MFCView.cpp文件中实现。OpenGL库的初始化在该文件中的OnCreate,InitScene和DrawScene函数中实现,主要初始化OpenGL运行时的环境变量,三维物体的光照,材质等,由于介绍OpenGL库的初始化的文档很多,在这里我就不多说了,感兴趣的读者可以参考有关的文档。在DrawScene函数中调用全局函数GLDraw3DBMP完成绘图部分。 编译源代码时,必须把opengl32.lib glu32.lib链到工程中。 可以通过对话框改变材质。按上下箭头键可以实现三维图像的绕x轴旋转,按左右箭头键可以实现三维图像绕z轴旋转。 本代码在Windows2000下编译通过。-image processing to the needs and would like to achieve th ree-dimensional two-dimensional images, then wrote the code, with the readers are interested in sharing. Image Access First bmp image files, two from the clipboard. The MFC code Calling OpenGL library functions to achieve the three-dimensional two-dimensional image display, image width, height and pixel brightness of the three-dimensional space x, z, y coordinates. Main initialization procedures, mapping, the release of resources and operation, the function of these documen
- 2023-02-17 05:45:03下载
- 积分:1
-
opengl 魔方
一个入门的opengl程序“3D魔方”, 用VS2005直接编译即可运行。
- 2022-02-04 20:12:22下载
- 积分:1
-
OpenGL 中的底纹和着色器( iOS )
翻译 maninwest@Codeforge 作者:KarstenK@CodeProject介绍如何在 IOS 上使用 OpenGL 底纹。OpenGL 是个也可在其他平台可用的技术。背景我想更好地了解 OpenGL,因其图形性能和在其他项目中使用的兼容性。 使用代码包含的示例项目是根据 MVC-模式,从Xcode 纯模板衍生而来的, Model-View-Controller 有助于将代码分成有用的片段。ViewController 类名副其实,控制视图工作的方式。重要的是Displaylink,因为这是从显示器中的回调或用于新像素输出的更好的 GUP 计时器。- (void)startDisplayLinkIfNeeded
{
if (!_displayLink) {
self.displayLink = [CADisplayLink displayLinkWithTarget:_viewOpenGL selector:@selector(display)];
[_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
}
}GUI 在存储控件的 Main.storyboard 中进行配置。它们通过 outlet(出口) 连接到 ViewController 。开始使用 OpenGL 为了以某种方式使用 OpenGL ,我通过 Objective -C 中的典型单例模式设计了一个 OpenGLContext 类。+ (instancetype)sharedInstance
- 2022-05-08 07:40:50下载
- 积分:1
-
球射击游戏
只是一个 OpenGL 目标和射击游戏、 使用 OpenGL,设定的目标、 球、 障碍、 拍球、 加农炮、 很多乐趣
- 2022-03-17 18:00:31下载
- 积分:1
-
计算机图形学 3D 汽车 OPENGL旋转
计算机图形学 3D 汽车 OPENGL旋转-computer graphics auto OpenGL 3D rotation
- 2022-04-25 14:36:01下载
- 积分:1