KR20050065251A - Interactive 3d spatial light illumination method and system - Google Patents

Interactive 3d spatial light illumination method and system Download PDF

Info

Publication number
KR20050065251A
KR20050065251A KR1020040041326A KR20040041326A KR20050065251A KR 20050065251 A KR20050065251 A KR 20050065251A KR 1020040041326 A KR1020040041326 A KR 1020040041326A KR 20040041326 A KR20040041326 A KR 20040041326A KR 20050065251 A KR20050065251 A KR 20050065251A
Authority
KR
South Korea
Prior art keywords
polygon
exclusive
light
dimensional
cube
Prior art date
Application number
KR1020040041326A
Other languages
Korean (ko)
Other versions
KR100614739B1 (en
Inventor
밍판 유엥
준밍 수
춘쳉 첸
진이 리
Original Assignee
인스티튜트 포 인포메이션 인더스트리
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 인스티튜트 포 인포메이션 인더스트리 filed Critical 인스티튜트 포 인포메이션 인더스트리
Publication of KR20050065251A publication Critical patent/KR20050065251A/en
Application granted granted Critical
Publication of KR100614739B1 publication Critical patent/KR100614739B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects
    • G06T15/80Shading
    • G06T15/87Gouraud shading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2004Aligning objects, relative positioning of parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2012Colour editing, changing, or manipulating; Use of colour codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Image Generation (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

쌍방향 3차원 공간 광 조명 방법 및 시스템이 개시되는 바, 상기 방법은 3차원 공간을 다수의 다각형들로 변환하는 단계; 각각의 다각형에 배타적 ID 번호를 부여하는 단계; 이미지(image) 추출(extracting) 장치로 광원(light source)을 모의실험(simulate)하고 이미지 셋트(set)를 획득하기 위해 3차원 공간을 부여하는 단계; 각각의 다각형에 의해 수신되는 광의 양을 전달 및 계산하기 위하여 이미지 셋트에서 각각의 배타적 색상을 위한 상응하는 분포를 분석하는 단계; 다각형과 입방체 사이의 거리, 투영비, 및 다각형과 입방체 사이에 형성된 입체각에 따라 다각형의 광 수신 영역의 실제 영역을 전환하는 단계를 포함한다.Disclosed is a method and system for interactive three-dimensional spatial light illumination, comprising: converting a three-dimensional space into a plurality of polygons; Assigning an exclusive ID number to each polygon; Simulating a light source with an image extraction device and imparting a three dimensional space to obtain an image set; Analyzing a corresponding distribution for each exclusive color in the image set to transmit and calculate the amount of light received by each polygon; Switching the actual area of the light receiving area of the polygon according to the distance between the polygon and the cube, the projection ratio, and the solid angle formed between the polygon and the cube.

Description

쌍방향 3차원 공간 광 조명 방법 및 시스템{Interactive 3D spatial light illumination method and system}Interactive 3D spatial light illumination method and system

본 발명은 쌍방향 3차원 공간 광 조명 방법 및 시스템에 관한 것으로서, 보다 상세하게는 3차원 공간에서 조명과 그림자를 모의실험(simulate)하기 위한 쌍방향 3차원 공간 광 조명 방법 및 시스템에 관한 것이다.The present invention relates to a method and system for interactive three-dimensional spatial light illumination, and more particularly, to a method and system for two-way three-dimensional spatial light illumination for simulating illumination and shadows in three-dimensional space.

3차원 하드웨어 그래픽 효과들이 개선되고, 3차원 컴퓨터 게임 인구가 증가함에 따라, 사용자들은 보다 질 높은 총체적인 3차원 공간의 조명 모델을 점점 더 요구한다. 예를 들어, 광원이 3차원 공간에서 물체를 조명할 때, 물체의 차광(shading) 효과를 볼 수 있을 때 사용자들은 더 만족해한다.As three-dimensional hardware graphics effects improve and three-dimensional computer game populations increase, users increasingly demand lighting models of higher quality overall three-dimensional space. For example, when a light source illuminates an object in three-dimensional space, users are more satisfied when they can see the shading effect of the object.

종래의 그림자 Z-버퍼(buffer) 차광 기법(shading technology)이 기하학적 물체를 위한 그림자를 가진 3차원 이미지를 생성하기 위해 사용되었다. 그림자 Z-버퍼 차광 기법은 근본적으로 두 단계 즉, 카메라로서 광원을 표본에 이미지 공간의 정확성을 취한 후, 모든 픽셀(pixel)의 깊이를 측정하는 제1 단계; 눈에 보이는 이미지를 생성하기 위해 최초의 시각 포인트(vision point)에 카메라를 복귀시키는 표준 기법을 사용하는 제2단계를 포함한다. 제1단계는 보통 카메라 프로세싱 결과에 의해 생성된 Z-버퍼 데이터를 빛 공간으로도 알려진 그림자 지도(shadow map)로서 저장한다. 따라서, 이미지의 픽셀이 그림자 지도에 의해 덮혀 있는 그림자 영역 내부에 있는지 여부는 적절한 그림자 효과를 발생시킨다. 예를 들어, 포인트 P의 프로세싱 결과가 3차원 공간에서 눈에 보이는 이미지 상의 픽셀을 정의하면, 스크린 공간에서의 포인트 P의 좌표(x,y,z)는 빛 공간에서의 좌표(x',y',z')로 전환된 후, 좌표값 x',y'는 좌표값 z'를 비교하는 깊이 값(depth value)을 계산하기 위한 그림자 지도 조회(inquiry)용 지수(index)로 사용된다. 만약, 좌표값 z'가 이 깊이 값보다 크면, 또 다른 물체가 포인트 P와 광원 사이에, 광원에 더 근접하게 존재한다. 즉, 포인트 P가 투영(shadowed) 영역에 있도록 포인트 P는 이 다른 물체에 의해 방해받는다. 그러므로, 그림자 효과를 제공하기 위해 포인트 P의 휘도는 감소될 필요가 있다. 한편, 좌표값 z'가 이 깊이 값보다 작으면, 포인트 P는 방해되지 않으며 따라서 광원으로부터 완전한 조명을 받는다.Conventional shadow Z-buffer shading technology has been used to create three-dimensional images with shadows for geometric objects. The shadow Z-buffer shading technique is essentially two steps: a first step of taking the accuracy of the image space into the specimen as a camera and then measuring the depth of all pixels; A second step is to use standard techniques to return the camera to the first vision point to produce a visible image. The first step usually stores the Z-buffer data generated as a result of camera processing as a shadow map, also known as light space. Thus, whether the pixels of the image are inside a shadow area covered by the shadow map produces an appropriate shadow effect. For example, if the processing result of point P defines a pixel on the image that is visible in three-dimensional space, the coordinate (x, y, z) of point P in screen space is the coordinate (x ', y) in light space. After conversion to ', z'), the coordinate values x ', y' are used as an index for shadow map inquiry to calculate a depth value comparing the coordinate values z '. If the coordinate value z 'is greater than this depth value, another object exists between the point P and the light source, closer to the light source. That is, point P is disturbed by this other object so that point P is in the shadowed area. Therefore, the luminance of point P needs to be reduced to provide the shadow effect. On the other hand, if the coordinate value z 'is smaller than this depth value, the point P is not disturbed and thus receives full illumination from the light source.

그러나, 그림자 Z-버퍼 기법은 이미지 공간에서 각각의 픽셀을 위한 그림자 효과를 계산해야만 하는 바, 이것은 시스템에 큰 작동 부하를 발생시킨다. 만화 영화 제작자가 3차원 공간의 디자인 효과를 미리 보기를 원한다면, 그는 완전히 조명된 장면의 이미지 효과를 얻기 위한 계산과 프로세싱을 위하여 많은 시간을 기다려야만 한다. 3차원 공간 작업자가 공간을 위한 조명 효과를 재배열하기를 원한다면, 그는 계산과 프로세싱 동안 오랜 기간을 기다려야만 한다. 또한, 종래 기법은 시스템 부하를 감소시키기 위하여 눈에 보이는 픽셀들을 계산하기만 하는 방법을 제공한다. 그러나, 이 방법은 모든 시각 포인트들이 아니라 특정 시각 포인트에서의 그림자 효과를 제공하기만 할 수 있다. 더군다나, 그림자 Z-버퍼 기법은 그림자 효과를 생성하기 위한 픽셀의 휘도를 감소시키지만 그림자 처리된 영역의 휘도는 다양하게 변화될 수도 있고, 따라서 그들은 평균값 또는 경험값에 의해 정확하게 감소될 수 없다.However, the shadow Z-buffer technique has to calculate the shadow effect for each pixel in image space, which creates a large operating load on the system. If an animated filmmaker wants to preview the design effects of a three-dimensional space, he has to wait a lot of time for computation and processing to get the image effect of a fully illuminated scene. If a three-dimensional space worker wants to rearrange the lighting effects for a space, he has to wait a long time during computation and processing. The prior art also provides a method of only calculating visible pixels to reduce system load. However, this method can only provide a shadow effect at a particular visual point, not all visual points. Moreover, the shadow Z-buffer technique reduces the brightness of the pixels to produce the shadow effect, but the brightness of the shadowed area may vary widely, so they cannot be accurately reduced by the mean or empirical values.

따라서, 전술한 문제점들을 경감 및/또는 제거하기 위하여 쌍방향 3차원 공간 광 조명 방법 및 시스템의 제공이 요청된다.Accordingly, there is a need to provide an interactive three-dimensional spatial light illumination method and system in order to alleviate and / or eliminate the aforementioned problems.

본 발명의 본래 목적은 각각의 다각형에 의해 수신되는 광의 양을 계산하는 물리적 방법에 따른 공간의 조명 및 그림자 효과를 모의실험(simulate) 및 계산(calculate)할 수 있는 쌍방향 3차원 공간 광 조명 방법 및 시스템을 제공하는 것이다.An original object of the present invention is an interactive three-dimensional spatial light illumination method capable of simulating and calculating the illumination and shadow effects of a space according to a physical method of calculating the amount of light received by each polygon and To provide a system.

본 발명의 또 다른 목적은 광원으로부터 전송된 광이 공간에서 다각형에 의한 수신 여부를 판별하기 위한 종래의 소프트웨어 프로세스들을 대체하는 3차원 그래픽 프로세서의 작동 효율을 채택하는 쌍방향 3차원 공간 광 조명 방법 및 시스템을 제공하는 것이다.It is yet another object of the present invention to provide a method and system for interactive three-dimensional spatial light illumination that adopts the operating efficiency of a three-dimensional graphics processor to replace conventional software processes for determining whether light transmitted from a light source is received by polygons in space. To provide.

상기 목적들을 달성하기 위하여, 본 발명의 쌍방향 3차원 공간 광 조명 방법은: 3차원(3D) 공간을 선택하는 단계; 상기 3차원 공간을 각각의 다각형(polygon)이 3개의 정점(vertex)을 구비하는 다수의 다각형들로 변환하는 단계; 각각의 다각형을 위한 배타적(exclusive) 색상을 정의하기 위하여 배타적 색상 코드(code)에 상응하는 각각의 다각형에 배타적 ID 번호를 부여하는 단계; 이미지(image) 추출(extracting) 장치로 광원(light source)을 모의실험(simulate)하고 상기 이미지 추출 장치가 상기 광원에 상응하는 좌표(coordinate)에서 다른 색상들로 정의되는 3차원 공간을 부여하고 이미지 셋트(set)를 획득하는 것을 가능하도록 플랫(flat) 차광(shading) 기법(technology)을 이용하는 단계; 각각의 다각형에 의해 수신되는 광의 양을 전달 및 계산하기 위하여 이미지 셋트에서 모든 배타적 색상을 위한 상응하는 분포를 분석하는 단계; 각각의 정점에 의해 평균 수신 광량을 계산하는 단계; 및 현재 시각 포인트(current view point)로 상기 이미지 추출 장치를 모의실험하고 상기 현재 시각 포인트로부터 보이는 광원에 의해 3차원 공간 조명에 의해 생성되는 광 음영 효과(shading effect) 및 표현 효과(rendering effect)를 제공하기 위해 다각형들 및 정점들에 의해 수신되는 광량을 통합하기 위하여 스무스 차광 기법(smooth shading technology)을 이용하는 단계를 포함한다. In order to achieve the above objects, the bidirectional three-dimensional spatial light illumination method of the present invention comprises: selecting a three-dimensional (3D) space; Converting the three-dimensional space into a plurality of polygons, each polygon having three vertices; Assigning an exclusive ID number to each polygon corresponding to an exclusive color code to define an exclusive color for each polygon; Simulate a light source with an image extraction device and give the image a three-dimensional space defined by different colors at coordinates corresponding to the light source Using flat shading technology to enable obtaining a set; Analyzing the corresponding distribution for all exclusive colors in the image set to transmit and calculate the amount of light received by each polygon; Calculating an average amount of received light by each vertex; And simulating the image extraction device with a current view point and using the light shading and rendering effects generated by three-dimensional spatial illumination by a light source visible from the current view point. Using smooth shading technology to incorporate the amount of light received by the polygons and vertices to provide.

본 발명의 또 다른 특징에 따르면, 쌍방향 3차원 공간 광 조명 시스템은 전술한 방법을 실행하기 위한 3차원 그래픽 프로세서를 가진다. According to another feature of the invention, an interactive three-dimensional spatial light illumination system has a three-dimensional graphics processor for carrying out the method described above.

발명의 다른 목적들, 장점들, 및 신규한 특징들은 첨부되는 도면들과 결합될 때 이어지는 상세한 설명으로부터 보다 더 명백해 질 것이다.Other objects, advantages, and novel features of the invention will become more apparent from the following detailed description when combined with the accompanying drawings.

도 1 및 도 2는 본 발명의 바람직한 실시예에 따른 실행 환경 도면이다. 도 2는 본 발명에 따른 바람직한 실시예의 플로우 차트이다. 광원(2)에 의해 조명되는 물체(3)에 의해 생성되는 그림자 효과(31)를 계산하기 위하여, 본 실시예에 있어서, 본 발명의 시스템은 다수의 다각형(단계 202)에 의해 제공되는 공간을 만들기 위해 3차원 공간 1(단계 201)의 정보를 추출한다. 도 3을 참조하면, 도 3은 3차원 공간을 제공하기 위하여 다수의 다각형들을 이용하는 바람직한 실시예의 개략도이다. 상기 3차원 공간은 4개의 다각형 A, B, C, 및 D로 구분된다. 각각의 다각형은 서로 연결된 3개의 정점들로 구성된다. 또한, 각각의 다각형의 특징은 다른 형식의 2 세트의 정점 지수 정보 즉, 공유 정점 지수 정보 및 비공유 정점 정보를 포함한다. 도 3에 도시된 3차원 공간을 예로 들면, 상응하는 다각형 특징 정보는 다음과 같은 2개의 형식을 가진다.1 and 2 are diagrams of execution environments in accordance with a preferred embodiment of the present invention. 2 is a flow chart of a preferred embodiment according to the present invention. In order to calculate the shadow effect 31 produced by the object 3 illuminated by the light source 2, in the present embodiment, the system of the present invention uses the space provided by a plurality of polygons (step 202). The information of three-dimensional space 1 (step 201) is extracted. Referring to FIG. 3, FIG. 3 is a schematic diagram of a preferred embodiment using multiple polygons to provide a three dimensional space. The three-dimensional space is divided into four polygons A, B, C, and D. Each polygon consists of three vertices connected to one another. In addition, the feature of each polygon includes two sets of different types of vertex index information, that is, shared vertex index information and non-shared vertex information. Taking the three-dimensional space shown in FIG. 3 as an example, the corresponding polygonal feature information has two formats as follows.

형식(format) 1 [공유(shared) 정점 지수(vertex index) 정보]:Format 1 [shared vertex index information]:

정점 행렬(Vertex array)Vertex array

정점 행렬Vertex matrix 정점Vertex 00 V1V1 1One V2V2 22 V3V3 33 V4V4 44 V5V5 55 V6V6

지수 행렬(Index array)Index array

다각형polygon 다각형 지수Polygonal exponent AA 0, 1, 20, 1, 2 BB 2, 3, 42, 3, 4 CC 0, 2, 40, 2, 4 DD 0, 4, 50, 4, 5

형식(format) 2 [비공유(unshared) 정점 지수 정보):Format 2 (unshared vertex index information):

정점 행렬(Vertex array)Vertex array

정점 행렬Vertex matrix 정점Vertex 00 V1V1 1One V2V2 22 V3V3 33 V3V3 44 V4V4 55 V5V5 66 V1V1 77 V3V3 88 V5V5 99 V1V1 1010 V5V5 1111 V6V6

지수 행렬(Index array) Index array

다각형polygon 다각형 지수Polygonal exponent AA 0, 1, 20, 1, 2 BB 3, 4, 53, 4, 5 CC 6, 7, 86, 7, 8 DD 9, 10, 119, 10, 11

또한, 배타적 색상 코드가 모든 다각형을 위해 설정되는 바(단계 203), 우선은 각각의 다각형에 배타적 ID 번호가 주어진 후, 배타적 ID 번호를 배타적 색상 코드로 변환하기 위하여 일대일 전환 가능한 변환 연산을 이용한다. 이 실시예에 있어서, 배타적 색상 코드는 무서명(unsigned) 짧은(short) 32-비트 형식의 RBGA(적색, 청색, 녹색, 알파)를 이용하고, 이 실시예는 (255, 255, 255, 255)를 그 어떤 다각형에도 한정되지 않은 배경 색상으로 할당한다. 또한, 배타적 색상 코드는 RGB 형식 또는 그 어떤 형식을 채택할 수 있다. 또한, 각각의 다각형에 분포된 각각의 배타적 색상은 다음의 확장된 형식들을 형성하기 위하여 전술한 형식 2에서 각각의 다각형을 구성하는 각각의 정점에 할당된다.In addition, since an exclusive color code is set for all polygons (step 203), an exclusive ID number is first given to each polygon, and then a one-to-one switchable conversion operation is used to convert the exclusive ID number into an exclusive color code. In this embodiment, the exclusive color code uses RBGA (red, blue, green, alpha) in unsigned short 32-bit format, which is (255, 255, 255, 255). ) Is assigned a background color that is not limited to any polygon. In addition, the exclusive color code may adopt the RGB format or any format. In addition, each exclusive color distributed over each polygon is assigned to each vertex constituting each polygon in format 2 described above to form the following extended forms.

정점 행렬(Vertex array)Vertex array

정점 행렬Vertex matrix 정점Vertex 배타적 색상Exclusive colors 00 V1V1 (0, 0, 0, 255)(0, 0, 0, 255) 1One V2V2 (1, 0, 0, 255)(1, 0, 0, 255) 22 V3V3 (2, 0, 0, 255)(2, 0, 0, 255) 33 V3V3 (3, 0, 0, 255)(3, 0, 0, 255) 44 V4V4 (4, 0, 0, 255)(4, 0, 0, 255) 55 V5V5 (5, 0, 0, 255)(5, 0, 0, 255) 66 V1V1 (6, 0, 0, 255)(6, 0, 0, 255) 77 V3V3 (7, 0, 0, 255)(7, 0, 0, 255) 88 V5V5 (8, 0, 0, 255)(8, 0, 0, 255) 99 V1V1 (9, 0, 0, 255)(9, 0, 0, 255) 1010 V5V5 (10, 0, 0, 255)(10, 0, 0, 255) 1111 V6V6 (11, 0, 0, 255)(11, 0, 0, 255)

지수 행렬(Index array)Index array

다각형polygon 다각형 지수Polygonal exponent 배타적 ID 번호Exclusive ID Number AA 0, 1, 20, 1, 2 00 BB 3, 4, 53, 4, 5 1One CC 6, 7, 86, 7, 8 22 DD 9, 10, 119, 10, 11 33

이어서, 카메라와 같은 이미지 추출 장치로 광원(2)을 취하고, 평판 차광 기법(flat shading technology)은 이미지 셋트를 얻기 위해 광원에 상응하는 좌표로부터 이미지 추출 장치에 의해, 다른 배타적 색상들에 의해 한정되는 3차원 공간의 표현 공정(rendering process)을 수행하기 위해 사용된다(단계 204). 이 실시예에 있어서, 광원은 그 에너지가 센터 지점으로부터 균일하게 방사되고, 하나의 단위 길이를 가진 입방체가 광원의 조명을 모의실험 하는데 이용될 수 있도록 개방된 광원이다. 입방체의 각각의 면(총 6개의 면)은 n×n 격자(grid)로 잘려지고, 각각의 격자의 영역은 각각의 면의 1/n2이다. 이미지 추출 장치가 입방체의 중심에 위치되었다고 가정하면, 입방체의 각 면의 각각의 격자는 이미지 추출 장치의 시각 패널의 픽셀과 같고, 본 실시예는 다음과 같은 6개의 이미지 추출 인자들을 얻는다.The light source 2 is then taken with an image extraction device, such as a camera, and flat shading technology is defined by other exclusive colors by the image extraction device from the coordinates corresponding to the light source to obtain an image set. It is used to perform the rendering process of the three-dimensional space (step 204). In this embodiment, the light source is an open light source whose energy is uniformly radiated from the center point and a cube with one unit length can be used to simulate the illumination of the light source. Each face of the cube (6 faces in total) is cut into an n × n grid, with the area of each grid being 1 / n 2 of each face. Assuming that the image extraction device is located at the center of the cube, each grid of each face of the cube is equal to the pixels of the visual panel of the image extraction device, and this embodiment obtains the following six image extraction factors.

면(face)Face 전면(Front)Front 좌측(Left)Left 후방(Back)Back 우측(Right)Right 상면(Top)Top 저면(Bottom)Bottom 시각 방향(view direction)View direction (0, 0, -1)(0, 0, -1) (-1, 0, 0)(-1, 0, 0) (0, 0, 1)(0, 0, 1) (1, 0, 0)(1, 0, 0) (0, 1, 0)(0, 1, 0) (0, -1, 0)(0, -1, 0) 상 벡터(Up vector)Up vector (0, 1, 0)(0, 1, 0) (0, 1, 0)(0, 1, 0) (0, 1, 0)(0, 1, 0) (0, 1, 0)(0, 1, 0) (0, 0, 1)(0, 0, 1) (0, 0, -1)(0, 0, -1) 우 축(Right axis)Right axis (1, 0, 0)(1, 0, 0) (0, 0, -1)(0, 0, -1) (-1, 0, 0)(-1, 0, 0) (0, 0, -1)(0, 0, -1) (1, 0, 0)(1, 0, 0) (1, 0, 0)(1, 0, 0) 시각 필드(Field of View)Field of View 9090 방향 지수(Aspect ratio)Aspect ratio 1.01.0 근접 평면(Near Plane)Near Plane 0.50.5 시각-포트 크기(view-port size)View-port size (n,n)(n, n)

따라서, 본 실시예의 이미지 추출 장치는 광원의 좌표에 위치되고 평탄 차광 기법과 표현 공정을 수행하기 위하여 전술한 변수들에 따른 형식 2로부터 나온 다각형 데이터를 이용한 후, 최종 표현 결과를 기록한다.Therefore, the image extracting apparatus of the present embodiment uses the polygon data derived from the format 2 according to the above-described parameters to perform the flat shading technique and the rendering process, and then records the final rendering result.

다음, 모든 다각형의 차별(differential) 영역에 의해 수신되는 광의 양은 이미지에서의 모든 배타적 색상을 위한 상응하는 분포를 분석함에 의해 전달 및 계산될 수 있다(단계 205). 도 4를 참조하면, 도 4는 다각형들에 의해 수신되는 광의 양을 계산하는 바람직한 실시예의 플로우 차트이다. 이 실시예는 6개의 변수들에 따른 모든 픽셀들의 색상 분포들을 수집하고(단계 401); 각각의 다각형의 광 수식 영역에 의해 투영되는 입방체에 투영 영역을 얻기 위해(단계 403), 보여진 색상들을 각각의 다각형의 상응하는 배타적 ID 번호로 변환한다(단계 402). 예를 들어, 수집된 결과에 있어서, 전술한 형식들에 따라 RGBA(0, 0, 0, 255)의 색상을 가진 k 픽셀들이 있으며; RGBA(0, 0, 0, 255)는 도 3에 도시된 다각형 A에 상응하고, 입방체 위의 다각형 A의 광 수신 영역의 투영 영역은 다음 [수학식 1]과 같다:The amount of light received by the differential regions of all polygons can then be transferred and calculated by analyzing the corresponding distribution for all exclusive colors in the image (step 205). 4, FIG. 4 is a flow chart of a preferred embodiment of calculating the amount of light received by polygons. This embodiment collects the color distributions of all pixels according to six variables (step 401); In order to obtain a projection area in the cube projected by the light modification area of each polygon (step 403), the displayed colors are converted into the corresponding exclusive ID numbers of each polygon (step 402). For example, in the collected result, there are k pixels with a color of RGBA (0, 0, 0, 255) according to the above-described formats; RGBA (0, 0, 0, 255) corresponds to polygon A shown in FIG. 3, and the projection area of the light receiving area of polygon A on the cube is represented by the following [Equation 1]:

[수학식 1][Equation 1]

또한, 본 실시예는 다각형과 입방체 사이의 거리에 따른 다각형의 광 수신 영역의 실제 영역을 투영비로서 다음 [수학식 2]에 의해 계산할 수 있다(단계 404):In addition, the present embodiment can calculate the actual area of the light receiving area of the polygon according to the distance between the polygon and the cube as the projection ratio (Equation 2) (step 404):

[수학식 2][Equation 2]

여기서, 'dist'는 다각형의 무게 중심과 광원 사이의 거리이고, 는 다각형과 입방체 사이에 형성된 입체각(solid angle)이다. 만약, 모두 0이면, 다각형 A의 광 수신 영역의 실제 영역은 다음과 같다:Where 'dist' is the distance between the polygon's center of gravity and the light source, Is the solid angle formed between the polygon and the cube. if, If all are zero, the actual area of the light receiving area of polygon A is as follows:

결국, 다각형의 차별 영역에 의해 수신되는 광의 양은 다음 [수학식 3]과 같다(단계 405):As a result, the amount of light received by the differential region of the polygon is given by Equation 3 below (step 405):

[수학식 3][Equation 3]

× dot × dot

여기서, Alighting은 다각형의 광 수신 영역의 실제 영역이고, Atotal은 다각형의 총 영역이고, N은 다각형의 법선(normal) 벡터이고, L은 다각형의 무게 중심을 위한 벡터이고, I는 광원의 강도이다. 상기 실시예는 다각형의 무게 중심이 다각형 영역에 있어서의 그 어떤 지점에 의해 수신되는 광 에너지를 제공하는 다각형 내부에 있어야만 하는 특징을 이용한다.Where A lighting is the actual area of the polygonal light receiving area, A total is the total area of the polygon, N is the normal vector of the polygon, L is the vector for the center of gravity of the polygon, and I is the Strength. This embodiment takes advantage of the feature that the center of gravity of the polygon must be inside the polygon providing light energy received by any point in the polygonal region.

최종 이미징 결과를 편평하고 스무스 하게 하기 위하여, 본 시스템은 각각의 정점의 평균 수신 에너지를 계산하고 최종 정점 색상을 생성할 필요가 있다(단계 206). 물체 또는 공간을 제공하기 위하여 다각형들을 이용하는 데이터 구조에 있어서, 때때로 많은 정점들이 많은 다른 다각형들에 의해 공유될 수도 있다; 예를 들어, 도 5에 도시된 정점 V5는 다각형 B, C, D에 의해 공유된다. 그러나, 이러한 정점들은 다른 다각형들에 있는 다른 광량을 수신하고, 그로말미 암아 이미지를 편평하고 스무스 하게 하기 위하여, 본 실시예는 각각의 공유된 정점을 위하여 모든 다른 광 량을 평균한 후, 최종 색상과 휘도를 생성하기 위해 수신되는 광의 이 평균과 정점에 의해 정해진 특성들 계산한다.In order to make the final imaging result flat and smooth, the system needs to calculate the average received energy of each vertex and generate the final vertex color (step 206). In a data structure that uses polygons to provide an object or space, sometimes many vertices may be shared by many other polygons; For example, vertex V5 shown in FIG. 5 is shared by polygons B, C, and D. However, in order for these vertices to receive different amounts of light in different polygons and to flatten and smooth the image, this embodiment averages all the different amounts of light for each shared vertex, and then the final color. Calculate the characteristics determined by this average and vertex of the received light to produce the over luminance.

최종적으로, 이미지 추출 장치는 3차원 공간을 관찰하기 위한 현재의 시각 포인트로 복귀하고, 스무스(smooth) 차광(shading) 기법이 다각형들의 광의 량을 현재 시각 포인트로부터 관측되는, 광원의 3차원 공간 조명으로부터 생성되는 차광 효과 및 표현 효과를 제공하는 정점들과 통합하는 데 이용된다(단계 207).Finally, the image extraction apparatus returns to the current point of view for observing the three-dimensional space, and a three-dimensional spatial illumination of the light source, in which a smooth shading technique observes the amount of light of the polygons from the current point of view. It is used to integrate with the vertices that provide the shading and presentation effects generated from (step 207).

전술한 바와 같이, 본 발명은 실제의 광 조명의 물리적 효과들에 따른 조명 및 차광 효과들을 모의실험 및 계산할 수 있고, 그래서 기하학적 패턴에 의해 생성되는 이미징 질을 향상시키기 위해 모든 다각형을 위해 수신되는 실제 광이 얻어진다. 또한, 본 발명은 종래의 소프트 웨어 프로세스를 대체하는 대단한 기능적 능력을 제공하는 3차원 그래픽 프로세서를 이용한다. As described above, the present invention can simulate and calculate lighting and shading effects according to the physical effects of actual light illumination, so that the actual received received for every polygon to improve the imaging quality produced by the geometric pattern Light is obtained. In addition, the present invention utilizes a three-dimensional graphics processor that provides a great functional capability that replaces conventional software processes.

본 발명은 비록 바람직한 실시예와 관련하여 설명되었지만, 이하에서 청구된 발명의 정신과 범위를 벗어남이 없이 많은 다른 수정예 및 변형예들이 가능하다는 점을 이해해야 한다. Although the present invention has been described in connection with the preferred embodiments, it should be understood that many other modifications and variations are possible without departing from the spirit and scope of the invention as claimed below.

도 1은 본 발명에 따른 바람직한 실시예의 실행 환경 도면.1 is a diagram of an execution environment of a preferred embodiment according to the present invention.

도 2는 본 발명에 따른 바람직한 실시예의 플로우 차트.2 is a flow chart of a preferred embodiment according to the present invention.

도 3은 3차원 공간을 제공하기 위한 다수의 다각형들을 이용한 바람직한 실시예의 개략도.3 is a schematic diagram of a preferred embodiment using multiple polygons to provide a three dimensional space.

도 4는 도 3의 다각형에 의해 수신되는 광의 양을 계산하는 바람직한 실시예의 플로우 차트.4 is a flow chart of a preferred embodiment of calculating the amount of light received by the polygon of FIG.

Claims (10)

(A) 3차원(3D) 공간을 선택하는 단계;(A) selecting a three dimensional (3D) space; (B) 상기 3차원 공간을 각각의 다각형(polygon)이 3개의 정점(vertex)을 구비하는 다수의 다각형들로 변환하는 단계;(B) converting the three-dimensional space into a plurality of polygons in which each polygon has three vertices; (C) 각각의 다각형을 위한 배타적(exclusive) 색상을 정의하기 위하여 배타적 색상 코드(code)에 상응하는 각각의 다각형에 배타적 ID 번호를 부여하는 단계;(C) assigning an exclusive ID number to each polygon corresponding to an exclusive color code to define an exclusive color for each polygon; (D) 이미지(image) 추출(extracting) 장치로 광원(light source)을 모의실험(simulate)하고 상기 이미지 추출 장치가 상기 광원에 상응하는 좌표(coordinate)에서 다른 색상들로 정의되는 3차원 공간을 부여하고 이미지 셋트(set)를 획득하는 것을 가능하도록 플랫(flat) 차광(shading) 기법(technology)을 이용하는 단계; (D) Simulate a light source with an image extraction device and create a three-dimensional space in which the image extraction device is defined with different colors at coordinates corresponding to the light source. Using flat shading technology to enable imparting and obtaining an image set; (E) 각각의 다각형에 의해 수신되는 광의 양을 전달 및 계산하기 위하여 이미지 셋트에서 모든 배타적 색상을 위한 상응하는 분포를 분석하는 단계; (E) analyzing the corresponding distribution for all exclusive colors in the image set to deliver and calculate the amount of light received by each polygon; (F) 각각의 정점에 의해 평균 수신 광량을 계산하는 단계; 및(F) calculating an average amount of received light by each vertex; And (G) 현재 시각 포인트(current view point)로 상기 이미지 추출 장치를 모의실험하고 상기 현재 시각 포인트로부터 보이는 광원에 의해 3차원 공간 조명에 의해 생성되는 광 음영 효과(shading effect) 및 표현 효과(rendering effect)를 제공하기 위해 다각형들 및 정점들에 의해 수신되는 광량을 통합하기 위하여 스무스 차광 기법(smooth shading technology)을 이용하는 단계를 포함하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. (G) Simulate the image extraction device with a current view point, and a rendering and rendering effect generated by three-dimensional spatial illumination by a light source visible from the current view point. Using a smooth shading technology to incorporate the amount of light received by the polygons and vertices to provide. 제1항에 있어서,The method of claim 1, 모든 다각형은:All polygons are: 모든 정점들이 정점 지수로 정의 되는 공유(shared) 정점(vertex) 지수(index) 데이터(A); 및Shared vertex index data (A) in which all vertices are defined as vertex indexes; And 모든 정점들이 다른 다각형을 위한 다른 정점 지수로 정의되는 비공유(unshared) 정점 지수 데이터를 구비하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. A method for interactive three-dimensional spatial light illumination, wherein all vertices have unshared vertex index data defined as different vertex indexes for different polygons. 제1항에 있어서,The method of claim 1, 상기 배타적 색상 코드는 RGBA 무서명(unsigned)의 짧은 32-비트 형식(format)을 이용하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. And said exclusive color code uses a short 32-bit format of RGBA unsigned. 제1항에 있어서,The method of claim 1, 상기 배타적 색상 코드는 RGB 형식(format)을 이용하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. And wherein the exclusive color code uses an RGB format. 제1항에 있어서,The method of claim 1, 상기 (D) 단계는:Step (D) is: 하나의 단위 길이를 가진 입방체가 광원이 상기 입방체에 위치될 때 결과를 모의실험하기 위해 채택되고, 상기 입방체의 모든 면은 n×n 격자(grid)로 분할되고, 각각의 격자의 영역은 모든 면의 1/n2이고, 상기 이미지 추출 장치는 상기 입방체의 6면에 상응하는 6개의 이미지 세트를 각각 획득하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법.A cube with one unit length is adopted to simulate the results when a light source is placed in the cube, all sides of the cube are divided into n × n grids, and the area of each grid is all sides 1 / n 2 , wherein the image extraction device obtains each of six sets of images corresponding to six sides of the cube. 제5항에 있어서,The method of claim 5, 상기 (E) 단계는:Step (E) is: (E1) 상기 이미지에서 다수의 배타적 색상들을 분석하는 단계;(E1) analyzing a plurality of exclusive colors in the image; (E2) 배타적 ID 번호들에 상응하는 다각형들을 획득하기 위해 상기 다수의 배타적 색상들을 상응하는 배타적 ID 번호로 변환하는 단계;(E2) converting the plurality of exclusive colors into a corresponding exclusive ID number to obtain polygons corresponding to the exclusive ID numbers; (E3) 각각의 다각형의 광 수신 영역에 의해 투영된 상기 입방체 위의 투영 영역을 계산하는 단계;(E3) calculating a projection area on the cube projected by the light receiving area of each polygon; (E4) 상기 다각형과 상기 입방체 사이의 거리, 투영비(projection ratio), 및 상기 다각형과 상기 입방체 사이에 형성된 입체각에 따라 상기 다각형의 광 수신 영역의 실제 영역을 전환하는 단계;(E4) switching the actual area of the light receiving area of the polygon according to the distance between the polygon and the cube, the projection ratio, and the solid angle formed between the polygon and the cube; (E5) 상기 다각형의 차별(differential) 영역에 의해 수신되는 광량을 계산하는 단계를 더 포함하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. (E5) further comprising calculating the amount of light received by the differential area of the polygon. 제6항에 있어서,The method of claim 6, 상기 (E3) 단계에서, k 픽셀들은 다각형의 배타적 색상들에 필적하고, 상기 다각형의 광 수신 영역의 투영 영역은 다음 [수학식 1]에 의해 계산되는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. In the step (E3), k pixels are comparable to the exclusive colors of the polygon, and the projection area of the light receiving area of the polygon is calculated by the following equation (1). . [수학식 1][Equation 1] 제6항에 있어서,The method of claim 6, 상기 (E4) 단계에서, 상기 다각형과 상기 입방체 사이에 형성된 상기 입체각은 이고, 상기 다각형의 광 수신 영역의 실제 영역은 다음 [수학식 2]에 의해 계산되는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. In the step (E4), the solid angle formed between the polygon and the cube is and the two-dimensional three-dimensional spatial light illumination, characterized in that the actual area of the light receiving area of the polygon is calculated by the following equation (2). Way. [수학식 2][Equation 2] 여기서, here, 'dist' : 다각형의 무게 중심과 광원 사이의 거리'dist': Distance between polygon center of gravity and light source 제6항에 있어서,The method of claim 6, 상기 (E5) 단계에서, 상기 다각형의 차별 영역에 의해 수신되는 광량은 다음 [수학식 3]인 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 방법. In the step (E5), the amount of light received by the discriminating region of the polygon is the following [Equation 3] bidirectional three-dimensional spatial light illumination method. [수학식 3][Equation 3] × dot × dot 여기서, here, Alighting : 다각형의 광 수신 영역의 실제 영역,A lighting : the actual area of the light receiving area of the polygon, Atotal : 다각형의 총 영역,A total : total area of the polygon, N : 다각형의 법선(normal) 벡터, N is the normal vector of the polygon, L : 다각형의 무게 중심을 위한 벡터, L is the vector for the center of gravity of the polygon, I : 광원의 강도 I: intensity of light source 3차원 그래픽 프로세서(processor)가 설비된 쌍방향 3차원 공간 광 조명 시스템에 있어서:In an interactive three-dimensional spatial light illumination system equipped with a three-dimensional graphics processor: 3차원(3D) 공간을 선택하는 수단;Means for selecting a three-dimensional (3D) space; 상기 3차원 공간을 각각의 다각형(polygon)이 3개의 정점(vertex)을 구비하는 다수의 다각형들로 변환하는 수단;Means for converting the three-dimensional space into a plurality of polygons, each polygon having three vertices; 각각의 다각형을 위한 배타적(exclusive) 색상을 정의하기 위하여 배타적 색상 코드(code)에 상응하는 각각의 다각형에 배타적 ID 번호를 부여하는 수단; Means for assigning an exclusive ID number to each polygon corresponding to an exclusive color code to define an exclusive color for each polygon; 이미지(image) 추출(extracting) 장치로 광원(light source)을 모의실험(simulate)하고 상기 이미지 추출 장치가 상기 광원에 상응하는 좌표(coordinate)에서 다른 색상들로 정의되는 3차원 공간을 부여하고 이미지 셋트(set)를 획득하는 것을 가능하도록 플랫(flat) 차광(shading) 기법(technology)을 이용하는 수단; Simulate a light source with an image extraction device and give the image a three-dimensional space defined by different colors at coordinates corresponding to the light source Means for using flat shading technology to enable obtaining a set; 각각의 다각형에 의해 수신되는 광의 양을 전달 및 계산하기 위하여 이미지 셋트에서 모든 배타적 색상을 위한 상응하는 분포를 분석하는 수단; Means for analyzing a corresponding distribution for all exclusive colors in the image set to transmit and calculate the amount of light received by each polygon; 각각의 정점에 의해 평균 수신 광량을 계산하는 수단; 및Means for calculating an average amount of received light by each vertex; And 현재 시각 포인트(current view point)로 상기 이미지 추출 장치를 모의실험하고 상기 현재 시각 포인트로부터 보이는 광원에 의해 3차원 공간 조명에 의해 생성되는 광 음영 효과(shading effect) 및 표현 효과(rendering effect)를 제공하기 위해 다각형들 및 정점들에 의해 수신되는 광량을 통합하기 위하여 스무스 차광 기법(smooth shading technology)을 이용하는 수단을 구비하는 것을 특징으로 하는 쌍방향 3차원 공간 광 조명 시스템. Simulate the image extraction device with a current view point and provide light shading and rendering effects generated by three-dimensional spatial illumination by a light source visible from the current view point. And means for using smooth shading technology to incorporate the amount of light received by the polygons and vertices to achieve the same.
KR1020040041326A 2003-12-23 2004-06-07 Interactive 3D spatial light illumination method and system KR100614739B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW092136587 2003-12-23
TW092136587A TWI268454B (en) 2003-12-23 2003-12-23 Interactive 3D-scenery light illumination method and its system thereof calculating the light source energy received by each triangular lattice to improve the imaging quality

Publications (2)

Publication Number Publication Date
KR20050065251A true KR20050065251A (en) 2005-06-29
KR100614739B1 KR100614739B1 (en) 2006-08-22

Family

ID=37256767

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020040041326A KR100614739B1 (en) 2003-12-23 2004-06-07 Interactive 3D spatial light illumination method and system

Country Status (2)

Country Link
KR (1) KR100614739B1 (en)
TW (1) TWI268454B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100609145B1 (en) * 2004-12-20 2006-08-08 한국전자통신연구원 Rendering Apparatus and Method for real-time global illumination in real light environment
KR100738107B1 (en) * 2006-02-15 2007-07-12 삼성전자주식회사 Apparatus and method for modeling based on 3 dimension point

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI481829B (en) * 2011-01-07 2015-04-21 Hon Hai Prec Ind Co Ltd Image off-line programming system and method for simulating illumination environment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2669599B2 (en) * 1994-09-16 1997-10-29 インターナショナル・ビジネス・マシーンズ・コーポレイション Shadow drawing method and three-dimensional graphic computer system
JP3039357B2 (en) * 1996-02-20 2000-05-08 株式会社セガ・エンタープライゼス Image processing apparatus and method
JP3599268B2 (en) * 1999-03-08 2004-12-08 株式会社ソニー・コンピュータエンタテインメント Image processing method, image processing apparatus, and recording medium
JP4439692B2 (en) 2000-07-25 2010-03-24 空想科学株式会社 High-speed brightness adjustment method using light in 3D computer graphics

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100609145B1 (en) * 2004-12-20 2006-08-08 한국전자통신연구원 Rendering Apparatus and Method for real-time global illumination in real light environment
KR100738107B1 (en) * 2006-02-15 2007-07-12 삼성전자주식회사 Apparatus and method for modeling based on 3 dimension point

Also Published As

Publication number Publication date
TW200521886A (en) 2005-07-01
KR100614739B1 (en) 2006-08-22
TWI268454B (en) 2006-12-11

Similar Documents

Publication Publication Date Title
US9020241B2 (en) Image providing device, image providing method, and image providing program for providing past-experience images
US5917937A (en) Method for performing stereo matching to recover depths, colors and opacities of surface elements
CN112116692B (en) Model rendering method, device and equipment
CN107341853B (en) Virtual-real fusion method and system for super-large virtual scene and dynamic screen shooting
US6876362B1 (en) Omnidirectional shadow texture mapping
CN111508052B (en) Rendering method and device of three-dimensional grid body
GB2465791A (en) Rendering shadows in augmented reality scenes
GB2465793A (en) Estimating camera angle using extrapolated corner locations from a calibration pattern
JPH0749964A (en) Three-dimensional dynamic image generating device
US20230230311A1 (en) Rendering Method and Apparatus, and Device
GB2406252A (en) Generation of texture maps for use in 3D computer graphics
US20230033319A1 (en) Method, apparatus and device for processing shadow texture, computer-readable storage medium, and program product
CN111145341B (en) Virtual-real fusion illumination consistency drawing method based on single light source
CN105976423B (en) A kind of generation method and device of Lens Flare
KR100614739B1 (en) Interactive 3D spatial light illumination method and system
CN109829962B (en) Object space hidden line elimination calculation acceleration method using OPENGL
CN114332356A (en) Virtual and real picture combining method and device
Rohmer et al. Tiled frustum culling for differential rendering on mobile devices
JP3501479B2 (en) Image processing device
EP4158596A1 (en) Geometry-aware augmented reality effects with a real-time depth map
JP3749373B2 (en) Two-dimensional display method of three-dimensional structure
WO2023109582A1 (en) Light ray data processing method and apparatus, device and storage medium
US20230316640A1 (en) Image processing apparatus, image processing method, and storage medium
US20180089889A1 (en) Dynamically creating and presenting a three-dimensional (3d) view of a scene by combining color, brightness, and intensity from multiple scan data sources
JP3980004B2 (en) Interactive three-dimensional scene illumination method and system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120725

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20130726

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20140725

Year of fee payment: 9

FPAY Annual fee payment

Payment date: 20150727

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20160727

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20170731

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20180731

Year of fee payment: 13