[vtkusers] Window Flickers.

R K Shyamprakash ramakrishna.prakash at quest-global.com
Tue Jun 24 02:59:56 EDT 2003


Jeff,
        Thanks a million. It worked. Now I am running my application with
the libraries I built. I have another gut feeling. Can I attribute the
mysterious crashes to the libraries i used from standard download. I had
written about it to the mailing lists sometime ago. following is the code

	protected int determineRegions(vtkPolyData data) {
		vtkPolyDataConnectivityFilter	conFilForRegion = new
vtkPolyDataConnectivityFilter();
		conFilForRegion.SetInput(data);
		conFilForRegion.ScalarConnectivityOff();
		conFilForRegion.SetExtractionModeToAllRegions();
		conFilForRegion.Update();
		return conFilForRegion.GetNumberOfExtractedRegions();
	}

I used to encounter crash(not everytime when I run the code, but very often)
in the line
conFilForRegion.Update();
It could not have been a thread issue since the input to the filter was not
the data which I rendered(I keep a copy of pipeline for processing). So far
after building VTK i have not experienced the crash. By the way, do you have
any idea on which Windows version the standard download binaries were built?

Thanks
Shyam



-----Original Message-----
From: Jeff Lee [mailto:jeff at cdnorthamerica.com]
Sent: Monday, June 23, 2003 6:58 PM
To: R K Shyamprakash
Subject: Re: [vtkusers] Window Flickers.




R K Shyamprakash wrote:

>Jeff,
>        I do perform a pick upon mouseClick. but it works fine if I use
>standard binary download from VTK site. the problem exists only with my VTK
>build. Do I need to make any changes in the code before building?
>
My problem occurred only when there was also a vtkTextActor in the
scene.  You could try to remove the glDepthFunc calls in
vtkOpenGLFreeTypeTextMapper.cxx and see if that helps.
-Jeff

>
>Thanks
>Shyam
>
>-----Original Message-----
>From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
>Jeff Lee
>Sent: Friday, June 20, 2003 5:54 PM
>To: R K Shyamprakash
>Cc: vtkusers at vtk.org
>Subject: Re: [vtkusers] Window Flickers.
>
>
>
>
>R K Shyamprakash wrote:
>
>
>
>>Hi,
>>   Even I had a similar problemsometime back when I myself built the VTK
>>4.2 release. When I clicked on the 3d object it used to flicker, it's
front
>>face used  toget chopped off(similar effect as that we get when we set
>>FrontFaceCullingOn()) and sometime the object used to show a mixed solid
>>
>>
>and
>
>
>>wireframe representaion. Then I used the binary from VTK and the problem
>>
>>
>was
>
>
>>gone, but till date I am not suer what exactly was the problem. Can
anybody
>>please analyze this?
>>
>>
>>
>did you have a vtkTextMapper in your renderer at the time?  when you
>clicked, did you also perform a pick?
>-Jeff
>
>
>
>>Shyam
>>
>>-----Original Message-----
>>From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
>>Amit Tikekar
>>Sent: Friday, June 20, 2003 10:35 AM
>>To: vtkusers at www.vtk.org
>>Subject: [vtkusers] Window Flickers.
>>Sensitivity: Private
>>
>>
>>Hi,
>>
>>I have an image processing application. I read the image data & then pass
>>
>>
>it
>
>
>>to vtkImageViewer. This image is displayed in a child window through MFC.
>>When I resize(stretch or shrink via mouse)  the window the whole view area
>>flickers. I checked whether the double buffering mode is ON & by default
it
>>is. I tried the same process on other imaging applications & there the
>>flicker is absent.
>>
>>What am I missing ? Or is this all VTK can offer me ?
>>
>>Looking forward to your help.
>>
>>Regards
>>Amit
>>
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
>><http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
>>
>>
><http://public.kitware.com/cgi-bin/vtkfaq>
>
>
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>>
>>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>




More information about the vtkusers mailing list