Lets Code MS DOS 0x23: 2nd Reality Lens Effect @root42
Lets Code MS DOS 0x23: 2nd Reality Lens Effect  @root42
Uploaded October 2023 | Updated November 2026, 1 hour ago
In 1993 the Future Crew released the seminal demo “Second Reality”. Last episode we re-implemented the tunnel effect, this time we try to understand and replicate the lens effect. A bouncing, tinted glass ball that distorts the background image. Thirty years back it was pretty jaw dropping, and even today we can learn something!

Support me on Patreon: patreon.com/root42
Support me on Ko-Fi: ko-fi.com/root42
Support me on PayPal: paypal.me/ArneSchmitz
Support me on YouTube: youtube.com/channel/UCPjFa_UZBUDzdJTIEdyGjIQ/join

Music: A Little Wonder by Spino2006

Source code: github.com/root42/doslens

0:00 Introduction
2:49 Lens formula
6:50 The Code Stub
9:47 The Lens Precomputation
23:54 Drawing the Lens Effect
29:55 Adding a Color Tint
35:12 Closing Words
Lets Code MS DOS 0x23: 2nd Reality Lens EffectReviving a Dead SEGA GameGearBaby AT Testbench by TechAmbrosiaThe Plus/4 Repair StreamLets Code MS DOS 0x2A: Background Adlib MusicCommodore 1541 Repair: Spin Me RoundRefurbishing a Datassette for the Plus/4Our First PC: Highscreen Colani 486SXLets Code MS DOS 0x1D: Melting the VGA ScreenFirst Day Revision 2025 #c64 #retrogaming #demosceneQuadrophonic Commodore 1541 Floppy DrivesThe M396F 386SX Homebrew Mainboard
root42 |

Let's Code MS DOS 0x23: 2nd Reality Lens Effect

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER