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

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

0 Members and 1 Guest are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #150 on: March 17, 2014, 11:51:35 am »
Jup, that's an issue with chunk loading. If the view distance is at 1 (the current minimum) some adjacent chunks aren't loaded because I iterate through each chunk and do a if(dist <= sqrt(x*x + y*y + z*z)) to determine whether to render it. Did noone yet find the bug that a chunk isn't rendered if you stand on it and look in the wrong direction? :P

Quote
@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.
If you have any issues please let me know! Otherwise I may think it's not as important or it doesn't happen often.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55913
  • Rating: +3152/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #151 on: March 17, 2014, 12:10:06 pm »
For me it pretty much happens everytime >.< (well, unless vision is set to high)

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 #152 on: March 17, 2014, 01:24:00 pm »
It's really nice. I think the critter you should add first might actually be, if it's possible, a view of Steve himself. Or pigs; they're tasty. :)

I am unable to test it, so I don't know if smelting and crafting is in yet, but if not, it probably should be added as soon as possible.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #153 on: April 16, 2014, 09:53:28 am »
Just a short update, I'm currently not developing crafti, I'm currently working on finishing newlib integration into ndless.
Then I'll finally be able to use the C++ stdlib fully, including iostream, fstream and such.
When it's ready I'll optimize world generation speed and speed in general. I think I may get another frame or two per second :)
Any other issues except those which are generator related?

Offline kevinkore3

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +0/-0
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #154 on: April 16, 2014, 11:28:27 am »
A few graphics glitches, like sometimes you can see through blocks when viewed at a certain angle (happens a lot when you dig underground), but overall it's pretty good. Also, if you dig too deep you fall out of the world. Bedrock would help a bit.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55913
  • Rating: +3152/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #155 on: April 16, 2014, 02:59:58 pm »
YEah I agree about bedrocks. Also do you think, grass, water and lava (including their flow/physics) would be hard to implement?

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 #156 on: April 17, 2014, 04:51:06 pm »
Really, REALLY cool!

Could there be a readme file though please?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #157 on: April 17, 2014, 06:15:25 pm »
Quote
Also do you think, grass, water and lava (including their flow/physics) would be hard to implement?
Grass flow? Do you mean grass spreading onto nearby dirt blocks?

Quote
Really, REALLY cool!
Thanks!

Quote
Could there be a readme file though please?
What should be in there? Instructions, controls, changelog, license?
« Last Edit: April 17, 2014, 06:17:10 pm by Vogtinator »

Offline kevinkore3

  • LV3 Member (Next: 100)
  • ***
  • Posts: 57
  • Rating: +0/-0
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #158 on: April 17, 2014, 09:09:22 pm »
If the terrain generation is slow on the calculator, then maybe there could be an option to generate maps on a computer and then transfer them to your calc. Just an idea. :P

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #159 on: April 17, 2014, 10:12:20 pm »
Having the standard library would help ndless development immensely. More power to you.

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 #160 on: April 18, 2014, 09:12:11 am »
The readme should include instructions

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #161 on: April 18, 2014, 03:04:29 pm »
Crafti is now on GitHub.
Changes in v0.7.2:
- Faster world generation (should be fast enough now)
- Fixed bug if the maximum chunk distance was too small
- Other texture pack, wooden planks look a bit weird. If you can find a better one with a suitable license please tell me!
- Add README.md

Yeah, it's just a bugfix release, I'm now slowly integrating the new possibilities with full newlib+libstdc++ (e.g. fstream) and fixing bugs on the way.
There's a lot to clean up now, so progress may be a bit slow.

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 #162 on: April 18, 2014, 04:38:19 pm »
Nice job! :)
Did you ever get elf2flt to speed up when linking against libstdc++? When I tried last time, it took forever and froze my computer.

Also: in the README, it says you're using something called PerlinNoise, which is licensed under the GPL. So shouldn't the whole program be GPL'd to comply with the license?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1192
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #163 on: April 18, 2014, 04:55:20 pm »
Quote
Nice job!
Did you ever get elf2flt to speed up when linking against libstdc++? When I tried last time, it took forever and froze my computer.
Somehow the bug resolved itself with the last change to the libstdc++ compile flags (I think -fpic)

Quote
Also: in the README, it says you're using something called PerlinNoise, which is licensed under the GPL. So shouldn't the whole program be GPL'd to comply with the license?
It's basically CC-NC-SA except for the PerlinNoise class and the texture. The texture didn't contain a license so I didn't care.
I don't know whether CC-NC-SA exists or is compatible with the GPLv3, I'm not too familiar with licenses but I don't think it was that hard of a work to copy the offical PerlinNoise source and change the syntax a little. If you think that's an issue, I'll probably make it GPLv3.

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 #164 on: April 18, 2014, 05:24:30 pm »
CC-NC-whatever isn't compatible with GPL.
The texture shouldn't matter because you aren't linking with it.
« Last Edit: April 18, 2014, 06:18:31 pm by Legimet »