-
3D 太阳系 - OpenGL 和 C#
翻译 maninwest@Codeforge 作者:Vasily Tserekh@CodeProject这是个 3D 太阳系,使用 OpenGL 和 C# 实现。我尽量让它简单。它包含行星、卫星、太阳月亮和其他星星。我使用了 TAO命名空间,它是在 OpenGL dll 和 .NET Framework 之间的互操作。我也用了 Shadowengine - 一个我自己开发的小图形框架。使用它,我可以省去加载图形和初始化图形上下文的代码编写工作。3D 编程员眼中的太阳系3D 编程员需要将宇宙、轨道、星星等实体在程序设计环境中进行转化。宇宙是一个黑色背景,可以使用 OpenGL 的函数 Gl.glClearColor(0, 0, 0, 1);//red green blue alpha 。至于星星,可以使用点来替代。可以使用 OpenGL 处理绘制点的基元。你也可使用随机函数生成大量点,只要确保它们不在太阳系中即可。行星是有底纹的球体。它们有自己的轨道和旋转轴。你得使用 变量跟踪并更新,因为它们随着时间改变。如果不想使用3D max 制作球体,可以使用 OpenGL 二次曲线。卫星和行星一样,只是不饶太阳而是绕行星转。使用代码项目中包含对 ShadowEngine和 TAO.OpenGL 的引用. 项目类有: Camara.cs典型的 FPS 相机。鼠标以屏幕中间为中心。用户移动鼠标时,会计算离开始点的 delta X 和 Delta Y 。这些 Delta X 和 Delta Y 被转化成角度当你向前/向后移动相机时,相机会移动到角度指的方向。
- 2022-02-04 03:32:08下载
- 积分:1
-
一个mfc的应用小程序,使用opengl编写,可以用鼠标拖动圆球转动...
一个mfc的应用小程序,使用opengl编写,可以用鼠标拖动圆球转动-A mfc application of small programs, using opengl write, you can drag with the mouse ball rotation
- 2022-06-16 12:10:02下载
- 积分:1
-
基于C++环境的OPENGL编程源码.
基于C++环境的OPENGL编程源码.-based on C programming environment OpenGL source.
- 2022-03-06 16:11:42下载
- 积分:1
-
在VC中实现OpenGL三维绘图,是三维交互图系统演示,可旋转。
在VC中实现OpenGL三维绘图,是三维交互图系统演示,可旋转。-in VC achieve OpenGL 3D graphics, interactive 3-D map of the demonstration, swivel.
- 2022-04-12 16:16:05下载
- 积分:1
-
opengl编程例子
opengl编程例子-opengl programming examples
- 2022-12-06 01:10:03下载
- 积分:1
-
OpenGL红宝书(第三版)例子代码:太阳系代码
OpenGL红宝书(第三版)例子代码:太阳系代码-Little Red Book OpenGL (third edition) example code: the solar system code
- 2022-01-21 03:08:35下载
- 积分:1
-
opengl实现鼠标旋转、移动物体
//#include"Qua.h";
#include
#include
using std::cout;
using std::endl;
void DrawCube( int * a, int * b, int * level )
{
glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
glLineWidth(1.0f);
glEnable( GL_LINE_STIPPLE );
glLineStipple(1, 0x0F0F);
- 2022-05-19 01:44:26下载
- 积分:1
-
本代码是基于OpenGL平台和C代码生成,主要的3D性能…
本代码是基于opengl平台而生成的c++代码,主要表现了一个3d的动态的下掉的链条.-the code is based on opengl platform and the c code generation, mainly 3d performance of a dynamic swap under the chain.
- 2022-01-26 08:22:24下载
- 积分:1
-
一个很好的3D与OpenGL结合的例子,实现多级齿轮的运动,效果很好,在运行程序时请先把提供的.dll文件拷贝到你的系统的 SYSTEM32目录下,否则不能运行...
一个很好的3D与OpenGL结合的例子,实现多级齿轮的运动,效果很好,在运行程序时请先把提供的.dll文件拷贝到你的系统的 SYSTEM32目录下,否则不能运行!-a good combination of 3D and OpenGL example, multi-class sports gear, a good effect, and the operational procedures for the provision when the post. Dll files are copied to your system SYSTEM32 directory, they can run!
- 2022-12-10 21:05:03下载
- 积分:1
-
with OpenGL draw a three
用OpenGL绘制一个三维四方形,并可以用鼠标控制四方形的旋转
- 2022-03-16 17:20:44下载
- 积分:1