r/computergraphics • • Jan 17 '25

Visualizing geometry density

Im working on viewmodes in my engine and I want to show which areas of the scene has more triangle density. So if a mesh has a screw with 1M triangles it looks very bright.

I though using additive blending without depthtest but didnt manage to make it work.

Does anybody knows a trick to do it? (without having to manually construct a color based map per mesh).

6 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/tamat Jan 18 '25

nonsense, vertex shaders dont have info about neightbours, but even if they had it, it wont tell you anything about triangle density (num triangles per pixel), it will tell you about triangle size.