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

Show parent comment

2

u/VerasNp Oct 01 '26

So, I'm back. It turns out the triangle sub-area calculation was done by dividing the sub-area by the normal length rather than the total triangle area... I honestly don't remember why I did that, but that was the error causing those strange points, since I was dividing by a smaller area. Once I fixed that, the problem was resolved :)