[vtkusers] Using vtkExternalOpenGLCamera
Sankhesh Jhaveri
sankhesh.jhaveri at kitware.com
Thu Jul 20 11:12:34 EDT 2017
Hi,
Could you please provide more details on how you’re trying to set the
camera parameters?
The way the external camera works is that it ignores the camera position
and focal point parameters if the projection and model view matrices are
set explicitly using vtkExternalOpenGLCamera::SetProjectionMatrix() and
vtkExternalOpenGLCamera::SetModelViewTransformMatrix()
Thanks,
Sankhesh
On Wed, Jul 19, 2017 at 9:59 AM elainejiang8 <elainejiang8 at gmail.com> wrote:
> Hi everyone!
>
> I'm building a program that uses the externalVTKWidget to volume render an
> object in an OpenGL context. Right now, I'm calling
>
> *ren->GetActiveCamera();
> *
>
> (where ren is a vtkExternalOpenGLRenderWindow instance) in my render
> function so I can control the position and focal point of the camera.
> However, I'm unable to get the camera to actually have any effect on the
> scene. The documentation for vtkExternalOpenGLCamera is rather slim, and I
> can't find any similar examples, so I am a bit stuck on this issue.
>
> Does anyone have any insight into how I could approach this problem? Thanks
> in advance!
>
> Elaine
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Using-vtkExternalOpenGLCamera-tp5744015.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
--
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170720/4330de2f/attachment.html>
More information about the vtkusers
mailing list