<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small">I would like to know, how to set lighting Intensity on a scene.</div><div class="gmail_default" style="font-size:small">I already look at those examples: <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx#Lighting" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx#Lighting</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The first example: I dont need a new shadow.</div><div class="gmail_default" style="font-size:small">The second example: I dont think that i need a new light to contrabalance the first light.</div><div class="gmail_default" style="font-size:small">The third example: I tried but the error: Is not a spotlight happens. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">And, i'm working with Vtk + Qt, and i dont find any solutions on the web.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I tried this:</div><div class="gmail_default">
<pre style="font-size:small;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,128,0)">auto</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">col</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkSmartPointer</span><span style="color:rgb(0,0,0)"><</span><span style="color:rgb(128,0,128)">vtkLightCollection</span><span style="color:rgb(0,0,0)">>::</span><span style="color:rgb(0,0,0)">New</span><span style="color:rgb(0,0,0)">();</span></pre>
<pre style="font-size:small;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">col</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">renderer</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetLights</span><span style="color:rgb(0,0,0)">();</span></pre>
<pre style="font-size:small;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">light</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">col</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetNextItem</span><span style="color:rgb(0,0,0)">();</span></pre>
<pre style="font-size:small;margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,0)">light</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SetIntensity</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">10</span><span style="color:rgb(0,0,0)">);</span></pre><pre style="font-size:small;margin-top:0px;margin-bottom:0px"><span style="color:rgb(0,0,0)"><br></span></pre>But the program crashed.</div><div class="gmail_default">What do i do?</div><div class="gmail_default">Please, help me. </div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">__<div><b>Lays Rodrigues</b></div><div><b>Front-End Developer at Br-Print3D Project(KDE)</b></div><div><b>Computer Science Student at UFF/PURO</b></div><div>Organizadora da Semana da Computação UFF-PURO</div><div><a href="http://www.facebook.com/semanacomputacaopuro" target="_blank">www.facebook.com/semanacomputacaopuro</a></div><div><a href="http://www.facebook.com/brprint3d" target="_blank">www.facebook.com/brprint3d</a><br></div><div><a href="http://www.brprint3d.wordpress.com" target="_blank">www.brprint3d.wordpress.com</a><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div>
</div>