creatingascene创建一个场景

creatingascene创建一个场景

ID:12144495

大小:179.00 KB

页数:3页

时间:2018-07-15

creatingascene创建一个场景_第1页
creatingascene创建一个场景_第2页
creatingascene创建一个场景_第3页
资源描述:

《creatingascene创建一个场景》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、CreatingaScene创建一个场景Thistutorialwillshowyouhowtocreateascenefromscratch.本教程将向您展示如何从无到有创建一个场景Contents目录·1Introduction1介绍·2AddingaMesh2添加一个网格·3Preview3预览·4AddingScript4添加脚本Introduction介绍Thefirststepinbuildinganynewdocumentistocreatethescenesthatyouwanttodisplay(ineither

2、2Dor3D).建立任何新的文件的第一步是创建场景(2D或是3D)。Toaddascene,findtheSceneswindow(bydefaultinthebottomright),andpresstheAddScenebutton.要添加一个场景,找到场景窗口(默认是在右下角),然后按新增场景按钮。IntheAddNewScenedialogthatappearspressCreateanew3Dscene.在添加新场景对话框中选择Createanew3Dscene。AddingaMesh添加一个网格Great!Nowwe'

3、regoingtoaddsomethinginterestingtothescene.好了!现在我们要添加一些有趣的东西到场景。Inthisexample,we'lladdasimplechessboard.Todothis,findtheMesheswindow(bydefaultinthebottomright)andclicktheAddMeshbutton.在这个例子中,我们将加一个简单棋盘物体。要做到这一点,找到Meshes窗口(默认情况下在右下角)然后点击添加网格按钮。FromtheAddNewMeshdialog,f

4、indandselectthechessboardmesh(notebyhoveringoverameshyougetaquickthumbnailanddescription).从添加AddNewMesh的对话框,找到和选择棋盘网格(注意悬停在网格上你可以得到一个缩略图和说明)。Preview预览Wenowhaveanobjectinascene-hitF12topreviewthis.我们现在有一个对象在场景中F12键预览YoucannavigateapreviewwithW,S,A,Dandbyrightclickingan

5、ddraggingthemouse.你可以利用W,S,A,D和通过右键点击并拖动鼠标操纵预览。Whenyou'vefinishedwiththepreview,closethewindoworpressEscape.你完成了预览时,关闭窗口或按Esc。Theobjectisgreat,butitdoesn'treallydoanythingyet.Tomakeitmoreinteresting,we'lladdsomescripttoit.物体是伟大的,但它并没有真正做任何事情。为了使它更有趣,我们将为它添加一些脚本。First,

6、we'lladdasoundtoplaytothescene.FindtheSoundswindow(bottomleftbydefault,withamusicalnotesymbolonthetab).首先,我们将添加一个声音发挥到场景。找到Sounds窗口(默认左下角的一个音符符号标签)ClicktheAddSoundbuttonandintheAddNewSoundwindow,selectthemetalclang.点击AddSound按钮,在弹出的窗口选择metalclang.AddingScript添加脚本OK,no

7、wit'stimetoaddthescript.很好,现在该添加脚本了。Selectthechessboardwithaleftclick,thenrightclickitandchooseEditScriptfromthepopupmenu.选择棋盘物体,然后右键单击它并弹出式菜单选择EditScript。Inthescripteditordoubleclick'onClick'(topright).在脚本编辑器双击'onClick'(右上角)Clickthemouseinthesourcecodeeditorinsidethe

8、curlybraces,andtype:在编辑器的源代码大括号内点击鼠标键入:-sounds.metalclang.play();Notethatasyoutype,ahelpwindowpopsuptogiveyoualistofalltheso

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。