r/GraphicsProgramming • • Sep 30 '26

triangle meshes :)

Post image

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

12 comments sorted by

View all comments

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

1

u/VerasNp Sep 30 '26

But even if i am using thel ray/object intersection + phong model? I suspect that have something related to numeric error (or alising?)...but rasterization...I will give a try and review, thks for the contribution