JP2010231620A - Three-dimensional cg image editing method, device, program and recording medium - Google Patents

Three-dimensional cg image editing method, device, program and recording medium Download PDF

Info

Publication number
JP2010231620A
JP2010231620A JP2009080034A JP2009080034A JP2010231620A JP 2010231620 A JP2010231620 A JP 2010231620A JP 2009080034 A JP2009080034 A JP 2009080034A JP 2009080034 A JP2009080034 A JP 2009080034A JP 2010231620 A JP2010231620 A JP 2010231620A
Authority
JP
Japan
Prior art keywords
dimensional
image
data
setting
line
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
JP2009080034A
Other languages
Japanese (ja)
Inventor
Akira Sanami
晶 佐波
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2009080034A priority Critical patent/JP2010231620A/en
Publication of JP2010231620A publication Critical patent/JP2010231620A/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 three-dimensional CG image editing device, for efficiently setting a lighting condition. <P>SOLUTION: The three-dimensional CG image editing method includes: a projection area setting step of drawing, in response to input of a projection area instruction, a projection area on a three-dimensional CG image of three-dimensional model data viewed from a point of view set in a three-dimensional space; a light source setting step of drawing, for all pixels constituting the projection area drawn on the three-dimensional CG image, a visual straight line from the point of view to pass through each pixel and calculating an incident light line regularly incident on the visual straight line at an intersection crossing the three-dimensional model to set a light source on the incident light line; and a rendering step of using the set light source to render a three-dimensional CG image with light projected to the three-dimensional model. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、三次元CG画像編集方法、装置、プログラム、記録媒体に関するものである。
本発明は特に、三次元CG画像の編集において、CGデザイナーが意図した三次元CG画像の演出効果を得るための照明条件を、効率よく短時間で設定したい場合に有用である。
The present invention relates to a three-dimensional CG image editing method, apparatus, program, and recording medium.
The present invention is particularly useful when editing a three-dimensional CG image and efficiently setting illumination conditions for obtaining a three-dimensional CG image effect intended by the CG designer in a short time.

三次元CG画像の編集においては、コンピューター上の仮想三次元空間に、三次元モデル(=三次元物体)と、照明光源と、視点を配置して、画像平面上に三次元モデルをレンダリング処理した三次元CG画像を形成させる。
このとき、三次元CG画像の表現を演出する上で、三次元モデルに照明光をどのように当てるかを決定する照明条件は、重要である。特に、三次元モデルの一部分を明るくする演出表現は、三次元モデルの形状を強調する上で効果的である。
このような演出表現には、3つの手法がある。
(1)照明光を三次元モデルの表面で反射させて明るくする演出表現。
(2)レフ板のような明るい対象物を映り込む位置に配置して明るくする演出表現。
(3)三次元モデルの表面に映り込んでいるものに、照明光を当てて明るくする演出表現。実物の撮影画像に近い(=フォトリアリスティック)三次元CG画像を編集する作業では、照明条件を設定する方法は、実際の撮影作業に似ている。
以下に、実際の撮影作業と三次元CG画像の編集作業とにおける照明条件の設定方法を説明する。
《A.実際の撮影作業》
現実の撮影現場では、カメラマンは、照明装置の位置や向きを調整して変化する演出表現の結果を見ながら、最適な照明条件を設定することができる。
In editing a 3D CG image, a 3D model (= 3D object), an illumination light source, and a viewpoint are placed in a virtual 3D space on a computer, and the 3D model is rendered on the image plane. A three-dimensional CG image is formed.
At this time, an illumination condition for determining how illumination light is applied to the three-dimensional model is important in producing a representation of the three-dimensional CG image. In particular, the effect expression that brightens a part of the three-dimensional model is effective in enhancing the shape of the three-dimensional model.
There are three methods for producing such effects.
(1) An expression that brightens the illumination light by reflecting it on the surface of the three-dimensional model.
(2) An expression that brightens a bright object such as a reflex plate by placing it at a position where it is reflected.
(3) An expression that brightens the object reflected on the surface of the 3D model by illuminating it with illumination light. In the work of editing a three-dimensional CG image close to a real photographed image (= photorealistic), the method for setting the illumination condition is similar to the actual photographing work.
Below, the setting method of the illumination conditions in an actual photographing operation and a three-dimensional CG image editing operation will be described.
<< A. Actual shooting work >>
In an actual shooting site, a cameraman can set an optimal illumination condition while viewing the result of the effect expression that changes by adjusting the position and orientation of the illumination device.

《B.三次元CGの編集作業》
一方、三次元CG画像データの編集作業では、CGデザイナーはコンピューター上の仮想三次元空間に三次元モデルと、照明位置と、視点位置を設定した後に、レンダリング処理を行い三次元CG画像データを作成編集する。ここで、編集した三次元CG画像データの演出表現が所望の演出表現になるまで、CGデザイナーは照明条件を変更してレンダリング処理を繰り返す。たとえば、特許文献1ではコンピューター内の形状モデルを写実的に表示するために、光源位置と形状モデルの面の傾きなどから、視線方向の陰影を計算して三次元物体の表面の色や明るさを決定して陰影付けするシェーディングの技術が開示されている。
<< B. 3D CG editing work >>
On the other hand, in the editing work of 3D CG image data, the CG designer sets the 3D model, lighting position, and viewpoint position in the virtual 3D space on the computer, and then performs rendering processing to create 3D CG image data. To edit. Here, the CG designer changes the illumination condition and repeats the rendering process until the effect expression of the edited three-dimensional CG image data becomes a desired effect expression. For example, in Patent Document 1, in order to realistically display a shape model in a computer, the color and brightness of the surface of a three-dimensional object are calculated by calculating a shadow in the line-of-sight direction from the light source position and the inclination of the surface of the shape model. A shading technique for determining and shading is disclosed.

特開2003−115055号公報(段落0026−段落0027、図8)JP 2003-115055 (paragraph 0026-paragraph 0027, FIG. 8)

三次元CG画像データの演出表現はレンダリング処理して三次元CG画像データを形成することで初めて確認できるものあり、事前の予測は困難である。従って、特許文献1の技術では、所望の演出表現の三次元CG画像データを得るまでに光源位置などの照明条件の調整を試行錯誤して繰り返して、レンダリング処理を多く反復しなければならず、多大な編集作業時間を要してしまう。 The presentation expression of 3D CG image data can be confirmed for the first time by rendering to form 3D CG image data, and it is difficult to predict in advance. Therefore, in the technique of Patent Document 1, it is necessary to repeat the rendering process many times by trial and error by repeatedly adjusting the lighting conditions such as the light source position before obtaining the three-dimensional CG image data of the desired presentation expression. It takes a lot of editing work time.

本発明は以上のような点を解決するためになされたものであって、本発明の課題は、照明条件を効率よく設定できる三次元CG画像編集方法、装置、プログラム、記録媒体を提供することである。 The present invention has been made to solve the above points, and an object of the present invention is to provide a three-dimensional CG image editing method, apparatus, program, and recording medium capable of efficiently setting illumination conditions. It is.

本発明は、以下の各態様に記載の手段により、前記課題を解決する。
すなわち、本願発明の第1の発明は、
三次元空間に設定された、三次元モデルデータと視点データと画像平面データとから構成される設定データを用いる三次元CG画像を編集する方法において、
(1)前記設定データを用いて、三次元空間に設定した視点から見た三次元モデルデータを、画像平面上に三次元CG画像として作成する三次元CG画像作成段階と、
(2)映り込み領域の指示を入力する映り込み領域指示段階と、
(3)映り込み領域指示の入力を受け付けて、三次元CG画像に映り込み領域を描画する映り込み領域設定段階と、
(4)三次元CG画像に描画された映り込み領域を構成する全ての画素に対して、視点からそれぞれの画素を通過する視線直線を引いて、前記三次元モデルと交差する交点において、視線直線に対して正入射する入射光直線を算出して、入射光直線上に光源を設定する光源設定段階と、
(5)設定した光源を用いて、三次元空間に設定された三次元モデルに光が映り込んだ三次元CG画像をレンダリングするレンダリング段階と、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法である。
This invention solves the said subject by the means as described in each following aspect.
That is, the first invention of the present invention is:
In a method of editing a three-dimensional CG image using setting data composed of three-dimensional model data, viewpoint data, and image plane data set in a three-dimensional space,
(1) A three-dimensional CG image creation step of creating three-dimensional model data viewed from a viewpoint set in a three-dimensional space using the setting data as a three-dimensional CG image on an image plane;
(2) a reflection area instruction stage for inputting an instruction of a reflection area;
(3) a reflection region setting stage for receiving an input of a reflection region instruction and drawing the reflection region on the three-dimensional CG image;
(4) A line of sight line passing through each pixel is drawn from the viewpoint for all the pixels constituting the reflection area drawn in the 3D CG image, and the line of sight line intersects the 3D model. A light source setting stage that calculates a normal incident light straight line to set a light source on the incident light straight line,
(5) A rendering stage for rendering a three-dimensional CG image in which light is reflected in a three-dimensional model set in a three-dimensional space using the set light source;
This is a three-dimensional CG image editing method characterized by being performed in a procedure including

このように、三次元モデル画像に描画した反射光領域を手掛かりにして、入射光方向を特定することで、三次元モデルの表面の所望の位置に照明光を映り込ませて明るくするための光源を容易に設定できる。 In this way, by using the reflected light area drawn on the 3D model image as a clue, and specifying the direction of the incident light, the light source is used to brighten the illumination light at the desired position on the surface of the 3D model. Can be set easily.

本願発明の第2の発明は、
第1の発明に記載の三次元CG画像編集方法において、
前記三次元CG画像作成段階は、さらに、
三次元CG画像の画素として画像平面に透視投影される三次元モデルの表面点のおける表面法線データを算出して、この表面法線データを当該表面点の表面座標データと対応付けた法線データを作成する法線作成ステップ、
を含んで、
前記光源設定段階は、さらに、
(3−1)読み取った映り込み領域の画素の画像平面座標系座標データを視点座標系に射影変換する射影変換ステップと、
(3−2)映り込み領域の画素の視点座標系座標データを三次元空間座標系に透視変換する透視変換ステップと、(3−3)視点の座標データと、透視変換された映り込み領域の画素の三次元空間系座標データを用いて、視点と読み取った画素とを通る視線直線を算出する視線算出ステップと、
(3−4)視線直線と三次元モデルとの交点の座標データを求めて、法線データを参照して、交点の座標データと一致する表面座標データに対応付けられた表面法線データを読み取る三次元モデル法線特定ステップと、
(3−5)視線直線と読み取った表面法線データのなす角度と、入射光直線と読み取った表面法線データのなす角度が等しくなるように、入射光直線を設定する入射光設定ステップと、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法である。
The second invention of the present invention is:
In the three-dimensional CG image editing method described in the first invention,
The three-dimensional CG image creation step further includes:
The surface normal data at the surface point of the three-dimensional model that is perspective-projected on the image plane as pixels of the three-dimensional CG image is calculated, and the normal line corresponding to the surface coordinate data of the surface point is calculated. Normal creation step to create data,
Including
The light source setting step further includes:
(3-1) a projective transformation step for projectively transforming the image plane coordinate system coordinate data of the pixels in the read reflection area into the viewpoint coordinate system;
(3-3) Perspective conversion step of perspective-converting the viewpoint coordinate system coordinate data of the pixels in the reflection area into a three-dimensional space coordinate system; (3-3) Viewpoint coordinate data and the perspective-transformed reflection area of the reflection area A line-of-sight calculation step of calculating a line of sight passing through the viewpoint and the read pixel using the three-dimensional spatial coordinate data of the pixel,
(3-4) The coordinate data of the intersection of the line of sight and the three-dimensional model is obtained, the surface normal data associated with the surface coordinate data matching the coordinate data of the intersection is read with reference to the normal data 3D model normal identification step;
(3-5) an incident light setting step for setting an incident light straight line so that an angle formed between the line of sight and the read surface normal data is equal to an angle formed between the incident light line and the read surface normal data;
This is a three-dimensional CG image editing method characterized by being performed in a procedure including

本願発明の第3の発明は、第1または第2の発明に記載の三次元CG画像編集方法において、
前記光源設定段階は、さらに、
算出した入射光直線上に、映り込み像候補点を設定する候補点設定ステップと、
1つの映り込み像候補点に隣接する映り込み像候補点を読み出して、多角形を作成する多角形作成ステップと、
多角形の面積を算出して、所定の値より小さければ、この多角形を構成する候補点を削除する候補点絞込みステップと、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法である。
A third invention of the present invention is the three-dimensional CG image editing method according to the first or second invention,
The light source setting step further includes:
A candidate point setting step for setting a reflected image candidate point on the calculated incident light line;
A polygon creation step of reading a reflected image candidate point adjacent to one reflected image candidate point and creating a polygon;
If the area of the polygon is calculated and smaller than a predetermined value, a candidate point narrowing step for deleting candidate points constituting the polygon; and
This is a three-dimensional CG image editing method characterized by being performed in a procedure including

このように、視線追跡により入射光方向を特定することで映り込み像候補点を設定できるので、レフ板のような明るい対象物を映り込む位置に、容易に配置することができる。 Thus, since the reflected image candidate point can be set by specifying the incident light direction by tracking the line of sight, it can be easily arranged at a position where a bright object such as a reflex plate is reflected.

本願発明の第4の発明は、三次元空間に設定された三次元モデルの表面座標データと表面法線データを対応付けた法線データと、
三次元空間に設定された、三次元モデルデータと映り込み対象物データと視点の座標データと画像平面データとから構成される設定データと、を用いる三次元CG画像編集方法であって、
(1)前記設定データを用いて、三次元モデルを視点から見た三次元CG画像を、画像平面上に作成する
ステップと、
(2)反射光領域の指示を受け付けて、三次元CG画像に映り込み領域を描画する映り込み領域設定ステップと、
(3)視点と、前記描画された映り込み領域の1つの画素とを通過する視線直線が、前記三次元モデルと交差する交点において、視線直線に対して正入射する入射光直線を設定する入射光設定ステップと、
(4)入射光直線が映り込み対象物と交差する点を、映り込み点として設定する映り込み点設定ステップと、
(5)映り込み点の法線方向に光源を設定する光源設定ステップと、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法である。
According to a fourth aspect of the present invention, normal data in which surface coordinate data and surface normal data of a three-dimensional model set in a three-dimensional space are associated with each other,
A three-dimensional CG image editing method using three-dimensional model data, reflection target data, viewpoint coordinate data, and image plane data set in a three-dimensional space,
(1) creating a three-dimensional CG image of the three-dimensional model viewed from the viewpoint on the image plane using the setting data;
(2) a reflection area setting step of receiving an instruction of the reflected light area and drawing the reflection area on the three-dimensional CG image;
(3) Incidence that sets an incident light line that is normally incident on the line of sight at the intersection point where the line of sight passing through the viewpoint and one pixel of the drawn reflection area intersects the three-dimensional model A light setting step;
(4) a reflection point setting step for setting, as a reflection point, a point where the incident light straight line intersects with the reflection object;
(5) a light source setting step for setting the light source in the normal direction of the reflection point;
This is a three-dimensional CG image editing method characterized by being performed in a procedure including

このように、視線追跡により映り込み点の存在する方向を特定することで、映り込んでいるものに、照明光を当てて明るくすることが可能である。 Thus, by specifying the direction in which the reflection point exists by tracking the line of sight, it is possible to brighten the object by applying illumination light to the reflection.

本願発明の第5の発明は、
請求項1から4までに記載の三次元CG画像編集方法において、
前記三次元モデル画像は、三次元モデルデータで表現した立体形状を、視点から見た画像である、ことを特徴とする三次元CG画像編集方法である。
The fifth invention of the present invention is:
In the three-dimensional CG image editing method according to claim 1,
The three-dimensional model image is a three-dimensional CG image editing method characterized in that a three-dimensional shape expressed by three-dimensional model data is an image viewed from a viewpoint.

本願発明の第6の発明は、
三次元空間に設定された、三次元モデルデータと視点データと画像平面データとから構成される設定データを格納する設定格納領域と、
二次元配列した画素から構成される三次元CG画像データを格納する三次元CG画像格納領域と、
を備える記憶部と、
前記設定データを用いて、三次元空間に設定した視点から見た三次元モデルを、画像平面上に三次元CG画像として作成する三次元CG画像作成手段と、
映り込み領域の指示を受け付けて、三次元モデル画像に映り込み領域を描画する映り込み領域設定手段と、
視点と、前記描画された映り込み領域の1つの画素とを通過する視線直線が、前記三次元モデルとの交差する交点に対して、正入射する入射光直線を算出して、入射光直線上に光源を設定する光源設定手段と、
設定した光源を用いて、三次元空間に設定された三次元モデルに光が映り込んだ三次元CG画像をレンダリングするレンダリング手段と、
を備えることを特徴とする三次元CG画像編集装置である。
The sixth invention of the present invention is:
A setting storage area for storing setting data composed of 3D model data, viewpoint data, and image plane data set in a 3D space;
A three-dimensional CG image storage area for storing three-dimensional CG image data composed of two-dimensionally arranged pixels;
A storage unit comprising:
3D CG image creating means for creating a 3D model viewed from the viewpoint set in the 3D space as a 3D CG image on the image plane using the setting data;
Reflection area setting means for receiving an instruction of the reflection area and drawing the reflection area on the three-dimensional model image;
A line of sight line passing through the viewpoint and one pixel of the drawn reflection area is calculated as an incident light line that is normally incident on an intersection where the line of sight intersects the three-dimensional model. A light source setting means for setting a light source to
Rendering means for rendering a three-dimensional CG image in which light is reflected in a three-dimensional model set in a three-dimensional space using a set light source;
A three-dimensional CG image editing apparatus.

本願発明の第7の発明は、
第6の発明に記載の三次元CG画像編集装置において、
前記記憶部は、さらに、
三次元空間に設定された三次元モデルの表面座標データと表面法線データを対応付けた法線データを格納する法線格納領域、
を備えて、
前記三次元モデル画像作成手段は、さらに、
三次元CG画像の画素として画像平面に透視投影される三次元モデルの表面点のおける表面法線データを算出して、この表面法線データを当該表面点の表面座標データと対応付けた法線データを作成して、法線格納領域に格納する表面法線算出機能、
を備えて、
前記光源設定手段は、さらに、
読み取った映り込み領域の座標データを視点座標系に射影変換する射影変換機能と、
映り込み領域の画素の視点座標系座標データを三次元空間座標系に透視変換する透視変換機能と、視点の座標データと、透視変換された反射光像画素の三次元空間系座標データを用いて、視点と読み取った画素とを通る視線直線を算出する視線算出機能と、
視線直線と三次元モデルとの交点の座標データを求めて、法線格納領域の法線データを参照して、交点の座標データと一致する表面座標データに対応付けられた表面法線データを読み取る法線特定機能と、
視線直線と読み取った表面法線データのなす角度と、入射光直線と読み取った表面法線データのなす角度が等しくなるように、入射光直線を設定する入射光設定機能と、
を含んで備える、
ことを特徴とする三次元CG画像編集装置である。
The seventh invention of the present invention is
In the three-dimensional CG image editing device described in the sixth invention,
The storage unit further includes:
A normal storage area for storing normal data in which surface coordinate data and surface normal data of a three-dimensional model set in a three-dimensional space are associated;
With
The three-dimensional model image creation means further includes:
The surface normal data at the surface point of the three-dimensional model that is perspective-projected on the image plane as pixels of the three-dimensional CG image is calculated, and the normal line corresponding to the surface coordinate data of the surface point is calculated. Surface normal calculation function that creates data and stores it in the normal storage area,
With
The light source setting means further includes:
A projective transformation function for projectively transforming the coordinate data of the read reflection area into the viewpoint coordinate system;
Using the perspective transformation function that perspective-transforms the coordinate data of the viewpoint of the pixels in the reflection area into the three-dimensional spatial coordinate system, the coordinate data of the viewpoint, and the three-dimensional spatial coordinate data of the reflected light image pixel that has been perspective transformed A line-of-sight calculation function for calculating a line of sight passing through the viewpoint and the read pixel;
Find the coordinate data of the intersection of the line of sight and the 3D model, refer to the normal data of the normal storage area, and read the surface normal data associated with the surface coordinate data that matches the coordinate data of the intersection Normal line identification function,
An incident light setting function for setting an incident light straight line so that an angle formed between the line of sight and the read surface normal data is equal to an angle formed between the incident light line and the read surface normal data;
Including,
This is a three-dimensional CG image editing device.

本願発明の第8の発明は、第6または7の発明に記載の三次元CG編集装置において、
前期光源設定手段は、さらに、
算出した入射光直線上に、映り込み像候補点を設定する候補点設定機能と、
1つの映り込み像候補点に隣接する映り込み像候補点を読み出して、多角形を作成する多角形作成機能と、
多角形の面積を算出して、所定の値より小さければ、この多角形を構成する候補点を削除する候補点絞込み機能と、
を含んで備えることを特徴とする三次元CG編集装置である。
An eighth invention of the present invention is the three-dimensional CG editing apparatus according to the sixth or seventh invention,
The light source setting means in the previous period is further
A candidate point setting function for setting a reflected image candidate point on the calculated incident light line;
A polygon creation function for reading a reflected image candidate point adjacent to one reflected image candidate point and creating a polygon;
If the area of the polygon is calculated and is smaller than a predetermined value, a candidate point narrowing function for deleting candidate points constituting the polygon,
Is a three-dimensional CG editing apparatus characterized by comprising.

本願発明の第9の発明は、三次元空間に設定された三次元モデルの表面座標データと表面法線データを対応付けた法線データを格納する法線格納領域と、
二次元配列した画素から構成される三次元CG画像データを格納する三次元CG画像格納領域と、
三次元空間に設定された、三次元モデルデータと映り込み対象物データと視点の座標データと画像平面データとから構成される設定データを格納する設定格納領域と、
を備える記憶部と、
前記設定データを用いて、三次元モデルを視点から見た三次元CG画像を、画像平面上に作成する三次元CG画像作成手段と、
映り込み領域の指示を受け付けて、三次元モデル画像に映り込み領域を描画する映り込み領域設定手段と、
視点と、前記描画された反射光像の1つの画素とを通過する視線直線が、前記三次元モデルと交差する交点の於いて、視線直線に対して正入射する入射光直線を設定して、入射光直線が映り込み対象物と交差する映り込み点の法線方向に光源を設定する光源設定手段と、
を備えることを特徴とする三次元CG画像編集装置である。
A ninth aspect of the present invention is a normal storage area for storing normal data in which surface coordinate data and surface normal data of a three-dimensional model set in a three-dimensional space are associated with each other;
A three-dimensional CG image storage area for storing three-dimensional CG image data composed of two-dimensionally arranged pixels;
A setting storage area for storing setting data composed of three-dimensional model data, reflection object data, viewpoint coordinate data, and image plane data set in a three-dimensional space;
A storage unit comprising:
Using the setting data, a 3D CG image creating means for creating a 3D CG image of the 3D model viewed from the viewpoint on an image plane;
Reflection area setting means for receiving an instruction of the reflection area and drawing the reflection area on the three-dimensional model image;
Set an incident light line that is normally incident on the line of sight at the intersection where the line of sight passing through the viewpoint and one pixel of the drawn reflected light image intersects the three-dimensional model, A light source setting means for setting the light source in the normal direction of the reflection point where the incident light straight line intersects the object to be reflected;
A three-dimensional CG image editing apparatus.

本願発明の第10の発明は、請求項6から9までに記載の三次元CG画像編集装置において、
前記三次元モデル画像は、
三次元モデルデータで表現した立体形状を、視点から見た画像である、
ことを特徴とする三次元CG画像編集装置。
According to a tenth aspect of the present invention, in the three-dimensional CG image editing apparatus according to claims 6 to 9,
The three-dimensional model image is
This is an image of a three-dimensional shape expressed by 3D model data as seen from the viewpoint.
A three-dimensional CG image editing device.

本願発明の第10の発明は、
第6から第9の発明の三次元CG画像編集装置において、
前記三次元モデル画像は、三次元モデルデータで表現した立体形状を、視点から見た画像である、ことを特徴とする三次元CG画像編集装置である。
The tenth invention of the present invention is:
In the three-dimensional CG image editing apparatus of the sixth to ninth inventions,
The three-dimensional model image is a three-dimensional CG image editing apparatus characterized in that a three-dimensional shape expressed by three-dimensional model data is an image viewed from a viewpoint.

本願発明の第11の発明は、コンピューターに組込むことによって、コンピューターを第6から第10の発明のいずれか1つに記載の三次元CG画像装置として動作させるコンピュータープログラムである。 An eleventh invention of the present invention is a computer program that causes a computer to operate as the three-dimensional CG image device according to any one of the sixth to tenth inventions by being incorporated in a computer.

本願発明の第12の発明は、第11の発明に記載のコンピュータープログラムを記録したコンピューター読み取り可能な記録媒体である。 A twelfth aspect of the present invention is a computer-readable recording medium on which the computer program according to the eleventh aspect is recorded.

本願発明によれば、
(1)意図した演出効果が得られる照明条件を効率よく決定することが可能である。
(2)三次元モデルの一部分を明るくする演出表現の条件設定を短時間で決定することが可能である。
従って、本発明によれば、意図した演出表現の三次元CG画像を簡便に得ることができるという効果がある。
According to the present invention,
(1) It is possible to efficiently determine the lighting conditions that can achieve the intended effect.
(2) It is possible to determine in a short time the condition setting of the effect expression that brightens a part of the three-dimensional model.
Therefore, according to the present invention, there is an effect that it is possible to easily obtain a three-dimensional CG image of an intended effect expression.

図1は、本発明の実施の形態による三次元CG編集装置の概要を説明する図である。FIG. 1 is a diagram illustrating an overview of a three-dimensional CG editing apparatus according to an embodiment of the present invention. 図2は、三次元CG編集の大まかな作業手順を説明する図である。FIG. 2 is a diagram for explaining a rough work procedure of three-dimensional CG editing. 図3は、「映り込んだ光」と、設定した光源を説明する図である。FIG. 3 is a diagram for explaining “reflected light” and a set light source. 図4は、「映り込んだ光」を有する三次元CG画像を説明する図である。FIG. 4 is a diagram for explaining a three-dimensional CG image having “reflected light”. 図5は、光源算出処理の詳細な手順を説明する図である。FIG. 5 is a diagram illustrating a detailed procedure of the light source calculation process. 図6は、座標変換のための3つの座標系を説明する図である。FIG. 6 is a diagram for explaining three coordinate systems for coordinate conversion. 図7は、一つの光源を作成する詳細な手順を説明する図である。(実施例1)FIG. 7 is a diagram illustrating a detailed procedure for creating one light source. (Example 1) 図8は、三次元CG編集装置の詳細な構成図である。FIG. 8 is a detailed configuration diagram of the three-dimensional CG editing apparatus. 図9は、法線データの形式を説明する図である。FIG. 9 is a diagram for explaining the format of normal data. 図10は、光源設定ゼネラルフローチャートである。FIG. 10 is a light source setting general flowchart. 図11は、1つの光源を設定するフローチャートである。FIG. 11 is a flowchart for setting one light source. 図12は、明るい対象物を設定する詳細な手順を説明する図である。(実施例2)FIG. 12 is a diagram illustrating a detailed procedure for setting a bright object. (Example 2) 図13は、映り込み対象物に光源を設定する詳細な手順を説明する図である。(実施例3)FIG. 13 is a diagram illustrating a detailed procedure for setting a light source for a reflection object. (Example 3)

以下、図面等を参照しながら、本発明の実施の形態について、更に詳しく説明する。 Hereinafter, embodiments of the present invention will be described in more detail with reference to the drawings.

図1は、本発明の実施例1による三次元CG編集装置400の概要を説明する図である。
三次元CG編集装置400は、表示部403を備え、既存のCG編集プログラムを備えたパーソナルコンピューターに、後述する専用プログラムを搭載したものである。
FIG. 1 is a diagram illustrating an overview of a three-dimensional CG editing apparatus 400 according to the first embodiment of the present invention.
The three-dimensional CG editing apparatus 400 includes a display unit 403, and is a personal computer equipped with an existing CG editing program and includes a dedicated program described later.

図2は、三次元CG編集の作業手順を説明する図である。ここでは、三次元空間内の三次元モデル(=三次元物体)の表面に光が映り込んだ三次元CG画像の編集作業を説明する。
《A.「映り込んだ光」の描画》
CGデザイナーは三次元CG編集装置400を用いて、三次元空間の三次元モデルを三次元CG画像として表示部403に表示させる。CGデザイナーは、表示された三次元CG画像に、「映り込んだ光」を表示させたい領域(=映り込み領域)を指定する(図2(1))。
《B.光源の設定》
三次元CG編集装置400は、CGデザイナーが指定した映り込み領域を手掛かりにして、三次元空間に光源を設定する(同(2))。
《C.レンダリング》
三次元CG編集装置400は設定した光源を用いて、三次元データをレンダリングして、表示部403に表示する(同(3))。
FIG. 2 is a diagram for explaining a work procedure of 3D CG editing. Here, an editing operation of a 3D CG image in which light is reflected on the surface of a 3D model (= 3D object) in the 3D space will be described.
<< A. "Drawing Reflected Light">>
The CG designer uses the 3D CG editing apparatus 400 to display the 3D model of the 3D space on the display unit 403 as a 3D CG image. The CG designer designates an area (= reflection area) in which “the reflected light” is to be displayed in the displayed three-dimensional CG image (FIG. 2 (1)).
<< B. Setting the light source >>
The three-dimensional CG editing apparatus 400 sets a light source in the three-dimensional space using the reflection area designated by the CG designer as a clue ((2)).
<< C. rendering"
The three-dimensional CG editing apparatus 400 renders the three-dimensional data using the set light source and displays it on the display unit 403 ((3)).

図3は、CGデザイナーが三次元CG編集装置400で三次元CG画像に映り込み領域を描画し、この映り込み領域から逆算された光源を説明する図である。 FIG. 3 is a diagram for explaining a light source calculated by a CG designer by drawing a reflection area on a three-dimensional CG image using the three-dimensional CG editing apparatus 400.

図3の(a)は、CGデザイナーが三次元モデル画像に映り込み領域を描画した説明図である。CGデザイナーが三次元CG画像に映り込んだ光を表現したいとき、CGデザイナーが三次元CG画像に既存のCG編集プログラムが有するペイントツール等で、映り込み領域310を設定した段階である。たとえば、三次元モデルデータがCADデータであれば、三次元モデル画像300は、ワーヤーフレームで表現されてよい。 FIG. 3A is an explanatory diagram in which a CG designer draws a reflection area on a three-dimensional model image. When the CG designer wants to express the light reflected in the three-dimensional CG image, the CG designer sets the reflection area 310 on the three-dimensional CG image with a paint tool or the like of an existing CG editing program. For example, if the 3D model data is CAD data, the 3D model image 300 may be represented by a worker frame.

図3の(b)には、ペイントツールで塗った領域を映り込み領域として、この映り込み領域から算出した光源130が例示されている。例示されている三次元空間は、設定された視点から見た空間であって、映り込み領域から算出された光源130と、三次元物体120が示されている。算出された光源130は光源の点の集まりで構成されている。 FIG. 3B illustrates the light source 130 calculated from the reflection area, where the area painted with the paint tool is the reflection area. The illustrated three-dimensional space is a space viewed from a set viewpoint, and shows a light source 130 calculated from a reflection area and a three-dimensional object 120. The calculated light source 130 is composed of a collection of light source points.

図4には、図3(b)で算出した光源130を用いて三次元CG画像330をレンダリングしたものである。 In FIG. 4, a three-dimensional CG image 330 is rendered using the light source 130 calculated in FIG.

以下に、図5に沿って、光源算出処理の詳細な手順を説明する。 The detailed procedure of the light source calculation process will be described below with reference to FIG.

《A.「映り込んだ光」の描画》
三次元CG編集装置400は、三次元空間の三次元物体120を、設定された視点から見た三次元モデル画像を編集する(図5(1−1))。
次に、三次元CG編集装置400は、設定された視点から見た投影面に表示した三次元CG画像を構成する画素に対応した三次元物体表面の座標点に対して、表面法線を算出する(同(1−2))。
三次元CG編集装置400は、CGデザイナーが入力した映り込み領域の指定を受け付けて、指定された領域を描画する(同(1−3))。
<< A. "Drawing Reflected Light">>
The three-dimensional CG editing apparatus 400 edits a three-dimensional model image obtained by viewing the three-dimensional object 120 in the three-dimensional space from the set viewpoint (FIG. 5 (1-1)).
Next, the 3D CG editing apparatus 400 calculates a surface normal with respect to the coordinate point of the 3D object surface corresponding to the pixels constituting the 3D CG image displayed on the projection plane viewed from the set viewpoint. (Same as (1-2)).
The three-dimensional CG editing apparatus 400 accepts the specification of the reflection area input by the CG designer and draws the specified area ((1-3)).

《B.光源の設定》
三次元CG編集装置400は、CGデザイナーが三次元モデル画像に描画した映り込み領域の三次元CG画像の座標データを取得する。同(2−1))。
映り込み領域の三次元CG画像の座標データと設定された視点を結んだ視線から三次元空間座標系の映り込み領域の座標データを作成する(同(2−2))。
<< B. Setting the light source >>
The three-dimensional CG editing device 400 acquires coordinate data of a three-dimensional CG image of a reflection area drawn on a three-dimensional model image by a CG designer. (2-1)).
The coordinate data of the reflection area of the three-dimensional spatial coordinate system is created from the coordinate data of the three-dimensional CG image of the reflection area and the line of sight connecting the set viewpoint ((2-2)).

ここで、座標変換について説明する。
図6は、座標変換のための3つの座標系を説明する図である。三次元空間座標系100は、コンピューター上の仮想三次元空間である。三次元空間座標系100には、三次元物体120と、光源130と、視点140とが設定されている。設定された視点に対して画像平面160上には、視点140からみた、三次元物体120の三次元CG画像300が形成される。視点140から伸びる視線150が交わる画像平面上の三次元CG画像の画素301は、視線150が三次元物体120と交わる交点121に対応する。視点座標系は、視点140を原点とした三次元座標系である。画像平面座標系は、カメラからみえる三次元CG画像の座標を表しており、画像平面160に対応する。
Here, coordinate conversion will be described.
FIG. 6 is a diagram for explaining three coordinate systems for coordinate conversion. The three-dimensional space coordinate system 100 is a virtual three-dimensional space on a computer. In the three-dimensional space coordinate system 100, a three-dimensional object 120, a light source 130, and a viewpoint 140 are set. A three-dimensional CG image 300 of the three-dimensional object 120 viewed from the viewpoint 140 is formed on the image plane 160 with respect to the set viewpoint. The pixel 301 of the three-dimensional CG image on the image plane where the line of sight 150 extending from the viewpoint 140 intersects corresponds to the intersection 121 where the line of sight 150 intersects the three-dimensional object 120. The viewpoint coordinate system is a three-dimensional coordinate system with the viewpoint 140 as the origin. The image plane coordinate system represents the coordinates of the three-dimensional CG image seen from the camera and corresponds to the image plane 160.

図5に戻って、説明を続ける。
三次元CG編集装置400は、三次元空間座標系三次元モデル画像データと、三次元物体データと、視点データとを用いて、描画した映り込み領域の画素の全てに対して、光源を求めて、その光源の座標データを算出して、これを含む光源データを作成する(図5(2−3))。
Returning to FIG. 5, the description will be continued.
The three-dimensional CG editing apparatus 400 uses the three-dimensional spatial coordinate system three-dimensional model image data, the three-dimensional object data, and the viewpoint data to obtain a light source for all the pixels in the drawn reflection area. Then, coordinate data of the light source is calculated, and light source data including this is created (FIG. 5 (2-3)).

ここで、光源の算出方法について詳細に説明する。図7は、一つの光源を作成する詳細な手順を説明する図である。三次元空間100には、三次元物体120と、視点140が設定されている。視点140に対して画像平面160が設定されている。 Here, the light source calculation method will be described in detail. FIG. 7 is a diagram illustrating a detailed procedure for creating one light source. In the three-dimensional space 100, a three-dimensional object 120 and a viewpoint 140 are set. An image plane 160 is set for the viewpoint 140.

三次元CG編集装置400は、視点140から、三次元空間座標系の映り込み領域の画素301を通る視線150を算出する(図7(1))。
三次元CG編集装置400は、視線150と三次元物体120との交点(=反射点)において、視線150の正入射光155を算出する(同(2))。
ここで、正入射光とは、3次元モデル120と視線150の交点における、3次元物体120の法線ベクトルと視線150のなす角度θと、法線ベクトルと反射光のなす角度θ’が等しい光である。
The three-dimensional CG editing apparatus 400 calculates the line of sight 150 passing through the pixel 301 in the reflection area of the three-dimensional spatial coordinate system from the viewpoint 140 (FIG. 7 (1)).
The three-dimensional CG editing apparatus 400 calculates the normal incident light 155 of the line of sight 150 at the intersection (= reflection point) of the line of sight 150 and the three-dimensional object 120 ((2)).
Here, the normal incident light is equal to the angle θ formed between the normal vector of the three-dimensional object 120 and the line of sight 150 at the intersection of the three-dimensional model 120 and the line of sight 150, and the angle θ ′ formed between the normal vector and the reflected light. Light.

三次元CG編集装置400は、入射光155の方向から三次元物体120に照明光が入射するように、交点121から適当に離れた位置に光源130を配置する(同(3))。 The three-dimensional CG editing apparatus 400 arranges the light source 130 at a position appropriately separated from the intersection 121 so that the illumination light is incident on the three-dimensional object 120 from the direction of the incident light 155 ((3)).

光源130を配置する位置は、三次元モデル120との間に他の物体が存在しない位置とする。 The position where the light source 130 is disposed is a position where no other object exists between the three-dimensional model 120.

図5に戻って、説明を続ける。
三次元CG編集装置400は、三次元空間座標系の映り込み領域の画素301を手掛かりにして算出して光源130を配置できる。ここで配置した光源130の集まりの中からCGデザイナーが適宜光源130を選択させることができる。(図5(2−4))。
Returning to FIG. 5, the description will be continued.
The three-dimensional CG editing apparatus 400 can place the light source 130 by calculating using the pixel 301 in the reflection area of the three-dimensional spatial coordinate system as a clue. The CG designer can appropriately select the light source 130 from the set of light sources 130 arranged here. (FIG. 5 (2-4)).

図8は、三次元CG編集装置400の詳細な構成図である。
三次元CG編集装置400は、CPU401と、表示部403と、入力部402と、記憶部409と専用プログラムとを備える。
CPU401と、表示部403と、入力部402と、記憶部409とは、BUS499で接続される。
FIG. 8 is a detailed configuration diagram of the three-dimensional CG editing apparatus 400.
The three-dimensional CG editing apparatus 400 includes a CPU 401, a display unit 403, an input unit 402, a storage unit 409, and a dedicated program.
The CPU 401, the display unit 403, the input unit 402, and the storage unit 409 are connected by a BUS499.

CPU401は、中央演算装置である。
表示部403は、液晶表示装置や有機EL表示装置である。
入力部402は、マウスやキーボードである。
入力部402は、表示部403に表示されたソフトキーボードであってもよい。
The CPU 401 is a central processing unit.
The display unit 403 is a liquid crystal display device or an organic EL display device.
The input unit 402 is a mouse or a keyboard.
The input unit 402 may be a soft keyboard displayed on the display unit 403.

記憶部409は、半導体メモリーや磁気メモリーである。
記憶部409は、法線格納領域091と、CG編集プログラム格納領域092と、設定格納領域093と、三次元モデル画像格納領域094と、専用プログラムとを記憶する。
法線格納領域091は、三次元空間100に設定された三次元物体の表面座標データと、表面法線データとを対応付けた法線データ491を格納する。
CG編集プログラム格納領域092は、既存のCG編集プログラム492を格納する。
設定格納領域093は、三次元空間100に設定された三次元物体の三次元モデルデータと、三次元空間100に設定された視点140の座標データと、三次元空間に設定された画像平面の座標データと、から構成される設定データ493を格納する。
三次元モデル画像格納領域094は、二次元配列した画素から構成される三次元CG画像データ494を格納する。
The storage unit 409 is a semiconductor memory or a magnetic memory.
The storage unit 409 stores a normal storage area 091, a CG editing program storage area 092, a setting storage area 093, a 3D model image storage area 094, and a dedicated program.
The normal storage area 091 stores normal data 491 in which surface coordinate data of a three-dimensional object set in the three-dimensional space 100 is associated with surface normal data.
The CG editing program storage area 092 stores an existing CG editing program 492.
The setting storage area 093 includes the 3D model data of the 3D object set in the 3D space 100, the coordinate data of the viewpoint 140 set in the 3D space 100, and the coordinates of the image plane set in the 3D space. And setting data 493 composed of the data.
The three-dimensional model image storage area 094 stores three-dimensional CG image data 494 composed of two-dimensionally arranged pixels.

このほかに、三次元モデル画像作成手段410と、反射光像設定手段420と、光源設定手段430と、レンダリング手段440と、を備える。これらの各手段は、それぞれの専用プログラムによって実現され、専用プログラムがCPU401に解釈・実行されることによって機能する。 In addition, a 3D model image creating unit 410, a reflected light image setting unit 420, a light source setting unit 430, and a rendering unit 440 are provided. Each of these means is realized by each dedicated program, and functions when the dedicated program is interpreted and executed by the CPU 401.

三次元モデル画像作成手段410は、設定データ493を用いて、三次元空間100に配置された三次元物体を画像平面160に透視投影して三次元モデル画像300を作成する。
ここで、三次元モデル画像は、三次元モデルデータで表現した立体形状を、視点から見た画像である。なお、三次元モデル画像作成手段410は、三次元モデル画像300を作成するときに、レンダリング処理を行う必要はない。
Using the setting data 493, the 3D model image creation unit 410 creates a 3D model image 300 by perspectively projecting a 3D object placed in the 3D space 100 onto the image plane 160.
Here, the three-dimensional model image is an image obtained by viewing the three-dimensional shape expressed by the three-dimensional model data from the viewpoint. Note that the 3D model image creation unit 410 does not need to perform rendering processing when creating the 3D model image 300.

三次元モデル画像作成手段410は、表面法線算出機能を含んで構成される。
表面法線算出機能は、画像平面160に三次元CG画像の画素301として透視投影される三次元物体表面点において、表面法線データを算出して、当該表面点の表面座標データと対応付けた法線データ491を作成して、法線格納領域091に格納する。
The three-dimensional model image creation unit 410 includes a surface normal calculation function.
The surface normal calculation function calculates surface normal data at a surface point of a three-dimensional object that is perspective-projected as a pixel 301 of a three-dimensional CG image on the image plane 160 and associates the surface normal data with the surface coordinate data of the surface point. Normal data 491 is created and stored in the normal storage area 091.

映り込み領域設定手段420は、映り込み領域の指示の入力を受け付けて、三次元CG画像に映り込み領域(=反射光像)を描画する。 The reflection area setting unit 420 receives an input of an instruction for the reflection area and draws the reflection area (= reflected light image) on the three-dimensional CG image.

光源設定手段430は、画像平面の三次元CG画像300に描画された反射光像から1つの画素情報301を読み取り、視点140から読み取った画素301を通過する視線直線150を延ばして、三次元物体の表面との交点121(=反射点)を求めて、この交点における法線データ491の表面法線データを用いて、視線直線150に対して、交点にて正入射する入射光155を算出して、入射光直線上に光源130を設定する。
ここで、正入射とは、視線直線と表面法線のなす角度と、入射光直線と表面法線のなす角度が等しいことである。
The light source setting unit 430 reads one pixel information 301 from the reflected light image drawn on the three-dimensional CG image 300 on the image plane, extends the line of sight line 150 passing through the pixel 301 read from the viewpoint 140, and generates a three-dimensional object. An intersection 121 (= reflection point) with the surface of the light is obtained, and using the surface normal data of the normal data 491 at this intersection, the incident light 155 that is normally incident on the line of sight 150 is calculated. Thus, the light source 130 is set on the incident light line.
Here, the normal incidence means that the angle formed between the line of sight and the surface normal is equal to the angle formed between the line of incident light and the surface normal.

光源設定手段430は、射影変換機能と、透視変換機能と、視線算出機能と、法線特定機能と、入射光設定機能と、とを含んで構成される。
射影変換機能は、画像平面の三次元CG画像300に描画された映り込み領域から読み取った画像平面上の映り込み領域の画素301の座標データ(=画像平面系の反射光像画素座標データ)を視点座標系に射影変換する。
透視変換機能は、三次元CG画像上の反射光像画素座標データを三次元空間座標系に変換する。
視線算出機能は、設定データ493に含まれる視点140の座標データと、変換された三次元空間系の反射光像画素座標データを用いて、視点と当該反射光像画素301とを通る視線直線150を算出する。
法線特定機能は、視線直線150と三次元物体120との交点の座標データを求めて、法線格納領域の法線データ491を参照して、交点121の座標データと一致する表面座標データ121に対応付けられた表面法線データ122を読み取る。
入射光設定機能は、視線直線150と読み取った表面法線データ122の法線のなす角度と、入射光155と読み取った表面法線データ122の法線のなす角度が等しくなるように、入射光155を設定する。
The light source setting unit 430 includes a projection conversion function, a perspective conversion function, a line-of-sight calculation function, a normal specifying function, and an incident light setting function.
The projective transformation function uses the coordinate data (= reflected light image pixel coordinate data of the image plane system) of the pixel 301 in the reflection area on the image plane read from the reflection area drawn in the three-dimensional CG image 300 on the image plane. Projective transformation to the viewpoint coordinate system.
The perspective conversion function converts reflected light image pixel coordinate data on a three-dimensional CG image into a three-dimensional spatial coordinate system.
The line-of-sight calculation function uses the coordinate data of the viewpoint 140 included in the setting data 493 and the reflected light image pixel coordinate data of the converted three-dimensional space system, and the line of sight line 150 passing through the viewpoint and the reflected light image pixel 301. Is calculated.
The normal specifying function obtains the coordinate data of the intersection between the line of sight 150 and the three-dimensional object 120, refers to the normal data 491 in the normal storage area, and matches the coordinate data of the intersection 121 with the surface coordinate data 121. The surface normal data 122 associated with is read.
The incident light setting function is such that the angle between the line of sight 150 and the normal of the read surface normal data 122 is equal to the angle between the incident light 155 and the normal of the read surface normal data 122. 155 is set.

光源設定手段430は、さらに、候補点設定機能と、多角形作成機能と、候補点削除機能と、とを含んで構成される。
候補点設定機能は、算出した入射光直線上に、映り込み像候補点を設定する。
角形作成機能は、1つの映り込み像候補点に隣接する映り込み像候補点を読み出して、多角形を作成する。
候補点削除機能は、多角形の面積を算出して、所定の値より小さければ、この多角形を構成する候補点を削除する。(詳細は後述する)
The light source setting unit 430 further includes a candidate point setting function, a polygon creation function, and a candidate point deletion function.
The candidate point setting function sets a reflected image candidate point on the calculated incident light straight line.
The square creation function reads a reflected image candidate point adjacent to one reflected image candidate point, and creates a polygon.
The candidate point deletion function calculates the area of the polygon, and if it is smaller than a predetermined value, deletes the candidate point constituting this polygon. (Details will be described later)

レンダリング手段440は、設定した光源130を用いて、三次元空間の三次元物体に光が映り込んだ三次元CG画像330をレンダリングする。 The rendering unit 440 uses the set light source 130 to render a 3D CG image 330 in which light is reflected on a 3D object in a 3D space.

図9は、法線データ491の形式を説明する図である。法線データ491は、三次元空間100における三次元物体120の表面形状を表現するデータである。法線データ491は、表面座標データ121と、表面法線データ122と、が対応付けられて構成される。
表面座標データ121は、三次元物体の三次元空間座標系の座標データである。表面法線データ122は、単位ベクトルである。
FIG. 9 is a diagram for explaining the format of the normal data 491. The normal data 491 is data representing the surface shape of the three-dimensional object 120 in the three-dimensional space 100. The normal data 491 is configured by associating the surface coordinate data 121 and the surface normal data 122 with each other.
The surface coordinate data 121 is coordinate data of a three-dimensional space coordinate system of a three-dimensional object. The surface normal data 122 is a unit vector.

図10は、光源設定ゼネラルフローチャートである。
(1)光源設定手段430は、設定格納領域093に格納された三次元物体データを参照して、三次元CG画像の各画素301を通る視線が三次元空間の三次元物体と交わる交点121(=反射点)における法線データ491を読み取る。(ステップS100)
(2)映り込み領域設定手段420は、CGデザイナーが入力した映り込み領域の指示を受け付けて、三次元CG画像300に映り込み領域を描画する。(ステップS110)
(3)光源設定手段430は、描画した映り込み領域から1つの画素301を取り出す。(ステップS120)
(4)光源設定手段430は、光源設定処理して、光源を設定する。(ステップS130)
(5)描画した映り込み領域から全ての画素を取り出したか否かを判定する。取り出していなければ、ステップS120に戻る。取り出していれば、終了する。(ステップS140)
FIG. 10 is a light source setting general flowchart.
(1) The light source setting unit 430 refers to the 3D object data stored in the setting storage area 093, and intersects 121 () where the line of sight passing through each pixel 301 of the 3D CG image intersects with the 3D object in the 3D space. = Normal data 491 at reflection point) is read. (Step S100)
(2) The reflection area setting unit 420 receives an instruction of the reflection area input by the CG designer and draws the reflection area on the three-dimensional CG image 300. (Step S110)
(3) The light source setting unit 430 extracts one pixel 301 from the drawn reflection area. (Step S120)
(4) The light source setting means 430 sets a light source by performing a light source setting process. (Step S130)
(5) It is determined whether or not all the pixels have been extracted from the drawn reflection area. If not, the process returns to step S120. If it has been removed, exit. (Step S140)

図11は、1つの光源を設定するフローチャートである。
(1)光源設定手段430は、描画した映り込み領域から取り出した1つの画素301の座標値(二次元座標値)を読み取る、(ステップS200)
(2)光源設定手段430は、読み取った画素301の座標値を視点座標系の座標値(三次元座標値)に射影変換して、さらに、この射影変換された座標値を三次元空間100の座標値に透視変換して、三次元空間100の座標値を算出する。(ステップS210)
(3)光源設定手段430は、設定データ493に含まれる視点140の座標データと、描画した映り込み領域から取り出した1つの画素301の透視変換された三次元空間100の座標値を用いて、視点と当該画素301とを通る視線直線150を算出する。(ステップS220)
(4)光源設定手段430は、視線直線150が三次元物体120と交差した交点121(=反射点)の座標を算出する。(ステップS230)
(5)光源設定手段430は、交点121の座標値を用いて、法線データ122を読み取って、視線直線150と読み取った法線データ122の表す法線とのなす角度と、入射光155と読み取った法線データ122の表す法線とのなす角度が等しくなるように、入射光155を設定する。(ステップS240)
(6)光源設定手段430は、交点120から入射光155方向に適切な距離だけ進んだ位置に光源130を配置する。(ステップS250)
FIG. 11 is a flowchart for setting one light source.
(1) The light source setting means 430 reads the coordinate value (two-dimensional coordinate value) of one pixel 301 taken out from the drawn reflection area (step S200).
(2) The light source setting unit 430 performs projective conversion of the read coordinate value of the pixel 301 into a coordinate value (three-dimensional coordinate value) of the viewpoint coordinate system, and further converts the coordinate value obtained by the projective conversion in the three-dimensional space 100. The coordinate value of the three-dimensional space 100 is calculated through perspective conversion to the coordinate value. (Step S210)
(3) The light source setting unit 430 uses the coordinate data of the viewpoint 140 included in the setting data 493 and the coordinate value of the perspective-transformed three-dimensional space 100 of one pixel 301 extracted from the drawn reflection area, A line-of-sight line 150 passing through the viewpoint and the pixel 301 is calculated. (Step S220)
(4) The light source setting unit 430 calculates the coordinates of the intersection 121 (= reflection point) where the line of sight 150 intersects the three-dimensional object 120. (Step S230)
(5) The light source setting unit 430 reads the normal data 122 using the coordinate value of the intersection 121, and the angle between the line of sight 150 and the normal represented by the read normal data 122, and the incident light 155. The incident light 155 is set so that the angles formed with the normal represented by the read normal data 122 are equal. (Step S240)
(6) The light source setting means 430 arranges the light source 130 at a position advanced from the intersection 120 in the direction of the incident light 155 by an appropriate distance. (Step S250)

次に、三次元物体表面の特定の領域を明るくする方法として、レフ板を利用して三次元物体の表面に写りこませる。図12は、レフ板を映り込み対象物110として設定する手順を説明する図である。三次元空間100には、三次元物体120と、視点140と、三次元モデル画像300とが、設定されている。 Next, as a method of brightening a specific area on the surface of the three-dimensional object, a reflex plate is used to reflect it on the surface of the three-dimensional object. FIG. 12 is a diagram for explaining a procedure for setting the reflex plate as the reflection object 110. In the three-dimensional space 100, a three-dimensional object 120, a viewpoint 140, and a three-dimensional model image 300 are set.

光源設定手段430は、三次元CG画像データに含まれる映り込んだ対象物の画素301の中から1つの画素を読み取って、視点140から、この読み取った画素を通る視線150を設定する(図13(1))。
光源設定手段430は、視線150と三次元物体との交点121(=反射点)において、視線150に対して正入射する入射光155を設定する(同(2))。
光源設定手段430は、入射光155の方向から三次元物体120に照明光が入射するように、交点から適当に離れた位置に候補点を定める(同(3))。
三次元CG画像データに映り込んだ対象物の全ての画素301に対する候補点を定めた後に、定めた候補点の集まりの最外郭をつなぎ、対象物110を作成すればよい。
The light source setting unit 430 reads one pixel from the reflected pixel 301 included in the 3D CG image data, and sets the line of sight 150 passing through the read pixel from the viewpoint 140 (FIG. 13). (1)).
The light source setting unit 430 sets incident light 155 that is normally incident on the line of sight 150 at the intersection 121 (= reflection point) between the line of sight 150 and the three-dimensional object ((2)).
The light source setting unit 430 determines a candidate point at a position appropriately separated from the intersection so that the illumination light is incident on the three-dimensional object 120 from the direction of the incident light 155 ((3)).
After the candidate points for all the pixels 301 of the target object reflected in the three-dimensional CG image data are determined, the outermost contour of the determined set of candidate points may be connected to create the target object 110.

なお、定めた候補点を以下の手順で絞り込んでも良い。
(1)光源設定手段430は、それぞれの候補点について、近傍の候補点2点までの距離を求め、両方の距離とも一定の距離以内であれば、3点の候補点を頂点とする三角形の面を生成する。
(2)光源設定手段430は、次に、隣接する三角形を1つのポリゴングループとしてまとめる。ある三角形の頂点のうちの2頂点を共有する三角形が他に存在した場合には、同じポリゴングループとする。
(3)光源設定手段430は、全ての三角形についてポリゴングループにまとめた後に、一定の面積よりも狭いポリゴングループを削除する。
(4)光源設定手段430は、残されたポリゴングループに属する三角形の頂点(=3点の候補点)を、定めた候補点とする。
The determined candidate points may be narrowed down by the following procedure.
(1) For each candidate point, the light source setting means 430 obtains the distance to two neighboring candidate points, and if both distances are within a certain distance, the light source setting means 430 is a triangle having three candidate points as vertices. Create a face.
(2) Next, the light source setting unit 430 collects adjacent triangles as one polygon group. If there are other triangles that share two vertices of a triangle, the same polygon group is used.
(3) The light source setting unit 430 collects all the triangles into a polygon group, and then deletes a polygon group narrower than a certain area.
(4) The light source setting means 430 sets the remaining triangle vertices (= 3 candidate points) belonging to the polygon group as the determined candidate points.

次に、映り込み対象物110に照明を当てる例を説明する。
図13は、映り込み対象物110に光源を設定する詳細な手順を説明する図である。
三次元空間100には、三次元物体120と、視点140と、三次元物体に映り込ませる対象物110と、画像平面上の三次元モデル画像300とが、設定されている。
Next, an example in which illumination is applied to the reflection target object 110 will be described.
FIG. 13 is a diagram illustrating a detailed procedure for setting a light source for the object 110 to be reflected.
In the three-dimensional space 100, a three-dimensional object 120, a viewpoint 140, an object 110 to be reflected on the three-dimensional object, and a three-dimensional model image 300 on the image plane are set.

光源設定手段430は、視点140から三次元モデル画像が有する映り込んだ対象物の任意の画素301を通る視線150を設定する(図13(1))。
光源設定手段430は、視線150と三次元物体との交点121(=反射点)に対して、視線150に対して正入射する入射光155を設定する(同(2))。ここで、正入射とは、交点の法線と視線150のなす角度θと、法線と入射光のなす角度θ’が等しい関係である。
光源設定手段430は、入射光155が最初に交差する映り込み対象物110との交点を、「映り込み点」として設定する(同(3))。
光源設定手段430は、「映り込み点」を照明する光源130を、「映り込み点」の法線方向に適当な距離だけ離れた位置に配置する(同(4))。
このとき、映り込み対象物110の表面は拡散反射として、映り込み対象の広い範囲を明るくする。
The light source setting unit 430 sets a line of sight 150 that passes through an arbitrary pixel 301 of the reflected object included in the three-dimensional model image from the viewpoint 140 (FIG. 13A).
The light source setting unit 430 sets incident light 155 that is normally incident on the line of sight 150 with respect to the intersection 121 (= reflection point) between the line of sight 150 and the three-dimensional object ((2)). Here, the normal incidence is a relationship in which the angle θ formed between the normal line of the intersection and the line of sight 150 is equal to the angle θ ′ formed between the normal line and the incident light.
The light source setting means 430 sets the intersection point with the reflection target object 110 where the incident light 155 first intersects as the “reflection point” ((3)).
The light source setting means 430 arranges the light source 130 that illuminates the “reflection point” at a position separated by an appropriate distance in the normal direction of the “reflection point” ((4)).
At this time, the surface of the object 110 to be reflected is diffusely reflected to brighten a wide range of objects to be reflected.

現実の大規模な撮影現場において、大掛かりな照明装置を設置調整する前のシミュレーション用途にも適用できる。 It can also be applied to simulation applications before installation and adjustment of a large-scale lighting device in an actual large-scale shooting site.

100 三次元空間
110 三次元物体に映り込ませる対象
120 三次元モデル、三次元物体
130 光源
140 視点
150 視線
155 入射光
160 画像平面
300 三次元CG画像
301 画素
310 「映り込んだ光」を表示したい領域、映り込み領域
320 映り込んだ光
330 レンダリング処理したCG画像
400 本発明の実施の形態による三次元CG編集装置
403 表示部
410 三次元CG画像作成手段
420 映り込み領域設定手段
430 光源設定手段
440 レンダリング手段
491 法線データ
492 既存のCG編集プログラム
493 設定データ
494 三次元CG画像データ

100 Three-dimensional space 110 Object 120 reflected in a three-dimensional object 120 Three-dimensional model, three-dimensional object 130 Light source 140 View point 150 Line of sight 155 Incident light 160 Image plane 300 Three-dimensional CG image 301 Pixel 310 “I want to display the reflected light” Area, Reflection Area 320 Reflected Light 330 Rendered CG Image 400 Three-dimensional CG Editing Device 403 according to Embodiment of the Present Invention Display Unit 410 Three-dimensional CG Image Creation Unit 420 Reflection Area Setting Unit 430 Light Source Setting Unit 440 Rendering means 491 Normal data 492 Existing CG editing program 493 Setting data 494 Three-dimensional CG image data

Claims (12)

三次元空間に設定された、三次元モデルデータと視点データと画像平面データとから構成される設定データを用いる三次元CG画像を編集する方法において、
前記設定データを用いて、三次元空間に設定した視点から見た三次元モデルデータを、画像平面上に三次元CG画像として作成する三次元CG画像作成段階と、
映り込み領域の指示を入力する映り込み領域指示段階と、
映り込み領域指示の入力を受け付けて、三次元CG画像に映り込み領域を描画する映り込み領域設定段階と、
三次元CG画像に描画された映り込み領域を構成する全ての画素に対して、視点からそれぞれの画素を通過する視線直線を引いて、前記三次元モデルと交差する交点において、視線直線に対して正入射する入射光直線を算出して、入射光直線上に光源を設定する光源設定段階と、
設定した光源を用いて、三次元空間に設定された三次元モデルに光が映り込んだ三次元CG画像をレンダリングするレンダリング段階と、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法。
In a method of editing a three-dimensional CG image using setting data composed of three-dimensional model data, viewpoint data, and image plane data set in a three-dimensional space,
Using the setting data, a three-dimensional CG image creation step of creating three-dimensional model data viewed from a viewpoint set in a three-dimensional space as a three-dimensional CG image on an image plane;
A reflection area instruction stage for inputting an instruction of the reflection area;
A reflection region setting stage for receiving an input of a reflection region instruction and drawing the reflection region on the three-dimensional CG image;
For all the pixels constituting the reflection area drawn in the three-dimensional CG image, the line of sight passing through each pixel is drawn from the viewpoint, and the line of sight is intersected at the intersection intersecting with the three-dimensional model. A light source setting stage for calculating a normal incident light straight line and setting a light source on the incident light straight line;
A rendering stage for rendering a three-dimensional CG image in which light is reflected in a three-dimensional model set in a three-dimensional space using the set light source;
A three-dimensional CG image editing method, characterized in that the method is performed in a procedure including:
請求項1に記載の三次元CG画像編集方法において、
前記三次元CG画像作成段階は、さらに、
三次元CG画像の画素として画像平面に透視投影される三次元モデルの表面点のおける表面法線データを算出して、この表面法線データを当該表面点の表面座標データと対応付けた法線データを作成する法線作成ステップ、
を含んで、
前記光源設定段階は、さらに、
読み取った映り込み領域の画素の画像平面座標系座標データを視点座標系に射影変換する射影変換ステップと、
映り込み領域の画素の視点座標系座標データを三次元空間座標系に透視変換する透視変換ステップと、
視点の座標データと、透視変換された映り込み領域の画素の三次元空間系座標データを用いて、視点と読み取った画素とを通る視線直線を算出する視線算出ステップと、
視線直線と三次元モデルとの交点の座標データを求めて、法線データを参照して、交点の座標データと一致する表面座標データに対応付けられた表面法線データを読み取る三次元モデル法線特定ステップと、
視線直線と読み取った表面法線データのなす角度と、入射光直線と読み取った表面法線データのなす角度が等しくなるように、入射光直線を設定する入射光設定ステップと、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法。
The three-dimensional CG image editing method according to claim 1,
The three-dimensional CG image creation step further includes:
The surface normal data at the surface point of the three-dimensional model that is perspective-projected on the image plane as pixels of the three-dimensional CG image is calculated, and the normal line corresponding to the surface coordinate data of the surface point is calculated. Normal creation step to create data,
Including
The light source setting step further includes:
A projective transformation step for projectively transforming the image plane coordinate system coordinate data of the pixels of the read reflection area into the viewpoint coordinate system;
A perspective transformation step for perspective transformation of the coordinate data of the viewpoint coordinate system of the pixels in the reflection area into a three-dimensional spatial coordinate system;
A line-of-sight calculation step for calculating a line of sight that passes through the viewpoint and the read pixel using the coordinate data of the viewpoint and the three-dimensional spatial system coordinate data of the pixels of the reflection region that has been perspective transformed,
The coordinate data of the intersection of the line of sight and the 3D model is obtained, and the normal data is referenced to read the surface normal data associated with the surface coordinate data that matches the coordinate data of the intersection. Specific steps,
An incident light setting step for setting an incident light straight line so that an angle formed between the line of sight and the read surface normal data is equal to an angle formed between the incident light line and the read surface normal data;
A three-dimensional CG image editing method, characterized in that the method is performed in a procedure including:
請求項1または2に記載の三次元CG画像編集方法において、
前記光源設定段階は、さらに、
算出した入射光直線上に、映り込み像候補点を設定する候補点設定ステップと、
1つの映り込み像候補点に隣接する映り込み像候補点を読み出して、多角形を作成する多角形作成ステップと、
多角形の面積を算出して、所定の値より小さければ、この多角形を構成する候補点を削除する候補点絞込みステップと、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法。
The three-dimensional CG image editing method according to claim 1 or 2,
The light source setting step further includes:
A candidate point setting step for setting a reflected image candidate point on the calculated incident light line;
A polygon creation step of reading a reflected image candidate point adjacent to one reflected image candidate point and creating a polygon;
If the area of the polygon is calculated and smaller than a predetermined value, a candidate point narrowing step for deleting candidate points constituting the polygon; and
A three-dimensional CG image editing method, characterized in that the method is performed in a procedure including:
三次元空間に設定された三次元モデルの表面座標データと表面法線データを対応付けた法線データと、
三次元空間に設定された、三次元モデルデータと映り込み対象物データと視点の座標データと画像平面データとから構成される設定データと、を用いる三次元CG画像編集方法であって、
前記設定データを用いて、三次元モデルを視点から見た三次元CG画像を、画像平面上に作成する三次元CG画像作成段階と、
反射光領域の指示を受け付けて、三次元CG画像に映り込み領域を描画する映り込み領域設定段階と、
視点と、前記描画された映り込み領域の1つの画素とを通過する視線直線が、前記三次元モデルと交差する交点において、視線直線に対して正入射する入射光直線を設定する入射光設定段階と、
入射光直線が映り込み対象物と交差する点を、映り込み点として設定する映り込み点設定段階と、
映り込み点の法線方向に光源を設定する光源設定段階と、
設定した光源を用いて、三次元空間に設定された三次元モデルに光が映り込んだ三次元CG画像をレンダリングするレンダリング段階と、
を含んだ手順でなされることを特徴とする三次元CG画像編集方法。
Normal data in which surface coordinate data and surface normal data of a three-dimensional model set in a three-dimensional space are associated,
A three-dimensional CG image editing method using three-dimensional model data, reflection target data, viewpoint coordinate data, and image plane data set in a three-dimensional space,
Using the setting data, a three-dimensional CG image creation step of creating a three-dimensional CG image of the three-dimensional model viewed from the viewpoint on an image plane;
A reflection area setting step of receiving an instruction of the reflected light area and drawing the reflection area on the three-dimensional CG image;
An incident light setting step of setting an incident light line that is normally incident on the line of sight at an intersection where a line of sight passing through the viewpoint and one pixel of the drawn reflection area intersects the three-dimensional model. When,
A reflection point setting stage for setting a point where the incident light straight line intersects the object to be reflected as a reflection point;
A light source setting stage for setting the light source in the normal direction of the reflection point;
A rendering stage for rendering a three-dimensional CG image in which light is reflected in a three-dimensional model set in a three-dimensional space using the set light source;
A three-dimensional CG image editing method, characterized in that the method is performed in a procedure including:
請求項1から4までに記載の三次元CG画像編集方法において、
前記三次元CG画像は、
前記三次元モデル画像は、三次元モデルデータで表現した立体形状を、視点から見た画像である、
ことを特徴とする三次元CG画像編集方法。
In the three-dimensional CG image editing method according to claim 1,
The three-dimensional CG image is
The three-dimensional model image is an image obtained by viewing a three-dimensional shape expressed by three-dimensional model data from a viewpoint.
A three-dimensional CG image editing method characterized by the above.
三次元空間に設定された、三次元モデルデータと視点データと画像平面データとから構成される設定データを格納する設定格納領域と、
二次元配列した画素から構成される三次元CG画像データを格納する三次元CG画像格納領域と、
を備える記憶部と、
前記設定データを用いて、三次元空間に設定した視点から見た三次元モデルを、画像平面上に三次元CG画像として作成する三次元CG画像作成手段と、
映り込み領域の指示を受け付けて、三次元モデル画像に映り込み領域を描画する映り込み領域設定手段と、
視点と、前記描画された映り込み領域の1つの画素とを通過する視線直線が、前記三次元モデルとの交差する交点に対して、正入射する入射光直線を算出して、入射光直線上に光源を設定する光源設定手段と、
設定した光源を用いて、三次元空間に設定された三次元モデルに光が映り込んだ三次元CG画像をレンダリングするレンダリング手段と、
を備えることを特徴とする三次元CG画像編集装置。
A setting storage area for storing setting data composed of 3D model data, viewpoint data, and image plane data set in a 3D space;
A three-dimensional CG image storage area for storing three-dimensional CG image data composed of two-dimensionally arranged pixels;
A storage unit comprising:
3D CG image creating means for creating a 3D model viewed from the viewpoint set in the 3D space as a 3D CG image on the image plane using the setting data;
Reflection area setting means for receiving an instruction of the reflection area and drawing the reflection area on the three-dimensional model image;
A line of sight line passing through the viewpoint and one pixel of the drawn reflection area is calculated as an incident light line that is normally incident on an intersection where the line of sight intersects the three-dimensional model. A light source setting means for setting a light source to
Rendering means for rendering a three-dimensional CG image in which light is reflected in a three-dimensional model set in a three-dimensional space using a set light source;
A three-dimensional CG image editing apparatus comprising:
請求項6に記載の三次元CG画像編集装置において、前記記憶部は、さらに、
三次元空間に設定された三次元モデルの表面座標データと表面法線データを対応付けた法線データを格納する法線格納領域、
を備えて、
前記CG画像作成手段は、さらに、
三次元CG画像の画素として画像平面に透視投影される三次元モデルの表面点のおける表面法線データを算出して、この表面法線データを当該表面点の表面座標データと対応付けた法線データを作成して、法線格納領域に格納する表面法線算出機能、
を備えて、
前記光源設定手段は、さらに、
読み取った映り込み領域の座標データを視点座標系に射影変換する射影変換機能と、
映り込み領域の画素の視点座標系座標データを三次元空間座標系に透視変換する透視変換機能と、視点の座標データと、透視変換された反射光像画素の三次元空間系座標データを用いて、視点と読み取った画素とを通る視線直線を算出する視線算出機能と、
視線直線と三次元モデルとの交点の座標データを求めて、法線格納領域の法線データを参照して、交点の座標データと一致する表面座標データに対応付けられた表面法線データを読み取る法線特定機能と、
視線直線と読み取った表面法線データのなす角度と、入射光直線と読み取った表面法線データのなす角度が等しくなるように、入射光直線を設定する入射光設定機能と、
を含んで備える、
ことを特徴とする三次元CG画像編集装置。
The three-dimensional CG image editing apparatus according to claim 6, wherein the storage unit further includes:
A normal storage area for storing normal data in which surface coordinate data and surface normal data of a three-dimensional model set in a three-dimensional space are associated;
With
The CG image creating means further includes:
The surface normal data at the surface point of the three-dimensional model that is perspective-projected on the image plane as pixels of the three-dimensional CG image is calculated, and the normal line corresponding to the surface coordinate data of the surface point is calculated. Surface normal calculation function that creates data and stores it in the normal storage area,
With
The light source setting means further includes:
A projective transformation function for projectively transforming the coordinate data of the read reflection area into the viewpoint coordinate system;
Using the perspective transformation function that perspective-transforms the coordinate data of the viewpoint of the pixels in the reflection area into the three-dimensional spatial coordinate system, the coordinate data of the viewpoint, and the three-dimensional spatial coordinate data of the reflected light image pixel that has been perspective transformed A line-of-sight calculation function for calculating a line of sight passing through the viewpoint and the read pixel;
Find the coordinate data of the intersection of the line of sight and the 3D model, refer to the normal data of the normal storage area, and read the surface normal data associated with the surface coordinate data that matches the coordinate data of the intersection Normal line identification function,
An incident light setting function for setting an incident light straight line so that an angle formed between the line of sight and the read surface normal data is equal to an angle formed between the incident light line and the read surface normal data;
Including,
A three-dimensional CG image editing device.
請求項6または7に記載の三次元CG編集装置において、
算出した入射光直線上に、映り込み像候補点を設定する候補点設定機能と、
1つの映り込み像候補点に隣接する映り込み像候補点を読み出して、多角形を作成する多角形作成機能と、
多角形の面積を算出して、所定の値より小さければ、この多角形を構成する候補点を削除する候補点絞込み機能と、
を含んで備えることを特徴とする三次元CG編集装置。
The three-dimensional CG editing apparatus according to claim 6 or 7,
A candidate point setting function for setting a reflected image candidate point on the calculated incident light line;
A polygon creation function for reading a reflected image candidate point adjacent to one reflected image candidate point and creating a polygon;
If the area of the polygon is calculated and is smaller than a predetermined value, a candidate point narrowing function for deleting candidate points constituting the polygon,
A three-dimensional CG editing apparatus comprising:
三次元空間に設定された三次元モデルの表面座標データと表面法線データを対応付けた法線データを格納する法線格納領域と、
二次元配列した画素から構成される三次元CG画像データを格納する三次元CG画像格納領域と、
三次元空間に設定された、三次元モデルデータと映り込み対象物データと視点の座標データと画像平面データとから構成される設定データを格納する設定格納領域と、
を備える記憶部と、
前記設定データを用いて、三次元モデルを視点から見た三次元CG画像を、画像平面上に作成する三次元CG画像作成手段と、
映り込み領域の指示を受け付けて、三次元モデル画像に映り込み領域を描画する映り込み領域設定手段と、
視点と、前記描画された反射光像の1つの画素とを通過する視線直線が、前記三次元モデルと交差する交点の於いて、視線直線に対して正入射する入射光直線を設定して、入射光直線が映り込み対象物と交差する映り込み点の法線方向に光源を設定する光源設定手段と、
を備えることを特徴とする三次元CG画像編集装置。
A normal storage area for storing normal data in which surface coordinate data and surface normal data of a three-dimensional model set in a three-dimensional space are associated;
A three-dimensional CG image storage area for storing three-dimensional CG image data composed of two-dimensionally arranged pixels;
A setting storage area for storing setting data composed of three-dimensional model data, reflection object data, viewpoint coordinate data, and image plane data set in a three-dimensional space;
A storage unit comprising:
Using the setting data, a 3D CG image creating means for creating a 3D CG image of the 3D model viewed from the viewpoint on an image plane;
Reflection area setting means for receiving an instruction of the reflection area and drawing the reflection area on the three-dimensional model image;
Set an incident light line that is normally incident on the line of sight at the intersection where the line of sight passing through the viewpoint and one pixel of the drawn reflected light image intersects the three-dimensional model, A light source setting means for setting the light source in the normal direction of the reflection point where the incident light straight line intersects the object to be reflected;
A three-dimensional CG image editing apparatus comprising:
請求項6から9までに記載の三次元CG画像編集装置において、
前記三次元CG画像は、
三次元モデルデータで表現した立体形状を、視点から見た画像である、
ことを特徴とする三次元CG画像編集装置。
In the three-dimensional CG image editing device according to claim 6,
The three-dimensional CG image is
This is an image of a three-dimensional shape expressed by 3D model data as seen from the viewpoint.
A three-dimensional CG image editing device.
コンピューターに組込むことによって、コンピューターを請求項6から10のいずれか1項に記載の三次元CG画像装置として動作させるコンピュータープログラム。 The computer program which makes a computer operate | move as a three-dimensional CG image apparatus of any one of Claim 6 to 10 by incorporating in a computer. 請求項11に記載のコンピュータープログラムを記録したコンピューター読み取り可能な記録媒体。

The computer-readable recording medium which recorded the computer program of Claim 11.

JP2009080034A 2009-03-27 2009-03-27 Three-dimensional cg image editing method, device, program and recording medium Pending JP2010231620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009080034A JP2010231620A (en) 2009-03-27 2009-03-27 Three-dimensional cg image editing method, device, program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009080034A JP2010231620A (en) 2009-03-27 2009-03-27 Three-dimensional cg image editing method, device, program and recording medium

Publications (1)

Publication Number Publication Date
JP2010231620A true JP2010231620A (en) 2010-10-14

Family

ID=43047354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009080034A Pending JP2010231620A (en) 2009-03-27 2009-03-27 Three-dimensional cg image editing method, device, program and recording medium

Country Status (1)

Country Link
JP (1) JP2010231620A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3401881A1 (en) * 2017-05-10 2018-11-14 Fuji Xerox Co., Ltd Editing device for three-dimensional shape data, program, and method
US10249076B2 (en) 2016-01-19 2019-04-02 Canon Kabushiki Kaisha Image processing apparatus, image capturing apparatus, image processing method and storage medium storing image processing program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06111028A (en) * 1992-09-30 1994-04-22 Toppan Printing Co Ltd Image generating device
JP2003115055A (en) * 2001-10-05 2003-04-18 Canon Inc Image generator
JP2003157446A (en) * 2002-09-02 2003-05-30 Namco Ltd Game system and information storage medium
JP2005011100A (en) * 2003-06-19 2005-01-13 Olm Digital:Kk Image processing apparatus and method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06111028A (en) * 1992-09-30 1994-04-22 Toppan Printing Co Ltd Image generating device
JP2003115055A (en) * 2001-10-05 2003-04-18 Canon Inc Image generator
JP2003157446A (en) * 2002-09-02 2003-05-30 Namco Ltd Game system and information storage medium
JP2005011100A (en) * 2003-06-19 2005-01-13 Olm Digital:Kk Image processing apparatus and method, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高橋悦史, 外1名: ""6色カメラによる照明と物体表面の分光推定"", 電子情報通信学会技術研究報告, vol. 第98巻, 第395号, JPN6013014084, 13 November 1998 (1998-11-13), JP, pages 31 - 38, ISSN: 0002489852 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10249076B2 (en) 2016-01-19 2019-04-02 Canon Kabushiki Kaisha Image processing apparatus, image capturing apparatus, image processing method and storage medium storing image processing program
EP3401881A1 (en) * 2017-05-10 2018-11-14 Fuji Xerox Co., Ltd Editing device for three-dimensional shape data, program, and method
US10424124B2 (en) 2017-05-10 2019-09-24 Fuji Xerox Co., Ltd. Editing device for three-dimensional shape data, and non-transitory computer readable medium storing three-dimensional shape-data editing program
US10803678B2 (en) 2017-05-10 2020-10-13 Fuji Xerox Co., Ltd. Editing device for three-dimensional shape data, and non-transitory computer readable medium storing three-dimensional shape-data editing program

Similar Documents

Publication Publication Date Title
US10964108B2 (en) Augmentation of captured 3D scenes with contextual information
US8970586B2 (en) Building controllable clairvoyance device in virtual world
JP6493395B2 (en) Image processing apparatus and image processing method
JP5299173B2 (en) Image processing apparatus, image processing method, and program
US9330501B2 (en) Systems and methods for augmenting panoramic image data with performance related data for a building
US20140125654A1 (en) Modeling and Editing Image Panoramas
JP2006120166A (en) Perspective editing tool for 2-d image
US8223145B2 (en) Method and system for 3D object positioning in 3D virtual environments
JPH0757117A (en) Forming method of index to texture map and computer control display system
JP2010510571A (en) Method and system for color correction of 3D image
JP2003099799A (en) Method for simulating motion of three-dimensional physical object stationary in changeless scene
Cosco et al. Augmented touch without visual obtrusion
CN111127623A (en) Model rendering method and device, storage medium and terminal
CN110559660B (en) Method and medium for mouse-to-object drag in Unity3D scene
US9218688B2 (en) Animatable graphics lighting analysis reporting
US10573072B2 (en) Image processing device, image processing method, and recording medium
JP2006098256A (en) Three-dimensional surface model preparing system, image processing system, program, and information recording medium
CN113129362B (en) Method and device for acquiring three-dimensional coordinate data
JPH06348815A (en) Method for setting three-dimensional model of building aspect in cg system
JP2010231620A (en) Three-dimensional cg image editing method, device, program and recording medium
JP2010033397A (en) Image composition device and method
JP2010152870A (en) Image processing apparatus, image processing method and image processing program
CN109242941B (en) Three-dimensional object synthesis using visual guidance as part of a two-dimensional digital image
JP5673293B2 (en) Image composition method, image composition apparatus, program, and recording medium
US9495796B2 (en) Animatable graphics lighting analysis reporting

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130326

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130723