Page MenuHomePhabricator

[2DRendering] Issues with RBG(A) image layers
Closed, ResolvedPublic

Description

Jasmin wrote in T9176:
-I noticed a problem with the measurement tool working with the rgbaTestImg.png.
You can't see your line/circle/... which you drew or rather it looks like it is
in the background. The data (e.g. length) will be calculated anyway.

The measurement lines are drawn behind the image.

Related Objects

Event Timeline

The planar figure mapper is not VTK conform. A possible solution could be to set all opacities used inside the mapper to 0.9999 instead of 1.

I think measuring on RGBA images is not that important, as long as it works on normal images. What would be necessary to make the planar figure mapper VTK conform?

cc Mathias S., Markus E.

(In reply to comment #2)

I think measuring on RGBA images is not that important, as long as it works on
normal images. What would be necessary to make the planar figure mapper VTK
conform?

The OpenGL used inside the mapper has to work together with the OpenGL inside VTK rendering. Currently, the mitkPlanerFigureMapper uses only 2D OpenGL like the Geometry2DDataMapper2D rendering the crosshair. I fixed the crosshair by adding the value Z = 1 for the third dimension. As a consequence, the crosshair is always rendered on top of everything. I tried the same trick for the mitkPlanerFigureMapper, but it did not work. Yet, Markus F. and I have no clue why.

I think a "glEnable(GL_DEPTH_TEST);" inside the PlanarFigureMapper will solve this issue.

Sounds ok. Mathias, Markus, objections?

[cbf083]: Merge branch 'bug-9234-planarfigure-visibility'

Merged commits:

2011-09-14 14:49:07 Eric Heim [3cb529]
Lines of planar figures are drawn over the top of the rgba image now. Preliminary solution, since opengl is used in the planar figure module. Cleaner way would to use vtk.