Tree Creator Guide树木创建指南_第1页
Tree Creator Guide树木创建指南_第2页
Tree Creator Guide树木创建指南_第3页
Tree Creator Guide树木创建指南_第4页
Tree Creator Guide树木创建指南_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

TreeTree CreatorCreator GuideGuide 树木创建指南树木创建指南 The Tree Creator allows you to create and edit trees procedurally The resulting trees can be used as normal GameObjects or integrated into the Terrain Engine With this tool you can create great looking trees quickly and fine tune your trees using a number of design tools to achieve the perfect look in your game The Tree Creator is very useful when you want to create a forest or a jungle where you need different tree forms 树木创建器允许你程序化的创造和编辑树木 创造 出来的树木能够像普通的游戏物体一样使用或者融 入 Terrain 地形引擎 利用这个工具 在你的游 戏中你能使用一些设计工具快速的调整你的树木达 到最好的形状 这个树木创建器非常重要当你想要创建一片森林或 者树林的时候它能让你创建不同的树木 Building Your First Tree创建你的第一棵树创建你的第一棵树 In this section we walk you step by step to create your first tree in Unity 这一章我们带领你在 Unity 中一步一步创建你的第一棵树 We ll now walk you through the creation of your first Tree Creator Tree in Unity First make sure you have included the tree creator package in your project If you don t select Assets Import Package navigate to your Unity installation folder and open the folder named Standard Packages Select the Tree Creator unityPackage package to get the needed assets into your project 我们现在带领你在 unity 中用树木创建器创造你的第一棵树木 首先 确保 在你的项目里包含有树木创建器包裹 如果没用 选择 Assets Import Package 进入到你的 进入到你的 unity 安装文件夹 然后打开名为安装文件夹 然后打开名为 Standard Packages的包裹 选择这个Tree Creator unityPackage得到所需要的资源 导入到你的项目中 Adding a new Tree 添加一个新的树木添加一个新的树木 To create a new Tree asset select GameObject Create Other Tree 选择 GameObject Create Other Tree 创建一个新的树木资源 You ll see a new Tree asset is created in your Project View and instantiated in the currently open Scene This new Tree is very basic with only a single branch so let s add some character to it 你能够在你的工程视图 Project View 中看到一个新的树木资源 在当前打开的 场景中也能看到它的实体 这个非常基本的树木只有仅仅一个树枝 因此让 我们添加一些特征给它 Adding Branches 添加分支添加分支 A brand new tree in your scene 一个全新的树木在你的场景中 Select the tree to view the Tree Creator in the Inspector This interface provides all the tools for shaping and sculpting your trees You will see the Tree Hierarchy with two nodes present the Tree Root node and a single Branch Group node which we ll call the trunk of the tree 选择这个树木然后观察树木创建器的监视面板 Inspector 这个界面为你提 供了所有的塑造和雕刻树木的工具 你将会看到 2 个树的层次结构节点 一 个树的根节点和一个单一树枝组节点 我我们讲给这个树的树干 In the Tree Hierarchy select the Branch Group which acts as the trunk of the tree Click on the Add Branch Group button and you ll see a new Branch Group appear connected to the Main Branch Now you can play with the settings in the Branch Group Properties to see alterations of the branches attached to the tree trunk 在树的层次结构 Tree Hierarchy 中 选择树枝组 Branch Group 它作为 树的躯干 单击添加树枝组 Add Branch Group 按钮 你将看到一个连接 到主枝干的树枝组 现在你能够在树枝组属性 Branch Group Properties 中改变附着在树干的树枝了 Adding branches to the tree trunk 添加树枝到树干 After creating the branches that are attached to the trunk we can now add smaller twigs to the newly created branches by attaching another Branch Group node Select the secondary Branch Group and click the Add Branch Group button again Tweak the values of this group to create more branches that are attached to the secondary branches 在创建附着于树干的分支以后 我们现在能够通过附加另外的树枝组节点 Branch Group 添加较小的末梢给刚刚创建的分支 选择第二个树枝组 然后 再次点击添加树枝组按钮 调整这个组的值去创建更多的附着于第二个树枝的分支 Adding branches to the secondary branches 添加树枝到第二个分支 Now the tree s branch structure is in place Our game doesn t take place in the winter time so we should also add some Leaves to the different branches right 现在树木的分支结构在合适的位置 由于我们的游戏不是在冬天的季节 因 此我们应该添加一些树叶给不同的树枝 对吗 Adding Leaves 添加树叶添加树叶 We decorate our tree with leaves by adding Leaf Groups which basically work the same as the Branch groups we ve already used Select your secondary Branch Group node and then click the Add Leaf Group button If you re really hardcore you can add another leaf group to the tiniest branches on the tree as well 我们通过添加叶子组 Leaf Groups 用树叶来装饰我们的树 它的基本操作和 我们已经使用过的树枝组操作一致 选择你的第二个树枝组节点 然后点击 添加叶子组 Add Leaf Group 按钮 如果是真实的铁杆 你同样能够在树上 添加另外的叶子组到微小的分支 Leaves added to the secondary and smallest branches 添加树叶到第二和 最小的树枝 Right now the leaves are rendered as opaque planes This is because we want to adjust the leaves values size position rotation etc before we add a material to them Tweak the Leaf values until you find some settings you like 此刻这些树叶是以不透明的位面渲染出来的 这是因为我们想在给它们添加 材质以前 调整树叶的值 尺寸 位置 旋转 等等 Adding Materials 添加材质添加材质 In order to make our tree realistic looking we need to apply Materials for the branches and the leaves Create a new Material in your project using Assets Create Material Rename it to My Tree Bark and choose Nature Tree Creator Bark from the Shader drop down From here you can assign the Textures provided in the Tree Creator Package to the Base Normalmap and Gloss properties of the Bark Material We recommend using the texture BigTree bark diffuse for the Base and Gloss properties and BigTree bark normal for the Normalmap property 为了使我们的树看起来逼真 我们需要应用材质给分支和树叶 使用 Assets Create Material 菜单栏中点击 Assets 或者在 project view 中右击 鼠标创建材质 创建一个新的材质 给它重命名为 My Tree Bark 然后从 然后从 Shader 的下拉菜单中选择的下拉菜单中选择 Nature Tree Creator Bark 从树木创建包裹 Tree Creator Package 里面提供的纹理 你能够指定合适的纹理到树皮材质 Bark Material 的基础 Base 法线贴图 Normalmap 和光泽属性 Gloss properties 和 BigTree bark normal 给这个法线贴图属性 Now we ll follow the same steps for creating a Leaf Material Create a new Material and assign the shader as Nature Tree Creator Leaves Assign the texture slots with the leaf textures from the Tree Creator Package 现在我们将遵循同样的步骤去创建叶子材质 创建一个新的材质 然后指定 Nature Tree Creator Leaves 这个着色器 指定这个着色器 指定树木创建包裹 Tree Creator Package 中的叶子纹理给这个纹理槽 Material for the Leaves 材质的的叶子 When both Materials are created we ll assign them to the different Group Nodes of the Tree Select your Tree and click any Branch or Leaf node then expand the Geometry section of the Branch Group Properties You will see a Material assignment slot for the type of node you ve selected Assign the relevant Material you created and view the results 当所有的材质被创建 我们将赋值给这棵树的不同的组节点 选择你

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论