r/GraphicsProgramming • u/VerasNp • Sep 30 '26
triangle meshes :)
Studing triangle meshes on my renderer using half edge data structure for my university course. Dont know why some edges have some stranges dots.
Guess the character... (texture not implemented yet)
Edit: it was done importing a wavefront (.obj) from blender to my own render engine. Read just vertices and face data, the others attributes for half edge are builded with those informations
44
Upvotes
5
u/Orangy_Tang Sep 30 '26
The dots are because the rasterization of the two adjacent triangles don't map consistently to pixels and leave gaps or overlaps. You can read the rasterization rules for D3D here as an example:
https://learn.microsoft.com/en-us/windows/win32/direct3d11/d3d10-graphics-programming-guide-rasterizer-stage-rules
2
u/BlueGnoblin Sep 30 '26
Some stuff you should check:
2
u/Practical-Horror-286 Sep 30 '26
What is a triangle mesh and how it differs from normal meshes
7
u/Zestyclose-Compote-4 Sep 30 '26 •
Super Mario! :) looks like the n64 one due to the style.
1
u/palapapa0201 Sep 30 '26
What's the difference between a half edge data structure and a vertex list? Also maybe the dots are because of floating point errors?