|
-
Mar 15th, 2021, 09:31 AM
#1
Thread Starter
Lively Member
Triangle Rasterization - 3D Graphics - VB.NET
Hello again people, been a while.
I have been working on a 3D graphics engine for around a year or so but very on and off(so maybe 2 months of work). It worked nice and clean when using the Graphics library included in VB.NET to draw my triangles.
Occlusion complicated things, do to a proper Z-Buffer I need to know of every pixel drawn and shoving a triangle on my canvas with the .NET Graphics library sure gives a pretty clean cube (or other convex shape, I use cubes for testing) but doesn't give you that kind of information. Only thing to do, raster my own triangles and use the data for my depth buffer.
I followed Top-Left rasterization rules and use point in triangle testing as described here. That's where I either f'd up really bad or magic does exist(first option most likely). The edges of my triangles(not all just some which is all the more weird) become transparent entirely or one pixel somewhere on the edge does when put in specific POV/angles.
Due to the sheer size of the software I won't paste code directly. If anyone has a clue as to what goes wrong or already worked on similar projects it would be a great deal of help.

Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|