Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raycasting
#1
Sorry for my inactivity on the forum. I've been very busy for a while, lots of stuff going on in my life.

I started working on a simple raycasting library this weekend. I need to optimize some things in it, but I should be able to post it here next weekend. I still have much bigger plans when it comes to raycasting, butĀ thisĀ first one will be for pure wolf3d-style games.

Recorded a video of it using the "Snipping tool" that comes with windows 11.

https://naalaa.com/tmp/n7_rc.mp4

Edit Attached the code written so far.


Attached Files
.zip   wolf3d.zip (Size: 41.09 KB / Downloads: 5)
Reply
#2
Excellent - I was hoping that this would appear, as I have not really used it in past versions of Naalaa, so thought that I would wait for the N7 version....

Looks very good - even runs acceptably well on my ancient retro laptop (Pentium 3 @ 600 mhz, 384 mb ram, Windows XP), although understandably the frame rate is not great - no such problems on my (slightly) more modern laptop (Core2Duo @ 1.4 ghz, 3 gb ram, Windows 7).

Looking forward to any updates....
Reply
#3
(04-10-2023, 01:54 PM)kcfb Wrote: Excellent - I was hoping that this would appear, as I have not really used it in past versions of Naalaa, so thought that I would wait for the N7 version....

Looks very good - even runs acceptably well on my ancient retro laptop (Pentium 3 @ 600 mhz, 384 mb ram, Windows XP), although understandably the frame rate is not great - no such problems on my (slightly) more modern laptop (Core2Duo @ 1.4 ghz, 3 gb ram, Windows 7).

Looking forward to any updates....

The frame rate will be better. The 'draw vraster' and 'draw hraster' commands are slower in n7 than in n6, but I'm pretty sure I can make them execute faster.

Edit Made a quick test-modification of 'draw vraster' and now speed shouldn't be a problem (I'm getting a constant 250 fps here ...). So I'll release a new n7 version at the same time as they wolf3d library.
Reply
#4
The example is very cool and it works very well on my old computer, although we will have to see when I have many objects and enemies on the screen.

Could an airplane game be made in this style?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)