Code covered by the BSD License  

Highlights from
Wolfenstein 3D (Tech Demo)

  • Wolfenstein 3D Tech Demo A playable Wolfenstein 3D demo featuring a real-time discrete ray casting engine. Possibly the coolest MATLAB game demo ever.
  • wolf3d WOLF3D - The main file for Wolfenstein 3D for MATLAB
  • View all files

5.0

5.0 | 1 rating Rate this file 178 Downloads (last 30 days) File Size: 2.66 MB File ID: #42251
image thumbnail

Wolfenstein 3D (Tech Demo)

by Mingjing Zhang

 

17 Jun 2013 (Updated 24 Jun 2013)

A playable Wolfenstein 3D demo featuring real-time ray casting. My most bestest creation by far.

| Watch this File

File Information
Description

Wolfenstein 3D Tech Demo for MATLAB v0.45
---------------------------------------
Mingjing Zhang, Stellari Studio, 2013
Simon Fraser University
---------------------------------------

This is the first 3D game (demo) ever made with 'pure' MATLAB available on MATLAB Central.

In this demo, you can freely roam in a Wolfenstein-style environment. The game runs at 40~60 FPS on my three year old Lenovo G460.

The sole purpose of this demo is to show off the wolfenstein-style ray-casting engine I have written, which is an implementation of the ray casting algorithm on this page:

http://www.permadi.com/tutorial/raycast/

Currently there is no collision detection, so feel free to go through walls as much as you want to. There is a switch hidden somewhere in this level, but you won't be able to interact with it...
There are no doors in this level.

How to play:
-----------------
WASD - move //
Left/Right arrow - rotate //
Enter - mouse on/off //
ESC - quit demo//
Move mouse - mouse look //
mouse wheel - zoom in/out
--------------------

Enjoy!

MATLAB release MATLAB 8.1 (R2013a)
Tags for This File  
Everyone's Tags
3d, fun, game, gui, handle, image, imshow, keyboard, mapping, mouse, perspective, projection, ray casting, ray tracing, real time, retro, texture, wolfenstein
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
22 Jun 2013 Mingjing Zhang

@shashi
Please
1. unzip all files to a folder,
2. set "current directory" to that folder
3. run wolf3d.m
or
install the app file

22 Jun 2013 shashi

I am unable to install the Demo.
Please help me

18 Jun 2013 Mingjing Zhang

Thank you for your support, Ryan. I probably won't be able to expand it to a full game any time soon since I still have to focus on my thesis. Also there are some problems to solve before I could use this engine in a real game. For instance, it does not handle walls that are not located on integer locations. In other words, the engine cannot render sliding doors, which are not located on the same plane as regular walls, as seen in the real Wolfenstein game.

18 Jun 2013 Ryan G

Really cool. Are you going to upload any full games (or playable levels) with this?

Updates
24 Jun 2013

*Updated to v0.50
-----------------
Now supports arbitrary resolution;
Added mouse wheel support

Contact us