JP2010286907A - Graphics processor, graphics processing method, and program - Google Patents

Graphics processor, graphics processing method, and program Download PDF

Info

Publication number
JP2010286907A
JP2010286907A JP2009138447A JP2009138447A JP2010286907A JP 2010286907 A JP2010286907 A JP 2010286907A JP 2009138447 A JP2009138447 A JP 2009138447A JP 2009138447 A JP2009138447 A JP 2009138447A JP 2010286907 A JP2010286907 A JP 2010286907A
Authority
JP
Japan
Prior art keywords
dimensional
graphics
processing
drawing processing
pseudo
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009138447A
Other languages
Japanese (ja)
Inventor
Tatsuya Takechi
辰哉 武市
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2009138447A priority Critical patent/JP2010286907A/en
Publication of JP2010286907A publication Critical patent/JP2010286907A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a mechanism for drawing an object based on a pseud-three-dimensional effect expressed by a two-dimensional graphics, without false recognition. <P>SOLUTION: A pseud-three-dimensional effect determining part 202 determines whether the pseud-three-dimensional effect is included in a two-dimensional graphics drawing command received by a two-dimensional graphics drawing command receiving part 201 or not. A three-dimensional object drawing command generating part 203 generates a three-dimensional object drawing command based on the pseud-three-dimensional effect, when the pseud-three-dimensional effect determining part 202 determines that the pseud-three-dimensional effect is included. A three-dimensional object drawing command executing part 204 executes the three-dimensional object drawing command generated by the three-dimensional object drawing command generating part 203, arranges the three-dimensional object in a three-dimensional virtual space, and performs rendering. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、二次元グラフィックス描画処理命令の処理を行うグラフィックス処理装置及びグラフィックス処理方法、並びに、当該グラフィックス処理方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to a graphics processing apparatus and graphics processing method for processing a two-dimensional graphics rendering processing command, and a program for causing a computer to execute the graphics processing method.

従来から、限られた面積の画面内に、できる限り多くのウィンドウを表示するために、ウィンドウを三次元仮想空間内に配置して表示する方法がある。例えば、下記の特許文献1には、三次元仮想空間内で、ウィンドウを奥行き方向に傾け、透視投影させることにより、ウィンドウの収納効率を高め、表示内容の判別も可能とする技術が提案されている。   Conventionally, in order to display as many windows as possible on a screen having a limited area, there is a method of arranging and displaying windows in a three-dimensional virtual space. For example, the following Patent Document 1 proposes a technique that increases the storage efficiency of a window and makes it possible to discriminate display contents by tilting the window in the depth direction and performing perspective projection in a three-dimensional virtual space. Yes.

特開平11−65806号公報Japanese Patent Laid-Open No. 11-65806

一般に、ウィンドウに配置されているユーザインタフェース部品は、二次元グラフィックスで表現されているが、色の濃淡などを用いて三次元オブジェクトのように凹凸を擬似表現する擬似三次元効果を利用することが多い。そして、ユーザは、この濃淡により、ウィンドウと正対しながらユーザインタフェース部品の状態、即ち当該部品が押されているかどうかなどを認識している。また、濃淡は、一般に、正対しているときに合わせてデザインされている。   In general, user interface components placed in a window are represented by two-dimensional graphics, but use a pseudo three-dimensional effect that simulates unevenness like a three-dimensional object using color shading. There are many. Then, the user recognizes the state of the user interface component, that is, whether or not the component is pressed, while facing the window based on the shading. In addition, the shading is generally designed to match when facing each other.

しかしながら、従来の方法では、このような二次元グラフィックスがウィンドウ内に描画されたものを三次元仮想空間に配置すると、その濃淡によって、逆に凹凸の状態を誤認する可能性があるという問題点があった。   However, in the conventional method, when such a two-dimensional graphic drawn in a window is placed in a three-dimensional virtual space, there is a possibility that the uneven state may be misidentified depending on the shading. was there.

本発明は、このような問題点に鑑みてなされたものであり、二次元グラフィックスで表現された擬似三次元効果に基づくオブジェクトを、誤認させること無く描画する仕組みを提供することを目的とする。   The present invention has been made in view of such problems, and an object of the present invention is to provide a mechanism for rendering an object based on a pseudo-three-dimensional effect expressed by two-dimensional graphics without misunderstanding. .

本発明のグラフィックス処理装置は、二次元グラフィックス描画処理命令の処理を行うグラフィックス処理装置であって、前記二次元グラフィックス描画処理命令を受信する受信手段と、前記受信手段で受信した二次元グラフィックス描画処理命令に、三次元オブジェクトを擬似表現する擬似三次元効果が含まれているか否かを判別する判別手段と、前記判別手段において二次元グラフィックス描画処理命令に前記擬似三次元効果が含まれていると判別された場合に、当該擬似三次元効果に基づく三次元オブジェクト描画処理命令を生成する生成手段と、前記生成手段で生成された三次元オブジェクト描画処理命令を実行し、三次元オブジェクトを三次元仮想空間内に配置してレンダリング処理を行う三次元オブジェクト描画処理命令実行手段とを有する。
また、本発明は、上述したグラフィックス処理装置によるグラフィックス処理方法、及び、当該グラフィックス処理方法をコンピュータに実行させるためのプログラムを含む。
A graphics processing apparatus according to the present invention is a graphics processing apparatus that performs processing of a two-dimensional graphics rendering processing command, and includes a receiving unit that receives the two-dimensional graphics rendering processing command, and a receiver that receives the two-dimensional graphics rendering processing command. Determining means for determining whether or not the three-dimensional graphics rendering processing instruction includes a pseudo three-dimensional effect that pseudo-represents a three-dimensional object; and in the determining means, the pseudo three-dimensional effect is added to the two-dimensional graphics rendering processing instruction. And generating a three-dimensional object drawing processing instruction based on the pseudo three-dimensional effect, and executing the three-dimensional object drawing processing instruction generated by the generating means, Three-dimensional object drawing processing instruction executer that performs rendering processing by placing the original object in the three-dimensional virtual space With the door.
The present invention also includes a graphics processing method by the above-described graphics processing apparatus and a program for causing a computer to execute the graphics processing method.

本発明によれば、二次元グラフィックスで表現された擬似三次元効果に基づくオブジェクトを、誤認させること無く描画することができる。   According to the present invention, an object based on a pseudo three-dimensional effect expressed by two-dimensional graphics can be drawn without misunderstanding.

本発明の実施形態に係るグラフィックス処理装置のハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of the graphics processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るグラフィックス処理装置の機能構成の一例を示すブロック図である。It is a block diagram which shows an example of a function structure of the graphics processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るグラフィックス処理装置によるグラフィックス処理方法の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the graphics processing method by the graphics processing apparatus which concerns on embodiment of this invention. 本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of the pseudo | simulation three-dimensional effect which concerns on a two-dimensional graphics drawing process command. 本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果を三次元オブジェクトに変換する方法の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of the method of converting the pseudo | simulation three-dimensional effect which concerns on a two-dimensional graphics drawing process command into a three-dimensional object. 本発明の実施形態を示し、二次元グラフィックス描画処理命令と三次元仮想空間配置情報との関係の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of the relationship between a two-dimensional graphics drawing process command and three-dimensional virtual space arrangement | positioning information. 本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令が、三次元仮想空間配置情報によって配置される様子の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of a mode that the two-dimensional graphics drawing process command containing a pseudo three-dimensional effect is arrange | positioned by three-dimensional virtual space arrangement information. 本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令と擬似三次元効果を含まない二次元グラフィックス描画処理命令とを含む二次元グラフィックス描画処理命令群の描画処理結果の一例を示す模式図である。Drawing processing of a two-dimensional graphics drawing processing command group including a two-dimensional graphics drawing processing command including a pseudo three-dimensional effect and a two-dimensional graphics drawing processing command not including a pseudo three-dimensional effect according to the embodiment of the present invention It is a schematic diagram which shows an example of a result. 本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of the pseudo | simulation three-dimensional effect which concerns on a two-dimensional graphics drawing process command. 本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令と擬似三次元効果を含まない二次元グラフィックス描画処理命令とを含む二次元グラフィックス描画処理命令群の描画処理結果の一例を示す模式図である。Drawing processing of a two-dimensional graphics drawing processing command group including a two-dimensional graphics drawing processing command including a pseudo three-dimensional effect and a two-dimensional graphics drawing processing command not including a pseudo three-dimensional effect according to the embodiment of the present invention It is a schematic diagram which shows an example of a result. 本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of the pseudo | simulation three-dimensional effect which concerns on a two-dimensional graphics drawing process command. 本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令と擬似三次元効果を含まない二次元グラフィックス描画処理命令とを含む二次元グラフィックス描画処理命令群の描画処理結果の一例を示す模式図である。Drawing processing of a two-dimensional graphics drawing processing command group including a two-dimensional graphics drawing processing command including a pseudo three-dimensional effect and a two-dimensional graphics drawing processing command not including a pseudo three-dimensional effect according to the embodiment of the present invention It is a schematic diagram which shows an example of a result. 本発明の実施形態を示し、ドロップシャドウ効果を含む二次元グラフィックス描画処理命令の処理方法の一例を示す模式図である。It is a schematic diagram which shows embodiment of this invention and shows an example of the processing method of the two-dimensional graphics drawing process command containing the drop shadow effect.

以下に、図面を参照しながら、本発明を実施するための形態(実施形態)について説明する。   Hereinafter, embodiments (embodiments) for carrying out the present invention will be described with reference to the drawings.

図1は、本発明の実施形態に係るグラフィックス処理装置のハードウェア構成の一例を示すブロック図である。   FIG. 1 is a block diagram illustrating an example of a hardware configuration of a graphics processing apparatus according to an embodiment of the present invention.

図1のグラフィックス処理装置100は、CPU101、RAM102、ROM103、外部メモリ104、入力デバイス105、表示部106、通信インタフェース(通信I/F)107、及び、バス108のハードウェア構成を有して構成されている。   1 has a hardware configuration of a CPU 101, a RAM 102, a ROM 103, an external memory 104, an input device 105, a display unit 106, a communication interface (communication I / F) 107, and a bus 108. It is configured.

CPU101は、例えば、ROM103或いは外部メモリ104に記憶されたプログラムやデータを用いて、グラフィックス処理装置100全体の制御を行う。   The CPU 101 controls the entire graphics processing apparatus 100 using, for example, programs and data stored in the ROM 103 or the external memory 104.

RAM102は、SDRAM、DRAMなどによって構成され、ROM103或いは外部メモリ104からロードされたプログラムやデータを一時的に記憶するエリアを備えるとともに、CPU101が各種の処理を行うために必要とするワークエリアを備える。   The RAM 102 includes SDRAM, DRAM, and the like, and includes an area for temporarily storing programs and data loaded from the ROM 103 or the external memory 104 and a work area necessary for the CPU 101 to perform various processes. .

ROM103は、変更を必要としないプログラムや各種のパラメータ等の情報などを格納している。   The ROM 103 stores information such as programs that do not need to be changed and various parameters.

外部メモリ104は、例えば、オペレーティングシステム(OS)やCPUが実行するプログラム、更には本実施形態の説明において既知としている情報などを記憶している。   The external memory 104 stores, for example, an operating system (OS), a program executed by the CPU, and information known in the description of the present embodiment.

入力デバイス105は、例えば、マウスやキーボード等を具備して構成されており、ユーザがグラフィックス処理装置100に対して各種の指示を行う際に操作され、当該指示をCPU101等に入力する。   The input device 105 includes, for example, a mouse, a keyboard, and the like. The input device 105 is operated when a user gives various instructions to the graphics processing apparatus 100 and inputs the instructions to the CPU 101 or the like.

表示部106は、例えば、モニタ等を具備して構成されており、CPU101の制御に基づいて、前記プログラムによって描画された表示画面をモニタに出力する。   The display unit 106 includes, for example, a monitor and outputs a display screen drawn by the program to the monitor based on the control of the CPU 101.

通信I/F107は、グラフィックス処理装置100と外部装置との間で行われる各種の情報やデータの送受信を司るものである。   The communication I / F 107 controls transmission / reception of various information and data performed between the graphics processing apparatus 100 and an external apparatus.

バス108は、CPU101、RAM102、ROM103、外部メモリ104、入力デバイス105、表示部106及び通信I/F107を相互に通信可能に接続する。   The bus 108 connects the CPU 101, the RAM 102, the ROM 103, the external memory 104, the input device 105, the display unit 106, and the communication I / F 107 so that they can communicate with each other.

次に、グラフィックス処理装置100の機能構成について説明する。
図2は、本発明の実施形態に係るグラフィックス処理装置の機能構成の一例を示すブロック図である。ここで、図2において、図1と同様の機能の構成については、同じ符号を付している。
Next, a functional configuration of the graphics processing apparatus 100 will be described.
FIG. 2 is a block diagram showing an example of a functional configuration of the graphics processing apparatus according to the embodiment of the present invention. Here, in FIG. 2, the same reference numerals are given to the functional configurations similar to those in FIG. 1.

図2のグラフィックス処理装置100は、二次元グラフィックス描画処理命令受信部201、擬似三次元効果判別部202、三次元オブジェクト描画処理命令生成部203、三次元オブジェクト描画処理命令実行部204の機能構成を有して構成されている。さらに、図2のグラフィックス処理装置100は、二次元グラフィックス描画処理命令実行部205、グラフィックス合成部206、表示部(モニタ)106の機能構成を有して構成されている。   The graphics processing apparatus 100 in FIG. 2 includes functions of a two-dimensional graphics drawing processing command receiving unit 201, a pseudo three-dimensional effect determining unit 202, a three-dimensional object drawing processing command generating unit 203, and a three-dimensional object drawing processing command executing unit 204. It has a configuration. Furthermore, the graphics processing apparatus 100 of FIG. 2 has a functional configuration of a two-dimensional graphics rendering processing instruction execution unit 205, a graphics synthesis unit 206, and a display unit (monitor) 106.

図2の二次元グラフィックス描画処理命令受信部201は、例えば、図1に示すCPU101及びROM103或いは外部メモリ104に記憶されたプログラム、並びに、入力デバイス105或いは通信I/F107から構成される。また、図2の202〜206は、例えば、図1に示すCPU101及びROM103或いは外部メモリ104に記憶されたプログラムから構成される。   2 includes, for example, the CPU 101 and the ROM 103 or the program stored in the external memory 104 shown in FIG. 1, the input device 105, or the communication I / F 107. 2 includes, for example, programs stored in the CPU 101 and the ROM 103 or the external memory 104 shown in FIG.

このグラフィックス処理装置100は、二次元グラフィックス描画処理命令群、及び、投影条件・三次元仮想空間配置情報を入力とし、グラフィックス処理の結果を表示部106に出力するものである。ここで、二次元グラフィックス描画処理命令群、及び、投影条件・三次元仮想空間配置情報は、例えば、入力デバイス105或いは通信I/F107を介して入力される情報である。   The graphics processing apparatus 100 receives a two-dimensional graphics drawing processing instruction group and projection conditions / three-dimensional virtual space layout information as inputs, and outputs the result of the graphics processing to the display unit 106. Here, the two-dimensional graphics rendering command group and the projection condition / three-dimensional virtual space layout information are information input via the input device 105 or the communication I / F 107, for example.

二次元グラフィックス描画処理命令受信部201は、グラフィックス処理装置100に入力された、複数の二次元グラフィックス描画処理命令からなる二次元グラフィックス描画処理命令群を受信して取得する処理を行う。   The two-dimensional graphics drawing processing command receiving unit 201 performs processing for receiving and acquiring a two-dimensional graphics drawing processing command group including a plurality of two-dimensional graphics drawing processing commands input to the graphics processing apparatus 100. .

擬似三次元効果判別部202は、二次元グラフィックス描画処理命令受信部201で取得した二次元グラフィックス描画処理命令群の各二次元グラフィックス描画処理命令ごとに、擬似三次元効果が含まれているか否かを判別する処理を行う。ここで、擬似三次元効果は、二次元グラフィックスで表現されているが、例えば色の濃淡などを用いて三次元オブジェクトのように擬似表現するものをいう。本実施形態においては、擬似三次元効果として、例えば、ベベル効果、エンボス効果及びドロップシャドウ効果のいずれかを用いることが好適である。   The pseudo three-dimensional effect determination unit 202 includes a pseudo three-dimensional effect for each two-dimensional graphics drawing processing command of the two-dimensional graphics drawing processing command group acquired by the two-dimensional graphics drawing processing command receiving unit 201. Processing to determine whether or not there is. Here, although the pseudo three-dimensional effect is expressed by two-dimensional graphics, for example, the pseudo-three-dimensional effect is expressed as a three-dimensional object using color shading. In the present embodiment, for example, any one of a bevel effect, an emboss effect, and a drop shadow effect is preferably used as the pseudo three-dimensional effect.

三次元オブジェクト描画処理命令生成部203は、擬似三次元効果判別部202において二次元グラフィックス描画処理命令に擬似三次元効果が含まれていると判別された場合に、当該擬似三次元効果に基づく三次元オブジェクト描画処理命令を生成する。   The three-dimensional object drawing processing command generation unit 203 is based on the pseudo three-dimensional effect when the pseudo three-dimensional effect determination unit 202 determines that the two-dimensional graphics drawing processing command includes a pseudo three-dimensional effect. Generate a 3D object drawing processing command.

三次元オブジェクト描画処理命令実行部204は、入力された投影条件と三次元仮想空間配置情報に基づいて、三次元オブジェクト描画処理命令生成部203で生成された三次元オブジェクト描画処理命令を実行する描画処理を行う。より詳細に、三次元オブジェクト描画処理命令実行部204は、三次元オブジェクトを三次元仮想空間内に配置して、レンダリング処理(具体的には、三次元グラフィックスの描画処理)を行う。   The three-dimensional object drawing processing command execution unit 204 executes drawing that executes the three-dimensional object drawing processing command generated by the three-dimensional object drawing processing command generation unit 203 based on the input projection condition and three-dimensional virtual space layout information. Process. More specifically, the three-dimensional object drawing processing instruction execution unit 204 arranges the three-dimensional object in the three-dimensional virtual space and performs a rendering process (specifically, a three-dimensional graphics drawing process).

二次元グラフィックス描画処理命令実行部205は、擬似三次元効果判別部202において二次元グラフィックス描画処理命令に擬似三次元効果が含まれていないと判別された場合に、当該二次元グラフィックス描画処理命令を実行する描画処理を行う。具体的に、二次元グラフィックス描画処理命令実行部205は、入力された投影条件と三次元仮想空間配置情報に基づいて、当該二次元グラフィックス描画処理命令を実行して、例えばビットマップを生成する処理を行う。   The two-dimensional graphics drawing processing command execution unit 205 performs the two-dimensional graphics drawing when the pseudo three-dimensional effect determination unit 202 determines that the two-dimensional graphics drawing processing command does not include a pseudo three-dimensional effect. Performs drawing processing to execute processing instructions. Specifically, the 2D graphics rendering processing command execution unit 205 executes the 2D graphics rendering processing command based on the input projection conditions and 3D virtual space layout information, and generates, for example, a bitmap. Perform the process.

グラフィックス合成部206は、投影条件に基づいて、二次元グラフィックス描画処理命令実行部205による二次元グラフィックス描画処理結果と三次元オブジェクト描画処理命令実行部204による三次元オブジェクト描画処理結果を合成する合成処理を行う。例えば、グラフィックス合成部206は、投影条件に基づいて、二次元グラフィックス描画処理結果と三次元オブジェクト描画処理結果とを、三次元仮想空間内に配置し平面に投影して、合成処理を行う。そして、グラフィックス合成部206は、合成処理結果を表示部(モニタ)106に表示出力する。   The graphics synthesis unit 206 synthesizes the two-dimensional graphics drawing processing result by the two-dimensional graphics drawing processing command execution unit 205 and the three-dimensional object drawing processing result by the three-dimensional object drawing processing command execution unit 204 based on the projection conditions. Perform the synthesis process. For example, the graphics composition unit 206 performs composition processing by arranging a two-dimensional graphics drawing processing result and a three-dimensional object drawing processing result in a three-dimensional virtual space and projecting them on a plane based on the projection conditions. . Then, the graphics synthesis unit 206 displays and outputs the synthesis processing result on the display unit (monitor) 106.

次に、グラフィックス処理装置100によるグラフィックス処理方法の処理手順について説明する。
図3は、本発明の実施形態に係るグラフィックス処理装置によるグラフィックス処理方法の処理手順の一例を示すフローチャートである。
Next, a processing procedure of a graphics processing method performed by the graphics processing apparatus 100 will be described.
FIG. 3 is a flowchart showing an example of a processing procedure of the graphics processing method by the graphics processing apparatus according to the embodiment of the present invention.

まず、ステップS301において、二次元グラフィックス描画処理命令受信部201は、複数の二次元グラフィックス描画処理命令からなる二次元グラフィックス描画処理命令群を取得する処理を行う。   First, in step S301, the two-dimensional graphics drawing processing command receiving unit 201 performs processing for acquiring a two-dimensional graphics drawing processing command group including a plurality of two-dimensional graphics drawing processing commands.

続いて、ステップS302において、擬似三次元効果判別部202は、ステップS301で受信した二次元グラフィックス描画処理命令群のうちの1つの二次元グラフィックス描画処理命令について、擬似三次元効果が含まれているか否かを判断する。   Subsequently, in step S302, the pseudo three-dimensional effect determination unit 202 includes a pseudo three-dimensional effect for one two-dimensional graphics drawing processing command in the two-dimensional graphics drawing processing command group received in step S301. Judge whether or not.

ここで、擬似三次元効果が含まれている二次元グラフィックス描画処理命令について説明する。本実施形態では、二次元グラフィックス描画処理命令は、ベクトルグラフィックス描画処理命令であり、ここでは、矩形状に擬似三次元効果として上向きベベル効果を付加したものであるとする。   Here, the two-dimensional graphics drawing processing command including the pseudo three-dimensional effect will be described. In the present embodiment, the two-dimensional graphics drawing processing command is a vector graphics drawing processing command, and here, it is assumed that an upward bevel effect is added as a pseudo three-dimensional effect in a rectangular shape.

図4は、本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果の一例を示す模式図である。ここで、図4には、擬似三次元効果として、上向きベベル効果の例が示されている。   FIG. 4 is a schematic diagram illustrating an example of the pseudo three-dimensional effect according to the two-dimensional graphics rendering processing command according to the embodiment of the present invention. Here, FIG. 4 shows an example of the upward bevel effect as the pseudo three-dimensional effect.

図4(a)に示したように、矩形の二次元グラフィックス描画処理命令は、輪郭と塗りつぶしを行うものである。また、上向きベベル効果は、図形の輪郭に対してハイライトと影を付けて、浮き彫りのような立体感を与え、錐台のように表現する効果である。矩形の二次元グラフィックス描画処理命令において上向きベベル効果を付加して描画処理を行うと、図4(b)に示す描画処理結果となる。   As shown in FIG. 4A, the rectangular two-dimensional graphics drawing processing command performs contouring and painting. Further, the upward bevel effect is an effect in which highlights and shadows are added to the contour of a figure to give a three-dimensional feeling like relief, and to express like a frustum. When the drawing process is performed with the upward bevel effect added in the rectangular two-dimensional graphics drawing processing command, the drawing processing result shown in FIG. 4B is obtained.

ここで、上向きベベル効果の処理方法について説明する。
図4において、矩形ABCDを縮小し、中心が一致し、矩形ABCDの描画色と一致するような矩形EFGH(図4(b))を生成する。ここで、描画色は、RGBカラーモデルで表現するものとし、ここでは、RGBのそれぞれを50%に設定した灰色であるとする。また、縮小率は、上向きベベル効果のパラメータで指定されるものであり、ここでは80%とする。また、図4(b)に示す、AE、BF、CG、DHを線分で結ぶことによって、4つの台形が生成される。そして、4つの台形のうち、台形ABFE及び台形DAEHを、ハイライト領域として矩形EFGHの描画色よりも明るい色に設定、ここでは、RGBのそれぞれを75%とした明るい灰色に設定する。また、台形BCGF及び台形CDHGを、陰領域として矩形EFGHの描画色よりも暗い色に設定、ここでは、RGBのそれぞれを25%とした暗めの灰色に設定する。
Here, a processing method of the upward bevel effect will be described.
In FIG. 4, the rectangle ABCD is reduced to generate a rectangle EFGH (FIG. 4B) that matches the center and matches the drawing color of the rectangle ABCD. Here, the drawing color is represented by the RGB color model, and here, it is assumed that each of RGB is gray with 50% set. The reduction ratio is specified by the parameter of the upward bevel effect, and is 80% here. Moreover, four trapezoids are produced | generated by connecting AE, BF, CG, and DH shown in FIG.4 (b) with a line segment. Of the four trapezoids, the trapezoid ABFE and the trapezoid DAEH are set as highlight regions in a lighter color than the drawing color of the rectangle EFGH, and in this case, the light is set in light gray with 75% of each of RGB. Further, the trapezoid BCGF and the trapezoid CDHG are set to darker colors than the drawing color of the rectangle EFGH as shadow areas, and here, each of RGB is set to a dark gray with 25%.

以上により、二次元グラフィックス処理において、矩形描画処理に対する擬似三次元効果として、上向きベベル効果が実現される。   As described above, in the two-dimensional graphics processing, the upward bevel effect is realized as a pseudo three-dimensional effect for the rectangular drawing processing.

ここで、再び、図3の説明に戻る。
ステップS302の判断の結果、ステップS301で受信し、処理対象の二次元グラフィックス描画処理命令に擬似三次元効果が含まれている場合には、ステップS303に進む。
Here, it returns to description of FIG. 3 again.
As a result of the determination in step S302, if the received two-dimensional graphics rendering processing command received in step S301 includes a pseudo three-dimensional effect, the process proceeds to step S303.

ステップS303に進むと、三次元オブジェクト描画処理命令生成部203は、三次元オブジェクト描画処理命令を生成する処理を行う。上向きベベル効果は、前述したように、錐台を二次元グラフィックスで表現する効果であり、ここでは、錐台を三次元オブジェクトとして表現する。この三次元オブジェクトとして錐台を生成する方法について、以下に説明する。   In step S303, the three-dimensional object drawing processing command generation unit 203 performs processing for generating a three-dimensional object drawing processing command. As described above, the upward bevel effect is an effect of representing the frustum with two-dimensional graphics, and here, the frustum is represented as a three-dimensional object. A method for generating a frustum as the three-dimensional object will be described below.

図5は、本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果を三次元オブジェクトに変換する方法の一例を示す模式図である。ここで、図5には、擬似三次元効果として、上向きベベル効果の例が示されている。   FIG. 5 is a schematic diagram illustrating an example of a method for converting a pseudo three-dimensional effect related to a two-dimensional graphics rendering processing command into a three-dimensional object according to the embodiment of the present invention. Here, FIG. 5 shows an example of the upward bevel effect as the pseudo three-dimensional effect.

まず、図5に示XYZ直交三次元空間に、図4(a)に示したものと同じ矩形ABCDをXY平面上に配置する。次に、図4(b)に示したものと同様に、矩形ABCDを縮小した矩形EFGHを、中心が矩形ABCDの中心とX座標及びY座標が一致するように、Z=z0となる平面に配置する。ここで、z0は、z0>0を満たす実数であり、矩形ABCDの各辺の長さに比べて小さくなるような値が望ましい。そして、線分AE、線分BF、線分CG、線分DHを結ぶことにより、三次元オブジェクトとしての錐台が生成される。   First, the same rectangular ABCD as shown in FIG. 4A is arranged on the XY plane in the XYZ orthogonal three-dimensional space shown in FIG. Next, in the same manner as shown in FIG. 4B, the rectangle EFGH obtained by reducing the rectangle ABCD is placed on a plane where Z = z0 so that the X coordinate and the Y coordinate coincide with the center of the rectangle ABCD. Deploy. Here, z0 is a real number that satisfies z0> 0, and is preferably a value that is smaller than the length of each side of the rectangle ABCD. Then, by connecting the line segment AE, the line segment BF, the line segment CG, and the line segment DH, a frustum as a three-dimensional object is generated.

図5(a)は、錐台を斜めから見て平行投影させた図である。また、図5(b)は、同じ錐台をZ軸の正方向から見た平面図である。また、図5(c)は、同じ錐台をY軸の負方向から見た正面図である。以上のように、錐台を構成する面を決定したので、その決定された面を描画する三次元オブジェクト描画処理命令を生成することで、図3のステップS303の処理が行われる。   FIG. 5A is a diagram in which the frustum is projected in parallel when viewed obliquely. FIG. 5B is a plan view of the same frustum viewed from the positive direction of the Z axis. FIG. 5C is a front view of the same frustum viewed from the negative direction of the Y axis. As described above, since the surfaces constituting the frustum are determined, the process of step S303 in FIG. 3 is performed by generating a three-dimensional object drawing processing command for drawing the determined surfaces.

ここで、再び、図3の説明に戻る。
ステップS303の処理が終了すると、ステップS304に進む。
ステップS304に進むと、三次元オブジェクト描画処理命令実行部204は、入力された投影条件と三次元仮想空間配置情報に基づいて、三次元オブジェクト描画処理命令生成部203で生成された三次元オブジェクト描画処理命令を実行する描画処理を行う。ここで、三次元仮想空間配置情報は、二次元グラフィックスを配置する三次元仮想空間内の平面に関する情報であり、本実施形態では、XY平面を始域とした写像として、三次元アフィン変換行列で表現される。
Here, it returns to description of FIG. 3 again.
When the process of step S303 ends, the process proceeds to step S304.
In step S304, the 3D object drawing processing command execution unit 204 generates the 3D object drawing processing command generated by the 3D object drawing processing command generation unit 203 based on the input projection condition and 3D virtual space layout information. Performs drawing processing to execute processing instructions. Here, the three-dimensional virtual space arrangement information is information regarding a plane in the three-dimensional virtual space in which two-dimensional graphics are arranged, and in this embodiment, a three-dimensional affine transformation matrix is used as a mapping with the XY plane as a start area. It is expressed by

図6は、本発明の実施形態を示し、二次元グラフィックス描画処理命令と三次元仮想空間配置情報との関係の一例を示す模式図である。具体的に、図6には、XY平面上の矩形PQRSが、三次元アフィン変換によって三次元仮想空間内に配置され、矩形P'Q'R'S'に写像されることが示されている。   FIG. 6 is a schematic diagram illustrating an example of a relationship between a two-dimensional graphics rendering processing instruction and three-dimensional virtual space arrangement information according to the embodiment of this invention. Specifically, FIG. 6 shows that a rectangle PQRS on the XY plane is arranged in a three-dimensional virtual space by three-dimensional affine transformation and mapped to a rectangle P′Q′R ′S ′. .

図6の矩形PQRSは、PがY軸上に、RがX軸上に、Qが原点Oと一致する位置にある。この図6に示す写像の例では、矩形PQRSを、Y軸周りに回転させ、X軸の正方向、Z軸の負方向に平行移動させて、PがP'に、QがQ'、RがR'、SがS'にそれぞれ写像されている。また、投影条件は、視点の位置、投影面、投影法によって決定される条件であり、ここでは視点の位置をZ軸上の正方向の点、投影面をXY平面であるとし、透視投影法を使用することにする。   The rectangle PQRS in FIG. 6 is at a position where P is on the Y axis, R is on the X axis, and Q is coincident with the origin O. In the example of the mapping shown in FIG. 6, the rectangle PQRS is rotated around the Y axis and translated in the positive direction of the X axis and the negative direction of the Z axis, so that P is P ′, Q is Q ′, R Is mapped to R ′ and S is mapped to S ′. The projection conditions are conditions determined by the position of the viewpoint, the projection plane, and the projection method. Here, it is assumed that the viewpoint position is a positive point on the Z axis and the projection plane is the XY plane, and the perspective projection method. Will be used.

そして、ステップS304では、以上のように表現された三次元仮想空間内配置情報と投影条件に基づき、ステップ303で生成した三次元オブジェクト描画処理命令を実行する。ここでは、具体的に、ステップ303で生成された三次元オブジェクトを前述した写像に従って、Y軸周りに回転、X軸の正方向、Z軸の負方向に平行移動して配置して描画処理を実行する。そして、三次元オブジェクト描画処理命令実行部204は、三次元オブジェクト描画処理命令の描画処理結果を、グラフィックス合成部206に出力する。   In step S304, the three-dimensional object drawing processing command generated in step 303 is executed based on the three-dimensional virtual space arrangement information and the projection conditions expressed as described above. Here, specifically, the three-dimensional object generated in step 303 is rotated around the Y axis according to the above-mentioned mapping, translated in the positive direction of the X axis, and moved in the negative direction of the Z axis, and arranged for drawing processing. Execute. Then, the 3D object drawing process command execution unit 204 outputs the drawing process result of the 3D object drawing process command to the graphics synthesis unit 206.

図7は、本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令が、三次元仮想空間配置情報によって配置される様子の一例を示す模式図である。
具体的に、図7(a)に、上述した写像により配置された処理結果の一例を示し、図7(b)に、投影条件により実際に描画された結果の一例を示す。
FIG. 7 is a schematic diagram showing an embodiment of the present invention and showing an example of a state in which a two-dimensional graphics drawing processing instruction including a pseudo three-dimensional effect is arranged according to three-dimensional virtual space arrangement information.
Specifically, FIG. 7A shows an example of a processing result arranged by the above-described mapping, and FIG. 7B shows an example of a result actually drawn by the projection condition.

ここで、再び、図3の説明に戻る。
ステップS302の判断の結果、ステップS301で受信し、処理対象の二次元グラフィックス描画処理命令に擬似三次元効果が含まれていない場合には、ステップS305に進む。
Here, it returns to description of FIG. 3 again.
As a result of the determination in step S302, if the received two-dimensional graphics rendering processing command received in step S301 does not include a pseudo three-dimensional effect, the process proceeds to step S305.

ステップS305に進むと、三次元オブジェクトは生成せずに、二次元グラフィックス描画処理命令実行部205は、入力された投影条件と三次元仮想空間配置情報に基づいて、二次元グラフィックス描画処理命令を実行する描画処理を行う。具体的に、ステップS305では、二次元グラフィックスを三次元仮想空間に配置して描画する処理が行われる。以下に、ステップS305の詳細な処理例について説明する。   In step S305, the 2D graphics drawing processing command execution unit 205 generates a 2D graphics drawing processing command based on the input projection condition and 3D virtual space layout information without generating a 3D object. The drawing process is executed. Specifically, in step S305, processing for arranging and drawing two-dimensional graphics in a three-dimensional virtual space is performed. Hereinafter, a detailed processing example of step S305 will be described.

まず、二次元グラフィックス描画処理命令実行部205は、二次元グラフィックス描画処理命令を実行して、その結果を二次元のピクセルデータとして取得する。次に、二次元グラフィックス描画処理命令実行部205は、三次元仮想空間内の二次元グラフィックスを配置するべき位置に矩形のオブジェクトを配置する。ここで、矩形の位置は、前述の通り、入力された三次元仮想空間配置情報によって決定される。次に、二次元グラフィックス描画処理命令実行部205は、その矩形の三次元オブジェクトに対して、テクスチャとして二次元ピクセルデータを貼り付けるテクスチャマッピング処理を行う。以上の処理によって、二次元グラフィックス描画処理命令実行部205は、三次元仮想空間内への二次元グラフィックスの描画処理を完了する。その後、二次元グラフィックス描画処理命令実行部205は、二次元グラフィックス描画処理命令の描画処理結果を、グラフィックス合成部206に出力する。   First, the two-dimensional graphics drawing processing command execution unit 205 executes a two-dimensional graphics drawing processing command and acquires the result as two-dimensional pixel data. Next, the two-dimensional graphics drawing processing instruction execution unit 205 arranges a rectangular object at a position where the two-dimensional graphics are to be arranged in the three-dimensional virtual space. Here, the position of the rectangle is determined by the input three-dimensional virtual space arrangement information as described above. Next, the two-dimensional graphics drawing processing command execution unit 205 performs texture mapping processing for pasting the two-dimensional pixel data as a texture on the rectangular three-dimensional object. With the above processing, the two-dimensional graphics drawing processing instruction execution unit 205 completes the drawing processing of the two-dimensional graphics in the three-dimensional virtual space. Thereafter, the two-dimensional graphics drawing processing command execution unit 205 outputs the drawing processing result of the two-dimensional graphics drawing processing command to the graphics synthesis unit 206.

ステップS304又はS305の処理が終了すると、グラフィックス合成部206は、ステップS304又はS305で処理された描画処理結果を保持する。
そして、ステップS306において、グラフィックス合成部206は、擬似三次元効果判別部202と通信を行ってステップS301で取得した二次元グラフィックス描画処理命令群の全ての二次元グラフィックス描画処理命令の処理を終了したか否かを判断する。
When the process of step S304 or S305 ends, the graphics composition unit 206 holds the drawing process result processed in step S304 or S305.
In step S306, the graphics composition unit 206 communicates with the pseudo three-dimensional effect determination unit 202 to process all the two-dimensional graphics drawing processing commands in the two-dimensional graphics drawing processing command group acquired in step S301. It is determined whether or not.

ステップS306の判断の結果、ステップS301で取得した二次元グラフィックス描画処理命令群の全ての二次元グラフィックス描画処理命令の処理については、未だ終了していない場合には、ステップS302に戻る。そして、未処理の二次元グラフィックス描画処理命令を処理対象として、ステップS302以降の処理を再度行う。   As a result of the determination in step S306, if the processing of all the 2D graphics rendering processing commands in the 2D graphics rendering processing command group acquired in step S301 has not been completed yet, the processing returns to step S302. Then, the processing after step S302 is performed again with the unprocessed two-dimensional graphics rendering processing command as the processing target.

一方、ステップS306の判断の結果、ステップS301で取得した二次元グラフィックス描画処理命令群の全ての二次元グラフィックス描画処理命令の処理を終了した場合には、ステップS307に進む。   On the other hand, as a result of the determination in step S306, if the processing of all the two-dimensional graphics drawing processing commands in the two-dimensional graphics drawing processing command group acquired in step S301 is completed, the process proceeds to step S307.

ステップS307に進むと、グラフィックス合成部206は、ステップS301で取得した二次元グラフィックス描画処理命令群の全ての二次元グラフィックス描画処理命令に基づく描画処理結果について、グラフィックス合成処理を行う。   In step S307, the graphics compositing unit 206 performs graphics compositing processing on the rendering processing results based on all the two-dimensional graphics rendering processing commands in the two-dimensional graphics rendering processing command group acquired in step S301.

続いて、ステップS308において、グラフィックス合成部206は、ステップS307でグラフィックス合成処理を行った処理結果を、表示部(モニタ)106に表示する処理を行う。その後、図3に示すフローチャートにおける処理が終了する。   Subsequently, in step S <b> 308, the graphics composition unit 206 performs processing for displaying the processing result obtained by performing the graphics composition processing in step S <b> 307 on the display unit (monitor) 106. Thereafter, the processing in the flowchart shown in FIG. 3 ends.

次に、擬似三次元効果を含む二次元グラフィックスと、擬似三次元効果を含まない二次元グラフィックスとが混在するグラフィックスについて、本実施形態を適用した場合について説明する。   Next, a case where the present embodiment is applied to graphics in which two-dimensional graphics including a pseudo three-dimensional effect and two-dimensional graphics not including a pseudo three-dimensional effect are mixed will be described.

この場合、グラフィックス合成部206は、ステップS307において、三次元グラフィックス描画処理結果と二次元グラフィックス描画処理結果を合成する処理を行うことになる。この際の合成処理は、例えば、Zオーダー法を用いて、視点に近い方のオブジェクトが可視状態になるようにして行われる。即ち、グラフィックス合成部206による合成処理は、三次元仮想空間内に配置された複数のオブジェクトを隠面処理して行われる。   In this case, the graphics synthesis unit 206 performs a process of synthesizing the 3D graphics rendering process result and the 2D graphics rendering process result in step S307. The combining process at this time is performed, for example, using the Z order method so that the object closer to the viewpoint becomes visible. That is, the composition processing by the graphics composition unit 206 is performed by performing hidden surface processing on a plurality of objects arranged in the three-dimensional virtual space.

図8は、本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令と擬似三次元効果を含まない二次元グラフィックス描画処理命令とを含む二次元グラフィックス描画処理命令群の描画処理結果の一例を示す模式図である。具体的に、図8には、擬似三次元効果として上向きベベル効果を含む二次元グラフィックスと、擬似三次元効果を含まない二次元グラフィックスとが混在したグラフィックスの一例が示されている。   FIG. 8 shows an embodiment of the present invention, and a two-dimensional graphics drawing processing instruction including a two-dimensional graphics drawing processing instruction including a pseudo three-dimensional effect and a two-dimensional graphics drawing processing instruction not including a pseudo three-dimensional effect. It is a schematic diagram which shows an example of the drawing process result of a group. Specifically, FIG. 8 shows an example of graphics in which two-dimensional graphics including an upward bevel effect as pseudo three-dimensional effects and two-dimensional graphics not including pseudo three-dimensional effects are mixed.

図8(a)において、グラフィックスは、背景801と、擬似三次元効果なし二次元グラフィックス802と、上向きベベル効果つき二次元グラフィックス803から構成されている。これらを三次元仮想空間に配置して描画する場合、背景801及び擬似三次元効果なし二次元グラフィックス802は、同一平面上に描画される。また、上向きベベル効果つき二次元グラフィックス803は、三次元グラフィックスオブジェクトに置き換えられる。その結果、図8(b)に示すように、背景801、擬似三次元効果なし二次元グラフィックス802及び三次元グラフィックス804を合成した描画結果が生成される。   In FIG. 8A, the graphics are composed of a background 801, two-dimensional graphics 802 without a pseudo three-dimensional effect, and two-dimensional graphics 803 with an upward bevel effect. When these are arranged and drawn in the three-dimensional virtual space, the background 801 and the two-dimensional graphics 802 without the pseudo three-dimensional effect are drawn on the same plane. Also, the two-dimensional graphics 803 with the upward bevel effect are replaced with a three-dimensional graphics object. As a result, as shown in FIG. 8B, a drawing result is generated by synthesizing the background 801, the two-dimensional graphics 802 having no pseudo three-dimensional effect, and the three-dimensional graphics 804.

ここでは、擬似三次元効果として上向きベベル効果について説明したが、他の擬似三次元効果を適用することも可能であり、例えば、下向きベベル効果を適用してもよい。ここで、下向きベベル効果は、正対した二次元グラフィックスが、奥行き方向に凹んで見えるように処理する効果のことである。   Here, the upward bevel effect has been described as the pseudo three-dimensional effect, but other pseudo three-dimensional effects can also be applied. For example, the downward bevel effect may be applied. Here, the downward bevel effect is an effect of processing so that two-dimensional graphics facing each other appear to be recessed in the depth direction.

ここで、二次元グラフィックス描画処理命令が、二次元ベクトルグラフィックスであり、下向きベベル効果を含む矩形描画命令の処理例について説明する。   Here, a processing example of a rectangular drawing command including a downward bevel effect when the two-dimensional graphics drawing processing command is two-dimensional vector graphics will be described.

図9は、本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果の一例を示す模式図であり、具体的に、図9には、擬似三次元効果として、下向きベベル効果の例が示されている。   FIG. 9 is a schematic diagram illustrating an example of a pseudo three-dimensional effect related to a two-dimensional graphics rendering processing instruction according to the embodiment of the present invention. Specifically, FIG. An example of the bevel effect is shown.

図9(a)に示したように、矩形の二次元グラフィックス描画処理命令は、輪郭と塗りつぶしを行うものである。また、下向きベベル効果は、図形の輪郭に対してハイライトと影を付けることで実現している。矩形の二次元グラフィックス描画処理命令において下向きベベル効果を付加して描画処理を行うと、図9(b)に示す描画処理結果となる。   As shown in FIG. 9 (a), the rectangular two-dimensional graphics drawing processing command performs contouring and painting. The downward bevel effect is realized by adding highlights and shadows to the contour of the figure. When the drawing process is performed with the downward bevel effect added in the rectangular two-dimensional graphics drawing processing command, the drawing processing result shown in FIG. 9B is obtained.

ここで、下向きベベル効果の処理方法について説明する。
図9において、矩形ABCDを縮小し、中心が一致し、矩形ABCDの描画色と一致するような矩形EFGH(図9(b))を生成する。ここで、描画色は、RGBカラーモデルで表現するものとし、ここでは、RGBのそれぞれを50%に設定した灰色であるとする。また、縮小率は、下向きベベル効果のパラメータで指定されるものであり、ここでは80%とする。また、図9(b)に示す、AE、BF、CG、DHを線分で結ぶことによって、4つの台形が生成される。そして、4つの台形のうち、台形ABFE及び台形DAEHを、陰領域として矩形EFGHの描画色よりも暗い色に設定、ここでは、RGBのそれぞれを25%とした暗めの灰色に設定する。また、台形BCGF及び台形CDHGを、ハイライト領域として矩形EFGHの描画色より明るい色に設定、ここでは、RGBのそれぞれを75%とした明るい灰色に設定する。
Here, a processing method of the downward bevel effect will be described.
In FIG. 9, the rectangle ABCD is reduced, and a rectangle EFGH (FIG. 9B) is generated so that the centers match and the drawing color of the rectangle ABCD matches. Here, the drawing color is represented by the RGB color model, and here, it is assumed that each of RGB is gray with 50% set. The reduction ratio is specified by the parameter of the downward bevel effect, and is 80% here. Moreover, four trapezoids are produced | generated by connecting AE, BF, CG, and DH shown in FIG.9 (b) with a line segment. Of the four trapezoids, the trapezoid ABFE and the trapezoid DAEH are set to darker colors than the drawing color of the rectangle EFGH as shadow areas, and here, each of RGB is set to a dark gray with 25%. In addition, the trapezoid BCGF and the trapezoid CDHG are set to a lighter color than the drawing color of the rectangle EFGH as the highlight region, and here, the light is set to be light gray with 75% of each of RGB.

以上により、二次元グラフィックス処理において、矩形描画処理に対する擬似三次元効果として、下向きベベル効果が実現される。   As described above, in the two-dimensional graphics processing, the downward bevel effect is realized as a pseudo three-dimensional effect for the rectangular drawing processing.

図10は、本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令と擬似三次元効果を含まない二次元グラフィックス描画処理命令とを含む二次元グラフィックス描画処理命令群の描画処理結果の一例を示す模式図である。具体的に、図10には、擬似三次元効果として下向きベベル効果を含む二次元グラフィックスと、擬似三次元効果を含まない二次元グラフィックスとが混在したグラフィックスの一例が示されている。   FIG. 10 shows an embodiment of the present invention, and a two-dimensional graphics drawing processing instruction including a two-dimensional graphics drawing processing instruction including a pseudo three-dimensional effect and a two-dimensional graphics drawing processing instruction not including a pseudo three-dimensional effect. It is a schematic diagram which shows an example of the drawing process result of a group. Specifically, FIG. 10 shows an example of graphics in which two-dimensional graphics including a downward bevel effect as pseudo three-dimensional effects and two-dimensional graphics not including pseudo three-dimensional effects are mixed.

図10(a)において、グラフィックスは、背景1001と、擬似三次元効果なし二次元グラフィックス1002と、下向きベベル効果つき二次元グラフィックス1003から構成されている。これらを三次元仮想空間に配置して描画する場合、背景1001及び擬似三次元効果なし二次元グラフィックス1002は、同一平面上に描画される。また、下向きベベル効果つき二次元グラフィックス1003は、三次元グラフィックスオブジェクトに置き換えられる。その結果、図10(b)に示すように、背景1001、擬似三次元効果なし二次元グラフィックス1002及び三次元グラフィックス1004を合成した描画結果が生成される。   In FIG. 10A, the graphics are composed of a background 1001, two-dimensional graphics 1002 without a pseudo three-dimensional effect, and two-dimensional graphics 1003 with a downward bevel effect. When these are arranged and drawn in the three-dimensional virtual space, the background 1001 and the two-dimensional graphics 1002 without the pseudo three-dimensional effect are drawn on the same plane. Also, the two-dimensional graphics 1003 with the downward bevel effect is replaced with a three-dimensional graphics object. As a result, as shown in FIG. 10B, a rendering result is generated by synthesizing the background 1001, the two-dimensional graphics 1002 without pseudo three-dimensional effect, and the three-dimensional graphics 1004.

また、擬似三次元効果として、ドロップシャドウ効果を適用することも可能である。ここで、ドロップシャドウ効果は、正対した二次元グラフィックスの背面に、同じ形状で黒色のオブジェクトを上下左右に微量にずらして配置することにより、二次元グラフィックスが手前に浮き上がって見える効果のことである。   Moreover, it is also possible to apply a drop shadow effect as a pseudo three-dimensional effect. Here, the drop shadow effect is the effect that the two-dimensional graphics appear to float up by placing the black object with the same shape on the back of the two-dimensional graphics facing each other with a slight shift up and down and left and right. That is.

ここで、二次元グラフィックス描画処理命令が、二次元ベクトルグラフィックスであり、ドロップシャドウ効果を含む矩形描画処理命令の処理例について説明する。   Here, the processing example of the rectangular drawing processing command including the drop shadow effect will be described in which the two-dimensional graphics drawing processing command is two-dimensional vector graphics.

図11は、本発明の実施形態を示し、二次元グラフィックス描画処理命令に係る擬似三次元効果の一例を示す模式図であり、具体的に、図11には、擬似三次元効果としてドロップシャドウ効果の例が示されている。   FIG. 11 is a schematic diagram illustrating an example of a pseudo three-dimensional effect related to a two-dimensional graphics rendering processing instruction according to the embodiment of the present invention. Specifically, FIG. 11 illustrates a drop shadow as a pseudo three-dimensional effect. An example of the effect is shown.

図11(a)に示したように、矩形の二次元グラフィックス描画処理命令は、輪郭と塗りつぶしを行うものである。また、ドロップシャドウ効果は、同じ大きさの矩形を黒色の影として背面に描画して配置することで実現している。矩形の二次元グラフィックス描画処理命令においてドロップシャドウ効果を付加して描画処理を行うと、図11(b)に示す描画処理結果となる。   As shown in FIG. 11 (a), the rectangular two-dimensional graphics drawing processing command performs contouring and painting. The drop shadow effect is realized by drawing and arranging a rectangle of the same size as a black shadow on the back surface. If the drawing process is performed by adding the drop shadow effect in the rectangular two-dimensional graphics drawing processing command, the drawing processing result shown in FIG. 11B is obtained.

ここで、ドロップシャドウ効果の処理方法について説明する。
図11において、矩形ABCDを描画する二次元グラフィックス描画処理命令がドロップシャドウ効果を含んでいる場合、まず、矩形ABCDと同じ形状で黒色の図形をXY軸方向にずらして描画する。これが影の部分になる。ここで、XY軸のずれの大きさは、任意であるが、描画処理を行う図形の大きさに比べて小さい値であることが望ましい。そして、その上に本来描画する矩形の描画処理を行う。なお、黒色の影については、輪郭がはっきりしていると、強い光線が当たっている効果が得られ、輪郭がぼけていると弱い光や環境光を含んだ効果が得られる。
Here, a processing method of the drop shadow effect will be described.
In FIG. 11, when the two-dimensional graphics drawing processing command for drawing the rectangle ABCD includes the drop shadow effect, first, the black figure having the same shape as the rectangle ABCD is drawn while being shifted in the XY axis direction. This is the shadow. Here, the magnitude of the deviation of the XY axes is arbitrary, but is preferably a value smaller than the size of the figure to be drawn. Then, a drawing process of a rectangle to be originally drawn is performed thereon. As for the black shadow, if the outline is clear, an effect of hitting a strong light beam is obtained, and if the outline is blurred, an effect including weak light and ambient light is obtained.

以上により、二次元グラフィックス処理において、矩形描画処理に対する擬似三次元効果として、ドロップシャドウ効果が実現される。   As described above, in the two-dimensional graphics processing, the drop shadow effect is realized as a pseudo three-dimensional effect for the rectangular drawing processing.

図12は、本発明の実施形態を示し、擬似三次元効果を含む二次元グラフィックス描画処理命令と擬似三次元効果を含まない二次元グラフィックス描画処理命令とを含む二次元グラフィックス描画処理命令群の描画処理結果の一例を示す模式図である。具体的に、図12には、擬似三次元効果としてドロップシャドウ効果を含む二次元グラフィックスと、擬似三次元効果を含まない二次元グラフィックスとが混在したグラフィックスの一例が示されている。   FIG. 12 shows an embodiment of the present invention, and a two-dimensional graphics drawing processing instruction including a two-dimensional graphics drawing processing instruction including a pseudo three-dimensional effect and a two-dimensional graphics drawing processing instruction not including a pseudo three-dimensional effect. It is a schematic diagram which shows an example of the drawing process result of a group. Specifically, FIG. 12 shows an example of graphics in which two-dimensional graphics including a drop shadow effect as a pseudo three-dimensional effect and two-dimensional graphics not including a pseudo three-dimensional effect are mixed.

図12(a)において、グラフィックスは、背景1201と、擬似三次元効果なし二次元グラフィックス1202と、ドロップシャドウ効果つき二次元グラフィックス1203から構成されている。これらを三次元仮想空間に配置して描画する場合、背景1201及び擬似三次元効果なし二次元グラフィックス1202は、同一平面上に描画される。また、ドロップシャドウ効果つき二次元グラフィックス1203は、背景1201及び擬似三次元効果なし二次元グラフィックス1202が描画された平面と平行な平面上に配置される。   In FIG. 12A, the graphics are composed of a background 1201, two-dimensional graphics 1202 without a pseudo three-dimensional effect, and two-dimensional graphics 1203 with a drop shadow effect. When these are arranged and drawn in the three-dimensional virtual space, the background 1201 and the two-dimensional graphics 1202 without the pseudo three-dimensional effect are drawn on the same plane. In addition, the two-dimensional graphics 1203 with the drop shadow effect are arranged on a plane parallel to the plane on which the background 1201 and the two-dimensional graphics 1202 without the pseudo three-dimensional effect are drawn.

図13は、本発明の実施形態を示し、ドロップシャドウ効果を含む二次元グラフィックス描画処理命令の処理方法の一例を示す模式図である。具体的に、図13は、図12に示す、背景1201、擬似三次元効果なし二次元グラフィックス1202及びドロップシャドウ効果つき二次元グラフィックス1203を三次元仮想空間に配置する方法についてY軸の正方向から見た図である。   FIG. 13 is a schematic diagram illustrating an example of a processing method of a two-dimensional graphics drawing processing command including the drop shadow effect according to the embodiment of this invention. Specifically, FIG. 13 is a diagram illustrating a method of arranging the background 1201, the two-dimensional graphics 1202 without a pseudo three-dimensional effect, and the two-dimensional graphics 1203 with a drop shadow effect shown in FIG. 12 in a three-dimensional virtual space. It is the figure seen from the direction.

擬似三次元効果のない二次元グラフィックス(例えば、図12の1201及び1202)は、図13の面Qに対して描画される。この面Qは、投影面と一致しており、ここでは、XY平面とも一致している。また、ドロップシャドウ効果つき二次元グラフィックス1203は、矩形描画処理命令が図13の面Pに対して、図13(b)の浮き上がり矩形1205として描画され、また、影1204の描画処理が面Qに対して行われる。ここで、面Pは、面Qと平行であり、Z軸方向に(−d)平行移動した面である。また、dは、0より大きい任意の実数であり、二次元グラフィックスと比較して小さな値であることが望ましい。   Two-dimensional graphics without pseudo three-dimensional effects (for example, 1201 and 1202 in FIG. 12) are drawn on the surface Q in FIG. This plane Q coincides with the projection plane, and here also coincides with the XY plane. Further, in the two-dimensional graphics 1203 with the drop shadow effect, the rectangular drawing processing command is drawn as the floating rectangle 1205 in FIG. 13B on the surface P in FIG. 13, and the drawing processing of the shadow 1204 is performed in the surface Q. To be done. Here, the plane P is a plane parallel to the plane Q and translated (−d) in the Z-axis direction. Further, d is an arbitrary real number larger than 0, and is preferably a small value as compared with two-dimensional graphics.

図12(b)の浮き上がり矩形1205の描画処理は、Z軸方向に(−d)平行移動して処理される。次に、入力された三次元仮想空間配置情報に従って、面P及び面Qを変換処理し、それぞれ、面P'及び面Q'の位置に移動させる。したがって、背景1201、擬似三次元効果なし二次元グラフィックス1202及び影1204は、面Q'に移動し、浮き上がり矩形1205は、面P'に移動する。その結果を投影すると、図12(b)に示す出力結果が得られる。   The drawing process of the floating rectangle 1205 in FIG. 12B is performed by (−d) parallel movement in the Z-axis direction. Next, according to the input three-dimensional virtual space arrangement information, the surface P and the surface Q are converted and moved to the positions of the surface P ′ and the surface Q ′, respectively. Therefore, the background 1201, the two-dimensional graphics 1202 without pseudo three-dimensional effect, and the shadow 1204 move to the plane Q ′, and the raised rectangle 1205 moves to the plane P ′. When the result is projected, the output result shown in FIG. 12B is obtained.

なお、本実施形態では、二次元グラフィックス描画処理命令受信部201で受信し入力する二次元グラフィックス描画処理命令として、二次元ベクトルグラフィックス描画処理命令の例を示したが、本発明においては、これに限定されるものではない。例えば、二次元グラフィックス描画処理命令として、構造化文書で表現されるものを適用することもできる。また、例えば、二次元グラフィックス描画処理命令として、XML(eXtensible Markup Language)やユーザインタフェース記述言語で表現されるものを適用することもできる。また、例えば、二次元グラフィックス描画処理命令として、二次元ベクトルグラフィックスを記述する記述言語であるSVG(Scalable Vector Graphics)で表現されるものを適用することもできる。また、例えば、二次元グラフィックス描画処理命令として、画像データとそれに対する加工方法が記述されている画像フォーマット自体であってもよい。また、例えば、二次元グラフィックス描画処理命令として、ラスタ画像データと当該ラスタ画像データに対する擬似三次元効果を組み合わせた画像データであっても構わない。この際、ラスタ画像データの形式は、ここでは特に限定されない。また、ラスタ画像データから擬似三次元効果を抽出して用いても構わない。   In this embodiment, an example of a two-dimensional vector graphics drawing processing command is shown as the two-dimensional graphics drawing processing command received and input by the two-dimensional graphics drawing processing command receiving unit 201. However, in the present invention, However, the present invention is not limited to this. For example, a two-dimensional graphics drawing processing command that is expressed in a structured document can be applied. In addition, for example, an XML (extensible Markup Language) or a user interface description language can be applied as the two-dimensional graphics rendering processing command. Further, for example, as the two-dimensional graphics drawing processing command, one represented by SVG (Scalable Vector Graphics) which is a description language for describing two-dimensional vector graphics can be applied. Further, for example, the image format itself in which image data and a processing method for the image data are described as the two-dimensional graphics drawing processing command may be used. Further, for example, the two-dimensional graphics drawing processing command may be image data obtained by combining raster image data and a pseudo three-dimensional effect on the raster image data. At this time, the format of the raster image data is not particularly limited here. Further, the pseudo three-dimensional effect may be extracted from the raster image data and used.

また、グラフィックス合成部206では、二次元グラフィックス描画処理命令実行部205で生成されたビットマップを透視変形したものと、三次元オブジェクト描画処理命令実行部204で三次元オブジェクト描画処理命令を実行して平面に投影した結果とを重ねて、合成処理を行うようにしてもよい。   The graphics composition unit 206 executes a perspective transformation of the bitmap generated by the two-dimensional graphics drawing processing command execution unit 205 and the three-dimensional object drawing processing command execution unit 204 executes the three-dimensional object drawing processing command. Then, the composite processing may be performed by superimposing the result projected onto the plane.

上述した例では、擬似三次元効果として、ベベル効果やドロップシャドウ効果について図面を用いて説明を行ったが、例えば、エンボス効果を用いることも可能である。   In the above-described example, the bevel effect and the drop shadow effect have been described using the drawings as the pseudo three-dimensional effect. However, for example, an emboss effect can also be used.

以上、本実施形態のグラフィックス処理装置によれば、二次元グラフィックスで表現された擬似三次元効果に基づくオブジェクトを、正対表示させた時の認識とその表示が整合するようにすることができ、ユーザに誤認させること無く描画することができる。また、ウィンドウ内のユーザインタフェースに適用すれば、三次元仮想空間にウィンドウが配置された場合でも、ユーザインタフェースの状態をユーザが正確に認識することが可能になる。   As described above, according to the graphics processing device of the present embodiment, the recognition when displaying an object based on the pseudo three-dimensional effect expressed in two-dimensional graphics and the display thereof are matched with each other. It is possible to draw without causing the user to misunderstand. Further, if applied to the user interface in the window, the user can accurately recognize the state of the user interface even when the window is arranged in the three-dimensional virtual space.

(本発明の他の実施形態)
前述した本発明の実施形態に係るグラフィックス処理装置を構成する図2の各手段(201〜206)は、コンピュータのCPU(101)が記憶媒体(ROM103或いは外部メモリ104)に記憶されているプログラムを実行することによって実現できる。また、同様に、前述したグラフィックス処理方法を示す図3の各ステップは、コンピュータのCPU(101)が記憶媒体(ROM103或いは外部メモリ104)に記憶されているプログラムを実行することによって実現できる。このプログラム及び当該プログラムを記憶したコンピュータ読み取り可能な記録媒体は本発明に含まれる。
(Other embodiments of the present invention)
2 composing the graphics processing apparatus according to the embodiment of the present invention described above is a program stored in a storage medium (ROM 103 or external memory 104) by a CPU (101) of a computer. It can be realized by executing. Similarly, each step of FIG. 3 showing the above-described graphics processing method can be realized by the CPU (101) of the computer executing a program stored in a storage medium (ROM 103 or external memory 104). This program and a computer-readable recording medium storing the program are included in the present invention.

また、本発明は、例えば、システム、装置、方法、プログラム若しくは記憶媒体等としての実施形態も可能であり、具体的には、複数の機器から構成されるシステムに適用してもよいし、また、1つの機器からなる装置に適用してもよい。   In addition, the present invention can be implemented as, for example, a system, apparatus, method, program, storage medium, or the like. Specifically, the present invention may be applied to a system including a plurality of devices. You may apply to the apparatus which consists of one apparatus.

なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラム(実施形態では図3に示すフローチャートに対応したプログラム)を、システム或いは装置に直接、或いは遠隔から供給するものを含む。そして、そのシステム或いは装置のコンピュータが前記供給されたプログラムコードを読み出して実行することによっても達成される場合も本発明に含まれる。   The present invention includes a software program (in the embodiment, a program corresponding to the flowchart shown in FIG. 3) that directly or remotely supplies a software program that implements the functions of the above-described embodiments. The present invention also includes a case where the system or the computer of the apparatus is achieved by reading and executing the supplied program code.

したがって、本発明の機能処理をコンピュータで実現するために、前記コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。   Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であってもよい。   In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, and the like.

プログラムを供給するための記録媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RWなどがある。また、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などもある。   Examples of the recording medium for supplying the program include a flexible disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, and CD-RW. In addition, there are magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD-R), and the like.

その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続する。そして、前記ホームページから本発明のコンピュータプログラムそのもの、若しくは圧縮され自動インストール機能を含むファイルをハードディスク等の記録媒体にダウンロードすることによっても供給できる。   As another program supply method, a browser on a client computer is used to connect to an Internet home page. The computer program itself of the present invention or a compressed file including an automatic installation function can be downloaded from the homepage by downloading it to a recording medium such as a hard disk.

また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。   It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, the present invention includes a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせる。そして、ダウンロードした鍵情報を使用することにより暗号化されたプログラムを実行してコンピュータにインストールさせて実現することも可能である。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. Let The downloaded key information can be used to execute the encrypted program and install it on the computer.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される。その他、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部又は全部を行い、その処理によっても前述した実施形態の機能が実現され得る。   Further, the functions of the above-described embodiments are realized by the computer executing the read program. In addition, based on the instructions of the program, an OS or the like running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments can also be realized by the processing.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる。その後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部又は全部を行い、その処理によっても前述した実施形態の機能が実現される。   Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiments are realized by the processing.

なお、前述した実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。即ち、本発明はその技術思想、又はその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation in carrying out the present invention, and the technical scope of the present invention should not be construed as being limited thereto. That is, the present invention can be implemented in various forms without departing from the technical idea or the main features thereof.

100 グラフィックス処理装置、106 表示部(モニタ)、201 二次元グラフィックス描画処理命令受信部、202 擬似三次元効果判別部、203 三次元オブジェクト描画処理命令生成部、204 三次元オブジェクト描画処理命令実行部、205 二次元グラフィックス描画処理命令実行部、206 グラフィックス合成部 DESCRIPTION OF SYMBOLS 100 Graphics processing apparatus, 106 Display part (monitor), 201 Two-dimensional graphics drawing process command receiving part, 202 Pseudo three-dimensional effect discrimination part, 203 Three-dimensional object drawing process command generation part, 204 Three-dimensional object drawing process command execution 205, 2D graphics rendering command execution unit, 206 Graphics synthesis unit

Claims (15)

二次元グラフィックス描画処理命令の処理を行うグラフィックス処理装置であって、
前記二次元グラフィックス描画処理命令を受信する受信手段と、
前記受信手段で受信した二次元グラフィックス描画処理命令に、三次元オブジェクトを擬似表現する擬似三次元効果が含まれているか否かを判別する判別手段と、
前記判別手段において二次元グラフィックス描画処理命令に前記擬似三次元効果が含まれていると判別された場合に、当該擬似三次元効果に基づく三次元オブジェクト描画処理命令を生成する生成手段と、
前記生成手段で生成された三次元オブジェクト描画処理命令を実行し、三次元オブジェクトを三次元仮想空間内に配置してレンダリング処理を行う三次元オブジェクト描画処理命令実行手段と
を有することを特徴とするグラフィックス処理装置。
A graphics processing apparatus that performs processing of a two-dimensional graphics rendering processing instruction,
Receiving means for receiving the two-dimensional graphics drawing processing command;
Determining means for determining whether or not the two-dimensional graphics rendering processing command received by the receiving means includes a pseudo three-dimensional effect that pseudo-represents a three-dimensional object;
Generating means for generating a three-dimensional object drawing processing instruction based on the pseudo three-dimensional effect when the determining means determines that the pseudo three-dimensional effect is included in the two-dimensional graphics drawing processing instruction;
Three-dimensional object drawing processing instruction execution means for executing the three-dimensional object drawing processing instruction generated by the generating means, and placing the three-dimensional object in a three-dimensional virtual space to perform rendering processing. Graphics processing unit.
前記三次元オブジェクト描画処理命令実行手段は、入力された投影条件と三次元仮想空間配置情報に基づいて、前記レンダリング処理を行うことを特徴とする請求項1に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 1, wherein the three-dimensional object drawing processing command execution unit performs the rendering processing based on the input projection condition and three-dimensional virtual space arrangement information. 前記受信手段は、複数の前記二次元グラフィックス描画処理命令からなる二次元グラフィックス描画処理命令群を受信するものであり、
前記判別手段は、前記受信手段で受信した二次元グラフィックス描画処理命令群の各二次元グラフィックス描画処理命令に、前記擬似三次元効果が含まれているか否かを判別するものであり、
前記判別手段において二次元グラフィックス描画処理命令に前記擬似三次元効果が含まれていないと判別された場合に、当該二次元グラフィックス描画処理命令を実行する二次元グラフィックス描画処理命令実行手段と、
前記三次元オブジェクト描画処理命令実行手段による三次元オブジェクト描画処理結果と、前記二次元グラフィックス描画処理命令実行手段による二次元グラフィックス描画処理結果とを合成する合成処理を行う合成手段と
を更に有することを特徴とする請求項1又は2に記載のグラフィックス処理装置。
The receiving means receives a group of two-dimensional graphics drawing processing commands composed of a plurality of the two-dimensional graphics drawing processing commands.
The determining means determines whether or not the pseudo three-dimensional effect is included in each two-dimensional graphics drawing processing command of the two-dimensional graphics drawing processing command group received by the receiving means,
A two-dimensional graphics drawing processing command execution unit for executing the two-dimensional graphics drawing processing command when the determining unit determines that the pseudo-three-dimensional effect is not included in the two-dimensional graphics drawing processing command; ,
And further comprising a combining means for performing a combining process for combining the three-dimensional object drawing processing result by the three-dimensional object drawing processing instruction executing means and the two-dimensional graphics drawing processing result by the two-dimensional graphics drawing processing instruction executing means. The graphics processing apparatus according to claim 1 or 2, wherein
前記二次元グラフィックス描画処理命令実行手段は、前記二次元グラフィックス描画処理命令を実行してビットマップを生成することを特徴とする請求項3に記載のグラフィックス処理装置。   4. The graphics processing apparatus according to claim 3, wherein the two-dimensional graphics drawing processing command execution means executes the two-dimensional graphics drawing processing command to generate a bitmap. 前記合成手段は、前記三次元オブジェクト描画処理命令実行手段による三次元オブジェクト描画処理結果と、前記二次元グラフィックス描画処理命令実行手段による二次元グラフィックス描画処理結果とを、三次元仮想空間内に配置し平面に投影して、前記合成処理を行うことを特徴とする請求項3又は4に記載のグラフィックス処理装置。   The synthesizing unit is configured to combine a 3D object drawing process result by the 3D object drawing process command executing unit and a 2D graphics drawing process result by the 2D graphics drawing process command executing unit in a 3D virtual space. The graphics processing apparatus according to claim 3, wherein the composition processing is performed by arranging and projecting on a plane. 前記合成手段は、前記三次元仮想空間内に配置された複数のオブジェクトを、隠面処理を行って前記合成処理を行うことを特徴とする請求項5に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 5, wherein the synthesizing unit performs the synthesizing process by performing a hidden surface process on a plurality of objects arranged in the three-dimensional virtual space. 前記合成手段は、前記二次元グラフィックス描画処理命令実行手段で生成されたビットマップを透視変形したものと、前記三次元オブジェクト描画処理命令実行手段で前記三次元オブジェクト描画処理命令を実行して平面に投影した結果とを重ねて、前記合成処理を行うことを特徴とする請求項4に記載のグラフィックス処理装置。   The synthesizing unit includes a perspective transformation of the bitmap generated by the two-dimensional graphics drawing processing command execution unit, and a plane obtained by executing the three-dimensional object drawing processing command by the three-dimensional object drawing processing command execution unit. The graphics processing apparatus according to claim 4, wherein the composition processing is performed by superimposing the result projected onto the screen. 前記擬似三次元効果は、ベベル効果、エンボス効果およびドロップシャドウ効果のうちのいずれかであることを特徴とする請求項1乃至7のいずれか1項に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 1, wherein the pseudo three-dimensional effect is one of a bevel effect, an emboss effect, and a drop shadow effect. 前記二次元グラフィックス描画処理命令は、構造化文書で表現されるものであることを特徴とする請求項1乃至8のいずれか1項に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 1, wherein the two-dimensional graphics rendering processing instruction is expressed by a structured document. 前記二次元グラフィックス描画処理命令は、XMLで表現されるものであることを特徴とする請求項1乃至8のいずれか1項に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 1, wherein the two-dimensional graphics rendering processing command is expressed in XML. 前記二次元グラフィックス描画処理命令は、SVGで表現されるものであることを特徴とする請求項1乃至8のいずれか1項に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 1, wherein the two-dimensional graphics rendering processing command is expressed in SVG. 前記二次元グラフィックス描画処理命令は、ユーザインタフェース記述言語で表現されるものであることを特徴とする請求項1乃至8のいずれか1項に記載のグラフィックス処理装置。   9. The graphics processing apparatus according to claim 1, wherein the two-dimensional graphics rendering processing instruction is expressed in a user interface description language. 前記二次元グラフィックス描画処理命令は、画像データとそれに対する加工方法が記述されている画像フォーマット自体であることを特徴とする請求項1乃至8のいずれか1項に記載のグラフィックス処理装置。   The graphics processing apparatus according to claim 1, wherein the two-dimensional graphics rendering processing command is an image format itself in which image data and a processing method for the image data are described. 二次元グラフィックス描画処理命令の処理を行うグラフィックス処理装置によるグラフィックス処理方法であって、
前記二次元グラフィックス描画処理命令を受信する受信ステップと、
前記受信ステップで受信した二次元グラフィックス描画処理命令に、三次元オブジェクトを擬似表現する擬似三次元効果が含まれているか否かを判別する判別ステップと、
前記判別ステップにおいて二次元グラフィックス描画処理命令に前記擬似三次元効果が含まれていると判別された場合に、当該擬似三次元効果に基づく三次元オブジェクト描画処理命令を生成する生成ステップと、
前記生成ステップで生成された三次元オブジェクト描画処理命令を実行し、三次元オブジェクトを三次元仮想空間内に配置してレンダリング処理を行う三次元オブジェクト描画処理命令実行ステップと
を有することを特徴とするグラフィックス処理方法。
A graphics processing method by a graphics processing device for processing a two-dimensional graphics rendering processing instruction,
A receiving step for receiving the two-dimensional graphics drawing processing command;
A determination step of determining whether or not the two-dimensional graphics rendering processing command received in the reception step includes a pseudo three-dimensional effect that pseudo-represents a three-dimensional object;
A generation step of generating a three-dimensional object drawing processing command based on the pseudo three-dimensional effect when it is determined that the pseudo three-dimensional effect is included in the two-dimensional graphics drawing processing command in the determining step;
A three-dimensional object drawing processing command execution step for executing the three-dimensional object drawing processing command generated in the generating step and placing the three-dimensional object in a three-dimensional virtual space to perform a rendering process. Graphics processing method.
二次元グラフィックス描画処理命令の処理を行うグラフィックス処理装置によるグラフィックス処理方法をコンピュータに実行させるためのプログラムであって、
前記二次元グラフィックス描画処理命令を受信する受信ステップと、
前記受信ステップで受信した二次元グラフィックス描画処理命令に、三次元オブジェクトを擬似表現する擬似三次元効果が含まれているか否かを判別する判別ステップと、
前記判別ステップにおいて二次元グラフィックス描画処理命令に前記擬似三次元効果が含まれていると判別された場合に、当該擬似三次元効果に基づく三次元オブジェクト描画処理命令を生成する生成ステップと、
前記生成ステップで生成された三次元オブジェクト描画処理命令を実行し、三次元オブジェクトを三次元仮想空間内に配置してレンダリング処理を行う三次元オブジェクト描画処理命令実行ステップと
をコンピュータに実行させるためのプログラム。
A program for causing a computer to execute a graphics processing method by a graphics processing apparatus that performs processing of a two-dimensional graphics rendering processing instruction,
A receiving step for receiving the two-dimensional graphics drawing processing command;
A determination step of determining whether or not the two-dimensional graphics rendering processing command received in the reception step includes a pseudo three-dimensional effect that pseudo-represents a three-dimensional object;
A generation step of generating a three-dimensional object drawing processing command based on the pseudo three-dimensional effect when it is determined that the pseudo three-dimensional effect is included in the two-dimensional graphics drawing processing command in the determining step;
Executing the 3D object drawing processing command generated in the generating step, causing the computer to execute a 3D object drawing processing command executing step of performing rendering processing by placing the 3D object in the 3D virtual space program.
JP2009138447A 2009-06-09 2009-06-09 Graphics processor, graphics processing method, and program Pending JP2010286907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009138447A JP2010286907A (en) 2009-06-09 2009-06-09 Graphics processor, graphics processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009138447A JP2010286907A (en) 2009-06-09 2009-06-09 Graphics processor, graphics processing method, and program

Publications (1)

Publication Number Publication Date
JP2010286907A true JP2010286907A (en) 2010-12-24

Family

ID=43542582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009138447A Pending JP2010286907A (en) 2009-06-09 2009-06-09 Graphics processor, graphics processing method, and program

Country Status (1)

Country Link
JP (1) JP2010286907A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102302833B1 (en) * 2021-05-31 2021-09-17 주식회사 트라이폴리곤 Method for beveling for 3D(dimension) model and apparatus for performing the method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102302833B1 (en) * 2021-05-31 2021-09-17 주식회사 트라이폴리곤 Method for beveling for 3D(dimension) model and apparatus for performing the method

Similar Documents

Publication Publication Date Title
CN107358643B (en) Image processing method, image processing device, electronic equipment and storage medium
US7583264B2 (en) Apparatus and program for image generation
CN106575445B (en) Fur avatar animation
CN110969685B (en) Customizable rendering pipeline using rendering graphs
US9426259B2 (en) Client server interaction for graphical/audio applications
RU2427918C2 (en) Metaphor of 2d editing for 3d graphics
US9202309B2 (en) Methods and apparatus for digital stereo drawing
CN112215934A (en) Rendering method and device of game model, storage medium and electronic device
CN103810728A (en) System, method, and computer program product for inputting modified coverage data into a pixel shader
CN110866967B (en) Water ripple rendering method, device, equipment and storage medium
JP7213616B2 (en) Information processing device, information processing program, and information processing method.
RU2422902C2 (en) Two-dimensional/three-dimensional combined display
US9524573B2 (en) Systems, methods, and computer-readable media for manipulating and mapping tiles of graphical object data
JP6714357B2 (en) Video processing device, video processing method, and video processing program
CN112734896A (en) Environment shielding rendering method and device, storage medium and electronic equipment
JP2010033397A (en) Image composition device and method
CN111210525A (en) Method, platform, equipment and readable storage medium for interactive editing of three-dimensional model
CN113763526A (en) Hair highlight rendering method, device, equipment and storage medium
JP5864474B2 (en) Image processing apparatus and image processing method for processing graphics by dividing space
JP5007633B2 (en) Image processing program, computer-readable recording medium storing the program, image processing apparatus, and image processing method
JP2003168130A (en) System for previewing photorealistic rendering of synthetic scene in real-time
JP2010286907A (en) Graphics processor, graphics processing method, and program
US11989807B2 (en) Rendering scalable raster content
CN114972466A (en) Image processing method, image processing device, electronic equipment and readable storage medium
US6646650B2 (en) Image generating apparatus and image generating program