<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Thank you Jana for your ideas ! <div><br></div><div>I'm now trying with shaders, and in deed I get inspired by the existing shader samples.</div><div><br></div><div>It's rather curious that nobody knows how it was implemented originally... ! </div><div><br></div><div><br></div><div><br></div><div>All the best,</div><div><br></div><div>Dora<br><div><div id="ecxSkyDrivePlaceholder"></div><hr id="ecxstopSpelling">Date: Thu, 30 Aug 2012 21:44:05 +0200<br>Subject: Re: [vtkusers] Brdf Implementation in Vtk<br>From: neollie@gmail.com<br>To: lolagiscard@hotmail.fr<br>CC: vtkusers@vtk.org<br><br>Hi Dora<br><br><div class="ecxgmail_quote">On 29 August 2012 13:37, dora csillag <span dir="ltr"><<a href="mailto:lolagiscard@hotmail.fr">lolagiscard@hotmail.fr</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="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" target="_blank">https://mail.google.com/mail/?shva=1#sent/138d2fb4a6ece87d</a>
</div><div><br></div><blockquote class="ecxgmail_quote" style="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="ecxgmail_quote" style="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" target="_blank">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></div></div>                                            </div></body>
</html>