Build 3D brick model with rayshader.

build_bricks_rayshader(brick_list, brick_type = "brick",
  brick_res = "sd", view_levels = NULL, solidcolor = "#a3a2a4",
  water = FALSE, waterdepth = 0, ...)

Arguments

brick_list

List output from collect_bricks(). Contains an element Img_lego.

brick_type

Type of brick to use. Default is 'brick'. Other option is 'plate', which is 1/3 the height of a brick.

brick_res

Resolution, expressed at number of pixels on one side of a 1x1 brick. Defaults to 'sd' (15px). Use 'hd' for 30px per brick, and 'uhd' for 60px. Enter a value for a custom resolution. High resolutions take longer to render.

view_levels

Numeric array of Levels/z values to display. Leave as NULL to include all.

solidcolor

Hex color of mosaic base. Only renders on bottom.

water

Default 'FALSE'. If 'TRUE', a water layer is rendered.

waterdepth

Default '0'. Water level.

...

All other inputs from rayshader::plot_3d() EXCEPT hillshade, soliddepth, zscale, and shadow.

Value

3D brick model rendered in the 'rayshader' package.

See also

Examples

if (FALSE) { #This is a brick brick <- data.frame( Level="A", X1 = rep(3,4), #The number 3 is the brickrID for 'bright red' X2 = rep(3,4) ) brick %>% bricks_from_table() %>% build_bricks() }