Learn R Programming

rayrender (version 0.38.10)

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

3,547

Version

0.38.10

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Tyler Morgan-Wall

Last Published

February 28th, 2025

Functions in rayrender (0.38.10)

calculate_control_points_straight

Calculate Control Points (straight)
clamp

Clamp Values
calculate_final_twist

Calculate Final Angle
convert_color

Convert Color
calculate_distance_along_bezier_curve

Get Distance Along Bezier Curve
csg_box

CSG Box
csg_capsule

CSG Capsule
csg_combine

CSG Combine
csg_cone

CSG Cone
cross_prod

Cross product (vec)
csg_elongate

CSG Elongate
csg_group

CSG Group
csg_scale

CSG Scale
csg_rounded_cone

CSG Rounded Cone
csg_pyramid

CSG Pyramid
csg_plane

CSG Plane
csg_cylinder

CSG Cylinder
csg_triangle

CSG Triangle
csg_ellipsoid

CSG Ellipsoid
csg_translate

CSG Translate
csg_object

Constructive Solid Geometry Object
csg_onion

CSG Onion
csg_rotate

CSG Rotate
csg_round

CSG Round
cylinder

Cylinder Object
csg_sphere

CSG Sphere
csg_torus

CSG Torus
ellipsoid

Ellipsoid Object
dielectric

Dielectric (glass) Material
diffuse

Diffuse Material
eval_bezier_deriv

Evaluate Deriv Bezier
eval_bezier_2nd_deriv

Evaluate Deriv Bezier
cube

Cube Object
disk

Disk Object
expInOut

Cubic-in-out
generate_studio

Generate Studio
eval_bezier

Evaluate Bezier
generate_rotation_matrix

Generate Rotation Matrix (order)
get_time

Get time
glossy

Glossy Material
generate_cornell

Generate Cornell Box
generate_ground

Generate Ground
get_saved_keyframes

Get Saved Keyframes
get_material_name

get_material_name
extruded_path

Extruded Path Object
is_rendering_in_knitr

Determines if rendering in knitr
init_time

Print time
hair

Hair Material
group_objects

Group Objects
extruded_polygon

Extruded Polygon Object
cubicInOut

Cubic-in-out
path

Path Object
pig

Pig Object
obj_model

`obj` File Object
new_tibble_row

New Tibble Row
flipud

Flip Up-Down
mesh3d_model

`mesh3d` model
ply_model

`ply` File Object
metal

Metallic Material
generate_camera_motion

Generate Camera Movement
%>%

Pipe operator
light

Light Material
prepare_scene_list

Prepare the scene list
fliplr

Flip Left-Right
print_time

Print time
lambertian

Lambertian Material (deprecated)
post_process_scene

Post-process the scene
generate_translation_matrix

Generate Translation Matrix
post_process_frame

Post-process Frame
get_material_enum

get_material_enum
ray_transform

Internal vctrs methods
lerp

Lerp
raymesh_model

`raymesh` model
quadInOut

Quad-in-out
process_point_series_2d

Process Points to Control Points
microfacet

Microfacet Material
render_animation

Render Animation
process_point_series_1d

Process Points to Control Points
process_point_series

Process Points to Control Points
r_obj

R 3D Model
process_scene

Process a scene
render_ao

Render Ambient Occlusion
run_documentation

Run Documentation
save_png

Save PNG
segment

Segment Object
set_scene_material

Set Material for All Objects
sphere

Sphere Object
xy_rect

Rectangular XY Plane Object
slerp

Slerp
tween

Tween
render_preview

Render Preview
ray_shape_info

Internal vctrs methods
ray_scene

Constructor for ray_material
triangle

Triangle Object
text3d

Text Object
render_scene

Render Scene
ray_material

Internal vctrs methods
ray_animated_transform

Internal vctrs methods
xz_rect

Rectangular XZ Plane Object
yz_rect

Rectangular YZ Plane Object
RotateY

Generate Rotation Matrix Y
animate_objects

Animate Objects
bezier_curve

Bezier Curve Object
arrow

Arrow Object
add_object

Add Object
check_image_texture

Check Image Texture
RotateX

Generate Rotation Matrix X
add_points_polygon

Add Points to Polygon
RotateAxis

Generate Rotation Matrix Axis
calculate_control_points

Calculate Control Points
RotateZ

Generate Rotation Matrix Z
cone

Cone Object
calculate_final_path

Linearize and Calculate Final Points (with constant stepsize)
create_instances

Create Instances of an Object