Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 875 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
MineCraft Distorterator [Not any more, Fixed it :D] #351135
12/22/10 05:39
12/22/10 05:39
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
If you want to be 'In the know' about what this topic used to be about, scroll down a bit. Otherwise, you can just read this grin

So I have optimised my 3dgs minecraft level editor (well, viewer for the moment grin)
a little bit (And I stress the 'little bit' a lot..)

I don't care! show me a picture!

Okay then smile



That's 256 chunks, runs at a measly 10fps
(Although that's still a lot better than 16 chunks at that speed)
Also, thanks to Damocles for the optimisation tips smile

Here's a close-up, in that same session:


It's cube-licious! grin

If anyone has more optimisation tips, I'm more than happy to listen. laugh

Also, if a mod could move this to the 'projects' forum that'd be nice smile
Originally Posted By: the_mehmaster
Yesterday I was thinking that it would be quite useful (and pretty
cool) to have a minecraft editor (like MCedit) but made in 3DGS.

I started coding this morning and all went well, I learnt a
couple of zlib functions (minecraft chunks are gzip-encoded)

Spent an hour importing and making '.mdl' versions of minecraft blocks

Then I successfully loaded a chunk, no errors. grin

So then I worked on the base-36 system, with file-directories and
such. I thought it would work fine.

I tested it on my savefile, and here's what I got grin:-


A big mess..

'I should be able to fix it pretty easily', I thought.

But then I zoomed out a bit more:-


An utter and complete mess.

It was at that point that I gave up on the project, closed the files, and renamed the main-script 'mineCraftDistorterator.c'.

Just thought you might be interested grin

EDIT: I'm using A8 free because I havn't bothered to upgrade yet cool

Also, in the highly unlikely event that anyone wants the source, ask here and I'll upload it. smile


Last edited by the_mehmaster; 12/23/10 01:44.
Re: MineCraft Distorterator ;) [Re: the_mehmaster] #351140
12/22/10 06:25
12/22/10 06:25
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline
Member
msmith2468  Offline
Member

Joined: Dec 2009
Posts: 256
USA , NY
thats cool i like it.
i would be intrested in looking at it if you dont mind.
just for fun. i might learn something new.

thanks for shareing laugh


Mikes Wicked Games

www.mikeswickedgames.com
Re: MineCraft Distorterator ;) [Re: msmith2468] #351141
12/22/10 07:57
12/22/10 07:57
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Actually, turns out I got it to work properly smile

But I'm having EXTREME fps (runs at ~10 fps with 16 chunks loaded) issues.. I'll have a go at optimising it tomorrow.

Whether I make any progress or not, I'll upload the source sometime soon. (within 48h)

Last edited by the_mehmaster; 12/22/10 08:02.
Re: MineCraft Distorterator ;) [Re: the_mehmaster] #351146
12/22/10 10:18
12/22/10 10:18
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Try writing a function, wich makes blocks invisible, that
have another (full, non transparent) block on each of its
6 sides.
This should tremendously reduce the number of blocks to draw.

When I hink about it:
Notch could have written a block-storage format, wich would
be only a few kilobytes, instead of several megabytes.

Simply by only saving blocks that have changed.
As the world is initially generated using a random seed,
the world-shape could be recreated from a single integer number.
And only parts that have changed (added/removed) would need to be saved.

Re: MineCraft Distorterator ;) [Re: Damocles_] #351150
12/22/10 11:00
12/22/10 11:00
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Quote:
Try writing a function, wich makes blocks invisible, that
have another (full, non transparent) block on each of its
6 sides.
This should tremendously reduce the number of blocks to draw.

Ah, good idea. That's along the lines of what I was thinking of... smile

Quote:
When I think about it:
Notch could have written a block-storage format, wich would
be only a few kilobytes, instead of several megabytes.

Simply by only saving blocks that have changed.
As the world is initially generated using a random seed,
the world-shape could be recreated from a single integer number.
And only parts that have changed (added/removed) would need to be saved.


That will be true for smaller filesize, but I think that speed of access (especially in large amounts, and in multiplayer servers)
would suffer considerably from such a format simply because the overhead is moved from the RAM or hard-disk to the CPU. Good concept, though.

Re: MineCraft Distorterator ;) [Re: the_mehmaster] #351153
12/22/10 11:25
12/22/10 11:25
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
On the other hand, calculating the position of blocks is definately
faster than transporting the blockpositions
over the net.

So the time to load the level might be smaller.

And these weired errors (mountains cut on a straigt line)
on servers would be gone.


He then just needs to keep the old generation-algorythm
in the code, in case he changes them, so servers/clients can
recreate the fromer look of the terrain after an update.

Re: MineCraft Distorterator ;) [Re: Damocles_] #351256
12/23/10 01:46
12/23/10 01:46
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
I took your optimisation onboard, it works tonnes better smile

Also, I updated the first post because it's not really
'minecraft distorterator' any more grin

Re: MineCraft Distorterator ;) [Re: the_mehmaster] #351260
12/23/10 02:20
12/23/10 02:20
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
I did a crazy stress-test grin

1024 chunks, 3 FPS :


Why the heck did I do this?!

You gotta admit, It does look pretty cool grin

Re: MineCraft Distorterator ;) [Re: the_mehmaster] #351261
12/23/10 02:28
12/23/10 02:28
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Nice work grin.
Are your models one whole block? Are sides also visible that are actually facing away from the camera, or between other blocks?


Click and join the 3dgs irc community!
Room: #3dgs
Re: MineCraft Distorterator ;) [Re: Joozey] #351262
12/23/10 02:47
12/23/10 02:47
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Quote:
Are your models one whole block? Are sides also visible that are actually facing away from the camera, or between other blocks?
Yeah they are.. That's probably the main performance problem at the moment.

I'll have a go at fixing it up smile.

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1