Learn R Programming

rayshader (version 0.37.3)

convert_rgl_to_raymesh: Convert rayshader RGL scene to ray_mesh object

Description

Converts the current RGL rayshader scene to a `ray_mesh` object (see `rayvertex` package for more information)

Usage

convert_rgl_to_raymesh(save_shadow = TRUE)

Value

A `ray_mesh` object

Arguments

save_shadow

Default `FALSE`. If `TRUE`, this saves a plane with the shadow texture below the model.

Examples

Run this code
filename_obj = tempfile(fileext = ".obj")
#Save model of volcano
if(run_documentation()) {
volcano %>%
 sphere_shade() %>%
 plot_3d(volcano, zscale = 2)

rm_obj = convert_rgl_to_raymesh()
}

Run the code above in your browser using DataLab