Author Topic: nGL - a fast (enough) 3D engine for the nspire  (Read 240658 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 #390 on: July 09, 2014, 05:20:38 pm »
Quote
Will pistons, comparators, and repeaters and the like be implemented?
Comparators have nothing to compare and repeaters nothing to repeat: Redstone in crafti is infinite!
I was actually planning to implement pistons in v1.1 but thought the last release was so long ago that I should release something.
It will come in v1.2 (or v1.1.1 maybe), probably together with stairs and maybe mobs.

Quote
Also that looks great  does it still work on GS calcs which use the 3.1 version of Ndless, since you now use another executable format ?
It should even run on some versions < 3.1, I'm not using much except fopen etc. at all.

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 #391 on: July 09, 2014, 05:23:27 pm »
Actually repeaters still have two uses : delayers and diodes. They let you delay by one tick while torches need two ticks (since you need to re-invert the signal).

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 #392 on: July 09, 2014, 05:37:58 pm »
Quote
Actually repeaters still have two uses: delayers and diodes. They let you delay by one tick while torches need two ticks (since you need to re-invert the signal).
Looks like I haven't played minecraft in a while.. Added to the TODO list, but below everything else as not really necessary.
Redstone torches don't need two ticks: If the redstone wire connected to the torch is in the same chunk, it changes state every tick. (Not entirely true, it also depends on position and orientation of torch and redstone, like water which behaves a bit weird at chunk borders).
This could be an issue for repeaters, as it may be that the receiving redstone (at the repeater output) gets updated before the receiver changed state and thus having a two-tick delay. Ticks aren't even synchronous for Chunks, each chunk has its own timer, so it's distributed more evenly to prevent lag spikes. I could implement it more "reliable", but only with a heavy impact on overall performance and complexity.

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 #393 on: July 09, 2014, 05:41:26 pm »
What I meant is since torches invert the signal, you need two of them to make a repeater, and then it's a two ticks repeater.

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 #394 on: July 09, 2014, 05:45:35 pm »
What I meant is since torches invert the signal, you need two of them to make a repeater, and then it's a two ticks repeater.
Oh, now I realized what you meant, I should really go to bed now  ._.
In that case (a torch-based repeater) the delay could be as bad as 4 ticks + chunk timing differences
« Last Edit: July 09, 2014, 05:49:17 pm by Vogtinator »

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 #395 on: July 09, 2014, 06:13:09 pm »
I never thought of using a torch based repeater for the time being :3

Comparators, yes, because the redstone is infinite, there could be issues with getting such a device working

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • 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 #396 on: July 10, 2014, 12:15:29 am »
Wow, that redstone implementation looks sick! I really need to give the new version a try when I have time :)

Do you plan a ticalc.org update soon?

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 #397 on: July 10, 2014, 02:20:43 am »
That looks awesome :D
I think I will never get tired of giving +1s to your updates :P

I just had a question when reading your post. What is format Zehn ? I only get redirected to German pages when I google it o.o
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 #398 on: July 10, 2014, 03:22:09 am »
Quote
Wow, that redstone implementation looks sick! I really need to give the new version a try when I have time :)
The implementation IS sick. Just look at the code :P

Quote
I just had a question when reading your post. What is format Zehn ? I only get redirected to German pages when I google it o.o
You know ELF, right? Elf is German for eleven and Zehn is German for ten, that should explain it :)
Basically it's a custom format without the restrictions of bFLT which should load faster and supports code without PIC and with exceptions.

Quote
Do you plan a ticalc.org update soon?
Hm, why not?
« Last Edit: July 10, 2014, 03:48:07 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 #399 on: July 10, 2014, 04:16:21 am »
Quote
I just had a question when reading your post. What is format Zehn ? I only get redirected to German pages when I google it o.o
You know ELF, right? Elf is German for eleven and Zehn is German for ten, that should explain it :)
Basically it's a custom format without the restrictions of bFLT which should load faster and supports code without PIC and with exceptions.
Ok, thanks :)

Also wow, I just updated crafti on my calc and it's really great :D (not that it was bad before :P)
There is just something that annoys me a bit. Would it be possible to have a higher touchpad sensitivity ? Because I have to rub it 5 times before seeing what's behind me :P
Of course, you can make it an option to have both precision-people and speed-people happy :)
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 #400 on: July 10, 2014, 09:43:10 am »
Quote
Also wow, I just updated crafti on my calc and it's really great  (not that it was bad before )
There is just something that annoys me a bit. Would it be possible to have a higher touchpad sensitivity ? Because I have to rub it 5 times before seeing what's behind me
Of course, you can make it an option to have both precision-people and speed-people happy
You can rotate faster if you press the touchpad - this is also dependant on your "Speed" setting. I didn't make the "rubbing" speed change with "Speed", as it would be impossible or too hard to aim on fastest speed.

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 #401 on: July 10, 2014, 10:10:26 am »
What do you use for screenshots? I want to make a screenshot of an AND logic gate and a clock I made last night!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #402 on: July 10, 2014, 10:23:31 am »
Probably taken from running the game in nspire_emu. (well, at least it's the quickest way to get it)

Although a screenshot feature within the game would be cool (if it's not there already, I don't know :P)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

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 #403 on: July 10, 2014, 10:41:07 am »
Quote
Probably taken from running the game in nspire_emu. (well, at least it's the quickest way to get it)
Correct, and the gifs are made using byzanz-record. I move the window to the coords 0/0 and start it with "-x 0 -y 0 -w 320 -h 240".

Quote
Although a screenshot feature within the game would be cool (if it's not there already, I don't know )
I had implemented it once but lost the code somehow (it was before v0.7.2, when I moved to git). But it's on my todo list again!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #404 on: July 10, 2014, 11:00:32 am »
Quote
Although a screenshot feature within the game would be cool (if it's not there already, I don't know )
I had implemented it once but lost the code somehow (it was before v0.7.2, when I moved to git). But it's on my todo list again!
Maybe a part of that could help (instead of recoding this feature from scratch) : http://tiplanet.org/forum/archives_voir.php?id=12264
(also, I like the Ctrl-capture shortcut ... :P)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation