Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Minecraft blocks algoritjm

Author
Message
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 6th Mar 2011 11:49
Can anyone help me to create a minecraft like algorithm who can collocate blocks for make a landscape???
[Excuse for bad english i use google translate and i'm italian]
P.S = i've only this link but i don't understand how it can help me:
http://www.gameprogrammer.com/fractal.html
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 6th Mar 2011 12:50 Edited at: 6th Mar 2011 15:08
please help me ! it's very important for me !
zerosimms
15
Years of Service
User Offline
Joined: 25th Feb 2011
Location:
Posted: 6th Mar 2011 22:13
Hey

Take a look at this guys work:

http://forum.thegamecreators.com/?m=forum_view&t=181984&b=8

Hope this helps you out!

www.bensimms.co.uk
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 7th Mar 2011 10:14
thanks for answer but i've already post in thos treadh.....
i need a suggestion how to make the algorithm
[Excuse for bad english i use google translate and i'm italian]
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 7th Mar 2011 12:06
Instead of creating so many cubes, I would do something like the peel of an apple. Only the cubes that could be intersected for the player, and the rest don“t exist.

Cheers.

I'm not a grumpy grandpa
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 7th Mar 2011 12:52
Minecraft uses a massive 3D map, 128 segments high and god only knows the width and depth - it actually generates the terrain as you explore, so it might be more like a limit with the amount of data your PC can manage.

Anyway, if you wanted to make a limited size world of cubes, I would start by making a big array, say 128 high by 1024 wide and 1024 deep. Then I would make spheres inside that data, using a 3D distance check - so a bit like having the whole world filled with different sized balls. You could set the balls to different materials, like iron ore, small balls of diamond etc. Then I would have all the map data shift down, so the bottom is completely solid and varying in height, like a terrain should be. If you imagine these balls are made of Minecraft sand, they would all fall down and generate a landscape.
Then once you have a basic, solid terrain, cut spheres out, have the spheres move around while cutting to create tunnels.

With that you might end up with a decent Minecraft style world - not as complex as the real method, but it might be enough to get started with.

Health, Ammo, and bacon and eggs!
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 7th Mar 2011 13:53 Edited at: 7th Mar 2011 14:24
thanks a lot!!

now i will try to make a world and i post it!

edit :
can you show me a code example for start to work on it??
bitJericho
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 10th Mar 2011 14:02 Edited at: 10th Mar 2011 17:45
Notch just posted a blog entry with details about how it works

http://notch.tumblr.com/

[center]
Join the TGC Group!
http://tehcodez.groups.live.com
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 10th Mar 2011 14:49
thanks but i need a code example to work on it
bitJericho
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 10th Mar 2011 17:47 Edited at: 10th Mar 2011 17:51
You're not going to find something pre-made that's as good as notch's code, or even close.

You need to understand memblocks and fractals. Then you just combine the two concepts.

You can get by just using make cube commands, but memblocks will be the way to go if you want more than just a couple hundred blocks on screen. If you're brand new to DBP, I recommend starting with "make cube" commands so you can learn how it works.

[center]
Join the TGC Group!
http://tehcodez.groups.live.com
Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 10th Mar 2011 21:31
I dunno about fractals.... Start out with perlin noise height maps

bitJericho
23
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 11th Mar 2011 14:49
Yes, well, you generally can use perlin noise with fractal techniques.

See: http://www.noisemachine.com/talk1/21.html

http://jellyengine.blogspot.com/2008/04/perlin-noise-and-fractals.html

[center]
Join the TGC Group!
http://tehcodez.groups.live.com
zappi
15
Years of Service
User Offline
Joined: 16th Oct 2010
Location: with your mother
Posted: 11th Mar 2011 18:27
thank now i try those
Threeworlds manager
15
Years of Service
User Offline
Joined: 10th Mar 2011
Location: UK
Posted: 8th Apr 2011 03:07
Im currently looking for helo to make a minecraft engine aswel!

looking for free models
(zombies, dirt block entities...)

Login to post a reply

Server time is: 2026-07-17 13:59:52
Your offset time is: 2026-07-17 13:59:52