aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/instance__lighter_8h-source.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/instance__lighter_8h-source.html333
1 files changed, 333 insertions, 0 deletions
diff --git a/docs/doxygen/nel/instance__lighter_8h-source.html b/docs/doxygen/nel/instance__lighter_8h-source.html
new file mode 100644
index 00000000..cbd52774
--- /dev/null
+++ b/docs/doxygen/nel/instance__lighter_8h-source.html
@@ -0,0 +1,333 @@
+<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+<HTML>
+<HEAD>
+ <TITLE>nevrax.org : docs</TITLE>
+ <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css">
+ <link href="doxygen.css" rel="stylesheet" type="text/css">
+</HEAD>
+<BODY MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<!-- uplinks -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
+ </TR>
+</TABLE>
+
+<!-- banner Nevrax -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%>
+ <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR>
+</TABLE>
+
+<!-- main table -->
+<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%>
+ <TR>
+ <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
+ <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+ <!------ Begin Box ------>
+ <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black>
+ <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF>
+ <TABLE cellspacing=0 cellpadding=1 border=0>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
+ <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr>
+ </TABLE>
+ </TD></TR></TABLE></TD></TR></TABLE>
+ <!------ End Box ------>
+
+ </TD>
+ <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
+ <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">
+
+<!-- title -->
+<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td>
+<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
+</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
+</td></tr></table>
+&nbsp;
+
+<!-- block -->
+<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD>
+ <TD><B>Documentation</B></TD>
+ <TD ALIGN=RIGHT>&nbsp;</td>
+</tr></table>
+<!-- Generated by Doxygen 1.2.14 -->
+<center>
+<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> &nbsp; </center>
+<hr><h1>instance_lighter.h</h1><a href="instance__lighter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001
+00007 <font class="comment">/* Copyright, 2001 Nevrax Ltd.</font>
+00008 <font class="comment"> *</font>
+00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
+00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
+00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
+00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
+00013 <font class="comment"> * any later version.</font>
+00014 <font class="comment"></font>
+00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
+00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
+00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
+00018 <font class="comment"> * General Public License for more details.</font>
+00019 <font class="comment"></font>
+00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
+00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
+00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
+00023 <font class="comment"> * MA 02111-1307, USA.</font>
+00024 <font class="comment"> */</font>
+00025
+00026 <font class="preprocessor">#ifndef NL_INSTANCE_LIGHTER_H</font>
+00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_INSTANCE_LIGHTER_H</font>
+00028 <font class="preprocessor"></font>
+00029 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
+00030 <font class="preprocessor">#include "<a class="code" href="vector_8h.html">nel/misc/vector.h</a>"</font>
+00031 <font class="preprocessor">#include "<a class="code" href="triangle_8h.html">nel/misc/triangle.h</a>"</font>
+00032 <font class="preprocessor">#include "<a class="code" href="plane_8h.html">nel/misc/plane.h</a>"</font>
+00033 <font class="preprocessor">#include "<a class="code" href="matrix_8h.html">nel/misc/matrix.h</a>"</font>
+00034 <font class="preprocessor">#include "<a class="code" href="scene__group_8h.html">3d/scene_group.h</a>"</font>
+00035 <font class="preprocessor">#include "<a class="code" href="landscape_8h.html">3d/landscape.h</a>"</font>
+00036 <font class="preprocessor">#include "<a class="code" href="shape_8h.html">3d/shape.h</a>"</font>
+00037 <font class="preprocessor">#include "<a class="code" href="mesh_8h.html">3d/mesh.h</a>"</font>
+00038 <font class="preprocessor">#include "<a class="code" href="mesh__mrm_8h.html">3d/mesh_mrm.h</a>"</font>
+00039 <font class="preprocessor">#include "<a class="code" href="cube__grid_8h.html">3d/cube_grid.h</a>"</font>
+00040 <font class="preprocessor">#include "<a class="code" href="ig__surface__light__build_8h.html">3d/ig_surface_light_build.h</a>"</font>
+00041
+00042
+00043 <font class="keyword">namespace </font>NL3D
+00044 {
+00045
+00046
+00047 <font class="comment">// ***************************************************************************</font>
+<a name="l00055"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html">00055</a> <font class="comment"></font><font class="keyword">class </font>CInstanceLighter
+00056 {
+00057 <font class="keyword">public</font>:
+00058
+00059 <font class="keyword">enum</font> {<a class="code" href="classNL3D_1_1CInstanceLighter.html#s1s0">MaxOverSamples</a>= 16};
+00060
+00061 <font class="keyword">public</font>:
+00062
+00063 <font class="comment">// Light Options decription structure</font>
+<a name="l00064"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html">00064</a> <font class="keyword">class </font>CLightDesc
+00065 {
+00066 <font class="keyword">public</font>:
+00067 <font class="comment">// Default Ctor</font>
+00068 <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#a0">CLightDesc</a> ();
+00069
+00070 <font class="comment">// Disable Sun contribution: ie set 0 to all contributions of sun on instances and surfaces?? false by default</font>
+<a name="l00071"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m0">00071</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m0">DisableSunContribution</a>;
+00072
+00073 <font class="comment">// Sun direction</font>
+<a name="l00074"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m1">00074</a> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m1">LightDirection</a>;
+00075
+00076 <font class="comment">// Grid size</font>
+<a name="l00077"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m2">00077</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m2">GridSize</a>;
+00078
+00079 <font class="comment">// Grid size</font>
+<a name="l00080"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m3">00080</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m3">GridCellSize</a>;
+00081
+00082 <font class="comment">// Project shadows on instances.</font>
+<a name="l00083"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m4">00083</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m4">Shadow</a>;
+00084
+00085 <font class="comment">// Number of samples For sun shadowing only. Must be: 0 (disable), 2, 4, 8, 16</font>
+<a name="l00086"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m5">00086</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m5">OverSampling</a>;
+00087
+00088 <font class="comment">// This is a user shapeMap.</font>
+<a name="l00089"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m6">00089</a> std::map&lt;std::string, IShape*&gt; <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CLightDesc.html#m6">UserShapeMap</a>;
+00090
+00091 };
+00092
+00093 <font class="comment">// A triangle used to light the zone</font>
+<a name="l00094"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html">00094</a> <font class="keyword">class </font>CTriangle
+00095 {
+<a name="l00096"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#l0">00096</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#l0">CInstanceLighter</a>;
+00097 <font class="keyword">public</font>:
+00098 <font class="comment">// Ctors</font>
+<a name="l00099"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#a0">00099</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#a0">CTriangle</a> (<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CTriangle.html">NLMISC::CTriangle</a>&amp; triangle, <a class="code" href="types__nl_8h.html#a13">sint</a> instanceId)
+00100 {
+00101 <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#m0">Triangle</a>=triangle;
+00102 <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#m1">InstanceId</a>= instanceId;
+00103 }
+00104
+00105 <font class="comment">// The triangle</font>
+<a name="l00106"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#m0">00106</a> <a class="code" href="classNLMISC_1_1CTriangle.html">NLMISC::CTriangle</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#m0">Triangle</a>;
+00107
+00108 <font class="comment">// which instance owns this triangle. -1 if none (landscape or others ig).</font>
+<a name="l00109"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#m1">00109</a> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#m1">InstanceId</a>;
+00110
+00111 <font class="comment">// Other info</font>
+<a name="l00112"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#a1">00112</a> <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CPlane.html">NLMISC::CPlane</a> &amp;<a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#a1">getPlane</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#o0">Plane</a>;}
+00113
+00114 <font class="keyword">private</font>:
+<a name="l00115"></a><a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#o0">00115</a> <a class="code" href="classNLMISC_1_1CPlane.html">NLMISC::CPlane</a> <a class="code" href="classNL3D_1_1CInstanceLighter_1_1CTriangle.html#o0">Plane</a>;
+00116 };
+00117
+00118
+00119 <font class="keyword">public</font>:
+00120
+00124 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#d0">lightIgSimple</a>(<a class="code" href="classNL3D_1_1CInstanceLighter.html#a0">CInstanceLighter</a> &amp;instLighter, <font class="keyword">const</font> CInstanceGroup &amp;igIn, CInstanceGroup &amp;igOut, <font class="keyword">const</font> CLightDesc &amp;lightDesc);
+00125
+00126 <font class="keyword">public</font>:
+00127
+00129 <a class="code" href="classNL3D_1_1CInstanceLighter.html#a0">CInstanceLighter</a>();
+<a name="l00131"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#a1">00131</a> <font class="keyword">virtual</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#a1">~CInstanceLighter</a>() {}
+00132
+00133 <font class="comment">// Init the system</font>
+00134 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#a2">init</a> ();
+00135
+00146 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#a3">light</a> (<font class="keyword">const</font> CInstanceGroup &amp;igIn, CInstanceGroup &amp;igOut, <font class="keyword">const</font> CLightDesc &amp;lightDesc, std::vector&lt;CTriangle&gt;&amp; obstacles,
+00147 CLandscape *landscape= NULL, CIGSurfaceLightBuild *igSurfaceLightBuild= NULL);
+00148
+00149
+00150 <font class="comment">// Add triangles from a landscape</font>
+00151 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#d1">addTriangles</a> (CLandscape &amp;landscape, std::vector&lt;uint&gt; &amp;listZone, <a class="code" href="types__nl_8h.html#a14">uint</a> order, std::vector&lt;CTriangle&gt;&amp; triangleArray);
+00152
+00156 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#d1">addTriangles</a> (<font class="keyword">const</font> IShape &amp;shape, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a>&amp; modelMT, std::vector&lt;CTriangle&gt;&amp; triangleArray, <a class="code" href="types__nl_8h.html#a13">sint</a> instanceId);
+00157
+00158 <font class="comment">// Progress callback</font>
+<a name="l00159"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#a4">00159</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#a4">progress</a> (<font class="keyword">const</font> <font class="keywordtype">char</font> *message, <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#a4">progress</a>) {};
+00160
+00161
+00163
+00164
+00168 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z449_0">addStaticPointLight</a>(<font class="keyword">const</font> CPointLightNamed &amp;pln);
+00169
+00171
+00172
+00173 <font class="comment">// ********************************</font>
+00174 <font class="keyword">private</font>:
+00175
+00176
+00177 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#d1">addTriangles</a> (<font class="keyword">const</font> CMeshGeom &amp;meshGeom, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a>&amp; modelMT, std::vector&lt;CTriangle&gt;&amp; triangleArray, <a class="code" href="types__nl_8h.html#a13">sint</a> instanceId);
+00178 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#d1">addTriangles</a> (<font class="keyword">const</font> CMeshMRMGeom &amp;meshGeom, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a>&amp; modelMT, std::vector&lt;CTriangle&gt;&amp; triangleArray, <a class="code" href="types__nl_8h.html#a13">sint</a> instanceId);
+00179 <font class="keyword">static</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#f2">excludeAllPatchFromRefineAll</a> (CLandscape &amp;landscape, std::vector&lt;uint&gt; &amp;listZone, <font class="keywordtype">bool</font> exclude);
+00180
+00181
+00182 <font class="comment">// light / rayTrace against sun.</font>
+00183 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#c0">computeSunContribution</a>(<font class="keyword">const</font> CLightDesc &amp;lightDesc, std::vector&lt;CTriangle&gt;&amp; obstacles, CLandscape *landscape);
+00184
+00185 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#c1">dilateLightingOnSurfaceCells</a>();
+00186
+00187 <font class="keyword">private</font>:
+00188 <font class="keyword">struct </font>CPointLightRT;
+00189
+<a name="l00190"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html">00190</a> <font class="keyword">struct </font>CInstanceInfo
+00191 {
+00192 <font class="comment">// Center of the mesh to compute lighting.</font>
+<a name="l00193"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m0">00193</a> CVector <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m0">CenterPos</a>;
+00194
+00195 <font class="comment">// Pos of samples, for overSampling. if none, OverSamples[0]== CenterPos</font>
+<a name="l00196"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m1">00196</a> CVector <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m1">OverSamples</a>[MaxOverSamples];
+00197
+00198 <font class="comment">// Temp light which influence this instance.</font>
+<a name="l00199"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m2">00199</a> CPointLightRT *<a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m2">Light</a>[CInstanceGroup::NumStaticLightPerInstance];
+00200
+00201 <font class="comment">// Temp Ambient light which influence this instance.</font>
+<a name="l00202"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m3">00202</a> CPointLightRT *<a class="code" href="structNL3D_1_1CInstanceLighter_1_1CInstanceInfo.html#m3">LocalAmbientLight</a>;
+00203 };
+00204
+00205 <font class="comment">// Instance of the current ig to be lighted.</font>
+<a name="l00206"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o0">00206</a> std::vector&lt;CInstanceGroup::CInstance&gt; <a class="code" href="classNL3D_1_1CInstanceLighter.html#o0">_Instances</a>;
+00207 <font class="comment">// Instance Lighting Info of the current ig to be lighted.</font>
+<a name="l00208"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o1">00208</a> std::vector&lt;CInstanceInfo&gt; <a class="code" href="classNL3D_1_1CInstanceLighter.html#o1">_InstanceInfos</a>;
+00209 <font class="comment">// The current instance computed. Used to skip it in raytracing</font>
+<a name="l00210"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o2">00210</a> <a class="code" href="types__nl_8h.html#a13">sint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#o2">_CurrentInstanceComputed</a>;
+00211 <font class="comment">// CIGSurfaceLight Info.</font>
+<a name="l00212"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o3">00212</a> CIGSurfaceLightBuild *<a class="code" href="classNL3D_1_1CInstanceLighter.html#o3">_IGSurfaceLightBuild</a>;
+00213 <font class="comment">// The RetrieverGridMap currently builded.</font>
+<a name="l00214"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o4">00214</a> CIGSurfaceLight::TRetrieverGridMap <a class="code" href="classNL3D_1_1CInstanceLighter.html#o4">_IGRetrieverGridMap</a>;
+00215
+00216
+<a name="l00218"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html">00218</a> <font class="keyword">struct </font>CPointLightRT
+00219 {
+<a name="l00220"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m0">00220</a> CPointLightNamed <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m0">PointLight</a>;
+<a name="l00221"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m1">00221</a> <font class="keywordtype">float</font> <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m1">OODeltaAttenuation</a>;
+00222 <font class="comment">// BBox of the pointLight</font>
+<a name="l00223"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m2">00223</a> <a class="code" href="classNLMISC_1_1CBSphere.html">NLMISC::CBSphere</a> <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m2">BSphere</a>;
+00224
+00225 <font class="comment">// Faces that may occlude the light. Only Back Faces (from the light pov) are inserted</font>
+<a name="l00226"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m3">00226</a> CCubeGrid&lt;const CTriangle*&gt; <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m3">FaceCubeGrid</a>;
+00227 <font class="comment">// Number of TileLightInfluences which use this PointLight.</font>
+<a name="l00228"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m4">00228</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m4">RefCount</a>;
+00229 <font class="comment">// Final id of the pointLight in the Ig.</font>
+<a name="l00230"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m5">00230</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#m5">DstId</a>;
+00231
+00232 <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#a0">CPointLightRT</a>();
+00233
+00239 <font class="keywordtype">bool</font> <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPointLightRT.html#a1">testRaytrace</a>(<font class="keyword">const</font> CVector &amp;<a class="code" href="driver__opengl__extension__def_8h.html#a246">v</a>, <a class="code" href="types__nl_8h.html#a13">sint</a> instanceComputed= -1);
+00240 };
+00241
+00242
+<a name="l00244"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPredPointLightToPoint.html">00244</a> <font class="keyword">struct </font>CPredPointLightToPoint
+00245 {
+<a name="l00246"></a><a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPredPointLightToPoint.html#m0">00246</a> CVector <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPredPointLightToPoint.html#m0">Point</a>;
+00247
+00248 <font class="keywordtype">bool</font> <a class="code" href="structNL3D_1_1CInstanceLighter_1_1CPredPointLightToPoint.html#a0">operator() </a>(CPointLightRT *pla, CPointLightRT *plb) <font class="keyword">const</font>;
+00249 };
+00250
+00251
+<a name="l00253"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o5">00253</a> std::vector&lt;CPointLightRT&gt; <a class="code" href="classNL3D_1_1CInstanceLighter.html#o5">_StaticPointLights</a>;
+<a name="l00255"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#o6">00255</a> CQuadGrid&lt;CPointLightRT*&gt; <a class="code" href="classNL3D_1_1CInstanceLighter.html#o6">_StaticPointLightQuadGrid</a>;
+00256
+00257
+00259 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#c2">compilePointLightRT</a>(<a class="code" href="types__nl_8h.html#a14">uint</a> gridSize, <font class="keywordtype">float</font> gridCellSize, std::vector&lt;CTriangle&gt;&amp; obstacles, <font class="keywordtype">bool</font> doShadow);
+00260
+00264 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#c3">processIGPointLightRT</a>(std::vector&lt;CPointLightNamed&gt; &amp;listPointLight);
+00265
+00266
+00267 <font class="keyword">private</font>:
+00268
+00270 <font class="comment">// @{</font>
+00271
+00272 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_0">beginCell</a>();
+00273 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_1">nextCell</a>();
+00274 <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_2">isEndCell</a>();
+00275 <font class="comment">// get current cell iterated.</font>
+00276 CSurfaceLightGrid::CCellCorner &amp;<a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_3">getCurrentCell</a>();
+00277 <font class="comment">// get current cellInfo iterated.</font>
+00278 CIGSurfaceLightBuild::CCellCorner &amp;<a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_4">getCurrentCellInfo</a>();
+00279 <font class="comment">// Neighboring of the cell</font>
+00280 <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_5">isCurrentNeighborCellInSurface</a>(<a class="code" href="types__nl_8h.html#a13">sint</a> xnb, <a class="code" href="types__nl_8h.html#a13">sint</a> ynb);
+00281 CSurfaceLightGrid::CCellCorner &amp;<a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_6">getCurrentNeighborCell</a>(<a class="code" href="types__nl_8h.html#a13">sint</a> xnb, <a class="code" href="types__nl_8h.html#a13">sint</a> ynb);
+00282 CIGSurfaceLightBuild::CCellCorner &amp;<a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_7">getCurrentNeighborCellInfo</a>(<a class="code" href="types__nl_8h.html#a13">sint</a> xnb, <a class="code" href="types__nl_8h.html#a13">sint</a> ynb);
+00283
+<a name="l00284"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_8">00284</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_8">getCurrentCellNumber</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_16">_ItCurrentCellNumber</a>;}
+<a name="l00285"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_9">00285</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_9">getTotalCellNumber</a>()<font class="keyword"> const </font>{<font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_17">_TotalCellNumber</a>;}
+00286 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_10">progressCell</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *message);
+00287
+00288 <font class="comment">// Iteration Data.</font>
+<a name="l00289"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_11">00289</a> CIGSurfaceLight::ItRetrieverGridMap <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_11">_ItRetriever</a>;
+<a name="l00290"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_12">00290</a> CIGSurfaceLightBuild::ItRetrieverGridMap <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_12">_ItRetrieverInfo</a>;
+<a name="l00291"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_13">00291</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_13">_ItSurfId</a>;
+<a name="l00292"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_14">00292</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_14">_ItCellId</a>;
+<a name="l00293"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_15">00293</a> <font class="keywordtype">bool</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_15">_IsEndCell</a>;
+<a name="l00294"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_16">00294</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_16">_ItCurrentCellNumber</a>;
+<a name="l00295"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_17">00295</a> <a class="code" href="types__nl_8h.html#a14">uint</a> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_17">_TotalCellNumber</a>;
+<a name="l00296"></a><a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_18">00296</a> <font class="keywordtype">float</font> <a class="code" href="classNL3D_1_1CInstanceLighter.html#z450_18">_LastCellProgress</a>;
+00297
+00298 <font class="comment">// @}</font>
+00299
+00300 };
+00301
+00302
+00303 } <font class="comment">// NL3D</font>
+00304
+00305
+00306 <font class="preprocessor">#endif // NL_INSTANCE_LIGHTER_H</font>
+00307 <font class="preprocessor"></font>
+00308 <font class="comment">/* End of instance_lighter.h */</font>
+</pre></div>
+
+<!-- footer -->
+<BR><FONT Size=+5>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
+</TD>
+<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
+</TR>
+</TABLE>
+</BODY>
+</HTML>