This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-11-30 04:27:01

jacool
Scratcher
Registered: 2008-01-25
Posts: 1000+

3D world using raycasting

I've optimized a little more and here's the result:
http://scratch.mit.edu/projects/jacool/782810


How it works:

15 rays are sent out from the cameras position
When they hit a wall the distance is saved to a list.
Then a pen draws walls, with size and shade from the list.

It only works in turbo speed mode.


http://i571.photobucket.com/albums/ss159/JacobKar/svensktiger-1.png

Offline

 

#2 2009-11-30 05:46:36

jacool
Scratcher
Registered: 2008-01-25
Posts: 1000+

Re: 3D world using raycasting

I have found a way to make it even faster, I'll upload the newer version tomorrow.


http://i571.photobucket.com/albums/ss159/JacobKar/svensktiger-1.png

Offline

 

Board footer