你如何编写一个3D游戏? [英] How do you write a 3d game?

查看:210
本文介绍了你如何编写一个3D游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想,如何做游戏程序员绑在一起像Maya或3D Max中,并在那里喜爱的编程语言如c做实际的游戏逻辑或C ++。

I have always wondered, how do game programmers tie together game characters done in an external 3d modeling software like maya or 3d max and the actual game logic done in there favourite programming language e.g c or c++.

你如何让这个两个东西结合在了一起,什么是从人物造型到建筑设计游戏的实际过程?

How do you get to combine this two things together, and what is the actual process of building a game from modeling characters to programming?

一些,使我的东西不知道是喜欢,你的程序从code或从三维模型人物动作?

Some of the things that make me wonder are like, do you program characters movements from the code or from the 3d model?

例子将是非常好的去看看。

Examples would be really nice to see.

推荐答案

大多数的信息,如人物的动作,实际上存储以外的code。这是一个相当简单的过程实际上是:

Most of the information, like characters movements, is actually stored outside the code. It's quite a simple process actually:

  1. 在一个艺术家做一个3D模型在Maya或什么的,然后将其保存在一个文件中。比方说,他们把它称为Gollum.3D。
  2. 现在,Gollum.3D包含了一大堆数字重新presenting的示范点,纹理和其他一切。
  3. 程序code,则读取该文件Gollum.3D - 所有的示范点,纹理和每一件事,然后做了很多数学计算一下3D场景会是什么样子给所有的数字重新presenting模型。

事实证明,一切都在一场比赛中最终分别被存储在code和code只是读取它,并结合其结合在一起的游戏运行时。当我说的一切 - 我的意思是一切!所有的文字,对统计信息的生命值和武器伤害量,菜单画面图像,甚至人工智能独立于程序code脚本存储。该方案code最终做的很少。

It turns out that everything in a game ends up being stored separately from the code, and the code just reads it and combines it all together when the game is run. When I say everything - I mean EVERYTHING! All of the text, the stats for the hit points and weapon damage amounts, the menu screen images, and even the artificial intelligence is stored separately from the program code in scripts. The program code ends up doing very little.

您可能听说过的人做器官功能障碍综合征的游戏。游戏模组人谁编辑坐的程序code,从而在游戏改变了它如何适合他们以外的数据。他们只是服用,基本上一切关于游戏(除了少数核心内容)没有写入程序的code中的事实。

You may have heard of people making mods to games. Modders are people who edit the data that sits outside of the program code, which in turn changes the game to how it suits them. They're just taking advantage of the fact that basically everything about a game (except for a few core things) are not written into the program's code.

这篇关于你如何编写一个3D游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆