[vtkusers] vtkResliceImageViewer hides cross hairs in certain positions
José M. Rodriguez Bacallao
jmrbcu at gmail.com
Wed Aug 8 09:33:13 EDT 2012
can you share the code for the crosshair?
On Fri, Jul 27, 2012 at 11:34 AM, Federico Milano <fmilano at gmail.com> wrote:
> 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
>>
>> 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.
>>
>
More information about the vtkusers
mailing list