Author Topic: nCraft (3D minecraft-like game for the nspire)  (Read 113629 times)

0 Members and 1 Guest are viewing this topic.

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: nCraft (3D minecraft-like game for the nspire)
« Reply #300 on: October 17, 2012, 04:53:26 pm »
By the way do you plan to add trees (perhaps with a darker green block) to map generation? I assume that falling sand blocks and water would be impossible, though, since that requires a ridiculous amount of physics and you would have to update thousands of blocks location/multiplications (128x128x32 I think, right?) every few frame...
« Last Edit: October 17, 2012, 04:57:03 pm by DJ_O »

Offline leafy

  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1554
  • Rating: +475/-97
  • Seizon senryakuuuu!
    • View Profile
    • keff.me
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #301 on: October 17, 2012, 05:14:30 pm »
Since it's all procedurally generated, couldn't you just update one block every frame? Sure it might end up being biased, but it could allow for a wide variety of things with acceptable speeds.
In-progress: Graviter (...)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #302 on: October 17, 2012, 05:20:26 pm »
Additionally you could just keep a list of "active" blocks.  Minecraft does something similar and doesn't update all of its blocks every frame.  Either way, earlier I suggested running some tests to see what was causing the most slowdown in the engine, was this ever determined?

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: nCraft (3D minecraft-like game for the nspire)
« Reply #303 on: October 17, 2012, 05:21:38 pm »
Wouldn't that take a long while to update the water, though? If, for example you dig a big hole in the roof of a cavern and there's water above it, but every frame the game checks one map block for possible falling water, out of 3000 blocks, then the water would fall down one block every 10 minutes or so ???. The game runs at variable framerate by the way. When your view is facing a map corner or a direction with no block, it gets faster then in other occasions where a lot of blocks are showing up it runs at about 6 FPS (or about 15 if you have Nover installed)

That said it could do what Builder said, but that's still about 100+ blocks, right?
« Last Edit: October 17, 2012, 05:22:19 pm by DJ_O »

Offline Nathan Jahreis

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +1/-0
  • That strange mix of nerd, redneck, and trains ;)
    • View Profile
    • https://sites.google.com/site/nathanjahreis/
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #304 on: October 17, 2012, 07:21:01 pm »
Today I was running nCraft and it froze up, rebooted my calc, and I had to reinstall the OS. Just thought you ought to know.

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: nCraft (3D minecraft-like game for the nspire)
« Reply #305 on: October 17, 2012, 07:27:42 pm »
What Ndless version (with the number after the "r") were you using? Also were you using Nover?

Offline Nathan Jahreis

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +1/-0
  • That strange mix of nerd, redneck, and trains ;)
    • View Profile
    • https://sites.google.com/site/nathanjahreis/
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #306 on: October 17, 2012, 08:25:38 pm »
I dont know what version it was because when i reinstalled the os it cleared everything :-\ yea i was running nover.

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: nCraft (3D minecraft-like game for the nspire)
« Reply #307 on: October 17, 2012, 08:34:30 pm »
In my case I was running an older version of Nover at first and when I set my calc to 242 MHz or something it ran OK except when I launched nCraft I had to re-install the OS. With the new version of Nover I can run the game at 246 MHz fine, though. Of course the MHz depends of the calc, because some people can't go above 220 and others can go up to 270.

Offline Nathan Jahreis

  • LV3 Member (Next: 100)
  • ***
  • Posts: 45
  • Rating: +1/-0
  • That strange mix of nerd, redneck, and trains ;)
    • View Profile
    • https://sites.google.com/site/nathanjahreis/
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #308 on: October 17, 2012, 08:46:30 pm »
In my case I was running an older version of Nover at first and when I set my calc to 242 MHz or something it ran OK except when I launched nCraft I had to re-install the OS. With the new version of Nover I can run the game at 246 MHz fine, though. Of course the MHz depends of the calc, because some people can't go above 220 and others can go up to 270.

yea i only had the cpu set for 220 mhz and the ahb at 74

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #309 on: October 18, 2012, 01:34:00 am »
Quote
yea i only had the cpu set for 220 mhz and the ahb at 74
That's your problem: don't increase the AHB frequency. The warning at anything above 66 MHz is there for a reason - memory easily gets corrupted at higher frequencies :)
If you don't have said warning, then you're using an outdated version of Nover, and you should upgrade :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #310 on: October 18, 2012, 11:20:10 am »
Wouldn't that take a long while to update the water, though? If, for example you dig a big hole in the roof of a cavern and there's water above it, but every frame the game checks one map block for possible falling water, out of 3000 blocks, then the water would fall down one block every 10 minutes or so ???.
Every time a block is changed in Minecraft (for example placing or breaking one), it causes what's called a block update in blocks that are next to it (the closest 6 blocks, I think. Or is it 26?) These nearby blocks are then checked for updates, like water moving or a redstone device receiving a signal. If that block changes, it also causes a block update, which can lead to a chain of them in some cases. For example, removing the block under a pile of sand would cause a block update in the bottommost sand block, making it fall. That block would then cause a block update in the block above it, causing another block update, and so on.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #311 on: October 18, 2012, 12:54:01 pm »
By the way do you plan to add trees (perhaps with a darker green block) to map generation?
Yes :)

I assume that falling sand blocks and water would be impossible, though, since that requires a ridiculous amount of physics and you would have to update thousands of blocks location/multiplications (128x128x32 I think, right?) every few frame...
I think it would be possible, like BuilderBoy and Leafy said, I don't have to check every block, just "active" blocks.


But for now, I'm still fighting with an old "bug" : I ddon't know how to display triangles when some vertices are behing the player. (that's why when you're close to a cube, it is not displayed)
If someone has good ideas, I show you how I compute vertices : 

(all the vertices are rotated, so the camera is always directed to the x-axe)
The ? represents the y-coordinate of the vertex on the screen (from the center).
It is calculated with (10/x)*y
But this doesn't work anymore with negative values...


Today I was running nCraft and it froze up, rebooted my calc, and I had to reinstall the OS. Just thought you ought to know.
Oh, sorry :/
That's not really because of nCraft, but because of your overclock. As Lionel said, AHB frequency has to be under 70 MHz (and to be safe, it should even be under 66 MHz)

Offline Augs

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 306
  • Rating: +30/-29
    • View Profile
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #312 on: October 18, 2012, 01:45:29 pm »
So I was playing nCraft, and since the start I felt there was something wrong but I could not put my finger on it. But now I can put my finger on it! The blocks are to big and the game seems to "zoomed in". Maybe it is just me but do any of you guys feel the same way?

Offline Rhombicuboctahedron

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 437
  • Rating: +41/-6
    • View Profile
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #313 on: October 18, 2012, 07:05:19 pm »
Hey, would this be possible to put this on the nspire?
http://www.moddb.com/mods/minecraft-doom
Its minecraft doom, and while it isn’t minecraft (you can’t mine, build, ect.), it sure beats the other maps and skins in doom.
I downloaded it, and it has no wad file, so I couldn’t send it to nDoom
« Last Edit: October 18, 2012, 07:05:36 pm by Rhombicuboctahedron »

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: nCraft (3D minecraft-like game for the nspire)
« Reply #314 on: October 18, 2012, 09:40:07 pm »
So I was playing nCraft, and since the start I felt there was something wrong but I could not put my finger on it. But now I can put my finger on it! The blocks are to big and the game seems to "zoomed in". Maybe it is just me but do any of you guys feel the same way?
I guess that's mostly since the screen is small and if there were more blocks, like mentioned before, it would take longer to render and would cause speed issues.
Could be wrong :P
You just lost the game.