Author Topic: nGL - a fast (enough) 3D engine for the nspire  (Read 265949 times)

0 Members and 3 Guests 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
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #135 on: March 16, 2014, 12:03:28 pm »
Yay for grass blocks! :D

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #136 on: March 16, 2014, 02:40:26 pm »
Bugfix release 0.7.1:
  • If you jump, you don't get stuck in the ceiling anymore if you hold 5
  • Top of block at the top of the world not drawn
  • Almost no stone generated
  • Smoother terrain

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #137 on: March 16, 2014, 04:01:55 pm »
How many bits does one block occupy in memory ? Because if you use 32 bits for each block, that is kind of a waste and that's a spot where you could save space, not only in the savegame, but also in the cache (which means a faster game overall :D)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #138 on: March 16, 2014, 04:04:01 pm »
Consider that 32 bits leaves room for data storage for things like chests, redstone, spawners, etc.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #139 on: March 16, 2014, 04:08:52 pm »
Well I don't think 32 bits are necessary for one block. Even 16 is a lot. Since there are less than 256 blocks, 8 bits is enough to know the type of a block, and the 8 remaining bytes can be used for some information (like the number of the chest if you placed several chests), but I don't think you really need 32 bits.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #140 on: March 16, 2014, 04:22:40 pm »
Currently I have a typedef uint8_t BLOCK in the code and the chunk data is a BLOCK[8][8][8] which is directly fread or fwritten into a file.
If I'll add a feature which requires some data storage for a block, I'll either make a BLOCK 16 bits wide or use a seperate array.
A seperate array will be faster and easier to handle than a interleaved array.
For blocks which require more storage, I'll store a unique ID in the extra 8 bits and reference it to the specific data.
But such things are far away now... Probably further away than the next nspire OS release blocking ndless...

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #141 on: March 16, 2014, 04:31:58 pm »
(can't find the button to remove my post -.-)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #142 on: March 16, 2014, 04:35:12 pm »
(can't find the button to remove my post -.-)
Which post? I can't find the button on my posts earlier. I could swear it was there earlier this day...

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #143 on: March 16, 2014, 04:36:56 pm »
Well to remove the post you quoted and which was a test. I was sure I could delete it too, with a red cross button, but now I can't find it.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

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: nGL - a fast (enough) 3D engine for the nspire
« Reply #144 on: March 16, 2014, 09:09:07 pm »
Bug report in the latest version: I keep getting stuck in blocks it seems because everytime I jump somewhere I can,t move anymore afterward until I destroyed the blocks under me.

Offline Piguy-3.14

  • LV3 Member (Next: 100)
  • ***
  • Posts: 41
  • Rating: +1/-0
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #145 on: March 16, 2014, 11:28:06 pm »
:( this looks sooo cool but I can't get it bc it requires ndless and I can't figure out how to get it to work on my nspire. Can someone help I really want to try this game it looks pretty nice:)

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #146 on: March 16, 2014, 11:39:07 pm »
Check out the links on the front page for information on getting Ndless 3.6 going.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline nspireguy

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 158
  • Rating: +11/-6
    • View Profile
    • NspireGuy
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #147 on: March 17, 2014, 07:16:34 am »
can you post the .tns file by its self so noobs like me can just download and send it to our calc?
thank you and good job!!!!!

Offline kevinkore3

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +0/-0
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #148 on: March 17, 2014, 09:25:23 am »
Just extract the file with 7zip and craft.tns should be in there.
@DJ_O I had that glitch too, but it got fixed by making the field of vision a bit longer by pressing +. I think what's happening is you're jumping into a place before the calc has loaded it.

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: nGL - a fast (enough) 3D engine for the nspire
« Reply #149 on: March 17, 2014, 11:42:54 am »
Ah I see now. Yeah I kept it somewhat low so it doesn't take 3-4 seconds before the next chunk loads. The wait got a bit annoying compared to the older version. D: