the original post is below if anybody wants to read it for whatever reason:
Binvox to Schematic is a program that takes a .binvox file generated by binvox and generates a .schematic file ready to be imported by MCEdit.
The upshot of this is that you can import 3d models into minecraft.
first, run binvox on the model that you want to import. look here for info on how to use binvox
second, run Binvox To Schematic from the command line, using the command:
java -jar BinvoxToSchematic.jar [-b blocktype] inputfilename [outputfilename]
the parameters in brackets are optional. -b allows you to specify the kind of block that you what the .schematic to be composed of, with blocktype being a value from this table (Default is stone): http://www.minecraftwiki.net/wiki/Data_values#Block_IDs
use the file that you generated in binvox as the input file.
I have also included a batch file for those who are afraid of the command prompt. Simply drag and drop the binvox file onto Dragbinvoxfilehere.bat
third, place the .schematic you generated in My Documents\MCEdit-schematics\
All that's left to do is open MCEdit and import the schematic into your world.
sure. Although, I did a quick and dirty conversion in binvox just to generate a file to test my program, so it has lots of strange artifacts that you'd have to fix.
This works perfect! I just got a question.. Is there any way to determine the objects size? I used a tower... and really, I hade to remove like everything down to bedrock, in order to make it fit... And that isn't even enough :biggrin.gif:
Ok. So you got a -fit command. But how do I use all these commands? Do I just open up my CMD and type them in? It can't really be that simple. Could you please tell me, how to insert these commands correctly? Like... I gotta have binvox open or what? :biggrin.gif:
You type those parameters in the command window when you run binvox.
so, instead of using the command: binvox FILENAME
you'd use: binvox -fit FILENAME
And, to shrink your tower that's too high for the game, you might want to use binvox -down -down -fit FILENAME
Hmm. I can't seem to make this work through the CMD. Can you explain to me from the exact beginning, like: Start CMD, type in, type in, run. and such. Or edit the bat so that it makes the size exactly the same as the model?
The whole thing doesn't work for me :S
Says something like:
Command cannot be recognized.....
And then it says to continue by pressing any key and then command window shuts down.
could you copy and paste the error message and post it here?
Quote from Koskenkorva »
Hmm. I can't seem to make this work through the CMD. Can you explain to me from the exact beginning, like: Start CMD, type in, type in, run. and such. Or edit the bat so that it makes the size exactly the same as the model?
Can't modify the bat to do that. Here's some instructions, though:
go to Start->run
and type in cmd
The command prompt should launch. you now need to navigate to the folder where binvox is.
you can type in dir
to look at the current folder, and cd FOLDERNAME
to move to other folders. Type cd ..
if you want to go back.
once you get to the folder containing binvox, all you need to do is type binvox -down -down MODELNAME
(it helps if the model is in the same folder as binvox).
For a list of other options you can use, just type binvox
and it will print a list of commands to the screen.
And that's it. You should now have a .binvox file with dimensions 64x64x64 instead of 256x256x256(the default). all that's left is to convert and import.
for info on how to do this, check out this post.
the original post is below if anybody wants to read it for whatever reason:
Millenium falcon, here we come!
WOW, nuff said.
Laterz.
CDR's PTC HD Infinity [128x Texture Pack]
How to find the minecraft.jar file
Modifying the minecraft.jar file
One Stop Mod Shop
now has a batch file for ease of use, and slightly better error handling.
Download
Thanks, laterz.
CDR's PTC HD Infinity [128x Texture Pack]
How to find the minecraft.jar file
Modifying the minecraft.jar file
One Stop Mod Shop
Here's the schematic:
http://www.megaupload.com/?d=8RL5HVX5
And here's where I got the source model:
http://www.scifi-meshes.com/forums/down ... ile&id=167
BinvoxToSchematic is supposed to crop the models automatically, are you saying that it isn't?
And it appears pmin has solved the problem on his end while I was asleep. Great job.
Thanks a bunch! I was the one that sent that mail to you yesterday.
Love the quick reply.
Kris
so, instead of using the command:
binvox FILENAME
you'd use:
binvox -fit FILENAME
And, to shrink your tower that's too high for the game, you might want to use
binvox -down -down -fit FILENAME
well, it worked for me. nice job.
could you copy and paste the error message and post it here?
Can't modify the bat to do that. Here's some instructions, though:
go to Start->run
and type in
cmd
The command prompt should launch. you now need to navigate to the folder where binvox is.
you can type in
dir
to look at the current folder, and
cd FOLDERNAME
to move to other folders. Type
cd ..
if you want to go back.
once you get to the folder containing binvox, all you need to do is type
binvox -down -down MODELNAME
(it helps if the model is in the same folder as binvox).
For a list of other options you can use, just type
binvox
and it will print a list of commands to the screen.
And that's it. You should now have a .binvox file with dimensions 64x64x64 instead of 256x256x256(the default). all that's left is to convert and import.
it might be fun to try to hollow out the buildings and put in windows and stuff