虛擬現(xiàn)實(shí)技術(shù)期末作業(yè)_第1頁(yè)
虛擬現(xiàn)實(shí)技術(shù)期末作業(yè)_第2頁(yè)
虛擬現(xiàn)實(shí)技術(shù)期末作業(yè)_第3頁(yè)
虛擬現(xiàn)實(shí)技術(shù)期末作業(yè)_第4頁(yè)
虛擬現(xiàn)實(shí)技術(shù)期末作業(yè)_第5頁(yè)
已閱讀5頁(yè),還剩61頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、虛擬現(xiàn)實(shí)技術(shù)期末考核報(bào)告 院系:計(jì)算機(jī)科學(xué)與技術(shù) 班級(jí):10班 學(xué)號(hào):53141007 姓名:袁雪峰1 實(shí)驗(yàn)?zāi)康恼莆仗摂M現(xiàn)實(shí)技術(shù)復(fù)雜三維場(chǎng)景建模技術(shù)。在場(chǎng)景中引入環(huán)境背景、動(dòng)畫(huà)與交互等,構(gòu)建逼真的三維場(chǎng)景。2 實(shí)驗(yàn)要求本次試驗(yàn)為綜合性質(zhì)試驗(yàn),要求自行設(shè)計(jì)一個(gè)較為復(fù)雜的場(chǎng)景或者單體模型,其中包含各種造型與渲染技術(shù),比如紋理材質(zhì)、光照、環(huán)境背景、聲音視頻、動(dòng)畫(huà)與交互等。場(chǎng)景內(nèi)容不限。3 實(shí)驗(yàn)內(nèi)容運(yùn)用vrml語(yǔ)言構(gòu)造了一個(gè)虛擬現(xiàn)實(shí)世界。運(yùn)動(dòng)物體包括氣球,火車,汽車,交通燈等,靜止物體包括山脈,樹(shù)林,房屋,人物,花草,電話亭,國(guó)旗,座椅,廣告牌,雨傘等,另外還包含背景和聲音。構(gòu)造一個(gè)背景:天空,草地。

2、將山脈和樹(shù)林放置于草地上,鋪設(shè)鐵軌和公路,設(shè)置火車和各種汽車的運(yùn)行軌跡,放置氣球并使其做圓周運(yùn)動(dòng)。將電話亭等各部件按照比例和位置放置,加入背景聲音,虛擬世界基本構(gòu)造完成。4 實(shí)驗(yàn)軟硬件環(huán)境win10系統(tǒng),VrmlPad,Cortona3D viewers(64-bit),IE瀏覽器.5 實(shí)驗(yàn)步驟,截圖以及代碼VRML語(yǔ)言簡(jiǎn)介:VRML(VirtualRealityModelingLanguage)即虛擬現(xiàn)實(shí)建模語(yǔ)言。是一種用于建立真實(shí)世界的場(chǎng)景模型或人們虛構(gòu)的三維世界的場(chǎng)景建模語(yǔ)言,也具有平臺(tái)無(wú)關(guān)性。實(shí)驗(yàn)步驟如下:1. 首先分別制作分場(chǎng)景(使用圖片和VRML語(yǔ)言)2. 使用VRML語(yǔ)言進(jìn)行場(chǎng)景

3、合并,并調(diào)試其中場(chǎng)景的坐標(biāo)。注:對(duì)以上工作常用的節(jié)點(diǎn)的函數(shù)進(jìn)行描述:Transform節(jié)點(diǎn)語(yǔ)法Transform children # 所包含的子節(jié)點(diǎn)列表translation 0.0 0.0 0.0 # x,y,z方向上平移的值ro tation 0.0 0.0 1.0 0.0 # x,y,z方向旋轉(zhuǎn)軸標(biāo)識(shí),旋轉(zhuǎn)角度(用弧度表示)scale 1.0 1.0 1.0 # x,y,z方向的縮放因子scaleOrientation 0.0 0.0 1.0 0.0 # 在x,y,z方向軸上旋轉(zhuǎn)一定弧度后,在按scale因子縮放Center 0.0 0.0 0.0 # 新的旋轉(zhuǎn)或縮放中心點(diǎn)的x,y,z

4、坐標(biāo) children域中的值可以是Shape節(jié)點(diǎn),Group節(jié)點(diǎn)或另一個(gè)Transform節(jié)點(diǎn)。VRML中的節(jié)點(diǎn)有以下幾種類型:造型尺寸、外觀節(jié)點(diǎn):Shape、Appearance、Material原始幾何造型節(jié)點(diǎn):Box、Cone、Cylinder、Sphere造型編組節(jié)點(diǎn):Group、Switch、Billboard文本造型節(jié)點(diǎn):Text、FrontStyle造型定位、旋轉(zhuǎn)、縮放節(jié)點(diǎn):Transform內(nèi)插器節(jié)點(diǎn):TimeSensor、PositionInterpolater、OrientationInterpolater、ColorInterpolator、 ScalarInterpo

5、lator、CoordinateInterpolator、感知節(jié)點(diǎn):TouchSensor、CylinderSensor、PlaneSensor、SphereSensor、VisibilitySensor、ProximitySensor、Collision點(diǎn)、線、面集節(jié)點(diǎn):ointSet、IndexedLineSet、IndexedFaceSet、Coordinate海拔節(jié)點(diǎn):ElevationGrid擠出節(jié)點(diǎn):Extrusion顏色、紋理、明暗節(jié)點(diǎn):Color、ImageTexture、PixelTexture、MovieTexture、Normal控制光源的節(jié)點(diǎn):ointLight、Dir

6、ectionalLight、SpotLight背景節(jié)點(diǎn):Background聲音節(jié)點(diǎn):AudioClip、MovieTexture、Sound細(xì)節(jié)控制節(jié)點(diǎn):OD霧節(jié)點(diǎn):Fog空間信息節(jié)點(diǎn):WorldInfo錨點(diǎn)節(jié)點(diǎn):Anchor腳本節(jié)點(diǎn):Script控制視點(diǎn)的節(jié)點(diǎn):Viewpoint、NavigationInfo用于創(chuàng)建新節(jié)點(diǎn)類型的節(jié)點(diǎn):ROTO、EXTERNPROTO、IS總體部分顯示(截圖如下)總體部分代碼如下:Background skyColor 0.98 0.98 0.98DirectionalLight ambientIntensity 1.0intensity 5.0direct

7、ion 0 1 0color 1 1 1on TRUEViewpoint position8.96606 130 725.8 orientation-0.997096 -0.0760361 -0.0042219 0.111409fieldOfView0.785398descriptionfront1Viewpoint position8.96606 20 525.8 orientation-0.997096 -0.0760361 -0.0042219 0.111409fieldOfView0.785398descriptionfront2NavigationInfo avatarSize 0.

8、25, 1.6, 0.75 headlightTRUEspeed1type WALK, FLY, ANY visibilityLimit0Transform translation 0 -10 420rotation 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrlTransform translation 0 -10 -60rotation 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrlTransform translation 0 -10 -540rotatio

9、n 0 0 0 1.571scale 4.0 3.0 4.0 childrenInline url glcj.wrl #左側(cè)Transform translation -305 -37 -141rotation 0 1 0 1.571scale 5.0 5.0 5.0 childrenInline url VRML9-2VRML9-2.wrlTransform translation -261 -8 285rotation 0 0 0 1.571scale 9.0 9.0 9.0 childrenInline url VRML9-5VRML9-5.wrlTransform #左側(cè)后transl

10、ation -281 -41 225rotation 0 0 0 1.571scale 8.5 6.0 8.0childrenShape appearance Appearance material Material diffuseColor 0.2 0.8 0.3geometry Box size 50 0.5 50Transform #左側(cè)前translation -281 -41 -695rotation 0 0 0 1.571scale 8.5 6.0 13.0childrenShape appearance Appearance material Material diffuseCo

11、lor 0.2 0.8 0.3geometry Box size 50 0.5 50 Transform translation -261 -8 -585rotation 0 0 0 1.571scale 9.0 9.0 9.0 childrenInline url VRML9-5VRML9-5.wrlTransform #右側(cè)translation 281 -41 -300rotation 0 0 0 1.571scale 8.5 6.0 28.8childrenShape appearance Appearance material Material diffuseColor 0.2 0.

12、8 0.3geometry Box size 50 0.5 50Transform #右側(cè)樓translation 465 7 -141rotation 0 1 0 1.571scale 3.0 3.0 3.0 childrenInline url VRML9-3VRML9-3.wrlTransform translation 251 -12 285rotation 0 0 0 1.571scale 5.5 5.5 5.5 childrenInline url VRML9-1VRML9-1.wrlTransform translation 251 -12 -585rotation 0 0 0

13、1.571scale 5.5 5.5 5.5 childrenInline url VRML9-1VRML9-1.wrl總體部分資源文件夾顯示:1. 商場(chǎng)設(shè)計(jì)1.1商場(chǎng)截圖顯示1.2代碼顯示BackgroundgroundColor0.7098 0.7098 0.7098 skyAngle1.22,1.48skyColor0.235 0.478 1,0.255 0.765 1,0.522 0.894 1SpotLightintensity0.26color1 1 1location1 35 -16direction4.42043e-006 -1 -1.49012e-008Viewpoint p

14、osition 0 10 60orientation0 0 1 0fieldOfView0.785descriptionview1jump TRUETransformtranslation0 0 18childrenTransformtranslation0 0 0childrenInlineurl c3001.wrlTransformtranslation0 0 0childrenInlineurl down001.wrlTransformtranslation11.98 0 -20.04rotation 0 1 0 1.5708childrenInlineurl c2000.wrlTran

15、sformtranslation7.92 0 -36.01rotation 0 1 0 3.1416childrenInlineurl c1001.wrlTransformtranslation13.9225 0 0childrenInlineurl c1002.wrlTransformtranslation-12 0 -12.05rotation 0 1 0 -1.5708childrenInlineurl c4001.wrlTransformtranslation-13.025 0 2.61childrenInlineurl c4002.wrlTransformtranslation0 2

16、.675 0childrenInlineurl up.wrl1.3 資源文件夾顯示2. 醫(yī)院設(shè)計(jì)2.1醫(yī)院截圖顯示2.2醫(yī)院代碼Background groundAngle 0.7,1.5,1.57 groundColor 0 0.333 0,0 0.4 0,0 0.5 0, 0.62 0.67 0.60 skyAngle 0.9,1.5,1.57 skyColor 0.21 0.18 0.66,0.2 0.44 0.85 ,0.51 0.81 0.95,0.77 0.8 0.82NavigationInfo avatarSize 0.01, 0.2, 0.5 headlightTRUE sp

17、eed1 # typeWALK visibilityLimit0 DEF Camera01 Viewpoint position20 0 0 orientation0 1 0 1.57 descriptionCamera01DEF Camera02 Viewpoint position-12 0 4 orientation0 -1 0 1 descriptionCamera02DEF Camera03 Viewpoint position3 0 12 descriptionCamera03DEF Camera04 Viewpoint position3 0 -12 orientation0 1

18、 0 3.14 descriptionCamera04 DEF bigdoor Viewpoint position1 -2.7 4 descriptionCamera05DEF tree1 Transform #樹(shù) translation 12.5 -3.412 -10.5 scale 1 1 1 children Billboard axisOfRotation 0.0 1.0 0.0 children Shape appearance Appearance texture ImageTexture url tree1.png geometry DEF TreeFace1 IndexedF

19、aceSet coord Coordinate point -1.51 0.05 0.0, 1.51 0.05 0.0, 1.51 3.05 0.0, -1.51 3.05 0.0, coordIndex 0, 1, 2, 3 texCoord TextureCoordinate point 0.0 0.0, 1.0 0.0, 1.0 1.0, 0.0 1.0, texCoordIndex 0, 1, 2, 3 solid FALSE Transform #樹(shù) translation 0 0 2.5 scale 1 1 1 children USE tree1Transform #樹(shù) tran

20、slation 0 0 5 scale 1 1 1 children USE tree1Transform #樹(shù) translation 0 0 7.5 scale 1 1 1 children USE tree1DEF tree2 Transform #樹(shù) translation 8.5 -3.412 6.5 scale 1 1 1 children Billboard axisOfRotation 0.0 1.0 0.0 children Shape appearance Appearance texture ImageTexture url tree1.png geometry DEF

21、TreeFace2 IndexedFaceSet coord Coordinate point -1.51 0.05 0.0, 1.51 0.05 0.0, 1.51 3.05 0.0, -1.51 3.05 0.0, coordIndex 0, 1, 2, 3 texCoord TextureCoordinate point 0.0 0.0, 1.0 0.0, 1.0 1.0, 0.0 1.0, texCoordIndex 0, 1, 2, 3 solid FALSE Transform #樹(shù) translation -2.5 0 0 scale 1 1 1 children USE tre

22、e2Transform #樹(shù) translation -5 0 0 scale 1 1 1 children USE tree2Transform #樹(shù) translation -7.5 0 0 scale 1 1 1 children USE tree2Transform #樹(shù) translation -10 0 0 scale 1 1 1 children USE tree2Transform #樹(shù) translation -12.5 0 0 scale 1 1 1 children USE tree2Transform childrenTransform childrenInline u

23、rlbuildMAINLEFT.wrl Transform childrenTransform childrenInline urlbuildMAINOUT.wrl translation1.7 0 2Transform childrenTransform childrenInline urlbuildMAINRIGHT.wrl translation9 0 0Transform childrenShape appearanceAppearance materialMaterial ambientIntensity0 diffuseColor0.544676 0.7 0.0404636 geo

24、metryBox size20 0.2 20 translation3 -3.5 -32.3醫(yī)院資源文件夾顯示3. 文化宮3.1文化宮截圖顯示3.2文化宮代碼NavigationInfo avatarSize 0.25, 1.6, 0.75 headlightTRUEspeed1type WALK, FLY, EXAMINE, ANY visibilityLimit0Background groundAngle1.57079groundColor 1 0.8 0.6, 0.6 0.4 0.2 skyAngle 0.2, 1.57079 skyColor 1 1 0, 1 1 1, 0.2 0.

25、2 1 PointLight intensity0.35color1 1 1location4.79554 50.3417 -51.8209Viewpoint position81.3112 2.20005 -6.44401orientation0.0219329 -0.999671 0.0133035 5.32716descriptionrightViewpoint position5.8923 8.75207 37.4917orientation1 0 0 0.0111559descriptionfrontViewpoint position3.71209 11.4866 -164.924

26、orientation-0.000796307 -0.99993 0.0117774 3.14157descriptionbackViewpoint position-75.5409 -3.92723 -91.6657orientation-0.00583566 -0.999918 0.0114355 2.33293descriptionleftTransform childrenShape appearanceAppearance materialDEF _0 Material geometryBox size30.9 0.5 7.5 translation38.2043 -11.7577

27、-37.9353Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size44 0.5 34 translation6.09145 -11.7487 -56.6952Transform childrenInline urlfangkuaiz1.wrltranslation-9.64711 -11.2552 -75.1707rotation0 1 0 3.14scale1 1 1Transform childrenInline urlfangkuaiz.wrltranslation21.3522 -12

28、.3257 -68.6208rotation0 1 0 3.14scale1 1 1Transform childrenInline urlleftwindows.wrltranslation-42.7086 -9.68456 -54.6323rotation0 -1 0 1.57079scale0.999998 1 0.999998Transform childrenInline urlleftwindows.wrltranslation56.6776 -9.53636 -53.8542rotation0 1 0 1.59069scale0.999998 1 0.999998Transfor

29、m childrenShape appearanceAppearance materialUSE _0 geometryBox size7 2.3 8.9 translation6.49652 -12.6474 -35.2384Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size18.9 0.5 15 translation19.2204 -11.7646 -35.709Transform childrenShape appearanceAppearance materialUSE _0 geo

30、metryBox size19 0.5 12 translation-6.0365 -11.7483 -33.7512Transform childrenInline urlfangkuaiz.wrltranslation-8.33719 -12.7663 -37.8966Transform childrenInline urlfangkuaiz1.wrltranslation22.5037 -10.6295 -31.0415Transform childrenInline urlzhengqiang.wrltranslation40.3582 -7.99535 -35.365Transfor

31、m childrenInline urlzhengqiangL.wrltranslation-16.8159 -8.27652 -35.3298Transform childrenInline urlwindows9.wrltranslation52.2902 -11.8565 -38.5036rotation0 1 0 1.57148Transform childrenInline urlzhengqiangL.wrltranslation30.5848 -8.07789 -72.9203rotation0 1 0 3.14352scale1 1 1Transform childrenInl

32、ine urlwindows9.wrltranslation-38.4666 -11.7504 -69.8092rotation0 -1 0 1.57scale1 1 1Transform childrenInline urlzhengqiang.wrltranslation-26.4858 -8.08624 -72.9566rotation0 1 0 3.14352scale1 1 1Transform childrenInline urlwall.wrltranslation-9.9288 -15.5659 -78.9974rotation0 -1 0 1.55932Transform c

33、hildrenInline url1.wrltranslation6.83797 19.8689 -53.0009Transform childrenInline urlqianfang.wrltranslation6.852 -9.90576 43.7841Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25.5 0.5 7.5 translation40.7796 -11.7487 -70.1407Transform childrenShape appearanceAppearance

34、materialUSE _0 geometryBox size28.6 0.5 25 translation39.3355 -11.7487 -54.1801Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25.5 0.5 7.5 translation-27.1672 -11.7487 -70.3554Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size25 0.5 25 translati

35、on-27.2503 -11.7487 -54.1368Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size30.5 0.5 7.5 translation-24.6359 -11.7487 -38.2663Transform childrenInline urlsmallladder.wrl translation0.12805 5.60187 -0.0243855Transform childrenInline urlcircle.wrl translation6.71467 9.03146

36、 -53.9633Transform childrenShape appearanceAppearance materialDEF _1 Material geometryBox size3 0.25 7.5 translation39.3089 9.52323 -69.4972 rotation0 1 0 4.71239 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _1 geometryBox size7.5 0.25 3 translation39.2062 9.52703 -38.277 scale

37、4 4 4Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size3 0.25 7.5 translation-26.0688 9.54235 -69.6339 rotation0 1 0 4.71239 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size7.5 0.25 3 translation-26.2708 9.50971 -38.2967 scale4 4 4Trans

38、form childrenShape appearanceAppearance materialUSE _0 geometryBox size3 0.25 4.9 translation-35.0462 9.53663 -53.9117 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _0 geometryBox size3 0.25 4.9 translation48.2377 9.51326 -53.7626 scale4 4 4Transform childrenShape appearanceAppearance materialUSE _0 textureImageTexture urlpicture/floor1.gif textureTransformTextureTransform scale10 10 geometryBox size130 0.1 100 translation6.85145 -15.3173 -54.0648Transform childrenInline urlinside.wrl translation-15.2351 1.25397 -46.1326 rotation0 -1 0 1.57 scale4 2 4Tr

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論