How I implemented MegaTextures on real Nintendo 64 hardware

Channel:James Lambert · Length:8:51 · Published:2023-09-16 · Views:399338

Watch on YouTube

Summary

James Lambert demos a MegaTexture-style technique running on real Nintendo 64 hardware, built for an N64Brew game jam. It streams high-resolution textures onto stained-glass scenes on the console.

Why HN recommends it

Pointed to as an impressive technical N64 homebrew demo showing unexpectedly high-res textures.

James is like Kaze — HN, 2024

Computer graphics & rendering · Indie game development · Game history & retro gaming

Subtitles (excerpt)

foreign [Music] what you are seeing is being rendered in real time on Nintendo 64 Hardware this scene contains about 40 megabytes of texture information but runs on four megabytes of RAM this is possible using a technique based on its software's Mega textures Mega textures was developed by ID for the game rage and allowed for textures up to through 2000 by 32 000 pixels however Omega texture for the Nintendo 64 can only go up to 1024 by 1024 pixels which is regular size textured by modern standards but is far larger than we typically see for the console so how is this done before I explain how Mega textures work I'm going to explain how regular textures work for the Nintendo 64. to start there is a coordinate system called the texture image space it ranges from negative 1024 to 1024 in both the X and Y Direction positive X is to the right positive Y is down you can place an image called a tile inside the texture image space the origin 4 tile is on the top left a single tile must fit in the four kilobyte tile cache this really limits the size of a tile which is why tiles typically are around 32 by 32 pixels to make use of the entire texture image space you can offset a tile scale it by a power of two or repeat the tile across the

On Hacker News

The same guy, James Lambert, also implemented texture streaming (which would not be invented until two console generations later) in an N64 demo. The textures look uncharacteristically high res: [VIDEO] — cubefox, 2026-03
This is what James Lambert does as a follow up when Valve shuts down [1] his "Portal in N64" project [2]. James is like Kaze [3] and builds incredible N64 demos [4] and technical videos about them. [1] [LINK] [2] [LINK] [3] [LINK] [4] [VIDEO] — echelon, 2024-03
Prerendered cutscenes ate up the lion's share of the disc. If you sacrificed on those and used lots of compression, you absolutely could build an RPG on the N64 that would stand up to whatever you could do on PlayStation. However, nobody wanted to do that. The only RPGs we got on the N64 were Quest 64 and Paper Mario. The reason why requires diving into the development history of what would have … — kmeisthax, 2023-11
Appear to be videos of this project in action: "How I implemented MegaTextures on real Nintendo 64 hardware" - [VIDEO] "Megatextures Tech Demo - N64brew Summer Game Jam 2023 Submission" - [LINK] — JohnBooty, 2023-09

Related videos