[vtkusers] QVTKWidget avoid transparent background when rendering

Jothy jothybasu at gmail.com
Fri Aug 19 12:10:54 EDT 2011


Thanks it works!

You need to add the renderer first before calling show().

Jothy

On Fri, Aug 19, 2011 at 5:00 PM, Clinton Stimpson <clinton at elemtech.com>wrote:

> On Friday, August 19, 2011 02:50:06 am Doria David wrote:
> > Some strange behaviors occurs especially on QVTKWidget: when I show a
> > QVTKWidget with a 3D volume, for example, the widget are
> > shown transparent, showing the contents of the windows that are behind,
> > for example a WordPad window until it is completely rendered. How can I
> > avoid this strange behaviors ? (Ideally a black background instead of
> > showing the contents of the windows that are behind) Thank you.
>
> Can you do QVTKWidget::show(), a Render() to clear the background, then add
> the volume and render afterwards?  The background is disabled for
> QVTKWidget
> to avoid a flickering issue.
>
> --
> Clinton Stimpson
> Elemental Technologies, Inc
> Computational Simulation Software, LLC
> www.csimsoft.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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110819/e8710004/attachment.htm>


More information about the vtkusers mailing list