rayrender (version 0.4.0)

r_obj: R 3D Model

Description

3D obj model of the letter R, to be used with `obj_model()`

Usage

r_obj()

Arguments

Value

File location of the R.obj file (saved with a .txt extension)

Examples

Run this code
# NOT RUN {
#Load and render the included example R object file.
# }
# NOT RUN {
generate_ground(material = lambertian(noise = TRUE, noisecolor = "grey20")) %>%
  add_object(sphere(x = 2, y = 3, z = 2, radius = 1,
                    material = lambertian(lightintensity = 10, implicit_sample = TRUE))) %>%
  add_object(obj_model(r_obj(), y = -1, material = lambertian(color="red"))) %>%
  render_scene(parallel=TRUE, lookfrom = c(0, 1, 10), clamp_value = 5, samples = 200)
# }

Run the code above in your browser using DataCamp Workspace