Author Topic: [Ndless C] nRayC, a raycasting library for TI-Nspire  (Read 33160 times)

0 Members and 1 Guest are viewing this topic.

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #60 on: June 24, 2013, 05:33:53 pm »
Lol, there are a few ways that you can achieve doors, however it will require modification of the wall detection loop since you need to allow for the fact that doors are 'half-way' in a wall (or offset by half a wall etc) and sometimes reinstate a ray if needed (like when its opening).

That said, its not on the plan yet, but something to think about.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #61 on: June 24, 2013, 05:52:26 pm »
DJ_O variable camera height is planned, IDK about walls yet.

tr1p1ea that'll come way later anyway :P

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: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #62 on: June 24, 2013, 06:00:42 pm »
On a side note here's the raycaster I am talking about:



Unfortunately OTBP website is gone and I couldn't find any topic about it here, so I had an hard time finding the image.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #63 on: June 24, 2013, 06:31:15 pm »
Oh but this is not jumping/crouching, this is looking up or down O.O I can't do that with my current engine ...

But seeing the screenshot, I can barely see how to do variable-height walls, so it should be OK.

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: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #64 on: June 24, 2013, 06:39:12 pm »
Actually I think looking up and down simply involves moving the screen content up and down in the screen, with no extra 3D calculations. It's kinda like in Duke Nukem 3D (the original version, not remakes nor the hi-res pack), but of course like in that game when you look too high in the sky, the buildings look distorted.



 Also moving the camera height up and down would be the problem.
« Last Edit: June 24, 2013, 06:40:26 pm by DJ Omnimaga »

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #65 on: June 25, 2013, 03:52:10 am »
Actually I don't really know, I'll search some info about that.