News:

Function Finder  Find all the functions within source code files

Main Menu

Yet Another Wolfenstein 3D Demo (Texture Mapped Floors & Ceiling)

Started by kevin, March 03, 2025, 08:02:32 AM

Previous topic - Next topic

kevin

Yet Another Wolfenstein 3D Demo (Texture Mapped Floors & Ceiling)

Ever wondered how classic **Wolfenstein 3D-style** games create a 3D world using simple 2D techniques? In this video, we break down a **PlayBASIC demo** that simulates a **first-person perspective** using a grid-based rendering system. 

You'll see how the demo separates floor and wall rendering to create depth, and we'll discuss performance challenges, including overdraw and frame rate drops. We also explore potential optimizations, such as floodfilling techniques and visibility checks, to improve efficiency. 

Whether you're new to PlayBASIC or just curious about how early 3D engines worked, this video offers a fun and educational look into classic game development techniques! 



Code Review Video



Download Source Code


stevmjon

It's easy to start a program, but harder to finish it...

I think that means i am getting old and get side tracked too easy.

kevin


🚀 Wolfenstein 3D Tech Demo – Now with Fully Textured 3D Objects, Floors & Ceilings! 🎮🔥 

The **latest update** to our **Wolfenstein 3D-style engine in PlayBASIC** takes things to the next level! Now featuring: 

✅ **Fully Texture-Mapped 3D Objects** – Bring your world to life with interactive, textured objects! 
✅ **Texture-Mapped Floors & Ceilings** – No more empty spaces—every surface is now fully detailed. 
✅ **Dynamic Lighting & Shading** – Create anything from a bright, classic FPS look to a **Doom-style depth effect**. 
✅ **Optimized for PlayBASIC Programmers** – A perfect **starting point for 3D game development** in a 2D engine! 


   


#Wolfenstein3D #PlayBASIC #GameDev #RetroGaming #DoomStyleGraphics #IndieGameDev #3DRendering

kevin

  Wolfenstein 3D Tech Demo – Now with Fully Textured 3D Objects, Floors & Ceilings!  (Source Code)

  This edition of the libraries (sort of) adds support for loading directX models and sizing them in the Wolf 3D scene.  While this is the same demo as the one shown in the two teasers (the video in the post before this one), it has various extra tweaks to help the object rendering, namely object level clipping to the camera and back face culling.   


  The demo has a few key controls to toggle various rendering modes for the Walls / Floors and Object separately. 

  There's 4 rendering modes

  mode 0 = Flat shaded
  mode 1 = Texture Mapped 
  mode 2 = Gouraud Shaded
  mode 3 = Texture Mapped  + Gouraud Shaded to create light mapping


  Read ME:

        Key Controls:

        Arrow Keys    = Move Camera
        A,D            = strafe Left / Right

        W                = Toggle Wall Rendering Mode (0-3)
        F                = Toggle Floor Rendering Mode (0-3)
        O                = Toggle Object Rendering Mode (0-3)
      F1             = reset default depth queue colours
      F2             = Randomly set near depth colour
      F3             = Randomly set far depth colour
      F4             = Scale near colour down
      F5             = Scale far colour down
        Enter            = Toggle Walls (on/off)

      SPACE            = Exit demo
     
      NOTE: Assumes your PC has updated DirectDraw drives
            as this code blends directly to 'video' surface. Which
            are emulated in most modern DD drivers.. FINALLY!
 
      NOTE: Built using PlayBASIC lastest V1.65, but can run
            in V1.64LE also
 


 



Related Articles

  -->  2D portals Conversation




Download Source Code

    Source Code is attached to the post, link bellow