Log In  


Cart [#38109#] | Copy | Code | 2017-03-08 | Link

Learning pico-8.

A simple 2.5 renderer.


  • BSP-based, non-grid level rendering
  • lighting "fog"
  • 60 fps
P#32666 2016-11-21 04:28


Hi Smk,

This is great non-grid-based raycast code. Thanks for sharing!

I've been hacking at something like this for a while, trying to write a portal based engine, using this (http://bisqwit.iki.fi/jutut/kuvat/programming_examples/portalrendering.html) as a guide. However, your code and method for the basic wall rendering is far more stable, not to mention faster than what I have been coming up with.

Mind if I borrow some of your frustum clipping and rendering code?

Many thanks,
Electric Gryphon

P#32726 2016-11-23 20:59


Hey, no problems, sorry for late response.

I had another version somewhere that supported simple BSP (not sure if I uploaded it though).

P#37793 2017-02-24 19:17


electricgryphon dude this is NOT raycasting. This is 2d BSP. Doom used it first.

P#38242 2017-03-14 03:53


@smoke_th do you know who you replied to? electricgryphon is one of the pioneers of 3D on the PICO-8 and has spent the last 2 years making countless games, demos, libraries, and tutorials on the subject. Pretty sure he knows what's up. Raycasting and BSP are not mutually exclusive.

P#38245 2017-03-14 05:33


wow, really nice and fast!

P#38247 2017-03-14 07:40


So smooth!

Where can I go to start learning how to code this sort of thing? I'm constantly blown away by what people are able to create in Pico-8. I understand coding basics, but writing a renderer is so far beyond me. I wouldn't even know where to start.

What is this area of programming called? Are there some good resources I could check out to start learning?

P#38506 2017-03-21 10:17

Log in to post a comment


New User | Account Help
:: New User
About | Contact | Updates | Terms of Use
Follow Lexaloffle:
Generated 2017-03-24 17:52 | 0.094s | 1835k