1 / 18

VRML for Topography

VRML for Topography. 研究生:翁海馨 老師:王天楷. VRML 簡介. VRML 原名 Virtual Reality Markup Language ,後為了反映其圖形能 力,而更名為 Virtual Reality Modeling Language [ Bell et al., 1995 ] 。 VRML 是 一套與全球資訊網結合,用來描述三度空間互動世界的一種檔案格式,可用來建立三度空間物件、景象、以及虛擬實境的展示模 型 [ ISO/IEC, 1996 ] 。透過 VRML ,全球資訊網的使用者可以觀賞到立 體空間的模型,而不限於二度空間的圖形、影像。.

clay
Télécharger la présentation

VRML for Topography

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VRML for Topography 研究生:翁海馨 老師:王天楷

  2. VRML簡介 • VRML原名Virtual Reality Markup Language,後為了反映其圖形能 力,而更名為Virtual Reality Modeling Language [Bell et al., 1995]。VRML是 一套與全球資訊網結合,用來描述三度空間互動世界的一種檔案格式,可用來建立三度空間物件、景象、以及虛擬實境的展示模 型[ISO/IEC, 1996]。透過VRML,全球資訊網的使用者可以觀賞到立 體空間的模型,而不限於二度空間的圖形、影像。

  3. VRML簡介 虛擬實境唯一各由電腦產生的三度立體空 間,使用者可以自由的與空間中的物件產 生互動,並可以依照自己的意思去控制空 間中的物件,以產生相當的融入感與參與 感。虛擬實境為:由電腦產生,3D立體 空間,可與空間事物互動,隨使用者意志 自由移動,具有融入感與參與感。

  4. VRML簡介 • 使用Netscape 4.0版的使用者,請選擇VRML2.0格式的虛擬實境場景;而使 用Netscape 3.0版的使用者,如果你未曾自行安裝Cosmo Player這套外掛程式,請選擇VRML1.0格式的虛擬實境場景,當然,如果以Netscape 4.0來觀看VRML1.0格式的虛擬實境,也是可以看,但會有些不正常,像行星不會運轉 啦!貼圖亂了等等, 而要是以Netscape 3.0來看VRML2.0,那就真的是不能觀

  5. VRML編輯器:VrmlPad • 該編輯器除了第一行“#VRML V2.0 utf8”會自動寫上,另依強大功能及市“程式編輯輔助視窗”當我們要輸入Shape這各節點時,指輸入S時,程式編輯輔助視窗會自動出現列出所有S開頭的節點讓我們選擇,可以節省時間且降低寫錯的機率。

  6. 資料取得:底圖

  7. 資料取得:圖片 在VNCSERVER之下開啟PS檔案 將圖設置到最佳位置 使用SCREEN SHOT鍵來作圖片擷取 開啟小畫家 擷取需要的部分 另開新檔 資料貼上儲存

  8. 資料取得:高度資料 利用GRDSAMPLE取出所需要的範圍 使用GRD2XYZ轉換檔案 使用AWK取出Z軸資料 轉存為TXT檔方便讀取 使用FTP將資料取出

  9. VRML的架構 #VRML V2.0 utf8 檔案標頭 註解 節點 欄位 第一航一定要是#VRML V2.0 utf8 在#之後的任何自員都將成為註解 節點是VRML程式檔案中最基本的單位,美各節點中還 可以包含子節點(Child Node)和描述節點屬性的欄位(Field)。

  10. 程式檔(標頭,視點,速度,背景) • #VRML V2.0 utf8 • Viewpoint • { • position 60 30 160 • orientation 3 2 0 3.141592653 • } • NavigationInfo {speed 500} • Background • { skyColor [1, 1, 1]}

  11. 程式檔:(打點,畫框) • Shape { • appearance Appearance {material Material {emissiveColor 0.0 0.0 0.0}} • geometry IndexedLineSet { • coord Coordinate { • point [ • 0 -17 0 • 80 -17 0 • 80 -17 80 • 0 -17 80 • 0 17 0 • 80 17 0 • 80 17 80 • 0 17 80

  12. 程式檔:(打點,畫框) • ] • } • coordIndex [ • 0 1 2 3 0 -1 • 4 5 6 7 4 -1 • 0 4 -1 • 1 5 -1 • 2 6 -1 • 3 7 -1 • ] } }

  13. 程式檔:貼圖 • Group • { • children • [ • Transform • { • translation 0 0 0 • scale 1 0.00125 1 children • [ • Shape • { • appearance Appearance • { • texture ImageTexture {url "africaD.jpg"} • }

  14. 程式檔:山高水深 • geometry ElevationGrid • { • xDimension 161 • zDimension 161 • xSpacing 0.5 • zSpacing 0.5 • solid FALSE • creaseAngle 0.0 • height • [ data ] • } • } • ] • } • ] • }

  15. 參考網站: • http://140.115.123.52/user/tsairj/ • http://yll.hkcampus.net/~yll-vrml/right.htm • http://www.ncu.edu.tw/~center21/vrml/vrml.html • http://www.mgt.ncu.edu.tw/~kwang/VRML/vrml.html

  16. 報告結束 謝謝大家

More Related