Page 7 of 7

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Fri Apr 14, 2017 6:19 pm
by MasterLee
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?

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Fri Apr 14, 2017 7:19 pm
by Davidobot
MasterLee wrote:
Fri Apr 14, 2017 6:19 pm
Could you make a portal? A wall, that when hit by a ray is not rendered itself, but instead the ray continues on from another wall? So both walls are connected somehow and when the player walks through the said wall he is warped to the other one?
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. :)

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Thu Jul 06, 2017 4:33 am
by yetneverdone
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

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Mon Jul 10, 2017 5:23 am
by Davidobot
yetneverdone wrote:
Thu Jul 06, 2017 4:33 am
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?
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 am
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
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.

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Mon Jul 10, 2017 7:41 am
by yetneverdone
Davidobot wrote:
Mon Jul 10, 2017 5:23 am
yetneverdone wrote:
Thu Jul 06, 2017 4:33 am
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?
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 am
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
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.
Please do so! It will be very helpful

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Sun Oct 29, 2017 9:14 am
by 4aiman
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!

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Sun Apr 08, 2018 4:35 pm
by yintercept
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!)

Re: Textured Raycaster [Multiple Levels! Door Covers! Jumping!]

Posted: Mon Apr 16, 2018 9:18 pm
by 4aiman
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.