Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (14 sloc) 642 Bytes
---
layout: post
title: 'Ray casting'
permalink: '/ray_casting/'
tags: ['ray casting', 'computer graphics', 'ruby']
---
<p>I wrote a ray caster in Ruby for fun. Using SDL, this piece of code lets
you navigate a maze using your mouse.</p>
<p>Ray casting is the technique used by Wolfenstein 3D. It allows rendering
3D worlds with minimal computional work by assuming that all the walls are
the perpendicular to the floor.</p>
<p><a href="/files/2006/ray_casting/ray_casting.tar.gz">Source code</a></p>
<p><a href="http://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/">Permadi's tutorial</a>
written in 1996 is a fun read!.</p>