简单的 3D 图形项目?

发布于 2024-07-07 16:05:20 字数 1449 浏览 8 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(16

提笔书几行 2024-07-14 16:05:20

3D 文本/代码编辑器。 文本是 3D 的,错误很明显,代码缩进不仅缩进,而且在 z 轴上突出,页面/文件是 3D 的,并且可以像环形键盘一样翻转。

可能没用,但在我看来很有趣,比游戏更有趣。

替代文本

A 3D text/code editor. Text is 3D, errors stand out, code indentations not only indent, but protrude on z axis, pages/files are 3D and can be flipped like a ringpad.

Probably not useful, but fun and more interesting than a game IMO.

Alt text

阳光下的泡沫是彩色的 2024-07-14 16:05:20

在大学里,为了我的并行编程课程,我做了一个 openGL/MPI 实现 康威的生命游戏。 这很有趣。 希望我的代码还在某处。 使用 Open GL 的优点是您可以以不同的方向布置网格,而不是平面网格。 请记住,代码在签入源代码管理之前并不存在。

In university, for my parallel programming course, I did an openGL/MPI implementation of Conway's Game of Life. It was quite interesting. Wish I still had the code around somewhere. The advantage of using open GL is that you can lay out the grid in different orientations rather than a flat grid. Remember, code doesn't exist until it's checked into source control.

荒芜了季节 2024-07-14 16:05:20

加入一些物理知识会让它变得更有趣。 实施迷宫(迷宫玩具,您需要通过倾斜球将球从起点引导到目标)怎么样?

Labyrinth

编辑:Erik 告诉我它叫迷宫。

Putting some physics in makes it more interesting. How about implementing Labyrinth (the maze toy where you are supposed to guide a ball from the starting point to the goal by tilting it).

Labyrinth

EDIT: Erik told me it's called Labyrinth.

往昔成烟 2024-07-14 16:05:20

一款类似于 这个

A 3D minesweeper game similar to this one.

无戏配角 2024-07-14 16:05:20

魔方。

Rubik's cube.

尹雨沫 2024-07-14 16:05:20

看看http://www.contextfreeart.org/ ...写一些类似的东西,但是是3d的。

Look at http://www.contextfreeart.org/ ... write something similar, but for 3d.

熟人话多 2024-07-14 16:05:20

如果您曾经玩过Missile Command,我相信这可能是一个很好的 3D 项目-化'。

If you've ever played Missile Command I belive that this could be a good project to '3d-ify'.

等你爱我 2024-07-14 16:05:20

尝试一下小鸡过马路游戏。

您可能需要演示以下内容的最低限度:

  • 纹理
  • 照明
  • 动画
  • 交互
  • 碰撞检测

如果没有标记,即使是简单的物理现象也不要包括在内。 根据标记方案确定任务的优先级。 首先做一些简单的工作并备份它:)

Try a chicken crossing the road game.

You will probably need to demonstrate the bare minimum of:

  • textures
  • lighting
  • animation
  • interaction
  • collision detection

Do not include even simple physics if there are no marks for it. Prioritise tasks based on the marking scheme. Get something simple working first and back it up :)

不回头走下去 2024-07-14 16:05:20

老实说,加载一堆动画模型并设置一个简单的第一人称射击游戏实际上非常容易。 我的意思是,要使通用功能正常工作,您不需要太多:

  • 加载并显示高度图或 BSP 树作为级别。
  • 加载并渲染一些简单的 MD2 模型(关键帧动画、少量多边形和简单格式)。
  • 画一个简单的平视显示器。
  • 射线/AABB 相交,每次用户单击时,您都需要从屏幕中心投射一条射线,看看它是否与敌人的边界框相交。
  • 简单的 FPS 相机系统。

就我而言,上述内容在一个月内是相当可行的。 (如果您已经了解一些内容,一周内可能就可以实现)。

Honestly it's actually pretty easy to load up a bunch of animated models and set up a simple first person shooter. I mean, to get a generic thing working you don't need all that much:

  • Either load and display a heightmap or a BSP tree as the level.
  • Load and render some simple MD2 models (keyframe animation, low amount of polys and simple format).
  • Draw a simple hud.
  • Ray/AABB intersection, every time the user clicks you'll need to cast a ray from the center of the screen and see if it intersects an the bounding boxes of the enemies.
  • Simple FPS camera system.

The above is pretty doable in a month for as far as I'm concerned. (It's probably doable in a week if you already know some of the stuff).

娇妻 2024-07-14 16:05:20

我曾经尝试为班级制作 3D 小行星。 我从未完成游戏部分,因为它是图形课程。 这艘船可以四处移动,小行星也可以,但没有碰撞检测。 飞船和小行星都应用了 3D 纹理,而小行星是由椭球体构建的,因此它们实际上是 3D 的。 不过,游戏玩法都是 2D 的。

I tried to do a 3D Asteroids for a class once. I never completed the gameplay part, since it was a graphics class. The ship could move around, as could the asteroids, but there was no collision detection. The ship and the asteroids had 3D textures applied to them, and the asteroids were built out of ellipsoids, so they were actually 3D. The gameplay was all 2D, though.

妄司 2024-07-14 16:05:20

一款木制迷宫游戏怎么样,上面有一个球在上面滚动。 您倾斜木板并尝试让球绕过迷宫而不掉入洞中? 它的优点是上手相对简单,但如果有时间,你可能会想到一些扩展。

How about one of those games that are a wooden maze with a ball rolling around the top. You tilt the board and try to get the ball round the maze without falling down the hole? It has the advantage that it's relatively simple to get started, but you could probably think of some extensions if you have time.

做个少女永远怀春 2024-07-14 16:05:20

如果你正在寻找一个真正的大学规模的任务,我的目标是制作一个小型直升机“游戏”,你可以从海洋中的航空母舰上起飞,并在一些环境影响、流动的水等的影响下飞行。也就是说,没有什么太复杂的。 另一个例子,我前一年设定的任务是一个没有对手的小型赛车游戏。
我担心你可能会丢失俄罗斯方块的标记,因为听起来在 z 轴上几乎不会做任何事情,并且可能会遇到有点太二维的情况,尽管这显然取决于你的简介。

无论如何,这些将使您有机会尝试基本的 OpenGL 功能,例如雾、照明、几何、纹理以及一些基本的运动物理和物理特性。 碰撞检测/响应。

在此基础上,尽管通常超出了大学规模的任务范围,但您可以进一步添加一些细节,例如动画几何体(例如人物)、环境映射、反射、阴影、粒子系统、着色器,也许还有高度映射的岛屿。

If you're looking for a true university size task, mine was to produce a small helicopter "game" where you could take off from an aircraft carrier in an ocean and fly around with some environmental effects, moving water etc. i.e. nothing too complicated. As another example, the task set for the year previous to mine was a little sans-opponent racing game.
I would worry that you may loose marks with tetris as it sounds like little would be done on the z-axis and may come across a little too 2d though it obviously depends on your brief.

Anyway, these will give you the chance to experiment with the basic OpenGL features such as fog, lighting, geometry, textures and some basic movement physics & collision detection/response.

Further on this, though often beyond the scope of such a university sized task you could then take this further add nicities such as animated geometry (e.g. people), environment mapping, reflections, shadows, particle systems, shaders, perhaps a heightmapped island.

墨离汐 2024-07-14 16:05:20

重写Blocks 3D。 这个项目的图形现在看起来很糟糕。 我记得在带有线框图形的 386 上玩过这个游戏(或类似的游戏)……太棒了。 该游戏基本上是 3D 俄罗斯方块。

Rewrite Blocks 3D. The graphics on this project look horrible now. I remember playing this game (or one like it) on a 386 with wireframe graphics... awesome. The game is basically 3D tetris.

扮仙女 2024-07-14 16:05:20

我会检查 Panda3DPygame

Panda3D 可能很接近您正在寻找的东西,并且始终有效的一个想法是将用户的脸部放在主要角色或物体中。 3d-pong 与玩家的脸? 使用一些意想不到的东西......比如用汉堡而不是砖块制成的俄罗斯方块。

I would check Panda3D or Pygame.

Panda3D is probably close to what you are looking for, and one idea that always works is to put the user's face in the main character or object. 3d-pong with the player's face? Use something unexpected... like a tetris made of burgers instead of bricks.

妖妓 2024-07-14 16:05:20

我喜欢一些自组织的alife应用程序,例如boids。 他们的编码很有趣,并且总是受益于漂亮的 UI,尤其是 3D UI。 用户输入可以修改环境的各个方面以及在环境中移动/穿过环境。

I love little self-organising alife applications like boids. They can be fun to code and always benefit from a nice UI, especially 3D ones. User input can modify aspects of the environment as well as moving around/through the environment.

栖竹 2024-07-14 16:05:20

我喜欢系外行星。 去阅读它们。 在维基百科和 http://exoplanet.eu 上有很多信息。 天文学家和公众外展人员始终可以使用新鲜的 3D 动画来展示多普勒效应的工作原理,或者如何例如,行星在恒星前面经过时会使恒星变暗 0.5%。

或者,我正在研究的是当行星经过其恒星后面时如何发生。 在地球上,我们从那颗恒星接收到的红外线只少了一点点。 用户可以调整行星的轨道、大小等,看看这如何影响天文学家的观察结果。 它可能很有趣,足够简单,并且在扩展工作以获得更好的纹理、光滑的灯光效果等方面具有无限的潜力,并且您最终可能会为科学教育做出贡献。

如果我不是忙着帮助计算实际科学的数字,我自己就会制作这样的 3D 动画。 我会嫉妒的!

I like exoplanets. Go read up on them. On Wikipedia and http://exoplanet.eu there's a lot of information. Astronomers and public outreach people could always use fresh 3D animations showing how the Doppler effect works, or how the planet transiting in front of the star makes it for example 0.5% dimmer.

Or, what I work on, is how when the planet passes behind its star. At Earth we receive just a teeny bit less infrared from that star. The user could adjust the orbit, size of planet, etc. and see how that affects what astronomers see. It could be fun, simple enough to do, and unlimited potential in extending the work for nicer textures, slick lighting effects, etc., and you could end up with something to contribute to science education.

I'd be making such 3D animations myself, if I weren't busy helping crunch numbers for the actual science. I'll be jealous!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文