• nGL - a fast (enough) 3D engine for the nspire 5 4
Currently:  

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

0 Members and 4 Guests 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 #435 on: August 22, 2014, 02:22:11 pm »
Not now, I'm busy with some other, more important projects and also other parts of my life.
It's open source and the code should be quite easy to understand, though.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #436 on: August 26, 2014, 10:03:57 am »
Is there any way to get only the source for nGL and not crafti? I'd like to fiddle with it sometimes.

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 #437 on: August 26, 2014, 10:16:41 am »
There's not a seperate repository for it, but you can copy the nGL files from https://github.com/Vogtinator/crafti.
The core files are:
gl.cpp gl.h triangle.inc.h glconfig.h fix.h fastmath.cpp fastmath.h
For some 2D functionality:
font.cpp font.h texturetools.cpp texturetools.h
And basic 3D stuff:
aabb.cpp aabb.h glbox.cpp glbox.h gldrawable.h

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #438 on: August 26, 2014, 10:17:17 am »
I saw the textures in crafti were a little wonky (maybe for speed reasons), are there any texture routine more accurate?

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 #439 on: August 26, 2014, 10:50:34 am »
Quote
I saw the textures in crafti were a little wonky (maybe for speed reasons), are there any texture routine more accurate?
Depends on what you mean by "wonky". Some inaccuracies are due to the fixed point math.
For obvious reasons it's doing Affine texture mapping, but you don't notice that much while playing.
The problem is, that for every scanline, the X distance is the total length of the line. If you want to do it the "correct" way, the length is sqrt(dx*dx+dz*dz), but doing it every line (or like quake, every 5th or so) is still a whole lot too slow. And I can't use the invsqrt trick, as that only works for floats.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #440 on: August 26, 2014, 10:52:51 am »
Okay, I just wanted to know why, thanks!

Online 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 #441 on: November 07, 2014, 11:09:47 am »
Finally, Crafti gets its ticalc news feature :D http://www.ticalc.org/archives/news/articles/14/148/148684.html

Also I need to check the latest version at one point because I think what I got is an older version.

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 #442 on: November 07, 2014, 12:22:51 pm »
Quote
Finally, Crafti gets its ticalc news feature  http://www.ticalc.org/archives/news/articles/14/148/148684.html
:w00t: I uploaded the latest version some months ago so this is a real surprise for me.

Quote
Also I need to check the latest version at one point because I think what I got is an older version.
That's fairly simple, the latest version doesn't have the ugly black gradient with 50% opacity menu.

Online 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 #443 on: November 07, 2014, 12:24:35 pm »
Aw, I liked that menu for some reasons 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 #444 on: November 07, 2014, 12:53:03 pm »
Aw, I liked that menu for some reasons D:
Oh, I just noticed I didn't change the menu at all in v1.1, the ugly black menu is gone since v1.0. For comparision:

Old:New:

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #445 on: November 07, 2014, 02:31:50 pm »
That old menu doesn't look ugly to me, it looks clean and modern. The new one does have more 'feel' to it though.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Online 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 #446 on: November 07, 2014, 10:39:41 pm »
Aw, I liked that menu for some reasons D:
Oh, I just noticed I didn't change the menu at all in v1.1, the ugly black menu is gone since v1.0. For comparision:

Old:New:
Oh right yeah that menu. I like the new one actually. I thought you meant the items menu at first. :P

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 #447 on: November 08, 2014, 01:08:41 pm »
Question: is nGL (the library) not on GitHub? I'd really like to use it, after seeing how powerful it is.
I am Bach.

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 #448 on: November 08, 2014, 01:10:39 pm »
Question: is nGL (the library) not on GitHub? I'd really like to use it, after seeing how powerful it is.
A quick search didn't come up with anything: https://github.com/search?q=nGL%20nspire&type=Everything&repo=&langOverride=&start_value=1
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 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 #449 on: November 08, 2014, 01:35:28 pm »
Question: is nGL (the library) not on GitHub? I'd really like to use it, after seeing how powerful it is.
A quick search didn't come up with anything: https://github.com/search?q=nGL%20nspire&type=Everything&repo=&langOverride=&start_value=1
Click on "Code" :P