Log In  

Cart #raycastsh19-0 | 2022-12-02 | Code ▽ | Embed ▽ | No License
3


A simple raycast 3D engine.
Porting of sorts of 3DSage's raycast engine

P#121741 2022-12-02 22:36

Hi @shantih19.

I'm not sure but I think it's possibly you can travel through the walls for this cart.

P#121747 2022-12-03 01:52

Cool! Would love to check out the code sometime (don't know how lol). I watched this video on Doom's raycasting (https://www.youtube.com/watch?v=hYMZsMMlubg&t=1280s) and this reminded me of that. Cool idea to implement in Pico!

P#121757 2022-12-03 03:23
1

If you want to fix the fish eye effect here is a video explaining how Wolfenstein 3D did ray casting. And the solution is at 3:21 mark.
https://www.youtube.com/watch?v=eOCQfxRQ2pY

P#121779 2022-12-03 19:33

@dw817 This is just a tech demo for the raycasting implementation, so it would seem likely that collision (among other things) was entirely skipped on purpose.

@mgrange1998 There is a "Code 🔽" button underneath the cart player at center that reveals a flyout containing the source.

P#137528 2023-11-16 14:48

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 22:26:20 | 0.070s | Q:23