CityEngine教程翻译

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Tutorial_01_CityEngine_Basics__2011_2
This tutorial shows how to quickly create a city from scratch. It introduces the complete workflow through all the parts of the CityEngine. You will learn how to setup a new project, how to create a street network and setup the shape creation parameters. Finally, you will learn how to use the rule editor and generate the city’s building models.
这个教程展示了怎样快速地从草稿中创建一个城市。

它介绍了完整的工作流程通过所有CityEngine的部分。

你将学到怎样建立一个新的工程,怎样建立一个街道网络及设置形状创建参数。

最后,你将学到怎样使用规则编辑器生成城市的建筑模型。

Table of Contents
内容列表
Part1: Prepare a new project
第一部分:准备一个新工程
Part2: Streets and Building Shapes
第二部分:街道和建筑形状
Part3: Assign CGA Rules and Generate Building Models
第三部分:分配CGA规则生成建筑模型
Setup new Project and Scene
As a first step, we will create a new CityEngine project.
作为第一个步骤,我们将建立一个新的CityEngine工程。

•File→New…→CityEngine→CityEngien Project
•Hit Next, name the project FirstCity and hit Finish
•单击Next,命名工程为FirstCity然后单击Finish
A new project has been created and shows up in the Navigator (by default located in the upper left corner of the CityEngine window). The default folders that store your project data like assets, rules and scenes are already present.
一个新的工程已经被建立了并显示在导航器中(默认情况下位于CityEngine窗口的左上角)。

存储了你的工程数据如资料、规则和场景的默认文件夹已经出现。

Next, we create a new scene:
接下来,我们创建一个新的场景:
•File→New…→CityEngine→CityEngien Scene
•Make sure the correct project folder is set (/FirstCity/scenes), name the scene firstcity_01.cej and hit Finish
•确保正确的工程文件夹已经被设置(/FirstCity/scenes),命名这个场景为firstcity_01.cej 然后单击Finish
Our workspace now contains a new empty project with a scene file:
我们的工作空间现在包含一个新的空工程有一个场景文件:
Copy Rules and Assets
复制规则和资料
Later in this tutorial, we need rule files and assets for the generation of the building models. We copy these files from the tutorial projects.
在这个教程的后面部分,我们需要规则文件和资料为了生成建筑模型。

我们复制这些文件从教程工程里。

First, we import the Tutorial 1 project into the current workspace.
首先,我们导入教程1工程到当前工作空间。

•Download and import the tutorial projects (or only Tutorial 1) into your workspace.
•下载然后导入教程工程(或仅仅是教程1)到你的工作空间。

Next, we copy the necessary files from the downloaded Tutorial 1 project into your new project. 接下来,我们复制必要的文件从下载的教程1工程中到你的新工程。

•Locate the asset folder of Tutorial 1.
•定位到教程1的asset文件夹。

•Use copy and paste (Ctrl+C and Ctrl+V) to copy all files and folders in the asset folder into the assets folder of your new project.
•使用复制和粘贴(Ctrl+C和Ctrl+V)复制asset文件夹中的所有文件和文件夹到你的新工程的assets文件夹中。

•Also copy the rule file building.cga from the rules folder into the rules folder of the new project.
•同样的复制这个规则文件building.cga从rules文件夹中到新项目的rules文件夹中。

Your navigator should now look similar to the following screenshot.
你的导航器现在应该看起来和下面的屏幕截图相似。

Now, we are ready to create the street network and the building shapes in part 2.
现状我们已经准备好在第2部分创建街道网络和建筑形状了。

Creating a Street Network
建立一个街道网络
First, we are going to create a street network.
首先,我们将创建一个街道网络。

•Click in the viewport to make it active.
•在视窗中单击来激活它。

•Graph→Grow Streets…
For the city we want to create we use the default settings.
为我们想要建立的城市我们使用默认设置。

•Hit Apply, and Close the dialog.
•单击Apply,然后Close关闭对话框。

•Click on the Frame All button on the Viewport’s top menu (or press a) to zoom out and view all of your newly created street network in the Viewport.
•在视窗的顶部菜单中单击Frame All按钮(或者按a)来放大然后查看所有你新建的街道网络在视窗中。

Your viewport should display a street network with default building shapes similar to the one below.
你的视窗应该显示一个街道网络拥有默认的建筑形状与下面的这个相似。

It is now time to also take a first look at the Scene Editor. Note how a new layer Streetnetwork1 has been created.
现在也是时候去第一次看看这个Scene Editor了。

观察一个新的图层Streetnetwork1是怎样被建立的。

Modifying the Shape Creation Parameters
编辑形状创建参数
We will now change a few of the shape creation parameters to make the scene more interesting. 现在我们将改变一些形状创建参数是场景看起来更加有趣。

•Make sure you see the complete scene by pressing a in the viewport.
•通过在视窗中单击a确保你能看到完整的场景。

•With the left mouse button pressed, draw a rectangle from right-to-left around the whole scene to select all elements.
•将鼠标左键按下,在整个场景中从左至右画一个矩形使所有要素都被选中。

•Go to the Inspector at the far right of the CityEngine window and click on the “Blocks” tab.•去到CityEngine窗口最右边的Inspector单击“Blocks”选项卡。

•Open the “Block parameter” shelf. You should now see the shape creation parameters.
•打开“Block parameter”折叠框,现在你将能够看到形状创建参数。

•Set type to Offset Subdivisiton
•设置type为Offset Subdivision
•Set lotAreaMin to 300
•设置lotAreaMin为300
•Set lotAreaMax to 600
•设置lotAreaMax为600
•Set offsetWidth to 20
•设置offsetWidth为20
•Set subdivisionRecursive to false
•设置subdivisionRecursive为false
•Note how the building shapes has been updated in scene.
•观察在场景中建筑形状发生了怎样的更新。

Continue with part 3 to learn how to assign CGA rules to the building shape and finally create the building models.
继续第三部分学习怎样关联CGA规则给建筑形状并最后建立建筑模型。

Introducing CGA Rules
介绍CGA规则
In the CityEngine, buildings are described using the CGA rules. A CGA rule file consists of several rules that define how the actual building geometry is generated. After a CGA rule file is assigned to a shape (i.e. a building parcel), the generation of the building model can begin. In this tutorial we will assign and modify a single CGA file with basic rules.
在CityEngine中,建筑使用CGA规则描述。

一个CGA规划文件由许多规则组成,这些规则定义实际建筑几何是怎样生成的。

当一个CGA规则文件与一个形状关联后(如一个建筑地块),建筑模型的生成才能开始。

在这个教程中,我们将关联并编辑一个简单的具有基本规则的CGA文件。

相关文档
最新文档