<div dir="ltr"><div dir="ltr">If you have a scene that you want to render in VTK, the easiest would be to build a vtkDataset (vtkPolyData most likely) and then<div>render that in VTK. You don't need to worry about the OpenGL transform or interaction as VTK does this for you.</div><div><br></div><div>Take a look atĀ </div><div><a href="https://lorensen.github.io/VTKExamples/site/">https://lorensen.github.io/VTKExamples/site/</a><br></div><div>Cxx / GeometricObjects</div><div>for examples of how to do this.</div><div><br></div><div>Dan</div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 22, 2018 at 6:01 PM Elhassan Abdou <<a href="mailto:elhassan.abdou@gmail.com">elhassan.abdou@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear All,<div><br></div><div>I have a scene that I constructed using OpenGL and I want to rewrite the code using VTK.</div><div>So I have view matrix (compose of, scaling in z, and translation in the x,y,z).</div><div>I know I am rendering using perspective mode, so I have near plane, far plane and horizontalĀ  fov.</div><div><br></div><div>I tried to use vtkExternalOpenGL, but nothing is rendered.</div><div><br></div><div>Can anyone give me help on how to adjust vtkOpenGLCamera to use these parameters to render the scene?</div><div><br></div><div>Regards</div><div>Elhassan</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="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>