Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Could you make an portal? An wall that when hit by ray is not rendered but instead the ray continuous at another wall? So both walls are connected somehow and when the player walks trough the wall he is warped?
- Davidobot
- Party member
- Posts: 1144
- Joined: Sat Mar 31, 2012 5:18 am
- Location: Game-Dev. Land
- Contact:
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
This is certainly a very interesting idea! It would be doable, and I actually have a version of this raycaster that has "cameras" (basically, just different viewpoints that can be draw). This "portal" mechanic would just mean drawing a "camera" on a wall and having a player teleport trigger when he collides with the specific wall.
I would löve to experiment with this myself, but I'm currently working full-time on another LOVE project, which I would like to finish for an eventual commercial release. Maybe I'll get around to making a Portal-esque game in this raycasting library as my last salute to this. Although it would be severely limited, I can think of a few ways it would be fun to play around with.

- yetneverdone
- Party member
- Posts: 311
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
How would you go about making a level? I saw in your code that you have different tables per floor, walls, etc. Do you have a map editor or something?
Also, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the code
Awesome work
Also, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the code

- Davidobot
- Party member
- Posts: 1144
- Joined: Sat Mar 31, 2012 5:18 am
- Location: Game-Dev. Land
- Contact:
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
So the levels are stored are in the 3 2D arrays that you mentioned. I just punch in the values manually, but it shouldn't be too hard to write a TILED or image importer.yetneverdone wrote: ↑Thu Jul 06, 2017 4:33 amHow would you go about making a level? I saw in your code that you have different tables per floor, walls, etc. Do you have a map editor or something?
Well, this is pseudo-3D and I've gotten this request multiple times now. I think I should try to make this into a library at some point, but the code is pretty old and I have other projects going on right now. So I'll see how it goes, sorry and thanks.yetneverdone wrote: ↑Thu Jul 06, 2017 4:33 amAlso, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the codeAwesome work
- yetneverdone
- Party member
- Posts: 311
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Please do so! It will be very helpfulDavidobot wrote: ↑Mon Jul 10, 2017 5:23 amSo the levels are stored are in the 3 2D arrays that you mentioned. I just punch in the values manually, but it shouldn't be too hard to write a TILED or image importer.yetneverdone wrote: ↑Thu Jul 06, 2017 4:33 amHow would you go about making a level? I saw in your code that you have different tables per floor, walls, etc. Do you have a map editor or something?
Well, this is pseudo-3D and I've gotten this request multiple times now. I think I should try to make this into a library at some point, but the code is pretty old and I have other projects going on right now. So I'll see how it goes, sorry and thanks.yetneverdone wrote: ↑Thu Jul 06, 2017 4:33 amAlso, please make a library for making 3D stuffs like this too. That would really be helpful! Or maybe just document the codeAwesome work
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
If anyone would make this in a library then please (!!!) mind Android too.
Currently the latest demo doesn't work on a pretty decent HW (Adreno 530 GPU, 4 Gigs of RAM, 4x2.4GHz core) due to the heavy shader usage (at least I believe that's the root of all problems).
Cheers!
Currently the latest demo doesn't work on a pretty decent HW (Adreno 530 GPU, 4 Gigs of RAM, 4x2.4GHz core) due to the heavy shader usage (at least I believe that's the root of all problems).
Cheers!
- yintercept
- Prole
- Posts: 27
- Joined: Mon Apr 02, 2018 3:31 pm
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
Still pretty cool example all in all, even if android performance is behind according to some.
4aiman are you familiar with shaders? If not this would be a really excellent time to learn (and post your results!)
4aiman are you familiar with shaders? If not this would be a really excellent time to learn (and post your results!)
Currently working on something Love2D could really use. Shhh.
Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]
No, I'm not. And from what I've seen I imagine that shaders are hw-specific. Maybe I should leave this alone till July when I *will* have more time to spare.
Who is online
Users browsing this forum: No registered users and 4 guests