This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

nccb
nccb presents ...

2012/6/16

Raycasting

This is an example of raycasting, a psuedo-3D technique used in some early games such as Wolfenstein 3D.

Use the left and right keys to spin your view. Use the WASD keys to move around the grid (but note: you don't move in the direction you're facing in this example!). The minimap in the top left shows your position as the white dot, so you can see how the 3D view corresponds to the map.

The technique is explained in this blog post:

http://sinepost.wordpress.com/2012/06/16/raycasting/

7562 views / 24 in the last 7 days

5 votes | 0 in the last 7 days

Tags: with-source

This scenario is a member of: Ray Casting


open in greenfoot
Your browser is ignoring the <APPLET> tag.
I'm reading "Masters of Doom" right now. I imagine this was much easier for you to do than it was for John Carmack. It's a very good read for any aspiring game programmers.

Want to leave a comment? You must first log in.

Who likes this?

Lethal_Vitamin JetLennit Game/maniac SPower bourne