<div dir="ltr"><div class="gmail_default" style="font-size:small">Bill, the LightCollection dont have this method. The equivalence is NewInstance?</div><div class="gmail_default" style="font-size:small">I'm trying this:</div><div class="gmail_default" style="font-size:small"><br></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="font-style:italic;color:rgb(0,0,0)">GetRenderWindow</span><span style="color:rgb(0,0,0)">()-></span><span style="font-style:italic;color:rgb(0,0,0)">AddRenderer</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,0)">renderer</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)">renderer</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">SetBackground</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">0.576</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">0.749</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(0,0,128)">0.874</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)">renderer</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">CreateLight</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)">lightCol</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">NewInstance</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)">lightCol</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,128,0)">int</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">i</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)">lightCol</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetNumberOfItems</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,128,0)">if</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,0)">i</span><span style="color:rgb(0,0,0)">></span><span style="color:rgb(0,0,128)">0</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)">(</span><span style="color:rgb(128,0,128)">vtkLight</span><span style="color:rgb(0,0,0)">*)</span><span style="color:rgb(128,0,0)">lightCol</span><span style="color:rgb(0,0,0)">-></span><span style="color:rgb(0,0,0)">GetItemAsObject</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(0,0,128)">0</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(192,192,192)"> </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 view dont change.</div><div class="gmail_default">What do I want, is to improve the vizualiation of the 3d models that I load.</div><div class="gmail_default">From this:</div><div class="gmail_default"><a href="http://pt-br.tinypic.com/r/2aj6zh2/9">http://pt-br.tinypic.com/r/2aj6zh2/9</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">To something like this:</div><div class="gmail_default"><a href="http://centrumdruku3d.pl/wp-content/uploads/2014/12/RepetierServer2.png">http://centrumdruku3d.pl/wp-content/uploads/2014/12/RepetierServer2.png</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">And i think that correcting the lights, will be the first step...</div><div class="gmail_default"><br></div><div class="gmail_default">See ya</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-11 13:04 GMT-02:00 Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Do,</p>
<p dir="ltr">col->Initialize ();</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Dec 11, 2015 9:50 AM, "Lays Rodrigues" <<a href="mailto:laysrodriguessilva@gmail.com" target="_blank">laysrodriguessilva@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">The tip of Amelie dont work. Someone have more tips? >.<</div><div class="gmail_default" style="font-size:small">Att</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-11 8:59 GMT-02:00 ameloush <span dir="ltr"><<a href="mailto:theryame@gmail.com" target="_blank">theryame@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You could try this :<br>
<br>
vtkSmartPointer<vtkLightCollection> col =<br>
vtkSmartPointer<vtkLightCollection>::New();<br>
<br>
col = ren->GetLights();<br>
int i=col->GetNumberOfItems(); // to be sure there is at list one<br>
light<br>
light = (vtkLight*)col->GetItemAsObject(0);<br>
light->SetIntensity(10);<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></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>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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>