Skip to content

Add culling for 3D glyphs rendering

Michael Migliore requested to merge michael.migliore/vtk:glyphs3d-culling into master

GlyphBunny 1 million instances of the stanford bunny (4968 triangles) rendered in real time

In some cases, when the user tries to render thousands instances of a complex model resulting on millions (or even billions) of triangles, the GPU is not able to render the scene in acceptable frame rates.
This MR tackles this problem by culling instances inside the frustum view and adds level of details.

This is done in two passes :

  1. "Dry-render" each instance point and fill transform feedback LOD buffers (or discard the instance) based on their distance to the camera using geometry shader vertex streams.
  2. Render each LOD instances buffer using a decimated polydata.
Edited by Michael Migliore

Merge request reports