Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Zarbuz/SchematicToVox
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarbuz committed Mar 20, 2019
2 parents e96cb73 + dbca2fa commit a19c9f3
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,30 @@ And you can create terrain from heightmap like in Magicavoxel Viewer directly !
- Go to the emplacement of the binary
- Lanch the command

## Windows
`./SchematicToVoxCore.exe --i [INPUT] --o [OUTPUT]`

## MacOS or Linux

`./SchematicToVoxCore --i [INPUT] --o [OUTPUT]`

If you have an error like 'Unable to load DLL 'libgdiplus', try this command : `brew install mono-libgdiplus`

[INPUT] refer to a .schematic file or .png file (mandatory)
[OUTPUT] refer to the destination path (mandatory)

## Options

```
-h, --help show this message and exit
-v, --verbose enable the verbose mode
-w, --way=VALUE the way of schematic (0 or 1), default value is 0
-iminy, --ignore-min-y=VALUE ignore blocks below the specified layer
-imaxy, --ignore-max-y=VALUE ignore blocks above the specified layer
-e, --excavate delete all blocks which doesn't have at lease one face connected with air
-s, --scale=VALUE increase the scale of each block
-hm --heightmap=VALUE create voxels terrain from heightmap with the specified height
-c, --color enable color when generating heightmap
--h, -help show this message and exit
--v, -verbose enable the verbose mode
--w, -way=VALUE the way of schematic (0 or 1), default value is 0
--iminy, -ignore-min-y=VALUE ignore blocks below the specified layer
--imaxy, -ignore-max-y=VALUE ignore blocks above the specified layer
--e, -excavate delete all blocks which doesn't have at lease one face connected with air
--s, -scale=VALUE increase the scale of each block
--hm -heightmap=VALUE create voxels terrain from heightmap with the specified height
--c, -color enable color when generating heightmap
```

# Installation
Expand All @@ -38,7 +45,7 @@ Then extract the content of zip file in the folder of your choice.

# Examples

`./SchematicToVox.exe --i heighmap.png --o heightmap --hm 100`
`./SchematicToVox.exe --i heightmap.png --o heightmap --hm 100`

## Input file
![](img/heightmap.png)
Expand Down

0 comments on commit a19c9f3

Please sign in to comment.