1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
3<!-- InstanceBegin template="/Templates/default_template.dwt" codeOutsideHTMLIsLocked="false" -->
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6<meta http-equiv="Content-Style-Type" content="text/css" />
7<!-- InstanceBeginEditable name="CSS の相対パス指定" -->
8<link href="../../../common/manual.css" rel="stylesheet" type="text/css" />
9<script type="text/javascript" src="../../../common/ibox.js"></script>
10<!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="ページのタイトル" -->
11<title>Untitled Document</title>
12<!-- InstanceEndEditable -->
13</head>
14<body>
15<div>
16  <div class="body"> <!-- InstanceBeginEditable name="本文のタイトル" -->
17    <h1>Ambient Light and Fragment Light Settings</h1>
18    <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="本文" -->
19    <p>This section describes the basics of creating and setting ambient lights and fragment lights.</p>
20    <h2>Ambient Lights and Fragment Lights</h2>
21    <ul>
22      <li>Ambient light, also called &quot;indirect lighting,&quot; is light that adds a fixed level of brightness to the entire screen.</li>
23      <li>Fragment lights result in shadows and are calculated per fragment.</li>
24    </ul>
25    <h3>Loading Models</h3>
26    <p>On the CreativeStudio menu, select <B>File</B> &rarr; <B>Open</B> &rarr; <B>Intermediate file</B> to load the model intermediate file.</p>
27    <p>This example is based on a spherical model that uses lambert.</p>
28    <a href="assets/fragment_light01.png" rel="ibox" title="Click the image to enlarge"><img class="ui_thumb" src="assets/fragment_light01.png" alt="Cube model sample display image 01"/></a>
29    <p>Reference: <br /> The size and position of the sample sphere being used are given below. <br />Here, Maya is being used as the 3DCG tool. (Defaults are used for all tool settings.)</p>
30    <ul>
31      <li>Radius: 3.5</li>
32      <li>X, Y, Z position: 0 , 3.5 , 0</li>
33    </ul>
34    <h4>Changing lighting settings</h4>
35    <p>Under <B>Lighting</B> on the material <B>Properties</B> panel, select <B>Enable vertex lighting</B>.</p>
36    <img src="assets/fragment_light02.png" alt="Fragment light combiner image"/>
37    <h4>Checking the Texture Combiner</h4>
38    <p>Select <B>MaterialCtr1</B> in the <B>Contents</B> panel and check the settings for <B>Combiner 0</B> in the material <B>Properties</B> panel.</p>
39    <p>For details on texture combiners, click <a href="../../../ui_reference/panel/material/standard_panel/standard_panel_combiner/index.html#combiner">here</a>.</p>
40    <img src="assets/fragment_light03.png" alt="Ambient Lights and Fragment Lights"/>
41    <p class="hint">This configures the material to be affected by only the primary color.<br /> With this setting, you cannot use the settings B: Source 1 and C: Source 2.</p>
42    <table>
43      <thead>
44        <tr>
45          <th>Fragment light</th>
46          <th>Description</th>
47        </tr>
48      </thead>
49      <tbody>
50        <tr>
51          <th>Primary color</th>
52          <td>Lighting results for emission, ambient, diffuse lighting.</td>
53        </tr>
54        <tr>
55          <th>Secondary color</th>
56          <td>Lighting results for specular lighting.</td>
57        </tr>
58      </tbody>
59    </table>
60    <h3>Creating Ambient Lights</h3>
61    <p>On the CreativeStudio menu, click <B>Create</B> &rarr; <B>Light</B> &rarr; <B>Ambient light</B>.</p>
62    <p>This creates an ambient light and displays <B>AmbientLight</B> in CreativeStudio's <B>Content</B> panel.</p>
63    <img src="assets/fragment_light04.png" alt="Image after an ambient light is created"/>
64    <p>Because the ambient color of the material is the ambient color of all lights, the entire model takes on the same hue without any shadowing.</p>
65    <h3>Creating Fragment Lights</h3>
66    <p>On the CreativeStudio menu, select <B>Create</B> &rarr; <B>Light</B> &rarr; <B>Fragment light</B>.</p>
67    <p>This creates a fragment light and displays <B>Light</B> in CreativeStudio's <B>Content</B> panel.</p>
68    <img src="assets/fragment_light05.png" alt="Fragment light creation preview"/>
69    <p>Once a fragment light is created, you can change the diffuse color and specular color using the fragment lighting <B>Properties</B> panel.</p>
70    <p>For details on the fragment lighting <B>Properties</B> panel, click <a href="../../../ui_reference/panel/fragmentlight_panel/index.html">here</a>.</p>
71    <a href="assets/fragment_light06.png" rel="ibox" title="Click the image to enlarge"><img class="ui_thumb" src="assets/fragment_light06.png" alt="Fragment light"/></a>
72    <p>Here, we have swtiched the diffuse color of the fragment light to red.</p>
73    <a name="ambient_color" id="ambient_color"></a>
74    <h3>Adjusting the Ambient Color</h3>
75    <p>This section provides a simple explanation of how to adjust the ambient colors configured when creating ambient lights and fragment lights.</p>
76    <h4>Adjusting the global ambient</h4>
77    <p>You can adjust teh ambient color (environmental light) of <em>all models</em> in a scene by adjusting the color value of the global ambient (ambient light).</p>
78    <h4>Adjusting the material ambient color</h4>
79    <p>You can adjust the ambient color (environmental light) for each model by adjusting the value of the ambient color and emission color on the material <B>Properties</B> panel.</p>
80    <p>When this is done, the value of the global ambient color, material ambient color, and emission color are calculated as given below.</p>
81    <p class="system">Material emission color + Ambient light x Material ambient color</p>
82    <p class="new_hint"><B>Note:</B> Only one ambient light value can be set inside a scene. <br /> Even if many values are set, the ambient light will take the value that was set last.</p>
83    <p class="hint_warn">Caution:<br /> If 0 has been set for the RGB values of the ambient light or material ambient, values will remain zero and the Preview will not change no matter how much you try to change the RGB values of the fragment light ambient color.</p>
84    <!--<h3>アンビエントカラーの調整</h3>     <p>ここでは、アンビエントライトとフラグメントライトの作成で設定するアンビエントカラーの調整方法について簡単に説明します。</p>     <h4>すべてのモデルのアンビエントカラーの調整</h4>     <p>シーン内にある<em>すべてのモデル</em>のアンビエントカラー ( 陰色 ) はグローバルアンビエント ( アンビエントライト ) のカラー値を操作して調整することができます。</p>     <h4>個々のモデルのアンビエントカラーの調整</h4>     <p>シーン内にある<em>個々のモデル</em>で、アンビエントカラー ( 陰色 ) を変更したい場合は以下の調整方法があります。</p>     <ol>       <li><em>モデルのマテリアルパネルで、アンビエントカラーの値を変更する。</em><br />         この場合、グローバルアンビエントのカラー値とモデルのアンビエントカラーが<em>乗算</em>されます。<br />         グローバルアンビエント ( アンビエントライト ) とは「アンビエントライト」+ 「フラグメントライトのアンビエント ( フラグメントライトの個数分 ) 」のことです。<br />         アンビエントライトの値は、シーン内で 1 つだけ設定できます。<br />         複数設定しても 最後に設定したアンビエントライトの値が反映されます。<br />         <p class="warning">アンビエントライト、もしくはマテリアルアンビエントの RGB 値が 0 で設定されていた場合、いくらフラグメントライトのアンビエントカラーの RGB 値を変更しても値が 0 になってしまいプレビューが変化しません。</p>       </li>       <li><em>モデルのマテリアルパネルで、エミッションの値を変更する。</em><br />         エミッションは「グローバルアンビエント」+「エミッション」ですので、値を入れることにより陰の色を変更できます。<br />         <p class="warning">エミッションはシーンの環境光を明るくしているわけではなく、モデルを発光させているのでアンビエントライトの設定を変更してもモデルの陰の色自体はそのまま残ってしまいますので注意が必要です。<br />           アンビエント設定が難しい時の 1 つの方法で万能ではありません。</p>       </li>     </ol>--> <!-- InstanceEndEditable --> </div>
85  <div class="footer" />
86</div>
87<hr><p>CONFIDENTIAL</p></body>
88<!-- InstanceEnd -->
89</html>