This repo contains the rampifier
library, and some useful tools using it.
- Plate Rampifier
- Also useful with obj2brs!
- Rampified Terrain Generator
- Rampifier Crate
This is a sample tool created that takes plates and rampifies it. May be super useful for creating (organic) brick props like trees, rocks, terrain, etc.
Download Plate Rampifier from here
Simply make sure your build is plate aligned. Plates can be resized, and you can use microbricks as long as they are plate sized and plate shaped (so may as well use plates!) Ensure it is aligned to Plate's grid for best results. Your bricks must use a color from your save's color palette. Rampifier will not rampify bricks with custom colors outside of your color palette.
Rampifier takes two arguments, the input of the save file and the output .brs
path.
For example, use
plate-rampifier my_input.brs the_output.brs
or any path to rampify a save. If either are not specified, in.brs
and out.brs
are used in the same directory as the binary file.
Here is some example code for using the rampifier
crate:
// Populate this with values. The u8 value usually identifies
// the color index used, and the ramp algo. will use this.
let mut grid: Vec<Option<u8>> = ...;
let mut rampifier = Rampifier::new(
(DEFAULT_LEN_X, DEFAULT_LEN_Y, DEFAULT_LEN_Z),
grid,
RampifierConfig::default()
);
// Generate floor ramps
let ramps_floor = &mut rampifier.generate_ramps(true);
// Generate ceiling ramps
let ramps_ceiling = &mut rampifier.generate_ramps(false);
save.bricks.append(ramps_floor);
save.bricks.append(ramps_ceiling);
// Sets the voxels occupied by ramps to empty.
rampifier.remove_occupied_voxels();
// Move grid back out of the rampifier to do further processing.
let mut grid = rampifier.move_grid();