Build a object without depth test

Hi,
I want to build a object without the openGL-depth test, which can show in the view.

It seems that custome a object is not so easy in OCC.

thanks in advance.

Lugi.C

fhchina's picture

Hi,

Have you try to directly call OpenGL? But it seems impossible, since OCC use run-time link to OpenGL32.dll, you can try use call_togl_XXXX(OCC's ugly wrapper to OpenGL). if it runs, then any time you want to disable depth test, you can call some similar glDisable(GL_DEPTH_TEST).

regards,
fhchina

Lugi.C's picture

hi,
Thanks for your reply, it seems that have a chance to do so. Can you show some codes of that or relative stuff?
thanks
Lugi.C

Jeanmi B's picture

There's now a method EnableDepthTest in V3d_View.
But I can't figure how to use it. I would like to display some AIS objects with DEPTH_TEST but others without. If I just call EnableDepthTest(False), it will apply for all AIS object I display.

Has anyone experience on that and some sample code ?
Thanks