-
Notifications
You must be signed in to change notification settings - Fork 462
0033607: Visualization - Implementation of hardware occlusion queries #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Hardware occlusion queries provide a mechanism to determine whether any pixels would be drawn. For instance, it can be used as a visibility filter any pixels would be drawn. for instance, it can be used as a visibility filter Graphic3d_ViewOcclusionMask : Provides a way to access occlusion test results for every graphical presentation per each defined view of the viewer OpenGl_OcclusionQuery: Provides an OpenGL implementation for occlusion queries Graphic3d_RenderingParams: provides way to enable or disable occlusion query AIS_InteractiveContext : resets the view occlusion mask for newly loaded objects Each view invalidates its occlusion query results if the camera has changed. vnboccluded: Adds a new DRAW command to return the number of occluded objects in the view
Demo for Draw Test Command DRAW.Test.mp4 |
Another test to clarify potential use cases: In the viewport, I am visualizing two cones positioned one behind the other. occlsuion_pixel_count_test.mp4 |
@Hossam86 the occlusion is enabled by default? |
@dpasukhi # Enabling/Disabling Occlusion Query in View Rendering Parameters By default, the occlusion query is disabled in the initialization of the view. The
To enable the occlusion query, the developer can modify the rendering parameters of the view as follows: |
How it was enabled for the demo? |
@dpasukhi The Draw test command |
@Hossam86 please create a patch which by default will enable that feature to test it everywhere. (later will be reverted) |
Hardware occlusion queries provide a mechanism to determine whether any pixels would be drawn. For instance, it can be used as a visibility filter any pixels would be drawn. for instance, it can be used as a visibility filter
Graphic3d_ViewOcclusionMask : Provides a way to access occlusion test results for every graphical presentation per each defined view of the viewer
OpenGl_OcclusionQuery: Provides an OpenGL implementation for occlusion queries
Graphic3d_RenderingParams: provides way to enable or disable occlusion query
AIS_InteractiveContext : resets the view occlusion mask for newly loaded objects
Each view invalidates its occlusion query results if the camera has changed.
vnboccluded: Adds a new DRAW command to return the number of occluded objects in the view