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

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

0 Members and 3 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 #165 on: April 18, 2014, 05:56:32 pm »
Quote
The texture shouldn't matter because it's just data.
So if anyone draws anything and publishes it, it's just data?

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 #166 on: April 18, 2014, 05:57:40 pm »
What I mean is that it's not code that you're linking with, sorry if the wording was bad.
« Last Edit: April 18, 2014, 06:00:36 pm by Legimet »

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 #167 on: April 18, 2014, 08:17:45 pm »
n00b question alert!
The default textures seem very dark and moody. Can I make them more like the regular PC Minecraft textures.
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 #168 on: April 18, 2014, 08:23:39 pm »
Yup, download the ConvertImg tool I posted here earlier, compile it using the Qt SDK, run it, replace the terrain.h file in the crafti directory and rebuild it.
Alternatively you can also send it to me. A texture loader is on my TODO list.

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 #169 on: April 19, 2014, 01:34:38 am »
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?
THat would be nice, although just at least having grass at all would already be cool as well (since now it's pretty much desertic lol)

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 #170 on: April 19, 2014, 07:23:15 am »
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?
THat would be nice, although just at least having grass at all would already be cool as well (since now it's pretty much desertic lol)
? I added grass blocks in 0.7 IIRC.

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 #171 on: April 19, 2014, 05:38:11 pm »
It is fast now!

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 #172 on: April 19, 2014, 08:08:11 pm »
When i try to compile using the source from Git, it says that nucleus.h is not found.
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 #173 on: April 19, 2014, 08:10:06 pm »
You can either replace it by "os.h" or use my fork of ndless
« Last Edit: April 19, 2014, 08:14:43 pm by Vogtinator »

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 #174 on: April 20, 2014, 04:23:34 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
« Last Edit: April 20, 2014, 08:37:42 pm by Vogtinator »

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 #175 on: April 20, 2014, 04:26:07 pm »
Holy snap that's totally epix. *.*

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 #176 on: April 20, 2014, 08:31:22 pm »
Oops, I just found a typo in the ppm loader: "0x11111" instead of "0b11111". The result is green all above the texture atlas...
I fixed it in the attachment above, that fix doesn't deserve a version number ;D
« Last Edit: April 20, 2014, 08:38:54 pm by Vogtinator »

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 #177 on: April 20, 2014, 08:52:35 pm »
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.

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 #178 on: April 20, 2014, 10:49:26 pm »
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. :P

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 #179 on: April 21, 2014, 02:14:15 am »
This is looking better and better :D