201101077 六、發明說明: 【發明所屬之技術領域】 本發明是有關於一種三維影俊描:細 裝置’特別是有關於一種利用爪哇(Java)程二入 ^ = ^維環境外觀模擬建構方法及其3D物件場 ^ 【先前技術】 Ο 目前,目前市面上已有幾套建置三維物件的系統, 例如3D歸〇、3DMAX等,皆為市面上功能強大的三 維物件架構系統,但這些系統都需要透過複雜的操作與 控制才能產生出-個三維空間的虛擬物件,設計者也必 須經過專業的訓練才能達到一定的水準,來產生出專 層級的產品,對於-般使用者而言,是較為困難且複雜 的軟體系統。而且這些系統通常都只能安裝在特定的作 〇業,系、统,且軟硬體的資源需求都相#高,料一般的電 腦使用者而言,更提高了使用的困難度。 此外,在數位生活概念逐漸落實下,平面顯示技術 曰趨成熟;為滿足人類對自然視覺重現的追求,下一個 顯示技術革命勢必由平面顯示走向立體顯示,隨著三維 技術、網際網路頻寬及個人電腦運算能力的提昇,Web 3D的網路虛擬世界將更為普遍,自然帶動了三維技術 擴展於各式商品的電子商務、產品簡報及電玩動畫等, 顯示未來的世界將是三維的世界。隨著資訊傳播的三維 3 201101077 技術漸漸地進入每位使用者的生活,成為傳播的新寵兒。 勢,平面走向三維立體是必然的趨 影效果,更貼近真實世界=所無法取代的立體感與光 中的三個座標軸向上以更豐富呈三維在空間座標 與表面材質貼圖,在虛擬世界令的模型 三度帶領使用者進入更多面向的感;領=的 鑑於習知技藝之各項問題,為 本發明人基於多年研究開發與諸多實務b瘦驗,提種 二維環境外觀模擬建構方法及 獒出一種 缺點之實現方式與依據。、、、,、,以作為改善上述 【發明内容】 有鑑於上述習知技蓺 就是在提供-種:唯_ ’本發明之其中一目的 用者在間紐的時間内, 乂扠伢便 與外部材質的三維場景之目的建構出建築物位置的配置 根據本發明之 構方法,其包種二維環境外觀模擬建 „逢u 列步驟。首先,提供至少一报栌、登留 及一建材選單於一龜_ s __圾伢主夕形體選皁 選擇該形體選單之;"#7°’使用者可利用—操作單元 後,利用-輸入單_ ^二以建立一建築物之-平面圖 藉由-處理器之運:雨人錢築物之—高度值。此時, 成建築物之-立#圍’使建築物之平面圖與高度值結合 ,最後,利用操作單元點選建材外 201101077 外觀立體 觀材質選單之選項與立體 圖。 統,= 卜含本:明ί提出一種三維環境外觀模擬建構系 ^其包含-顯不早兀、一操作單元、一輸入單元及一 ,理單元。顯示單元提供至少—形體選單及 早,操作單元用以選擇形體選單之選項及建材選單之= 1 =單元用以輸人-高度值。處理單元則依據操作 Ο ^二選擇之㈣選單之選項、建材選單之外觀材質選 項及輸入單元所輸人之高度值以結合成 觀立體模組。 卜 雄為使貴審查委員對本發明之技術特徵及所達到 之功效有更進-步之瞭解與認識,謹佐以較佳之實施例 及配合詳細之說明如後。 【實施方式】 ◎—以下將參照相關圖式,說明依本發明較佳實施例之 三維環境外觀模擬建構方法及其系統,為使便於理解, 下述實施例中之相同元件係以相同之符號標示來說明。 明參閱第1圖,其係為本發明之三維環境外觀模擬 建構方法之示意圖,其主要步驟流程如下。首先,提供 至乂一形體選單及一建材選單於一顯示單元(步驟 SU ),使用者可利用一操作單元,較佳為一滑鼠,選擇 幵y體選單之選項,以建立一建築物之一平面圖(步驟 S12)後,利用一輸入單元,較佳為一鍵盤,輸入該建築 5 201101077 物之一高度值(步驟S13)。此時,藉由一處理器之運作, 使建築物之平面圖與高度值結合成建築物之一立體圖 (步驟S14)’最後,利用操作單元點選建材選單之外 材質選項與立體圖結合成建築物之一外觀立體模袓 驟 S15)。 、 、v 、中,上述之方法更可匯入一虛擬實境建構語古 (VjrtualRealityM〇delingLanguage,vrmi)檔案 ^ 編輯。此外,更可提供一附加物選單以選擇一窗戶、一 ^、-鐵S、-落地窗及-麵轉,以增加 體圖之真實感。 風立 建槿j閱第2圖’其係為本發明之三維環境外觀模擬 m之:塊示意圖。圖中,三維環境外觀模擬建構 元!s’:一厂顯示單元2卜一操作單元22、-輪入單 處理早70 24。顯示單元21提供至少一形體選 單21心單212,操作單元22用以選擇形體選 材選單212之選項,輸人單元”用以 t體St 單元24則依據操作單元22所選擇 及榦入Ϊ早„之選項、建材選單212之外觀材質選項 :二'23所輸入之高度值以結合成-建築物之- 查右t三維環境外觀模擬建構系統中,最主要是執行 使用者所設置的物件顯示在畫布 於畫布上=書:能正確顯示出使用者所設置的物件 畫布上m布的所有事件都是由此模組所管理。 201101077 2者可先設定畫布名稱,再接㈣作單元22之操 的在接收操作單元22,例如滑鼠(以‘ 舉例說明)之各項動作,例如:移動、點擊、拖 德者為滑鼠傾聽者,目的在於接收到滑鼠動作 t所對應的各種方法。當引用完成後,畫布便有接收 =,件與滑鼠事件傾聽的魏,再配合設計者介面模 組鎖疋的各按紐與對應的變數,便可在畫布上開始作晝。 Ο +宣告滑鼠事件需要將所有相關建構子呼叫—遍,接 者在寫人每㈣應㈣所產㈣結果,當滑鼠按下時, .,、不滑鼠位置座標,並偵測按紐變數,去啤叫形體 建材選單212。形體選單211中包含一橡皮擦選 ,利用滑鼠㈣座標的功能,點選圖形所在的座標, 圖形消除。剩下的㈣事件暫無使用,將預備未 來發展改成圖層畫布,以拖拉方式來完成外觀 擺設。 I賴單211主要功能是t㈣者在屬性視窗設定 ◎完各種圖形屬性與位置後,便會在畫布上顯現出圖形, 目”圖形有:長方體、圓柱體、球體、圓錐體等等四 種’每種®形所需設定的屬性各不同,相同的屬性有座 標設定、顏色、㈣、與超連結設定,而不同的設定屬 性分別為:長方體的長寬高、圓柱體的半徑與高度、球 體的半徑、三角錐的半徑與高度料,另外除了球體外 也可以加入選轉角度,可以依照χγζ三軸其中之一作為 旋轉軸並設定角度,可將圖形做旋轉的動作,當設定完 成按下確定後,將設定值傳到各個函式令並由各函式處 201101077 理完成後在畫布上產生出圖像。 青參閱第3圖’其係為本發明之三維環境外觀模擬 建構系統之使用者操作介面示意圖。圖中,使 30至少具有—畫布31、一形體選單”、一建材選單33 及附加物選單34。以此實施例說明建構一三維虛擬實 境外觀立體圖之操作方式。以此使用者介面3()後,先 點選開新檔案’此時使用者介面30會出現晝布31、形 體選單32、建材選單33及附加物選單34,即表示成功 開啟新畫布31,對於畫布31使用者係以 形,單32,當畫布31顯示所產生的結果後,二: 一同度值後則建立一三維虛擬實境外觀立體圖。 接著’點選建材選單33,選擇建築物外觀是利用磁 磚:磨石子或油漆等建築物外觀,貼入建材選單%之選 項後’在畫布31上的建築物外觀也同樣顯現建材選單 33之選項。最後,再選擇附加物選單%,選擇如窗戶、 鐵窗、落地窗或玻璃帷幕等附加物,使建築物外觀 更趨於真實化。 以上所述僅為舉㈣,轉為限触者。任何未脫 =本發明之精神與㈣’而對其進行之等效修改或變 更,均應包含於後附之申請專利範圍中。 201101077 【圖式簡單說明】 第1圖係為本發明之三維環境外觀模擬建構方法之步驟 流程圖; 第2圖係為本發明之三維環境外觀模擬建構系統之方塊 示意圖;以及 第3圖係為本發明之三維環境外觀模擬建構系統之使用 者操作介面示意圖。 ❹ 【主要元件符號說明】 S11〜S15 :步驟流程; 21 :顯示單元; 211 :形體選單; 212 :建材選單; 22 :操作單元; ❹ 23 :輸入單元; 24 :處理單元; 30 :使用者介面; 31 :晝布; 32 :形體選單; 33 :建材選單;以及 3 4 :附加物選單。 9201101077 VI. Description of the Invention: [Technical Field] The present invention relates to a three-dimensional image depicting a fine device, in particular, a method for constructing a visual appearance using a Java technology Its 3D object field ^ [Previous technology] Ο At present, there are several systems for building 3D objects on the market, such as 3D blame, 3DMAX, etc., all of which are powerful 3D object architecture systems on the market, but these systems are It is necessary to create a virtual object in a three-dimensional space through complicated operation and control. The designer must also be professionally trained to reach a certain level to produce a special-level product. For the general user, it is more Difficult and complicated software system. Moreover, these systems are usually only installed in specific operations, systems, systems, and the resource requirements of both hardware and software are high, which is expected to increase the difficulty of use. In addition, under the gradual implementation of the digital life concept, the flat display technology is becoming more mature; in order to satisfy the human pursuit of natural visual reproduction, the next display technology revolution is bound to move from flat display to stereo display, with three-dimensional technology and internet frequency. The wide and personal computer computing power, Web 3D's network virtual world will be more common, naturally driving 3D technology to expand into various commodities of e-commerce, product briefings and video game animation, showing that the future world will be three-dimensional world. With the three-dimensional information dissemination 3 201101077 technology gradually entered the life of each user and became the new darling of communication. The trend, the plane to the three-dimensional is the inevitable trend effect, closer to the real world = the irreplaceable three-dimensional sense and the three coordinates in the light are more abundant in the three-dimensional space coordinates and surface texture map, in the virtual world order The model has led the user to enter more sense of orientation. The leader of the inventor has developed a two-dimensional environment appearance simulation method based on years of research and development and many practical practices. Find out the way and basis for a shortcoming. , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , The purpose of the three-dimensional scene of the external material is to construct the position of the building. According to the method of the present invention, the two-dimensional environment appearance simulation is built. The first step is to provide at least one report, boarding and a building materials menu. In a turtle _ s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ By the operation of the processor: the height value of the rain man's money building. At this time, the building's - standing #围' combines the floor plan of the building with the height value, and finally, using the operating unit to select the building materials 201101077 Appearance stereoscopic material menu options and perspectives. System, = Buben: Mingli proposes a three-dimensional environment appearance simulation construction system ^ it contains - not early, an operation unit, an input unit and a rational unit. Unit supply Less-forms menu early, the operating unit is used to select the option of the shape menu and the building materials menu = 1 = unit to input the person-height value. The processing unit is based on the operation Ο ^ 2 selection (4) menu option, the appearance of the building materials menu The material options and the height values of the input units are combined to form a stereoscopic module. Bu Xiong has made a more in-depth understanding and understanding of the technical features and the effects achieved by the review committee. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [Embodiment] ◎ - Hereinafter, a three-dimensional environment appearance simulation construction method and system according to a preferred embodiment of the present invention will be described with reference to the related drawings, in order to facilitate understanding, the following The same components in the embodiments are denoted by the same reference numerals. The first embodiment is a schematic diagram of the three-dimensional environment appearance simulation construction method of the present invention, and the main steps are as follows. First, the first-order menu is provided. And a building material menu in a display unit (step SU), the user can use an operating unit, preferably a mouse, to select the 幵 y body menu To establish a plan view of a building (step S12), using an input unit, preferably a keyboard, to input a height value of the building 5 201101077 (step S13). At this time, by a processor The operation, the floor plan and the height value of the building are combined into a stereoscopic view of the building (step S14). Finally, the material option and the three-dimensional picture are combined with the three-dimensional figure to form a stereoscopic model of the building using the operating unit to select the building material menu. In addition, the above methods can be imported into a virtual reality constructor (Vjrtual Reality M〇delingLanguage, vrmi) file ^ edit. In addition, an add-on menu can be provided to select a window, a ^, - Iron S, - floor to ceiling windows and - face to increase the realism of the body map. Feng Li Jian Yu j read the second figure ' is the three-dimensional environment appearance simulation of the invention m: block diagram. In the picture, the 3D environment appearance simulation construction yuan! s': a factory display unit 2, an operation unit 22, a wheeled order processing 70 24 early. The display unit 21 provides at least one shape menu 21, the operation unit 22 is used to select the option of the shape selection menu 212, and the input unit is used for the t-body unit 24 to select and dry according to the operation unit 22. The options, the appearance of the building materials menu 212 material options: the two '23 input height values to combine into - building - check right t three-dimensional environment appearance simulation construction system, the most important is to perform the user set object display Canvas on the canvas = book: can correctly display all the events on the canvas set by the user. All events are managed by this module. 201101077 2 can set the canvas name first, then connect (4) as the operation of unit 22 in the receiving operation unit 22, such as the mouse (by 'exemplary description'), such as: move, click, drag the mouse as the mouse The listener aims to receive various methods corresponding to the mouse action t. When the citation is completed, the canvas will receive the message, and the widget and the mouse will listen to the button, and then the buttons of the designer interface module lock and the corresponding variables will start on the canvas. Ο + Declare the mouse event needs to call all relevant constructors—over the receiver, every (four) should (4) produce (four) results, when the mouse is pressed, ., , no mouse position coordinates, and detect New variable, go to the beer called the shape building materials menu 212. The shape menu 211 includes an eraser selection, and the function of the mouse (four) coordinates is used to select the coordinates where the graphic is located, and the graphic is eliminated. The remaining (4) events are temporarily unused, and the future development will be changed to a layer canvas, and the appearance will be completed by dragging. The main function of I Lai 211 is that t(four) will display the various graphic attributes and positions in the property window, and then the graphics will appear on the canvas. The "graphics are: cuboid, cylinder, sphere, cone, etc." The properties required for each type of shape are different. The same attributes have coordinate settings, colors, (4), and hyperlink settings. The different setting properties are: the length and width of the rectangle, the radius and height of the cylinder, and the sphere. The radius, the radius of the triangular cone and the height of the material, in addition to the ball outside the ball can also be added to the selection of the angle of rotation, you can follow one of the three axes of χ γ 作为 as the axis of rotation and set the angle, you can rotate the figure, when the setting is completed After the determination, the set value is transmitted to each function and the image is generated on the canvas after the completion of the function 201101077. See Figure 3 for the use of the three-dimensional environment appearance simulation construction system of the present invention. A schematic diagram of the operation interface. In the figure, 30 is provided with at least a canvas 31, a shape menu, a building material menu 33, and an add-on menu 34. This embodiment illustrates the operation of constructing a three-dimensional virtual reality appearance perspective view. After the user interface 3(), the new file is selected first. At this time, the user interface 30 will display the 31 31, the shape menu 32, the building material menu 33 and the add-on menu 34, which means that the new canvas 31 is successfully opened. For the user of the canvas 31, the shape is 32, when the canvas 31 displays the result, and after the same value, a three-dimensional virtual reality appearance stereogram is created. Then select the building materials menu 33, select the appearance of the building is to use the tile: the appearance of the building such as terrazzo or paint, after the option of sticking to the building materials menu, 'the appearance of the building on the canvas 31 also shows the building materials menu 33 Option. Finally, choose the Addendum menu% and choose accessories such as windows, iron windows, floor to ceiling windows or glass curtains to make the building look more realistic. The above is only for the purpose of (4), and it is restricted to the limiter. Any changes or modifications to the spirit of the present invention and (4)' are intended to be included in the scope of the appended claims. 201101077 [Simplified description of the drawings] Fig. 1 is a flow chart showing the steps of the three-dimensional environment appearance simulation construction method of the present invention; Fig. 2 is a block diagram showing the three-dimensional environment appearance simulation construction system of the present invention; A schematic diagram of a user operation interface of the three-dimensional environment appearance modeling construction system of the present invention. ❹ [Main component symbol description] S11~S15: Step flow; 21: Display unit; 211: Shape menu; 212: Building materials menu; 22: Operation unit; ❹ 23: Input unit; 24: Processing unit; 30: User interface 31: 昼 cloth; 32: shape menu; 33: building materials menu; and 3 4: add-on menu. 9