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

0 Members and 1 Guest are viewing this topic.

Offline AzNg0d1030

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 522
  • Rating: +45/-4
  • Hardcore anime watcher.
    • View Profile
Re: Some 3D with Ndless...
« Reply #60 on: April 17, 2012, 09:03:37 pm »
No way.... If this gets good, this could be INSANE!!!!
You just lost the game.



Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Some 3D with Ndless...
« Reply #61 on: April 17, 2012, 09:06:51 pm »
EPIC!
I want download
« Last Edit: April 17, 2012, 09:07:34 pm by annoyingcalc »
This used to contain a signature.

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: Some 3D with Ndless...
« Reply #62 on: April 17, 2012, 09:07:43 pm »
Since I finished my lua projects (Gravity guy and nSpaint), I can focus on nCraft...
I got a simple world generator (I will improve it later) It looks like this :


And do you think that I should make iron/coal/gold/diamond more rare? For now it looks like this :

(I did not display the stone)
Iron is grey, gold is lighter, diamond is the lightest shade of grey and the black floor is bedrock.
I dont see pictures?
Seems like servimg is down right now.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Some 3D with Ndless...
« Reply #63 on: April 17, 2012, 10:14:10 pm »
* shmibs can't wait to see what new stuff is in these screenshots.

by the way, the formal term for displaying only visible polygons is occlusion culling, which might be helpful in finding relevant articles. also, a method you could use is pre-determining what polygons are visible from certain sectors in a map and storing that in along with the map data, rather than trying to calculate it in real time. that wouldn't be much help for dynamic terrain, though...

edit: this is probably just going to be me ranting, and not be of any actual use, but i had an idea while walking home just now that would be perfect for a 'closed rooms and corridors' shooter like doom. instead of storing the map data in a giant 3d grid, it could be stored in sectors, each sector with its own map of polygons that are to be drawn while the player is within it. por ejemplo:
if you had a 2d map for a raycaster, instead of using the conventional method, it could be broken up into sectors, like so:


and then each sector would be stored separately and consist of all the blocks that are potentially visible from within its X,Y region of the total map. here are sectors 1-3:
   

as you can see, some sectors can be a lot larger than others. however, it would be easy to minimise such areas when designing the maps by making sectors room-sized, and things like that. additionally, all the white space would make compression pretty easy =)
« Last Edit: April 17, 2012, 11:12:43 pm by shmibs »

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: Some 3D with Ndless...
« Reply #64 on: April 17, 2012, 10:58:58 pm »
From what I remember, one screenshot showed plain gray cubes that seemed to be able to rotate and it also appeared to support polygon sorting, as in superposed cubes. :D

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Some 3D with Ndless...
« Reply #65 on: April 17, 2012, 11:37:52 pm »
I really want demo
This used to contain a signature.

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: Some 3D with Ndless...
« Reply #66 on: April 17, 2012, 11:50:11 pm »
@Shmibs would that work well for a Minecraft-type game where the overworld changes constantly?

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Some 3D with Ndless...
« Reply #67 on: April 17, 2012, 11:52:27 pm »
you'd have to have some way of dynamically updating all the separate sectors, that contain a certain block, so not realistically, no. like i said:
Quote from: shmibs
this is probably just going to be me ranting, and not be of any actual use
: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: Some 3D with Ndless...
« Reply #68 on: April 17, 2012, 11:55:41 pm »
Ok I see then.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Some 3D with Ndless...
« Reply #69 on: April 18, 2012, 06:11:36 am »
Wow... That's a lot of posts !
Thanks for the support :)

This looks awesome Chockosta! how big will be maps? Glad you're still working on this. :)
The total map is 100*100*40 (400,000 cubes !)
I display a chunk of 24*24*24 around the player. (with scrolling)

[nice ideas]
Your idea seems nice, but I think it's more adapted to a raycasting 3D engine... Because with nCraft, the sectors could get way too big.
Moreover, DJ is right, it would be hard to update sectors.

EPIC!
I want download
I have to get CX support, and then, I will put a download. (Even if it would be pretty useless without the possibility to add/remove blocks)


Oh, and sorry for using servimg, I should find another image hosting website.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Some 3D with Ndless...
« Reply #70 on: April 18, 2012, 07:08:08 am »
Quote
Oh, and sorry for using servimg, I should find another image hosting website.
imgur.com
« Last Edit: April 18, 2012, 07:08:32 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Some 3D with Ndless...
« Reply #71 on: April 18, 2012, 08:28:38 pm »


EPIC!
I want download
I have to get CX support, and then, I will put a download. (Even if it would be pretty useless without the possibility to add/remove blocks)
.
still I like the generator
This used to contain a signature.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: Some 3D with Ndless...
« Reply #72 on: April 28, 2012, 10:21:26 am »
Hello everybody !

I have problems with color support, and I would need your help...
I have to change my buffer from uint8_t* to void*.

But in a function to change a pixel, I have to cast a void* value to an uint8_t if the screen is in 4 bpp mode.
So I tried :
Code: [Select]
function setPixel(void *buffer,int x,int y,int color)
{
    //...
    uint8_t px=*((uint8_t *)buffer[pos])     //pos is an int
    //...
}
But gcc does not like that... What should I do instead?

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: Some 3D with Ndless...
« Reply #73 on: April 28, 2012, 01:53:50 pm »
You should probably ask your question in the C or Ndless section later too if you don't get any reply here, since more people who can help might see it in an help section.  :)

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Some 3D with Ndless...
« Reply #74 on: April 28, 2012, 04:55:26 pm »
Great work so far! :D I'm not too sure about that C question... maybe one of the C experts could help.
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)