[vtkusers] vtk vs opengl

Udaya Bedampeta udaya.bedampeta at eigen.com
Thu Jan 28 14:05:07 EST 2010


Hi,
>     I am having refresh issues while using vtk and opengl in the same
> application. Here is some detail about the issue I have,
>
>                 I have 2 windows (MFC based app), One window uses Opengl
to
> display a human model (basically reading an stl file and constructing it).
>                 The other window is constructed using vtk. The same human
> model is being displayed in this window too.
>
>                 Now, the issue is the human model appears fine in the vtk
> window fine, but the opengl window initially does not display when the
> window is shown but once I refresh it by a click in the opengl window the
> human model comes back. In contrary to it if I explicitly call glFInish()
> and wglMakeCurrentContext(null, null) in onpaint() of opengl window the
> human model appears just fine as in vtk window. Since I am newbie I am not
> making any speculations for this behavior but feel that vtk is holding up
> some handles, resources etc which is being used by opengl window.
>
>                 I appreciate any thoughts about the issues and what is the
> better way of using vtk vs opengl in the same application.

>                 Thanks all in advance.
>
> Thanks,
> Uday

-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez at kitware.com] 
Sent: Wednesday, January 27, 2010 11:44 AM
To: Udaya Bedampeta
Cc: insight-users at itk.org
Subject: Re: [Insight-users] vtk vs opengl

Hi Uday

You may get better luck with this question
if you post it to the VTK user's list.


      Regards,


                Luis



----------------------------------------------------
On Thu, Jan 21, 2010 at 4:16 PM, Udaya Bedampeta
<udaya.bedampeta at eigen.com> wrote:
> Hi,
>
>
>
>     I am having refresh issues while using vtk and opengl in the same
> application. Here is some detail about the issue I have,
>
>
>
>                 I have 2 windows (MFC based app), One window uses Opengl
to
> display a human model (basically reading an stl file and constructing it).
>
>                 The other window is constructed using vtk. The same human
> model is being displayed in this window too.
>
>
>
>                 Now, the issue is the human model appears fine in the vtk
> window fine, but the opengl window initially does not display when the
> window is shown but once I refresh it by a click in the opengl window the
> human model comes back. In contrary to it if I explicitly call glFInish()
> and wglMakeCurrentContext(null, null) in onpaint() of opengl window the
> human model appears just fine as in vtk window. Since I am newbie I am not
> making any speculations for this behavior but feel that vtk is holding up
> some handles, resources etc which is being used by opengl window.
>
>
>
>                 I appreciate any thoughts about the issues and what is the
> better way of using vtk vs opengl in the same application.
>
>
>
>                 Thanks all in advance.
>
>
>
> Thanks,
>
> Uday
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>




More information about the vtkusers mailing list