OGRE_3D_1.7_Beginner39;s_Guide_第二章_中文翻譯.docVIP

OGRE_3D_1.7_Beginner39;s_Guide_第二章_中文翻譯.doc

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
OGRE_3D_1.7_Beginner39;s_Guide_第二章_中文翻譯

[声明:本人仅仅英语四级水平,因为喜欢翻译和喜欢Ogre,翻译以下文字,如果哪里有错误或不足还望大虾们见谅,如果您发现有什么错误,请把问题发送到 whistleofmysong@ ,我将尽快的改正。想到可能对新手有些许帮助,所以对别人是个帮助,对自己也是个鼓励~^_^ ] 2 The Ogre Scene Graph 【 第二章 Ogre之场景绘图】 This chapter will introduce us to the concept of a scene graph and how we can use its functions to create complex scenes 【 这章将会介绍给我们场景绘图的一些概念和如何使用函数创造一个复杂的场景。 】 In this chapter, we will: Learn the three basic operations in 3D space How a scene graph is organized The different 3D spaces we can operate in lets get on with it. 【 在这章,我们将会: 学习在3D空间中三个基本的操作。 一个场景绘图是如何被组织的。 我们可以操作的不同的3D空间。 那么,就让我们开始吧。 】 Creating a scene node 【 创建一个场景结点。 】 In the last chapter, Chapter 1, Installing Ogre 3D, we loaded a 3D model and attached it to our scene. Now we will learn how to create a new scene node and attach our 3D model to it. 【 在上一章中(第一章 创建Ogre 3D),,我们加载了一个3D模型并且把它绑定到我们的场景上。现在我们将会学习如何创建一个新的场景结点并且把我们的3D模型绑定到结点上。 】 Time for action – creating a scene node with Ogre 3D 【 实践时刻 — 用Ogre3D创建一个场景结点 】 We are going to use the code from Chapter 1, Installing Ogre 3D modify it to create a new scene node, and attach it to the scene. We will follow these steps: 【 我们将会使用第一章的代码,修改第一章的代码以创建一个新的场景结点,并且把他绑定到一个场景结点上。我们将会做以下步骤:】 1.In the old version of our code, we had the following two lines in the createScene() function: 【 在我们老版本的代码中,我们在createScene() 函数中存在以下两行。】 Ogre::Entity* ent = mSceneMgr-createEntity(MyEntity,Sinbad.mesh); mSceneMgr-getRootSceneNode()-attachObject(ent); 2. Replace the last line with the following: 【 用以下代码替换函数中的最后一行。 】 Ogre::SceneNode* node = mSceneMgr-createSceneNode(Node1); 3. Then add the following two lines; the order of those two lines is irrelevant for the resulting scene: 【 然后添加以下两行;这两行代码的添加顺序对场景的效果没有影响。 】 mSceneMgr-getRootSceneNode()-addChild(node); node-attachObject(ent); 4. Compile and start the application. 【 编译并且运行应用程序。 】 5. You should see the same screen you get when starting the application from Chapter 1. 【 当你运行应用程序,你应会看到和你第一章一样的场景。】 What just happened? 【 刚刚发

文档评论(0)

sd47f8cI + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档