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

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55882
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #45 on: June 22, 2013, 05:15:14 pm »
By the way, would this engine work with a gradient as the floor and a scrolling background for the sky?

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 #46 on: June 22, 2013, 05:25:06 pm »
Of course, I'm adding these functions to my TODO list :
  • nRC_floorCasting
  • nRC_ceilCasting
  • nRC_scrollingSky
« Last Edit: June 22, 2013, 05:25:58 pm by Matrefeytontias »

Offline Spenceboy98

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 547
  • Rating: +59/-2
    • View Profile
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #47 on: June 22, 2013, 05:56:18 pm »
Take a look here: http://www.codeproject.com/Articles/570700/SquareplusRootplusalgorithmplusforplusC

It's more complex, but I think it will be faster (better algorithm).

Now it freezes(stuck in a while loop I think) inside the plasmaBuffer loop. :/

Can't wait for the floorcasting and shtuffs. :D
I like milk.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55882
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #48 on: June 23, 2013, 12:12:37 am »
Oh floorcasting would be nice too. Would it be very slow if combined with raycasting, though?

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 #49 on: June 23, 2013, 03:36:55 am »
Well, we'll see, but since the raycasting alone is heavily unoptimized, although very fast, there is still some speed to gain.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #50 on: June 23, 2013, 04:53:32 am »
This raycaster looks pretty awesome. Hopefully someone makes a cool game with it. :D

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 #51 on: June 23, 2013, 05:24:15 am »
I planned to make one as soon as the engine is done :)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #52 on: June 23, 2013, 05:47:43 am »
Oh cool ! :D What type of game will it be ? Cause all I can see is an FPS ATM.

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 #53 on: June 23, 2013, 05:50:38 am »
It's a surprise, since it's a game that never met calculators before ;)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #54 on: June 23, 2013, 05:52:49 am »
I'm pretty excited about it then. :) Good luck !

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 #55 on: June 23, 2013, 05:57:49 am »
Yeah but I won't start it before a while, since I need the engine to be complete enough first :P

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55882
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #56 on: June 23, 2013, 12:27:19 pm »
I can't wait for the game but good luck with the engine first. :P

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #57 on: June 24, 2013, 04:06:26 am »
I was wondering how you plan on adding doors?
"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 #58 on: June 24, 2013, 06:19:34 am »
Simple : it's not planned yet :P

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55882
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Re: [Ndless C] nRayC, a raycasting library for TI-Nspire
« Reply #59 on: June 24, 2013, 02:29:49 pm »
What about variable wall and camera height? (Like in calc84maniac's 84+ raycaster)