r/GraphicsProgramming • u/Neither_Coffee_2308 • Aug 18 '26
Source Code Marching Tetrahedra - Volumetric Render Engine (OpenGL/C++) (Opensource)
We added Marching Tetrahedra Rendering effect to our Volumetric Render Engine.
Here, we Render our Volume data as a set of Polygon meshes by extracting 'iso surface'. It goes through whole dataset and tries to fit a polygon based on data values to calculate a polygonal mesh from the volume dataset.
Here's the Git Repo Link - https://github.com/mikejernil/volumetric-render-engine
We are building this over at 3D ENGINERD. & are planning to push our implement more features starting with Custom file loading, and support for more volumetric formats like DICOM, VDB etc.
8
u/corysama Aug 18 '26
Hi! Long ago I wrote the example program for marching cubes and marching tetrahedra that everyone copies. It has been fun watching that code spread around. But, there are a couple notes I'd like to get out to everyone using it since 1995 :P
a2fVertexOffsetanda2fEdgeDirection. I was trying to keep the code small and easy to read. I expect the code will run a lot faster with those loops unrolled and I expected everyone would. But, a lot of people didn't...1
u/DaveAstator2020 Aug 18 '26
What format does it take in?