<div dir="ltr">Thanks for the information,<div><br></div><div>As you probably guessed I was not looking in the proper folder for the OpenGL2 backend that I configured. </div><div><br></div><div>I managed to get something, almost working (I have strange shadows in addition to the normal shadow) by changing this example. As I would like to understand what is wrong, I then started to try to get the TestShadowMapPass.cxx working as it is. </div><div><br></div><div>I have 2 problems: </div><div> - #include "vtkRegressionTestImage.h"</div><div>"Cannot open include file: 'vtkRegressionTestImage.h' "<br></div><div>I believe I did not include or generate the vtk module that contains it (but I do not manage to know which one it could be). It seems it is not useful for the core of this feature, but I would like to get everything working before going further... </div><div><br></div><div>- the code is mentioning a 3D object: dragon.ply . On my computer I only have the dragon.ply.md5 . What should I do? Use another software to transform the .md5 into a .ply, or something else?</div><div><br></div><div>Finally, as you mentioned, this shadow rendering seems to not be compatible with the stereo technique implemented in the vtkRenderWindow or at least no directly...</div><div><br></div><div>Thanks!</div><div>Rémi</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-27 21:43 GMT+02:00 Ken Martin <span dir="ltr"><<a href="mailto:ken.martin@kitware.com" target="_blank">ken.martin@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For both the old and new OpenGL backends there are tests built into VTK using shadows. See<div><br></div><div>VTK/Rendering/OpenGL2/Testing/Cxx/TestShadowMapPass.cxx or if building the old backend</div><div><div>VTK/Rendering/OpenGL/Testing/Cxx/TestShadowMapPass.cxx. I have do not know if those will work in conjunction with the stereo technique you are using but those examples should give you some ideas.</div></div><div><br></div><div>Thanks</div><div>Ken</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Jun 27, 2016 at 3:22 AM, Remi Charrier <span dir="ltr"><<a href="mailto:remi.charrier@gmail.com" target="_blank">remi.charrier@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear vtk users community, <div><br></div><div>I started 3 weeks ago a new project with vtk, I just register to this mailing list to get answers to some of my questions. Let me know if I am doing anything wrong in the use of this mailing list.</div><div><br></div><div>My development environment is : </div><div>- Visual Studio 2013</div><div>- vtk7.0</div><div>- qt5.7</div><div>My computer has a NVidia TITAN X graphic card. </div><div><br></div><div>Here is my problem: </div><div>- I managed to create a vtkRenderWindow that allows me to display different 3D meshes</div><div>- I am using Stereo Rendering (Anaglyph mode) </div><div>- I would like to project the shadows of my different elements on the others elements.</div><div><br></div><div>To do so I tried many different things, but did not manage to find anything that seems to work.</div><div>Here are what I tried: </div><div>- vtkEDLshading - I got it running but it does not do what I expected and no projected shadows appear</div><div>- vtkShadowMapBakerPass (as described in<span style="font-size:1em;color:rgb(0,0,0);font-family:monospace,monospace;line-height:1.2em;background-color:rgb(249,249,249)"> </span><font color="#000000" face="monospace, monospace" style="font-size:12.8px"><span style="line-height:15.6px"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows</a>) but I have compilation errors on </span></font><span style="font-size:1em;color:rgb(0,0,0);font-family:monospace,monospace;line-height:1.2em;background-color:rgb(249,249,249)">vtkShadowMapBakerPass</span><span style="font-size:1em;font-family:monospace,monospace;line-height:1.2em;color:rgb(0,128,128)">::</span><span style="font-size:1em;font-family:monospace,monospace;line-height:1.2em;color:rgb(0,119,136)">OCCLUDER</span><span style="font-size:1em;font-family:monospace,monospace;line-height:1.2em;color:rgb(0,128,0)">(</span><span style="font-size:1em;font-family:monospace,monospace;line-height:1.2em;color:rgb(0,128,0)">),</span><span style="color:rgb(0,0,0);font-family:monospace,monospace;font-size:12.8px;line-height:15.6px"> it seems this class has change or I missed something: "</span><font color="#000000" face="monospace, monospace"><span style="font-size:12.8px;line-height:15.6px">error C2039: 'OCCLUDER' : is not a member of 'vtkShadowMapBakerPass'"</span></font></div><div><font color="#000000" face="monospace, monospace"><span style="font-size:12.8px;line-height:15.6px">- Then I tried to only use basic functions associated to the renderer or the actors: </span></font><span style="font-size:12.8px">m_Renderer->UseShadowsOn(); </span><span style="font-size:12.8px"> m_cylTipActor->GetProperty()</span><span style="font-size:12.8px">->ShadingOn(); But once again no visible result... </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If someone can tell me where the correct information to display projected shadows with VTK 7.0 can be found, I can then investigate and come back to you with my code if I am still having problems. </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks in advance, </span></div><div><span style="font-size:12.8px">Rémi (glad to come back to vtk after an 8 years break)</span></div><div><span style="font-size:12.8px"><br></span></div></div><div><br> <table style="border-top:1px solid #d3d4de">
<tbody><tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/2016/icons/icon-envelope-tick-round-orange_184x116-v1.png" width="46" height="29" style="width:46px;min-height:29px"></a></td>
<td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Garanti sans virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:#4453ea" target="_blank">www.avast.com</a> </td>
</tr>
</tbody></table>
<a href="#m_2849201775683376845_m_8386774261481987078_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
<br></div></div>_______________________________________________<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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature">Ken Martin PhD<div>Chairman & CFO<br>Kitware Inc.<br>28 Corporate Drive<br>Clifton Park NY 12065<br><a href="tel:518%20371%203971" value="+15183713971" target="_blank">518 371 3971</a><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div>
</font></span></div>
</blockquote></div><br></div>