Author Topic: An HP Prime raycaster?  (Read 8894 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
An HP Prime raycaster?
« on: August 05, 2014, 04:14:03 am »
Have you ever wished that you could have a raycaster run at 2 FPS in pure TI-83 Plus or Casio BASIC? Well, unfortunately that will never be possible, but if you have an HP Prime and thought it would be the case on that calc too, then get ready: Critor has just released PrimeCaster 3D, a variable wall height raycasting engine for the HP Prime!



Because guess what? You read it and see it right: This raycaster even supports variable wall height, and as if it wasn't enough, it supports shading too! You can jump, climb stairs and from what I can see while moving around, it seems that some floors show reflection of walls.

The frame rate is very slow, though, but given the fact this is written in HP PPL rather than C and ASM, it's ridiculously impressive. You can adjust the frame rate to whatever you like and the raycasting quality will automatically adjust itself to match the frame rate you want, but above 3 FPS on-calc it starts being hard to see anything. This is why the maze game will look nicer on the simulator than the calculator at the same FPS (the screenshot above has been altered to show approximately how fast the quality shown in it runs on a real calculator. You can also change the weather or lightning effect by switching between darkness, fog and light (the latter which turns off all shading)

In order to allow a game to use this engine, level design would have to be made so that wide-open areas are obstructed by walls, cutting the view down, as it runs faster in smaller rooms. Also, some elements such as shading support and variable wall height would probably have to be eliminated or toned down. Regardless, this awesome program shows once again what the HP PPL language of the HP Prime is capable of and gives an idea of what kind of game could be achieved in it!

Download link: http://tiplanet.org/forum/archives_voir.php?id=87246
Source: http://tiplanet.org/forum/viewtopic.php?f=55&t=15033

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: An HP Prime raycaster?
« Reply #1 on: August 05, 2014, 11:42:21 am »
I saw this this morning, that's shockingly awesome. *.*

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: An HP Prime raycaster?
« Reply #2 on: August 05, 2014, 01:47:09 pm »
By the way, I was wondering why this news article was rejected, considering it's a notable HP program and is completed (version 1.0)? ???

I originally uploaded it to news awaiting for approval, but then it got moved to HP Prime Projects ???