"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

Analysis of the PS2 Game Save 3D Icons

Seeing this image, it shouldn’t be unfamiliar to seasoned players familiar with PS2. It’s the 3D icon of a game save file from the PS2 memory card management interface. In this article, we will introduce how to extract the character model from the save file. 01 Parsing Objectives A: What can we parse from the save file? All vertices and normals of the icon model Animation frames of the icon model Lighting information Textures and texture coordinates Background color and transparency B: What do we need to do?...

2023-10-04 · caol64