JPS63254583A - Light beam tracking image generating device - Google Patents

Light beam tracking image generating device

Info

Publication number
JPS63254583A
JPS63254583A JP8942687A JP8942687A JPS63254583A JP S63254583 A JPS63254583 A JP S63254583A JP 8942687 A JP8942687 A JP 8942687A JP 8942687 A JP8942687 A JP 8942687A JP S63254583 A JPS63254583 A JP S63254583A
Authority
JP
Japan
Prior art keywords
brightness
light beam
intersection
picture element
ray
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
JP8942687A
Other languages
Japanese (ja)
Inventor
Kanako Teramura
佳奈子 寺村
Makoto Hirai
誠 平井
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8942687A priority Critical patent/JPS63254583A/en
Publication of JPS63254583A publication Critical patent/JPS63254583A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To put a crossing decision part and a brightness calculation part in parallel operation and to shorten an image generation time by providing a brightness accumulation part which obtains brightness of each picture element from a brightness calculation part and a picture element memory and integrates it, and writes the result in the picture element memory again. CONSTITUTION:The brightness calculation part 13 calculates the brightness at an intersection from body; data on the color, reflection coefficient, transmission coefficient, etc., of a body. When reflection and transmission processing is not required, a picture element number and the calculated brightness are outputted to the brightness accumulation part 14 and when the reflection and transmission processing is required, the intersection with the body is set as a view point to recalculate light beam, which is outputted to a light beam data buffer 11. The brightness accumulation part 14 adds the brightness inputted from the brightness calculation part 13 to the brightness of the same picture element stored in the picture element memory 15 and writes the result in the picture element memory 15. An image generation control part 16 controls the light beam data buffer 11 and outputs the light beam data to the intersection decision part so that the intersection decision part 12 operates effectively. Consequently, the intersection decision part 11 process the input from the light beam buffer 11 in parallel.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は3次元画像を生成する光線追跡画像生成装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a ray tracing image generation device that generates three-dimensional images.

従来の技術 近年、光線追跡画像生成装置は、3次元コンピュータグ
ラフィックスの分野において最もリアリティの高い画像
を生成できる装置とされている6以下、図面を参照しな
がら、上述した従来の光線追跡画像生成装置の実施例に
ついて説明する。第2図は従来の光線追跡画像生成装置
の原理を示すものである。第2図において、21は視点
、22は表示画面、23は画素、24及び25は物体を
示す。視点21と表示面22を結ぶ直線を考え、その方
向から視点21に入射する光線26を逆方向にたどって
入射強度を求める。すなわち、ある画素における輝度は
、ホイソティド(whitte)の光源モデルに基づき
、次の式で表現される(例えば、電子通信学会論文誌V
o1.J6B−D No、4733−740ページ)。
BACKGROUND OF THE INVENTION In recent years, ray tracing image generation devices are considered to be the devices that can generate the most realistic images in the field of three-dimensional computer graphics. An example of the device will be described. FIG. 2 shows the principle of a conventional ray tracing image generation device. In FIG. 2, 21 is a viewpoint, 22 is a display screen, 23 is a pixel, and 24 and 25 are objects. Considering a straight line connecting the viewpoint 21 and the display surface 22, the light ray 26 that enters the viewpoint 21 from that direction is traced in the opposite direction to find the incident intensity. That is, the brightness at a certain pixel is expressed by the following formula based on Whitte's light source model (for example, IEICE Transactions V
o1. J6B-D No., pages 4733-740).

に0 :周囲光係数。0: Ambient light coefficient.

K、二数乱反射係数。K, random reflection coefficient.

θ :入射方向と法線のなす角度。θ: Angle between the incident direction and the normal line.

L :光源数。L: Number of light sources.

Ko:金属反射係数。Ko: Metal reflection coefficient.

n :金属反射指数。n: Metal reflection index.

θ1 :反射方向と視線のなす角度。θ1: Angle between the reflection direction and the line of sight.

Ks 二反射係数。Ks Two reflection coefficients.

K、:透過係数。K: transmission coefficient.

S :反射光による輝度。S: Brightness due to reflected light.

T 二透過光による輝度。T: Luminance due to two transmitted light.

ここで輝度■は、R,G、B3構成を持つベクトルであ
る。上式における第1項は周囲光、第2項は散乱反射光
、第3項は金属反射光、第4項は反射光、第5項は透過
光による輝度を示している。
Here, the luminance ■ is a vector having R, G, and B3 configurations. In the above equation, the first term represents the ambient light, the second term represents the scattered reflected light, the third term represents the metal reflected light, the fourth term represents the reflected light, and the fifth term represents the brightness due to the transmitted light.

第3図は上記の光線追跡画像生成装置の原理に基づ〈従
来の一例を示すものである。以下、その動作について説
明する。
FIG. 3 shows a conventional example based on the principle of the above-mentioned ray tracing image generation device. The operation will be explained below.

まず、画像生成制御部31によって入力された光線デー
タに基づき、交差判定部32において、光線と物体との
交差判定を行う。光線データは光線のでる位置、光線の
向き、画素番号、光線の減衰率から成る。つぎに輝度計
算累算部33において、前述の弐に基づき輝度計算を行
う。ここで交点が反射及び透過属性を持たない場合は、
結果を画素メモリに出力する。しかしながら反射あるい
は透過属性を持つ場合には、交点を仮想的に視点とみな
し、反射、透過方向の仮想的な視点に対する交差判定、
輝度計算、累算を繰り返し交差判定部32、輝度計算・
累算部33で行い、終了後に画素メモリ34に出力する
First, based on the light ray data inputted by the image generation control section 31, the intersection determination section 32 determines the intersection between the light ray and the object. The ray data consists of the position of the ray, the direction of the ray, the pixel number, and the attenuation rate of the ray. Next, the brightness calculation accumulator 33 performs brightness calculation based on the above-mentioned step 2. Here, if the intersection does not have reflection or transmission attributes,
Output the result to pixel memory. However, if it has reflection or transmission attributes, the intersection point is virtually regarded as a viewpoint, and the intersection judgment for the virtual viewpoint in the reflection or transmission direction is performed.
The intersection determination unit 32 repeats brightness calculation and accumulation.
The accumulation unit 33 performs the calculation, and outputs the data to the pixel memory 34 after completion.

発明が解決しようとする問題点 しかしながら、上記のような構成では、ある画素につい
ての輝度計算、累算が終了するまで次の画素に関する光
線の交差判定を開始することができないため、交差判定
部32と輝度計算・累算部33のどちらか一方しか稼動
していないという問題点を有していた。
Problems to be Solved by the Invention However, with the above configuration, it is not possible to start determining the intersection of light rays for the next pixel until the luminance calculation and accumulation for a certain pixel are completed. However, there is a problem in that only one of the luminance calculation/accumulation section 33 is in operation.

本発明は上記問題点に鑑み、交差判定及び輝度計算を並
行して実行し、高速に画像を生成する光線追跡画像生成
装置を提供するものである。
In view of the above problems, the present invention provides a ray tracing image generation device that executes intersection determination and brightness calculation in parallel and generates images at high speed.

問題点を解決するための手段 上記問題点を解決するために本発明の光線追跡画像生成
装置は、光線データを蓄積する光線データバッファと、
輝度計算を行い透過あるいは反射の処理が必要なデータ
を光線データバッファにフィードバックする輝度計算部
と、画素ごとの輝度を輝度計算部と画素メモリから得て
累算し、再び画素メモリに書き込む輝度累算部を有する
という構成を備えたものである。
Means for Solving the Problems In order to solve the above problems, the ray tracing image generation device of the present invention includes a ray data buffer that stores ray data;
A brightness calculation unit that calculates brightness and feeds back data that requires transmission or reflection processing to the ray data buffer, and a brightness accumulation unit that obtains the brightness of each pixel from the brightness calculation unit and pixel memory, accumulates it, and writes it back to the pixel memory. It has a structure that includes a calculation section.

作用 本発明は上記した構成によって、交差判定部と輝度計算
部を並行して動作させることができる。
Operation The present invention can operate the intersection determination section and the brightness calculation section in parallel with the above-described configuration.

実施例 以下本発明の一実施例である光線追跡画像生成装置につ
いて、図面を参照しながら説明する。
EXAMPLE Hereinafter, a ray tracing image generation device which is an example of the present invention will be described with reference to the drawings.

第1図は本発明の実施例における光線追跡画像生成装置
のブロック図を示すものである。以下にこの実施例の構
成における動作を説明する。
FIG. 1 shows a block diagram of a ray tracing image generation device in an embodiment of the present invention. The operation of the configuration of this embodiment will be explained below.

第1図において、光線データバッファ11は、初期の光
線データと輝度計算部13からフィードバックされた光
線データ、即ち物体との交点において反射あるいは透過
の処理が必要な光線データをバッファし、交差判定部1
2の処理が終了するごとに次の光線データを交差判定部
12に出力する。光線データは光線の出る位置、光線の
向き、光線と表示画面22との交点における画素番号、
及び光線の減衰率から成る。交差判定部12は、与えら
れた光線データとあらかじめ持っている物体の位置デー
タから、光線と物体とが交差するかどうかを判定し、結
果を輝度計算部13に出力する。輝度計算部13は、物
体の色、反射係数、透過係数等の物体データから交点に
おける輝度を計算する。反射・透過処理が必要でない場
合は、輝度累算部14に画素番号と計算した輝度を出力
する。反射・透過処理が必要な場合は、物体との交点を
視点として光線データを計算し直し、光線データバッフ
ァ11に出力する。反射・透過処理は、光線の強度があ
る値以下になるまで繰り返される。
In FIG. 1, a ray data buffer 11 buffers initial ray data and ray data fed back from the brightness calculation unit 13, that is, ray data that requires reflection or transmission processing at an intersection with an object, and stores it in an intersection determination unit. 1
Each time the second process is completed, the next ray data is output to the intersection determination section 12. The light beam data includes the position of the light beam, the direction of the light beam, the pixel number at the intersection of the light beam and the display screen 22,
and the attenuation rate of the light beam. The intersection determination unit 12 determines whether the light ray and the object intersect based on the given light ray data and pre-existing position data of the object, and outputs the result to the brightness calculation unit 13. The brightness calculation unit 13 calculates the brightness at the intersection point from object data such as the color of the object, the reflection coefficient, and the transmission coefficient. If reflection/transmission processing is not required, the pixel number and the calculated brightness are output to the brightness accumulator 14. If reflection/transmission processing is required, the ray data is recalculated using the point of intersection with the object as a viewpoint, and is output to the ray data buffer 11. The reflection/transmission process is repeated until the intensity of the light beam falls below a certain value.

輝度累算部14は、輝度計算部13から人力した輝度を
画素メモリ15に蓄えられている同じ画素の輝度に累算
し、再び画素メモリ15に書き込む。
The luminance accumulating unit 14 accumulates the luminance manually input from the luminance calculating unit 13 to the luminance of the same pixel stored in the pixel memory 15, and writes the accumulated luminance to the pixel memory 15 again.

画像生成制御部16は、光線データバッファ11を制i
’IIIL、交差判定部12が有効に動作するように交
差判定部に光線データを出力する。
The image generation control unit 16 controls the light beam data buffer 11.
'IIIL, output ray data to the intersection determination section so that the intersection determination section 12 operates effectively.

その結果、交差判定部11は、従来のようにある画素の
輝度計算、累算が終了するまで次の画素に関する処理を
待つ必要がなく、光線データバッファ11からの入力を
並行して処理することができる。
As a result, the intersection determination unit 11 does not need to wait for processing for the next pixel until the luminance calculation and accumulation of a certain pixel are completed as in the conventional case, and can process the input from the ray data buffer 11 in parallel. Can be done.

発明の効果 以上のように本発明は、光線データを蓄積する光線デー
タバッファと、輝度計算を行い透過あるいは反射処理が
必要なデータを光線データバッファにフィードバックす
る輝度計算部と、画素ごとの輝度を輝度計算部と画素メ
モリから得て累算し、再び画素メモリに書き込む輝度累
算部を設けることにより、交差判定部と輝度計算部を並
行して動作させることができ、画像生成時間を短縮する
ことができる。
Effects of the Invention As described above, the present invention has a light beam data buffer that stores light data, a brightness calculation unit that calculates brightness and feeds back data that requires transmission or reflection processing to the light data buffer, and a brightness calculation unit that calculates the brightness of each pixel. By providing a brightness accumulation unit that obtains information from the brightness calculation unit and pixel memory, accumulates it, and writes it back to the pixel memory, the intersection determination unit and the brightness calculation unit can operate in parallel, reducing image generation time. be able to.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例における光線追跡画像生成装
置のブロック図、第2図は従来の光線追跡画像生成装置
の原理図、第3図は従来の光線追跡画像生成装置のブロ
ック図である。 11・・・・・・光線データバッファ、12・・・・・
・交差判定部、13・・・・・・輝度計算部、14・・
・・・・輝度累算部、15・・・・・・画素メモリ、1
6・・・・・・画像生成制御部。 代理人の氏名 弁理士 中足敏男 ばか1名ガ些なか 2I−・−視  点 22−表示1面 23−  画  未 242S−勿体 26− 人射光算 i2図
FIG. 1 is a block diagram of a ray tracing image generation device according to an embodiment of the present invention, FIG. 2 is a principle diagram of a conventional ray tracing image generation device, and FIG. 3 is a block diagram of a conventional ray tracing image generation device. be. 11... Ray data buffer, 12...
- Intersection determination unit, 13... Brightness calculation unit, 14...
...Brightness accumulator, 15...Pixel memory, 1
6... Image generation control section. Agent's name Patent attorney Toshio Nakatashi Idiot 1 person is trivial 2I - - Viewpoint 22 - Display 1 page 23 - Image Not yet 242S - Buttai 26 - Human radiation calculation i2 figure

Claims (1)

【特許請求の範囲】[Claims] 光線データを蓄積する光線データバッファと、物体と光
線の交差判定を行う交差判定部と、輝度計算を行い透過
あるいは反射の処理が必要なデータを前記光線データバ
ッファにフィードバックする輝度計算部と、輝度を画素
ごとに蓄える画素メモリと、画素ごとの輝度を前記輝度
計算部と前記画素メモリから得て累算し再び前記画素メ
モリに書き込む輝度累算部と、光線データの流れを制御
する画像生成制御部とを有する光線追跡画像生成装置。
A ray data buffer that accumulates ray data, an intersection determination unit that determines the intersection of an object and a ray, a brightness calculation unit that calculates brightness and feeds back data that requires transmission or reflection processing to the ray data buffer, a pixel memory that stores the luminance of each pixel for each pixel; a luminance accumulating unit that obtains and accumulates the luminance of each pixel from the luminance calculation unit and the pixel memory and writes it back to the pixel memory; and an image generation control that controls the flow of light beam data. A ray tracing image generation device having a section.
JP8942687A 1987-04-10 1987-04-10 Light beam tracking image generating device Pending JPS63254583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8942687A JPS63254583A (en) 1987-04-10 1987-04-10 Light beam tracking image generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8942687A JPS63254583A (en) 1987-04-10 1987-04-10 Light beam tracking image generating device

Publications (1)

Publication Number Publication Date
JPS63254583A true JPS63254583A (en) 1988-10-21

Family

ID=13970332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8942687A Pending JPS63254583A (en) 1987-04-10 1987-04-10 Light beam tracking image generating device

Country Status (1)

Country Link
JP (1) JPS63254583A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2545226A (en) * 2015-12-09 2017-06-14 Samsung Electronics Co Ltd Determining lighting in a 3D virtual scene

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2545226A (en) * 2015-12-09 2017-06-14 Samsung Electronics Co Ltd Determining lighting in a 3D virtual scene

Similar Documents

Publication Publication Date Title
US6014144A (en) Rapid computation of local eye vectors in a fixed point lighting unit
US8390621B2 (en) System and method for calculating multi-resolution dynamic ambient occlusion
EP0740272A2 (en) Method and apparatus for fast rendering of three-dimensional objects
WO2000010372A2 (en) System, apparatus and method for spatially sorting image data in a three-dimensional graphics pipeline
EP1229499A2 (en) System and method for creating real-time shadows of transparent objects
US6972758B2 (en) Methods and apparatus for rendering an image including portions seen through one or more objects of the image
CN111275801A (en) Three-dimensional picture rendering method and device
JP2692783B2 (en) System and method for generating a two-dimensional representation of a three-dimensional object
TW454154B (en) Method and apparatus for stretch blitting using a 3D pipeline
US20230368432A1 (en) Synthesized Camera Arrays for Rendering Novel Viewpoints
JPH113432A (en) Image processor, game machine, its method and recording medium
JPS63254583A (en) Light beam tracking image generating device
US20030184546A1 (en) Image processing method
JPH10232953A (en) Stereoscopic image generator
JPH0772915B2 (en) Graphic shading device
JPS63213079A (en) Picture producing device
JP3354293B2 (en) 3D graphics device
Schafmeister Fast algorithm for generating cpk images on graphics workstations
US8134567B1 (en) Active raster composition and error checking in hardware
JP3559336B2 (en) CG data creation device and CG animation editing device
JPS6380378A (en) Picture generating method
JPS63293688A (en) Image generating device
JPH08194838A (en) Display device having shadow displaying function
JPS62150469A (en) Picture forming device
JPH0575150B2 (en)