Learn R Programming

rayrender (version 0.42.0)

Build and Raytrace 3D Scenes

Description

Render scenes using pathtracing. Build 3D scenes out of spheres, cubes, planes, disks, triangles, cones, curves, line segments, cylinders, ellipsoids, and 3D models in the 'Wavefront' OBJ file format or the PLY Polygon File Format. Supports several material types, textures, multicore rendering, and tone-mapping. Based on the "Ray Tracing in One Weekend" book series. Peter Shirley (2018) .

Copy Link

Version

Install

install.packages('rayrender')

Monthly Downloads

1,912

Version

0.42.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tyler Morgan-Wall

Last Published

September 16th, 2026

Functions in rayrender (0.42.0)

calculate_path_interval

Calculate Path Interval
calculate_final_twist

Calculate Final Angle
clamp

Clamp Values
create_instances

Create Instances of an Object
clamp_negative_environment_rgb

Clamp negative environment RGB values
cross_prod

Cross product (vec)
csg_cone

CSG Cone
csg_combine

CSG Combine
cone

Cone Object
convert_color

Convert Color
calculate_final_path

Linearize and Calculate Final Points (with constant stepsize)
calculate_distance_along_bezier_curve

Get Distance Along Bezier Curve
csg_onion

CSG Onion
csg_object

Constructive Solid Geometry Object
close_damped_camera_motion

Close Damped Camera Motion
csg_group

CSG Group
csg_translate

CSG Translate
csg_capsule

CSG Capsule
csg_box

CSG Box
csg_elongate

CSG Elongate
csg_triangle

CSG Triangle
csg_plane

CSG Plane
cloud

Procedural Cloud Object
csg_pyramid

CSG Pyramid
cubicInOut

Cubic-in-out
cube

Cube Object
disk

Disk Object
ellipsoid

Ellipsoid Object
csg_cylinder

CSG Cylinder
csg_ellipsoid

CSG Ellipsoid
csg_rotate

CSG Rotate
csg_round

CSG Round
csg_rounded_cone

CSG Rounded Cone
csg_scale

CSG Scale
dielectric

Dielectric (glass) Material
diffuse

Diffuse Material
flipud

Flip Up-Down
csg_torus

CSG Torus
csg_sphere

CSG Sphere
extruded_path

Extruded Path Object
eval_bezier

Evaluate Bezier
environment_light_white_xyz

Resolve environment light white point
expInOut

Cubic-in-out
generate_camera_motion

Generate Camera Movement
get_material_name

get_material_name
generate_studio

Generate Studio
generate_rotation_matrix

Generate Rotation Matrix (order)
damp_camera_motion_closed

Damp Closed Camera Motion
eval_bezier_deriv

Evaluate Deriv Bezier
damp_camera_motion_open

Damp Open Camera Motion
eval_bezier_2nd_deriv

Evaluate Deriv Bezier
cylinder

Cylinder Object
generate_cornell

Generate Cornell Box
get_camera

Get Camera
damp_camera_motion

Damp Camera Motion
generate_ground

Generate Ground
extruded_polygon

Extruded Polygon Object
get_infinite_light

Get an Infinite Light
get_time

Get time
fliplr

Flip Left-Right
generate_translation_matrix

Generate Translation Matrix
glossy

Glossy Material
lambertian

Lambertian Material (deprecated)
homogeneous_medium

Homogeneous Participating Medium
lerp

Lerp
get_saved_keyframes

Get Saved Keyframes
hair

Hair Material
microfacet

Microfacet Material
group_objects

Group Objects
grid_medium

Dense Grid Participating Medium
metal

Metallic Material
nanovdb_medium

NanoVDB Participating Medium
new_tibble_row

New Tibble Row
get_material_enum

get_material_enum
is_rendering_in_knitr

Determines if rendering in knitr
next_preview_snapshot_filename

Find the next available preview snapshot filename
init_time

Print time
obj_model

`obj` File Object
ply_model

`ply` File Object
post_process_scene

Post-process the scene
post_process_frame

Post-process Frame
preview_camera

Preview Camera
prepare_scene_list

Prepare the scene list
ray_scene

Constructor for ray_material
ray_material

Internal vctrs methods
process_point_series_2d

Process Points to Control Points
prepare_environment_light_white_balance

Prepare environment light white balance
process_point_series_1d

Process Points to Control Points
mesh3d_model

`mesh3d` model
list_infinite_lights

List Infinite Lights
list_cameras

List Cameras
has_denoiser

Check for Denoiser Support
light

Light Material
infinite_light

Image-Based Infinite Light
path

Path Object
pig

Pig Object
r_obj

R 3D Model
print_time

Print time
ray_animated_transform

Internal vctrs methods
process_scene

Process a scene
process_point_series

Process Points to Control Points
ray_shape_info

Internal vctrs methods
ray_transform

Internal vctrs methods
remove_infinite_light

Remove an Infinite Light
render_scene

Render Scene
save_preview_snapshot

Save an interactive preview snapshot
remove_sequential_duplicate_keyframes

Remove Sequential Duplicate Keyframes
quadInOut

Quad-in-out
render_ao

Render Ambient Occlusion
remove_camera

Remove Camera
raymesh_model

`raymesh` model
remove_stalled_path_samples

Remove Stalled Path Samples
render_animation

Render Animation
scene_medium_features

Inspect Medium Attachments Before Scene Construction
screen_line

Screen-space Lines
sky_light_image

Image-Based Location and Time Sky Light
slerp

Slerp
screen_text

Screen-space Text
render_preview

Render Preview
segment

Segment Object
text3d

Text Object
sun_light

Sun and Moon Infinite Lights
set_active_camera

Set Active Camera
set_medium

Attach a Medium to Closed Objects
tween_spline_path

Interpolate Speed Along a Piecewise Linear Path
xy_rect

Rectangular XY Plane Object
yz_rect

Rectangular YZ Plane Object
triangle

Triangle Object
xz_rect

Rectangular XZ Plane Object
tween

Tween
tween_spline

Interpolate Values with Smooth Speed
tween_camera_orientation

Interpolate Camera Orientation with a Quaternion Spline
sphere

Sphere Object
set_scene_material

Set Material for All Objects
sky_light

Atmospheric Location and Time Sky Light
straight_volume_rgb

Convert Accumulated Volume Foreground to Straight RGB
RotateZ

Generate Rotation Matrix Z
add_object

Add Object
animate_objects

Animate Objects
add_infinite_light

Add an Infinite Light
add_camera

Add Camera
bezier_curve

Bezier Curve Object
arrow

Arrow Object
camera

Camera
RotateY

Generate Rotation Matrix Y
animation_default_plot_scene

Default Animation Plot Behavior
RotateX

Generate Rotation Matrix X
add_points_polygon

Add Points to Polygon
RotateAxis

Generate Rotation Matrix Axis
calculate_control_points_straight

Calculate Control Points (straight)
check_image_texture

Check Image Texture
calculate_control_points

Calculate Control Points