Posted 21 November 2012 - 12:01 AM
Hi all,
I've been making something recently I thought you might be interested in.
I've written code that takes any 3d model (in .obj format), voxelizes it - but also finds the textures and maps the color of each voxel to the closest matching minecraft texture. It then converts it all to code which turtles understand.
I then have a 'parent' turtle which spawns 50+ turtles and gives each of them instructions for how to build their part of the ship.
The turtles work out exactly what materials they need and collect them from an array of chests, then start building!
They've been building a ship for me..
Starts off looking a bit random…
Taking shape..
Looking shippy….
80% done…
As you can see, it's not perfect. there's a few issues to work out where every now and then it'll miss a block, and there's a few bits of nether brick in there that don't really belong there. However, it's pretty good. It's very easy to manually tweak those after anyway.
This is only a really simple model with two main block types - I'll try a more complicated colourful model tonight to see how it gets on.
I may eventually release the code for this - although some of the processing is done out of the game and it all needs a lot of tidying before I dare show anyone! :(/>/>
I've been making something recently I thought you might be interested in.
I've written code that takes any 3d model (in .obj format), voxelizes it - but also finds the textures and maps the color of each voxel to the closest matching minecraft texture. It then converts it all to code which turtles understand.
I then have a 'parent' turtle which spawns 50+ turtles and gives each of them instructions for how to build their part of the ship.
The turtles work out exactly what materials they need and collect them from an array of chests, then start building!
They've been building a ship for me..
Starts off looking a bit random…
Taking shape..
Looking shippy….
80% done…
As you can see, it's not perfect. there's a few issues to work out where every now and then it'll miss a block, and there's a few bits of nether brick in there that don't really belong there. However, it's pretty good. It's very easy to manually tweak those after anyway.
This is only a really simple model with two main block types - I'll try a more complicated colourful model tonight to see how it gets on.
I may eventually release the code for this - although some of the processing is done out of the game and it all needs a lot of tidying before I dare show anyone! :(/>/>