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

#1 2010-06-18 23:31:39

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Realtime 3D Raycaster Demo

Link to Project

It's been a while, heh. I recently randomly found myself here from a link and figured I'd come back.

So yeah, over the past 2 days I modified my raycaster to take advantage of Scratch's new features, and now it works at a realtime speed (still slow, about 10 FPS or less offline in presentation mode) while still looking fairly good. It also supports collision detection and distance fog.

The main bottlenecks stopping me from getting a higher speed are repeat loop lag (though I've tried to minimize this) and pen drawing lag.

Last edited by S65 (2010-06-19 10:14:52)

Offline

 

#2 2010-06-18 23:34:21

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Realtime 3D Raycaster Demo

YOU'RE BACK!!!!!!!!!  big_smile   big_smile   big_smile

Hey, are you going to finish Requiem of Thunder? I really liked it.  smile

And I'll check out your project...  wink


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-06-18 23:37:01

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Realtime 3D Raycaster Demo

I'm probably not going back and finishing Requiem of Thunder as is, but I plan to make a new similar-style game (as in, a scrolling shooter) under a new name sometime soon.

Last edited by S65 (2010-06-18 23:40:17)

Offline

 

#4 2010-06-19 00:36:47

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Realtime 3D Raycaster Demo

Awesome!  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#5 2010-06-19 00:37:46

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Realtime 3D Raycaster Demo

YOU'RE BACK!!!!!!  smile   smile   smile
big_smile   big_smile   big_smile

Jon told me, and I'm HAPPEH
....................................
*goes to the link*


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#6 2010-06-19 02:52:14

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Realtime 3D Raycaster Demo

Awesome... but it works slow for me. EXTREMELY SLOW.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#7 2010-06-19 10:06:30

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: Realtime 3D Raycaster Demo

meew0 wrote:

Awesome... but it works slow for me. EXTREMELY SLOW.

How slow? As in, frames per second - I get about 1 or 2 FPS online (lol) and about 5 to 10 offline in presentation mode.

Either way, there's still some optimizations to be done, but I'll probably have to wait for future versions of Scratch - one thing I was thinking of was using sprites themselves instead of the pen tool, making each sprite a 20-pixel rectangle and then vertically stretching them to draw the walls. Unfortunately, Scratch doesn't have vertical or horizontal stretch effects yet, so that's not viable.

Offline

 

#8 2010-06-19 10:13:20

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Realtime 3D Raycaster Demo

You're back!

You might wanna edit that link to make it clickable, by the way  smile

And nice project  yikes  I would never be able to do that  smile

Offline

 

#9 2010-06-22 16:08:56

JTxt
Scratcher
Registered: 2010-05-19
Posts: 100+

Re: Realtime 3D Raycaster Demo

Welcome back s65! 

It was fun watching your progress on raycasting and 3d in scratch...  awesome, inspiring projects.  I'm glad you got back to this.

So you get 10fps in presentation mode?  nice!  I'm about .5 online, 4 in presentation mode.  I wonder what the average is for everyone?  Perhaps you would ask people to post their fps?  This would be a great benchmark.

I've been experimenting with some rendering methods too.  Fun stuff!

Last edited by JTxt (2010-06-22 16:11:57)


http://scratch.mit.edu/static/icons/buddy/524717_med.png?t=2010-06-15+09%3A48%3A36

Offline

 

#10 2010-08-26 13:09:46

awsomemaster
Scratcher
Registered: 2008-04-10
Posts: 83

Re: Realtime 3D Raycaster Demo

i would say to use panther but sense you can't upload panther projects we will just have to hope for it to be in 2.0  hmm


scar the REAL 3d fps we've all been waiting for

Offline

 

Board footer