Bug in Overlay Text rendering

Hello, I think there is a bug in the text rendering in an overlay layer. Under OCC 6.4.0 and up (OCC 6.5 include), when I use V3d_View::ColorScaleDisplay(), a color scale is displayed on the side of the view. If I move an opaque shaded face that overlap the colorscale, the text goes under the face (become hidden by the face), but the color scale itself behave correctly. This was working perfectly under OCC 6.3.1. I notice that since OCC 6.4, the text rendering is done using FreeType and FTGL. Does anybody have the same problem? The application is running under Windows XP 64. Thanks, Francois.

Venugopal Gudimetla's picture

Check out for patches, Denis et al, I guess have a patch for that, who knows that could solve your problem?

Francois Lauzon's picture

Nope, all the patches were already applied...

sergey zaritchny's picture

Hello François,
Thanks for reporting this problem. I confirm that it is a bug.
The corresponding issue with ID = OCC22354 has been registered.
Later you can check references to the specified ID in OCCT Release Notes to know if the issue is resolved.
Best regards.

sergey zaritchny's picture

Hello François,
Could you put a short sample to reproduce the posted problem.
I will try to check.
Regards

Francois Lauzon's picture

To reproduce de problem, simply add this line:
myView->ColorScaleDisplay();
in file View.cxx at line 171 of the qt import/export sample that came with OCC 6.5.0.

Then import a brep file that contain a face or shell or solid, shade it and move it near the color scale on the left, you will see the text of the color scale going under the face and the color scale itself is over the face.

Francois.

sergey zaritchny's picture

Ok, thanks.
Sergey