Author Topic: nGL - a fast (enough) 3D engine for the nspire  (Read 265433 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 #240 on: May 03, 2014, 10:47:58 am »
I actually thought about that, but it doesn't make much sense IMHO. One hand for rotation and the other for movement.
And also that would make debugging absolutely impossible, as I couldn't rotate the camera on nspire_emu then.
« Last Edit: May 03, 2014, 11:01:25 am by Vogtinator »

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #241 on: May 03, 2014, 01:52:40 pm »
I also hit a bug in GCC 4.9.0, but it should be faster now, as one of the major features in 4.9.0 is a optimized LTO.

Once Lionel Debroux said that GCC versions x.y.0 are buggy, and when 4.8.0 was the latest GCC, I ran into a bug that gave an ICE when compiling Ndless :P
I reported the bug, and it was fixed in 4.8.1.

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 #242 on: May 03, 2014, 01:59:24 pm »
The major time between 4.8.2 and 4.9.0 was testing, especially for regressions.. Obviously it was still too short.
I'm looking forward to find out what else it breaks.. I mean, it's just a normal constructor, I don't know any C++ projects without constructors...

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 #243 on: May 03, 2014, 02:14:41 pm »
I am very interested in wondering if, because the iOS does not support Java, you are actually using mechanics similar (unknowingly) to those in the iOS version of Minecraft?

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 #244 on: May 03, 2014, 02:32:07 pm »
The programming language has nothing to do with mechanics. But maybe it's just unclear to me what you meant.

BTW: Just found another bug in GCC 4.9.0: Compile anything with pointers with -fsanitize=address and it crashes if LTO is enabled:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61048
I don't know, maybe it's also present in 4.8.2.

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 #245 on: May 03, 2014, 02:34:19 pm »
I actually thought about that, but it doesn't make much sense IMHO. One hand for rotation and the other for movement.
Well on PC, you have one hand on keys and the other one on the mouse.
Same on Android where you have one hand on a virtual D-Pad and the other one sliding around to look around.
I hear your argument about the emu though.
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 Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #246 on: May 03, 2014, 04:26:40 pm »
I also hit a bug in GCC 4.9.0, but it should be faster now, as one of the major features in 4.9.0 is a optimized LTO.

Once Lionel Debroux said that GCC versions x.y.0 are buggy, and when 4.8.0 was the latest GCC, I ran into a bug that gave an ICE when compiling Ndless :P
I reported the bug, and it was fixed in 4.8.1.
That's how GNU version numbering works. :P Major.minor.patch = overhaul.features.hotfix.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Crafti v0.9
« Reply #247 on: May 06, 2014, 01:15:52 pm »
New major release of crafti: v0.9!
I know, I only changed the minor version number >:D

A screenshot first, can you guess the changes?


New features:
  • Water and Lava: Water has a range of 5 blocks, lava 3. You'll be able to find out yourself how it exactly works :P
  • Inventory for quick-select: Press 5 while in block list mode and you change the block in the current slot. Use 1 and 3 to select the inventory slot.
  • Doors: Open them with 7
  • Wheat: Has to be placed on dirt or grass adjacent to water. If you remove the water, it'll dry instantly. Growth speed is totally random.
  • Selection indicator: I reused the glass texture, in the quick-select as well
  • Swimming: You can swim in water. Not in lava, that'd be dangerous!
  • New blocks: Glowstone, glass, diamond, gold, iron, netherrack and cobblestone
  • Switched included texture pack to Sphax PureBDCraft: The other texture didn't contain water somehow.

Fixed bugs:
  • Most graphical issues fixed: Your screen shouldn't show complete garbage anymore.
  • Fixed jumping bug: No more sliding along walls or getting stuck in blocks!
  • Fixed bottom of grass blocks: It was gravel before. Don't ask me why. I couldn't answer myself.
  • Made leaves opaque again. Not a huge difference in appearance, but in performance.
  • Fixed accidentially overwriting not block-shaped blocks, like flowers or mushrooms.

Known issues (compared to v0.8.1):
  • None!
    « Last Edit: May 10, 2014, 03:22:53 am by Vogtinator »

    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 #248 on: May 06, 2014, 02:25:33 pm »
    you forgot the readme :P
    Awesome !
    Glad to see you could make both the inventory and water+lava, among other things :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 Matrefeytontias

    • Axe roxxor (kinda)
    • LV10 31337 u53r (Next: 2000)
    • **********
    • Posts: 1982
    • Rating: +310/-12
    • Axe roxxor
      • View Profile
      • RMV Pixel Engineers
    Re: nGL - a fast (enough) 3D engine for the nspire
    « Reply #249 on: May 06, 2014, 03:32:57 pm »
    So epic :D I hope you'll be able to port it to monochrome Nspires as well, or let someone do it for you (yes this is a proposal) ;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 #250 on: May 06, 2014, 04:25:34 pm »
    Quote
    So epic  I hope you'll be able to port it to monochrome Nspires as well, or let someone do it for you (yes this is a proposal)
    nGL is open source, so of course everybody can - if that "everybody" wants to.
    It's only the matter of some code switching to 8-bit grayscale mode (there's no 4bit array in C, so that would be quite invasive), and a conversion routine that handles the displaying. And no - I won't do it. At least not this month.

    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 #251 on: May 06, 2014, 10:29:44 pm »
    This is looking awesome. Keep up the good work!
    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 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 #252 on: May 06, 2014, 11:19:23 pm »
    Really nice! I can,t wait to find time to try this new version. :)

    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 #253 on: May 07, 2014, 12:02:33 am »
    Also, don't forget to update your vote on the reset poll!
    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 XiiDraco

    • LV7 Elite (Next: 700)
    • *******
    • Posts: 513
    • Rating: +32/-5
    • Forget the numbers, just call me, Recreation.
      • View Profile
      • Black-Lark Games
    Re: nGL - a fast (enough) 3D engine for the nspire
    « Reply #254 on: May 07, 2014, 12:22:51 am »
    Do you even know how happy I would be to be able to skrew around with redstone (and related material) on my Nspire?

    I would cry. Tears for you. Bottle them. And then mail them. To you. So you. Could physically feel. My joy.