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

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

0 Members and 2 Guests are viewing this topic.

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 #180 on: April 21, 2014, 02:17:00 am »
Wow, very nice update ! Good work :D

What should I implement next?
A readme ? :P
Maybe even an ingame readme in case people forgot which was the key to do some specific action.
« Last Edit: April 21, 2014, 04:39:01 am by Hayleia »
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 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 #181 on: April 21, 2014, 02:23:15 am »
Indeed. When I tried the program I had to search through a dozen of pages of replies just to find the controls and I still felt I missed some.

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 #182 on: April 21, 2014, 11:52:27 am »
Quote
I didn't follow development but the fact that you pulled off a textured voxel engine (even though without lighting) at a pretty decent speed is quite impressive.
I find lighting rather annoying. And what's the difference between a "voxel engine" and 3D triangles? AFAIK a voxel engine is optimized for different sizes of voxels and has a better storage and rendering algorithm (most of the time with octrees).

Quote
That looks really awesome! This is the first time I tried it on a real calc, and the speed is really decent. 
I think it's a little weird that it says "loading" when exiting, though.
I didn't want to make a second "Saving" image.. But I'll fix that when fonts are working!

Quote
Indeed. When I tried the program I had to search through a dozen of pages of replies just to find the controls and I still felt I missed some.
Quote
A readme ? 
Maybe even an ingame readme in case people forgot which was the key to do some specific action
Umm, README.md has been there since v0.7.2.
A ingame readme would be nice, but I'd have to add font rendering first.

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 #183 on: April 21, 2014, 12:33:33 pm »
Quote
I didn't follow development but the fact that you pulled off a textured voxel engine (even though without lighting) at a pretty decent speed is quite impressive.
I find lighting rather annoying. And what's the difference between a "voxel engine" and 3D triangles? AFAIK a voxel engine is optimized for different sizes of voxels and has a better storage and rendering algorithm (most of the time with octrees).
Well I thought voxel engine = cube tilemap renderer but w/e. :P

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #184 on: April 21, 2014, 01:14:07 pm »
New feature release: v0.8!
New features:
- Crafti now uses block data (8 bits per block), which means your save files won't be compatible
- Torches in all directions (even upside-down)!
- Flowers!
- Mushrooms!
- Spider webs!
- Cake!
- Faster chunk culling!
- Ability to load external textures ("/documents/ndless/crafti.ppm.tns") in PPM format (24bit binary)
- A splash screen (From the internet, I only added the text "crafti")!
- Message "Loading" now shown when crafti is doing some heavy processing
- Disabled the mode with textures disabled, it was too ugly and slowed down the startup somewhat

Bugs fixed:
- Clock on screen

Known issues:
- With HD textures the block selection menu becomes unusable (but 1 and 3 still work)
- Front side of blocks is fixed (all furnaces face the XY-Plane)
- CLIP_PLANE too close
- Can rotate more than 90° horizontally, which turns the screen upside-down
(I'll probably fix all of them in v0.8.1, but that'll likely take a while)

Screenshots (BTW, hd textures don't make the game slower  ;) ):
     
     

What should I implement next?

And BTW, I'd be very glad if anyone could design a better menu or "Loading" message for me, I suck at art  ;D

My goodness, that looks fantastic! :D

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 #185 on: April 21, 2014, 02:23:22 pm »
For fonts, you can use nGC or Freetype (which works without any changes)

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 #186 on: April 21, 2014, 03:23:15 pm »
Quote
My goodness, that looks fantastic!
Thanks  :)

Quote
For fonts, you can use nGC or Freetype (which works without any changes)
Does nGC support rendering into (raw) buffers with different width than the screen?

How big is Freetype? Doesn't it need a .ttf for rendering?

Writing a custom font rendering routine is easy, I only need two different font sizes, and I need real performance.
nGC uses the OS' font routines AFAIK which are slow and ugly, Freetype is probably slow as it's using splines, bezier-curves and such things.

I need speed because if I want to show text above a changing background, I'd have to render it every frame and transparency doesn't work with black fonts. I could probably find a workaround but rendering text into a buffer isn't exactly brilliant.

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 #187 on: April 21, 2014, 05:32:57 pm »
I don't remember the details about freetype, but I can give you a sample program. It is fast, and not that big.

Offline ordelore

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 168
  • Rating: +7/-0
  • Genius and Friend
    • View Profile
    • ordelore8x
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #188 on: April 21, 2014, 05:36:06 pm »
Bug Report: when I try running crafti, my nspire crashes and burns.
I am a friend.
I mine Bitcoins.

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 #189 on: April 21, 2014, 05:46:34 pm »
Quote
Bug Report: when I try running crafti, my nspire crashes and burns.
Do you need a fire extinguisher? You'd have to pay the shipping cost, though :P
JK, it only crashes for me if I use a HD texture pack and open the menu. It overflows the screen buffer.
If that's not the cause, could you tell me your ndless revision, and if you know how to trigger the crash, could you upload your savefile and tell me how to reproduce?

Quote
I don't remember the details about freetype, but I can give you a sample program. It is fast, and not that big.
Hm, could you compile freetype into a static lib and make a pull request on github.com/OlivierA/Ndless? I'm sure it'll be useful. You should also include the sample.
« Last Edit: April 21, 2014, 05:48:23 pm by Vogtinator »

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #190 on: April 21, 2014, 05:47:51 pm »
Gotta say, this looks incredible! Liking the new texture update.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: nGL - a fast (enough) 3D engine for the nspire
« Reply #191 on: April 21, 2014, 05:48:08 pm »
Wow, I'm not sure what else to say.

This looks amazing.
This used to contain a signature.

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 #192 on: April 21, 2014, 06:32:54 pm »
Writing a custom font rendering routine is easy, I only need two different font sizes, and I need real performance.
nGC uses the OS' font routines AFAIK which are slow and ugly, Freetype is probably slow as it's using splines, bezier-curves and such things..
Well it depends whether you use a vector or bitmap font anyway. ;) Of course the latter is faster but the former scales better. Also with bitmap fonts you'll most likely have to scale down, which is much slower than scaling up. So maybe there isn't that much of a difference.

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 #193 on: April 21, 2014, 06:51:58 pm »
Quote
I don't remember the details about freetype, but I can give you a sample program. It is fast, and not that big.
Hm, could you compile freetype into a static lib and make a pull request on github.com/OlivierA/Ndless? I'm sure it'll be useful. You should also include the sample.

Sure, I can do that :)

EDIT: While Im working on that, I would like to report that I also got a random crash. I unfortunately did not keep the savefile.
« Last Edit: April 21, 2014, 07:53:48 pm by Legimet »

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 #194 on: April 22, 2014, 04:25:47 pm »
will mobs ever be implemented?