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

0 Members and 1 Guest are viewing this topic.

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 #285 on: May 17, 2014, 07:32:09 am »
I think the priority is the speed up all the "loading" during the game.
That's terrain generation and it will probably not get much faster.. :( Unless I can find a better way to generate terrain.
Wait, that means that if I stay on a "region" where everything is already generated, I don't have that loading anymore ?
Maybe you could add an option or something to waste 1 minute of time generating a "huge" map to save time later by not generating anything anymore ?
That's already implemented: Just increase the view range, wait until it's generated and decrease it again.
But of course I could generate a larger area first.

Offline GinDiamond

  • LV3 Member (Next: 100)
  • ***
  • Posts: 71
  • Rating: +2/-2
  • I dont always fail at life, but when I do, I dont
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #286 on: May 18, 2014, 09:56:20 am »
So are these worlds now infinite? There also seems to be an xray bug where if you're underground, you can walk up to a block and see all through it

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 #287 on: May 18, 2014, 01:07:46 pm »
Quote
So are these worlds now infinite?
No, not infinite, just 69905 blocks in X, Y, and Z-direction ;)
But there will be more and more glitches and artifacts the further you go.

Quote
There also seems to be an xray bug where if you're underground, you can walk up to a block and see all through it
I know, but I can't seem to find it  :mad:

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 #288 on: May 18, 2014, 05:27:24 pm »
So are these worlds now infinite?
No, not infinite, just 69905 blocks in X, Y, and Z-direction ;)
But there will be more and more glitches and artifacts the further you go.
...
...
...
THE FAR LANDS
somebody call Kurt
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 CalebHansberry

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 135
  • Rating: +14/-0
  • This is my personal text
    • View Profile
    • Skylites Computers
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #289 on: May 19, 2014, 04:51:38 pm »
Yaaay The Far Lands coded in already! Cool!
You should know, I am a Christian.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #290 on: May 24, 2014, 11:10:09 am »
I downloaded the grayscale version and put it on my Nspire CAS (grayscale) touchpad. I get the splashscreen, then the UI for half a second, then it exits. It is in the root directory. I am using Ndless 3.6

Do you know why this is happening? If so, what's the fix?
I am Bach.

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 #291 on: May 24, 2014, 01:03:20 pm »
Quote
I downloaded the grayscale version and put it on my Nspire CAS (grayscale) touchpad. I get the splashscreen, then the UI for half a second, then it exits. It is in the root directory. I am using Ndless 3.6

Do you know why this is happening? If so, what's the fix?
Do you have a touchpad or not?
Does it work if you press (and hold) the ESC key?

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #292 on: May 24, 2014, 05:48:20 pm »
I have a touchpad, and yes it works when I hold ESC. That said, it crashes after a bit (still holding ESC) D:
I am Bach.

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 #293 on: May 24, 2014, 06:05:07 pm »
That's weird, so the touchpad has the same keymap as the CX model, but with inverted registers?
I don't know why it crashes, though. Probably it thinks all keys are pressed at the same time, but it shouldn't crash  ::)

Could you try the attached version? It's built from my current source tree, with many new bugs.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #294 on: May 24, 2014, 06:12:12 pm »
That version just crashed on startup. Sorry D:

I think it may be Ndless 3.6/OS 3.6 that is the problem, since Matref had no issues, and he has OS 3.1/Ndless 3.1
I am Bach.

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 #295 on: May 24, 2014, 06:25:56 pm »
Quote
That version just crashed on startup. Sorry D:
Could you try it again? Maybe there wasn't enough RAM available.

Quote
I think it may be Ndless 3.6/OS 3.6 that is the problem, since Matref had no issues, and he has OS 3.1/Ndless 3.1
That may be, but it works on CX CAS 3.6 (emulated) and CAS 3.1 (emulated clickpad) without any issues  ???

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #296 on: May 24, 2014, 06:49:19 pm »
It works! Thank you very much!
I am Bach.

Offline TheMachine02

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 452
  • Rating: +105/-0
  • me = EF99+F41A
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #297 on: May 27, 2014, 05:09:09 am »
Soo.. I've just test it on real hardware, and I must say it rather super mega awesome  ;D
keep up the good work  :thumbsup:
AXE/asm programmer - unleash the power of z80 //C++//C

epic 3D things http://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_BasicsTheory.html

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 #298 on: June 02, 2014, 03:48:21 pm »
It's time for the newest, greatest, most stable and best release yet: v1.0!
Bad news first: No major no features, no redstone yet. But I'm working on it  ;)
I wanted this release to be stable and with all known bugs fixed, and redstone is the opposite...
I also focused on performance. Just try it out yourself, it's a big improvement!

But now the good news:
New features:
  • Support for non-cx cals! Due to the limited amout of RAM the worlds can't get very big
  • Font rendering! 
  • Help screen! 
  • Settings!

    Also reintroduced transparent leaves. You can change the walking speed now!
  • Some reworked graphics!
  • Fast mode! 

    The "face-combining" can be seen here, so 4 faces are drawn as two triangles now.
Bugs fixed:
  • Fluids not updating unnecessarily
  • Wrap around in block list
  • Use the touchpad/clickpad for navigation!
  • X and Z-Interpolation issues fixed!

    You can see close blocks now, have fun digging! ;D
  • Some refactoring..

That's about it. It took much longer than expected, but I tried to fix every bug I found  <_<
And a short note at the end: I changed the savefile version again, so if your world doesn't open, you'll have to open and save it with v0.9 first.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #299 on: June 02, 2014, 04:00:06 pm »
You are really amazing. :o The performances really increased and are now acceptable.

Just un point: why does the "fast mode" seem to be slower on my calc?

By the way, would it be possible to make the "loading" vanish while playing even though it reduces the speed? The loads would be progressive instead of all in the same time.

Anyway, it is really a great great work.