"ps2mc-browser" Shader Code Analysis

How do we render the vertices and textures of polygons into a colorful scene? This is where OpenGL shaders come into play. Today, we’ll discuss the shaders of ps2mc-browser. To briefly introduce, ps2mc-browser is a PS2 memory card viewer capable of parsing vertex and texture data from 3D icons within PS2 memory card files and rendering them using OpenGL. In the following content, I’ll dissect the six OpenGL shaders used...

2023-12-20 · caol64

Rendering PS2 Savegame 3D Icons using Python and OpenGL

After a series of previous articles laying the groundwork, the files for PS2 savegame 3D icons have all been parsed. In this article, we will begin to explore how to render the 3D icons using the following tools, aiming to achieve a rendering as close as possible to the original effect on the PS2 console. Python3 PyGame Numpy ModernGL PyGLM 01 Initialize PyGame and ModernGL The first step is to initialize PyGame, setting the window size to 640x480 and the FPS to 60....

2023-10-09 · caol64