摘 要:探討在當前網絡環境下可滿足網絡可視化要求的虛擬漫游技術,剖析虛擬漫游控制技術即視點變換情況,給出一種科學有效的視點變換關系,保存當前的視點坐標和方位,利用鍵盤來控制漫游方向和行進。結合Java 3D的代碼可傳輸特性,基于Java 3D構建了可滿足網絡可視化要求的虛擬建筑物漫游,效果較好。
關鍵詞: Java 3D; 虛擬漫游; 視點坐標; 網絡環境
中圖分類號:TN911; TP391 文獻標識碼:A
文章編號:1004-373X(2010)14-0084-02
Investigation of Virtual Ramble Technology Based on Java 3D
LIN Lü-ping, WANG Ru
(Xi’an University of Architecture Technology, Xi’an 710055, China)
Abstract: The virtual ramble technology which can meet the request of the network visualiztion under the current network environment is discussed. The virtual ramble control technology (variation of view point) is analyzed. A variation relation of view point which is scientific and effective is given. The virtual ramble which can meet the request of network visualization based on Java 3D is built by preserving the current eye coordinate and azimuth, utilizing the keyset to control the ramble direction and movement, and combining the code transmission charicteristic of Java 3D.
Keywords: Java 3D; virtual ramble; eye coordinate; network visalization
虛擬漫游技術是虛擬現實(virtual reality)技術的重要組成部分,在各個領域,尤其是旅游、航天航空、醫學、建筑等行業有著巨大的發展空間[1]。傳統的編程工具如OpenGL和DirectX,能夠有效的進行三維開發,從而實現虛擬漫游,但是,隨著Internet的快速發展,B/S(Browse/Server)系統擁有傳統的C/S(Client/Server)系統所沒有的巨大優勢,在B/S系統中,如果采用OpenGL等傳統的編程工具,只能在Web服務器端生成圖像,然后再一幅幅地傳給客戶端顯示,在當前的Internet傳輸能力下,是不可能滿足網絡可視化要求的。而Java 3D卻可以很好地解決Internet傳輸能力所帶來的問題,因為它具有代碼可傳輸性,這使得用來生成復雜三維圖像的程序可以方便地從服務器端傳送到客戶端,然后在客戶端本地運行,進而生成三維圖像。因為傳輸的不是圖像本身,而是控制圖像生成的程序和數據,所以大大縮減了網絡傳輸的數據量[2]。
1 Java 3D
Java 3D是SUN公司繼Java的火爆成功后,于1997年推出的面向網絡的交互式三維圖形應用程序接口(API)[3]。Java 3D有純粹的面向對象結構,其基本數據結構(場景圖)是一些具有方……