Print at Dec 19, 2025, 6:03:51 PM

Posted by Daniels118 at Jul 16, 2023, 7:49:41 AM
Re: Problem with imported object normals
The problem is caused by the way raster 3D graphic handles transparent objects. Although your object is not transparent, it is treated as such because the texture has some transparent pixels. You can still use the PNG format as long you fill the whole image with fully opaque pixels (i.e. try to fill the transparent area with white).
The alternative is to divide the object in multiple shapes so that the rasterizer can draw them in the proper order.

For those interested I recommend these 3 lectures (must be read all in this order):
1) https://www.geeksforgeeks.org/z-buffer-depth-buffer-method/
the point 9 leaves with an open question, which is solved by this:
2) https://computergraphics.stackexchange.com/a/7630
and so this:
3) https://en.wikipedia.org/wiki/Painter%27s_algorithm
when you'll read the "Limitations" paragraph you'll understand the reason.