Author Topic: Pseudo-3D engine for the TI-Nspire using Lua  (Read 4140 times)

0 Members and 1 Guest are viewing this topic.

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 322
  • Rating: +131/-13
    • View Profile
Pseudo-3D engine for the TI-Nspire using Lua
« on: September 13, 2011, 11:38:42 am »
Hello,

I've been working on a pseudo-3D (using ray casting) engine for the TI-Nspire. Chokosta has already made one (actually I got the idea from him), but I want to have a flexible and fast engine that could eventually be used to make some sort of games. Lua on the TI-Nspire is already quite slow, and so I will try and optimize the most critical parts as much as Lua allows it to have a decent rendering frame rate. At the moment I am in the testing phase, trying different techniques of ray casting (namely, using vectors like Lode Vandevenne in his tutorial does, or using angles) as I want to have good and clear code while still being fast. Also for texture mapping I have a few choices, so I'll have to weigh all that and choose the ones that suit the best.

As a summary, what I will try to make is an engine that has/is:
  • A decent rendering frame rate
  • Easy-to-use, easily configurable and flexible
  • Texture mapping on walls
  • Various rendering effects
  • Some sort of fog
  • Other stuff that I can't remember

As I love splash screens and screenshots in general, here you go:



Ain't much else for now. Let's just hope making this thread will keep me motivated. :*
« Last Edit: January 29, 2013, 10:58:24 am by hoffa »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Pseudo-3D engine for the TI-Nspire using Lua
« Reply #1 on: September 13, 2011, 11:40:38 am »
looks nice!
Sig wipe!

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Pseudo-3D engine for the TI-Nspire using Lua
« Reply #2 on: September 13, 2011, 12:52:36 pm »
Impressive ! How do you display textures ?
I tried, but my framerate decreased a lot.

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Pseudo-3D engine for the TI-Nspire using Lua
« Reply #3 on: September 13, 2011, 08:37:23 pm »
WOAH that looks awesome can I test?
This used to contain a signature.

Offline NecroBumpist

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 130
  • Rating: +14/-5
  • Master of Lua
    • View Profile
Re: Pseudo-3D engine for the TI-Nspire using Lua
« Reply #4 on: September 13, 2011, 09:09:58 pm »
Nice!
How many FPS does it get ?
Developing Lua scripts for the NSpire ?
Check out the Necrotorium
Need a few routines to run faster ? Checkout the MODS Lua Assembly Toolkit.
Need to save space for your scripts ? Checkout LuaSrcDiet

Offline pianoman

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 426
  • Rating: +24/-0
  • ♪♫ ♪♫ ♪♫ ♪♫ ♪♫ ♪♫ ♪♫
    • View Profile
Re: Pseudo-3D engine for the TI-Nspire using Lua
« Reply #5 on: September 13, 2011, 11:03:13 pm »
Whoa that is awesome.
Nice work! :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Pseudo-3D engine for the TI-Nspire using Lua
« Reply #6 on: October 23, 2011, 08:32:34 pm »
Nice indeed. I would like to see some sort of small demo of the raycaster to see how fast it runs, hoping it's still in the works.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)