-
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
-
另一个项目,使简单的太阳能系统…太阳在中心和所有行星…
this another project to make simple solar system... sun at centre and all planets around-this is another project to make simple solar system... sun at centre and all planets around...
- 2022-02-02 18:50:27下载
- 积分:1
-
此VC_0pengl程序对地球进行了模拟
此VC_0pengl程序对地球进行了模拟-this VC_0pengl procedures for the simulation of the Earth
- 2022-02-01 10:52:15下载
- 积分:1
-
本程序实现以下功能:
1.绘制茶壶(T)
2.添加光照(T)
3.添加纹理(T)
4.鼠标左键控制茶壶旋转(T)
操作步骤:按鼠标左键茶壶...
本程序实现以下功能:
1.绘制茶壶(T)
2.添加光照(T)
3.添加纹理(T)
4.鼠标左键控制茶壶旋转(T)
操作步骤:按鼠标左键茶壶旋转,按一次旋转30°。
5.鼠标右键控制茶壶平移(T)
操作步骤:按鼠标右键茶壶向右移动,每次移动0.5厘米
6.键盘控制茶壶纹理的变化(T)
操作步骤:按键盘的 w 和 s 键实现纹理的改变
7.键盘方向键控制camera的前进后退,左移和后移 (T)
操作步骤:按键盘的四个方向键实现茶壶四种方向的移动
8.实现水壶的退出-This procedure to achieve the following functions: 1. Drawing teapot (T) 2. Add light (T) 3. Add texture (T) 4. Teapot rotating the left mouse button to control (T) steps: Click the left mouse button rotate the pot by a rotation 30 °. 5. Teapot with the right mouse button to control translation (T) steps: Click the right mouse button to the right teapot mobile, each mobile 0.5 centimeters 6. Teapot keyboard to control the changes in texture (T) steps: click the " w " and" s" key changes to achieve texture 7. the keyboard arrow keys to control the forward camera back, the left and post-shift (T) steps: the four keyboard arrow keys to achieve the direction of movement of the four teapot 8. to achieve water out of the
- 2022-04-23 12:15:15下载
- 积分:1
-
奥运五环的OpenGL动画动画技术
奥运五环动画openGL动画技术-Olympic rings animation openGL animation technology
- 2022-03-20 18:06:47下载
- 积分:1
-
opengl 选取 拾取
opengl选取功能代码式,事例,能够很好的理解拾取的代码示例,适合初学阶段来加强对opengl功能的理解
- 2022-01-20 23:17:15下载
- 积分:1
-
OpenGL network programming, enabling user data between each other
OPENGL网络程序,实现用户间的数据互传-OpenGL network programming, enabling user data between each other-
- 2022-05-20 15:04:29下载
- 积分:1
-
OpenGL图像编程的代码,一本不错的书的源代码,可惜没下载到书。希望代码可供大家学习...
OpenGL图像编程的代码,一本不错的书的源代码,可惜没下载到书。希望代码可供大家学习-OpenGL graphics programming code, a good book" s source code, unfortunately did not download the book. Hope that the code for them to learn from
- 2022-07-12 10:27:11下载
- 积分:1
-
文字和图片的各种运动方式
文字和图片的各种运动方式-text and photos on the way campaigns
- 2022-02-07 16:12:34下载
- 积分:1
-
OPENGL开发,可以自由行走的空间的源程序.
OPENGL开发,可以自由行走的空间的源程序.-OpenGL development, can take free exercise of the space of the source.
- 2022-04-18 19:27:51下载
- 积分:1