In this week's PlayBASIC Devlog we're back inside the PS3D software renderer, tracking down a couple of surprisingly difficult bugs while continuing development of PlayBASIC's retro 3D graphics engine.
The biggest issue was a long-standing rasterization bug that produced flickering pixels along polygon edges during texture mapping with Gouraud shading and adaptive polygon subdivision. As the renderer gained support for ambient lighting and distance fog, these rendering artifacts became much easier to spot, leading to a deep dive into the software rasterizer and a complete fix.
I also investigate an intermittent divide-by-zero crash inside the adaptive subdivision system, explaining why it only occurred from particular camera positions and how the renderer now handles those edge cases correctly.
Along the way we explore how PlayBASIC's software rendering pipeline performs perspective correction, adaptive mesh subdivision, shaded texture rendering, and simple camera collision, while discussing the trade-offs between visual quality and rendering performance.
The second half of the video looks at ideas for the future of the PS3D engine, including visibility culling, mesh editing, mesh merging, dynamic lighting, and building a retro software-rendered FPS inspired by classic 90s games.
If you're interested in *software rendering*, *graphics programming*, *game engine development*, *retro game programming*, *texture mapping*, *polygon rasterization*, or seeing how PlayBASIC continues to evolve under the hood, you'll find plenty of technical discussion throughout this devlog.
The biggest issue was a long-standing rasterization bug that produced flickering pixels along polygon edges during texture mapping with Gouraud shading and adaptive polygon subdivision. As the renderer gained support for ambient lighting and distance fog, these rendering artifacts became much easier to spot, leading to a deep dive into the software rasterizer and a complete fix.
I also investigate an intermittent divide-by-zero crash inside the adaptive subdivision system, explaining why it only occurred from particular camera positions and how the renderer now handles those edge cases correctly.
Along the way we explore how PlayBASIC's software rendering pipeline performs perspective correction, adaptive mesh subdivision, shaded texture rendering, and simple camera collision, while discussing the trade-offs between visual quality and rendering performance.
The second half of the video looks at ideas for the future of the PS3D engine, including visibility culling, mesh editing, mesh merging, dynamic lighting, and building a retro software-rendered FPS inspired by classic 90s games.
If you're interested in *software rendering*, *graphics programming*, *game engine development*, *retro game programming*, *texture mapping*, *polygon rasterization*, or seeing how PlayBASIC continues to evolve under the hood, you'll find plenty of technical discussion throughout this devlog.