<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
Oh... I've seen that before.&nbsp; It is because QVTKRenderWidget.py makes
no effort to create an x11 window that supports the features asked for
in vtkRenderWindow.&nbsp; It simply takes the QWidget as is.<br>
<br>
Alternatively, the C++ QVTKWidget can now be wrapped and is available
from python.<br>
<br>
Clint<br>
<br>
On 08/18/2010 03:30 AM, Daniel Lea wrote:
<blockquote
 cite="mid:AANLkTinKQvYPCwrTzMzY2iiXFc8aDeG6Mo573fDyGWXB@mail.gmail.com"
 type="cite">I'm not sure I made it clear actually, the module I'm
using is QVTKRenderWidget.py. &nbsp;Has this been tested with depth peeling?<br>
  <br>
  <div class="gmail_quote">On 17 August 2010 22:10, Daniel Lea <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:danlea@gmail.com">danlea@gmail.com</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>Well that's what I was concerned about. &nbsp;Setting it
immediately after the python call:<br>
    </div>
    <div><br>
    </div>
    <div>self._RenderWindow = vtk.vtkRenderWindow()</div>
    <div>self._RenderWindow.SetAlphaBitPlanes(1)</div>
    <div><br>
    </div>
    <div>It must be the python module that's the problem? &nbsp;I'll see
what I can do.</div>
    <div>
    <div class="h5">
    <div><br>
    </div>
    <br>
    <div class="gmail_quote">On 17 August 2010 21:58, Clinton Stimpson <span
 dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>&gt;</span>
wrote:<br>
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
      <div style="word-wrap: break-word;"><br>
      <div>
      <div>
      <div>On Aug 17, 2010, at 12:09 PM, Daniel Lea wrote:</div>
      <br>
      <blockquote type="cite">OK, now I've realised you can get some
debug output with a standard build using the DebugOn() method in the
right objects, I've determined that in my QVTKWidget, there are zero
alpha bits, which is why depth peeling is not used (note that
AlphaBitPlanes is definitely set). &nbsp;I'm trying to find out how to
resolve this, but perhaps someone has already come across this problem
and sorted it out?<br>
      </blockquote>
      <div><br>
      </div>
      </div>
      <div>Is AlphaBitPlanes being set before the window is initialized?</div>
      <div>I tried it on an example using QVTKWidget, and it worked
fine for me.</div>
      <div><br>
      </div>
      <div>Clint</div>
      <br>
      <blockquote type="cite">
        <div>
        <div><br>
        <div class="gmail_quote">On 17 August 2010 15:32, Daniel Lea <span
 dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:danlea@gmail.com"
 target="_blank">danlea@gmail.com</a>&gt;</span> wrote:<br>
        <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div>Please see below for details of the problem. &nbsp;Having run
the depth peeling test using a separate build of vtk (same version as
my Ubuntu package: 5.2.1), the result is a failure (seems the front
panel isn't translucent) but it does say that depth peeling was used.
&nbsp;I'd rather not have to configure a build for the application in order
to debug vtk, so if anyone has any ideas why depth peeling might not be
used in the application, do get in touch.<br>
          </div>
          <div><br>
          </div>
          <div>Cheers,</div>
          <div><br>
          </div>
          <div>Dan.</div>
          <div>
          <div>
          <div><br>
          </div>
          <br>
          <div class="gmail_quote">On 16 August 2010 18:11, Francois
Bertel <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:francois.bertel@kitware.com" target="_blank">francois.bertel@kitware.com</a>&gt;</span>
wrote:<br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi
Dan,<br>
            <br>
The best way to ask a question is to post it on the vtkusers list. You<br>
will have a larger audience of people that can answer you:<br>
            <br>
            <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
            <br>
To answer your question: make sure you have VTKData and your VTK build<br>
directory points to VTKData, what is the result of:<br>
$ ctest -R TestTranslucentLUTDepthPeeling -V<br>
            <br>
Does it say "Depth peeling was used", like here:<br>
            <a moz-do-not-send="true"
 href="http://www.cdash.org/CDash/testDetails.php?test=62870189&amp;build=694461"
 target="_blank">http://www.cdash.org/CDash/testDetails.php?test=62870189&amp;build=694461</a><br>
            <br>
            <br>
On Mon, Aug 16, 2010 at 12:57 PM, Dan Lea &lt;<a moz-do-not-send="true"
 href="mailto:danlea@gmail.com" target="_blank">danlea@gmail.com</a>&gt;
wrote:<br>
&gt; Hi Fran&ccedil;ois, I'm sure this isn't the best way to contact you
directly,<br>
&gt; but it's the only one I've found so far.<br>
&gt;<br>
&gt; I'm having trouble getting depth peeling to work on my linux system<br>
&gt; (python vtk bindings in a Qt widget, dual nvidia quadro nvs 290,
latest<br>
&gt; nvidia drivers), despite what appears to be full suport for it.
&nbsp;Can you<br>
&gt; think of any reason that the renderer would not use depth peeling,<br>
&gt; having set everything correctly according to your documentation,
and<br>
&gt; given that<br>
&gt; vtk.vtkOpenGLExtensionManager.ExtensionSupported("GL_VERSION_2_0")<br>
&gt; returns 1 (as well as GL_ARB_texture_rectangle), and<br>
&gt; glGetIntegerv(0x0D55) ("GL_ALPHA_BITS") returns 8?<br>
&gt;<br>
&gt; Thanks in advance. &nbsp;Dan.<br>
&gt;<br>
&gt; Here are the details of the window and renderer after a render:<br>
&gt;<br>
&gt; vtkXOpenGLRenderWindow (0x7f7e088ae550)<br>
&gt; &nbsp;Debug: Off<br>
&gt; &nbsp;Modified Time: 223311<br>
&gt; &nbsp;Reference Count: 1<br>
&gt; &nbsp;Registered Events:<br>
&gt; &nbsp; &nbsp;Registered Observers:<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x3e958a0)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4039cd0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 4<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4038d70)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x403cdb0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 5<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x3e884a0)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x403fde0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 6<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x403f740)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4042e90<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 7<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4042c90)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4045f50<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 8<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4045d50)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4047d80<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 9<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4c7ce40)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x404b130<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 10<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4c8c290)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x404e140<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 11<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4c97ae0)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4051150<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 12<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4ca60f0)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4054160<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 13<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x4cb3160)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x4047520<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 14<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x40483c0)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x3e817e0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 15<br>
&gt; &nbsp; &nbsp; &nbsp;vtkObserver (0x3f79810)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Event: 2<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;EventName: DeleteEvent<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Command: 0x3e61f50<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Priority: 0<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;Tag: 3<br>
&gt; &nbsp;Erase: On<br>
&gt; &nbsp;Window Name: Visualization Toolkit - OpenGL<br>
&gt; &nbsp;Position: (0, 0)<br>
&gt; &nbsp;Size: (1097, 747)<br>
&gt; &nbsp;Mapped: 1<br>
&gt; &nbsp;OffScreenRendering: 0<br>
&gt; &nbsp;Double Buffered: 1<br>
&gt; &nbsp;DPI: 120<br>
&gt; &nbsp;TileScale: (1, 1)<br>
&gt; &nbsp;TileViewport: (0, 0, 1, 1)<br>
&gt; &nbsp;Borders: On<br>
&gt; &nbsp;IsPicking: Off<br>
&gt; &nbsp;Double Buffer: On<br>
&gt; &nbsp;Full Screen: Off<br>
&gt; &nbsp;Renderers:<br>
&gt; &nbsp; &nbsp;Debug: Off<br>
&gt; &nbsp; &nbsp;Modified Time: 6280<br>
&gt; &nbsp; &nbsp;Reference Count: 1<br>
&gt; &nbsp; &nbsp;Registered Events: (none)<br>
&gt; &nbsp; &nbsp;Number Of Items: 1<br>
&gt; &nbsp;Stereo Capable Window Requested: No<br>
&gt; &nbsp;Stereo Render: Off<br>
&gt; &nbsp;Point Smoothing: Off<br>
&gt; &nbsp;Line Smoothing: Off<br>
&gt; &nbsp;Polygon Smoothing: Off<br>
&gt; &nbsp;Anti Aliased Frames: 0<br>
&gt; &nbsp;Abort Render: 0<br>
&gt; &nbsp;Current Cursor: 0<br>
&gt; &nbsp;Desired Update Rate: 0.1<br>
&gt; &nbsp;Focal Depth Frames: 0<br>
&gt; &nbsp;In Abort Check: 0<br>
&gt; &nbsp;NeverRendered: 0<br>
&gt; &nbsp;Interactor: 0<br>
&gt; &nbsp;Motion Blur Frames: 0<br>
&gt; &nbsp;Swap Buffers: On<br>
&gt; &nbsp;Stereo Type: RedBlue<br>
&gt; &nbsp;Number of Layers: 1<br>
&gt; &nbsp;AccumulationBuffer Size 0<br>
&gt; &nbsp;AlphaBitPlanes: On<br>
&gt; &nbsp;AnaglyphColorSaturation: 0.65<br>
&gt; &nbsp;AnaglyphColorMask: 4 , 3<br>
&gt; &nbsp;PainterDeviceAdapter:<br>
&gt; &nbsp; &nbsp;Debug: Off<br>
&gt; &nbsp; &nbsp;Modified Time: 5916<br>
&gt; &nbsp; &nbsp;Reference Count: 1<br>
&gt; &nbsp; &nbsp;Registered Events: (none)<br>
&gt; &nbsp;MultiSamples: 0<br>
&gt; &nbsp;StencilCapable: False<br>
&gt; &nbsp;ReportGraphicErrors: Off<br>
&gt; &nbsp;ContextId: 0x38f3f88<br>
&gt; &nbsp;Color Map: 0<br>
&gt; &nbsp;Display Id: 0x37d26a0<br>
&gt; &nbsp;Next Window Id: 0<br>
&gt; &nbsp;Window Id: 100664256<br>
&gt;<br>
&gt; vtkOpenGLRenderer (0x7f7e088af540)<br>
&gt; &nbsp;Debug: Off<br>
&gt; &nbsp;Modified Time: 223310<br>
&gt; &nbsp;Reference Count: 2<br>
&gt; &nbsp;Registered Events: (none)<br>
&gt; &nbsp;Aspect: (1.46854, 1)<br>
&gt; &nbsp;PixelAspect: (1, 1)<br>
&gt; &nbsp;Background: (0, 0, 0)<br>
&gt; &nbsp;Background2: (0.2, 0.2, 0.2)<br>
&gt; &nbsp;GradientBackground: Off<br>
&gt; &nbsp;Viewport: (0, 0, 1, 1)<br>
&gt; &nbsp;Displaypoint: (0, 0, 0)<br>
&gt; &nbsp;Viewpoint: (0, 0, 0)<br>
&gt; &nbsp;Worldpoint: (0, 0, 0, 0)<br>
&gt; &nbsp;Pick Position X1 Y1: -1 -1<br>
&gt; &nbsp;Pick Position X2 Y2: -1 -1<br>
&gt; &nbsp;IsPicking boolean: 0<br>
&gt; &nbsp;Props:<br>
&gt; &nbsp; &nbsp;Debug: Off<br>
&gt; &nbsp; &nbsp;Modified Time: 226173<br>
&gt; &nbsp; &nbsp;Reference Count: 1<br>
&gt; &nbsp; &nbsp;Registered Events: (none)<br>
&gt; &nbsp; &nbsp;Number Of Items: 13<br>
&gt; &nbsp;PickResultProps:<br>
&gt; &nbsp;NULL<br>
&gt; &nbsp;Near Clipping Plane Tolerance: 0.001<br>
&gt; &nbsp;Ambient: (1, 1, 1)<br>
&gt; &nbsp;Backing Store: Off<br>
&gt; &nbsp;Display Point: (0, 0, 0)<br>
&gt; &nbsp;Lights:<br>
&gt; &nbsp; &nbsp;Debug: Off<br>
&gt; &nbsp; &nbsp;Modified Time: 25331<br>
&gt; &nbsp; &nbsp;Reference Count: 1<br>
&gt; &nbsp; &nbsp;Registered Events: (none)<br>
&gt; &nbsp; &nbsp;Number Of Items: 1<br>
&gt; &nbsp;Light Follow Camera: On<br>
&gt; &nbsp;View Point: (0, 0, 0)<br>
&gt; &nbsp;Two Sided Lighting: On<br>
&gt; &nbsp;Automatic Light Creation: On<br>
&gt; &nbsp;Layer = 0<br>
&gt; &nbsp;Interactive = On<br>
&gt; &nbsp;Allocated Render Time: 10<br>
&gt; &nbsp;Last Time To Render (Seconds): 0.075882<br>
&gt; &nbsp;TimeFactor: 131.784<br>
&gt; &nbsp;Erase: On<br>
&gt; &nbsp;Draw: On<br>
&gt; &nbsp;UseDepthPeeling: On<br>
&gt; &nbsp;OcclusionRation: 0.1<br>
&gt; &nbsp;MaximumNumberOfPeels: 4<br>
&gt; &nbsp;LastRenderingUsedDepthPeeling: Off<br>
&gt; &nbsp;Number Of Lights Bound: 1<br>
&gt; &nbsp;PickBuffer 0<br>
&gt; &nbsp;PickedId0<br>
&gt; &nbsp;NumPicked0<br>
&gt; &nbsp;PickedZ 0<br>
&gt; --<br>
&gt; This message was sent from Launchpad by the user<br>
&gt; Dan Lea (<a moz-do-not-send="true"
 href="https://launchpad.net/%7Edanlea" target="_blank">https://launchpad.net/~danlea</a>)<br>
&gt; using the "Contact this user" link on your profile page.<br>
&gt; For more information see<br>
&gt; <a moz-do-not-send="true"
 href="https://help.launchpad.net/YourAccount/ContactingPeople"
 target="_blank">https://help.launchpad.net/YourAccount/ContactingPeople</a><br>
&gt;<br>
            <font color="#888888"><br>
            <br>
            <br>
--<br>
Fran&ccedil;ois Bertel, PhD&nbsp; | Kitware Inc. Suite 204<br>
1 (518) 371 3971 x113 | 28 Corporate Drive<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | Clifton Park NY 12065, USA<br>
            </font></blockquote>
          </div>
          <br>
          </div>
          </div>
        </blockquote>
        </div>
        <br>
        </div>
        </div>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
        <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
        <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
        <br>
Follow this link to subscribe/unsubscribe:
        <div><br>
        <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        </div>
      </blockquote>
      </div>
      <br>
      </div>
      <br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com"
 target="_blank">www.kitware.com</a><br>
      <br>
Visit other Kitware open-source projects at <a moz-do-not-send="true"
 href="http://www.kitware.com/opensource/opensource.html"
 target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
      <br>
Please keep messages on-topic and check the VTK FAQ at: <a
 moz-do-not-send="true" href="http://www.vtk.org/Wiki/VTK_FAQ"
 target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
      <br>
Follow this link to subscribe/unsubscribe:<br>
      <a moz-do-not-send="true"
 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
      <br>
    </blockquote>
    </div>
    <br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
</blockquote>
<br>
</body>
</html>