Hi Dora<br><br><div class="gmail_quote">On 29 August 2012 13:37, dora csillag <span dir="ltr"><<a href="mailto:lolagiscard@hotmail.fr" target="_blank">lolagiscard@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<span style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">Hi all, </span><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif"><br></div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">
<br></div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">I'm currently using VTK Visualisation Toolkit on a Microsoft VS 2010 platform, in order to load and edit some 3D models.</div>
<div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif"><span style="font-size:10pt"><br></span></div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">
<span style="font-size:10pt">I'd like to create a realistic scene with lights, colors and material properties and I need to implement a<b> Ward Brdf Model </b>for the illumination.</span></div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">
<br></div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">When we create actors, we can set values for some properties like Specularity, Specularity Power, Diffuse, Ambient, etc... so I suppose <b>there is a default implemented BRDF like Phong's </b>one in VTK ?? </div>
<div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif"><br></div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">Where can I find this illumination funciton ?</div>
</div></div></blockquote><div><br></div><div>I had same question last month and did not get response. According to my test, it is not pure Phong. </div><div><a href="https://mail.google.com/mail/?shva=1#sent/138d2fb4a6ece87d">https://mail.google.com/mail/?shva=1#sent/138d2fb4a6ece87d</a>
</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif"> </div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">How can I change this model to use mine ? </div>
</div></div></blockquote><div>I would say only via shaders to have full and (simple) control, if no one clarify where illumination function is implemented in vtk.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">Do I need to write and attach a Shader, or can I do it in the CPU ? </div><div style="line-height:17px;color:rgb(42,42,42);font-family:Tahoma,Verdana,Arial,sans-serif">
</div></div></div></blockquote><div>If yes, it can be done via actor's material property</div><div><a href="https://mail.google.com/mail/?shva=1#sent/138d2fb4a6ece87d">https://mail.google.com/mail/?shva=1#sent/138d2fb4a6ece87d</a> </div>
<div>There are also some shaders that could be inspirative: vtkLightingHelper_s.glsl, vtkLighting_s.glsl ... (search for *glsl inside VTK )</div><div>Another way - see vtkLightingPass .</div><div><br></div><div>J.</div></div>