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 Fri, 09/27/2002 - 10:35
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).
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
Fri, 09/27/2002 - 10:35
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
Sat, 09/28/2002 - 04:11
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
Fri, 10/12/2007 - 01:20
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