[vtkusers] vtkResliceImageViewer hides cross hairs in certain positions
Federico Milano
fmilano at gmail.com
Fri Jul 27 11:34:09 EDT 2012
Thanks for your answer! I tried to debug it, but I've found the
implementation kind of chaotic (not to offend anybody...it happens), so I
reimplemented it (without some features) and it worked. And in my
implementation I'm setting immediate mode always. When I have a bit of time
I'll if the behaviour of vtkResliceImageViewer changes if I set the hair
mode to immediate.
Thanks again,
Federico
On Fri, Jul 27, 2012 at 12:26 PM, Jean-Hugues Royer <jhroyer at joher.com>wrote:
> Hi,
>
> This is a late reply but I think you might run in the recently problem of
> deprecated OpenGL list.
>
> Basically when you are using a vtkPolyDataMapper, which is probably what
> your crosshair widget is using, you need to set ImmediateModeRenderingOn()
> to avoid hidden/black rendering.
>
> The problem is explained in this vtk developpers post:
>
> http://www.vtk.org/pipermail/**vtk-developers/2012-June/**011832.html<http://www.vtk.org/pipermail/vtk-developers/2012-June/011832.html>
>
> I'm not using vtkResliceImageViewer, but the one I coded had the same
> issue until I enabled immediate mode rendering.
>
> It would be a good idea to try to set it manually if you access the
> crosshair mapper or by patching the source of the widget...
>
> Regards.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120727/769b8b0e/attachment.htm>
More information about the vtkusers
mailing list