DiscussionsIssue archiveOther usage issues

Archived discussion

Build a object without depth test

Other usage issuesFri, 09/27/2002 - 09:023 replies

Browse this forum
QuestionAuthor

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

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

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,
Commenter-1

02Commenter-2

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
Commenter-2

03Commenter-3

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