# NOT RUN {
#Generate and render the default Cornell box.
scene = generate_cornell()
# }
# NOT RUN {
render_scene(scene, samples=400,aperture=0, fov=40, ambient_light=FALSE, parallel=TRUE)
# }
# NOT RUN {
#Make a much smaller light in the center of the room.
scene = generate_cornell(lightwidth=200,lightdepth=200)
# }
# NOT RUN {
render_scene(scene, samples=400,aperture=0, fov=40, ambient_light=FALSE, parallel=TRUE)
# }
# NOT RUN {
#Place a sphere in the middle of the box.
scene = scene %>%
add_object(sphere(x=555/2,y=555/2,z=555/2,radius=555/4))
# }
# NOT RUN {
render_scene(scene, samples=400,aperture=0, fov=40, ambient_light=FALSE, parallel=TRUE)
# }
# NOT RUN {
#Reduce "fireflies" by setting a clamp_value in render_scene()
# }
# NOT RUN {
render_scene(scene, samples=400,aperture=0, fov=40, ambient_light=FALSE,
parallel=TRUE,clamp_value=3)
# }
# NOT RUN {
# Change the color scheme of the cornell box
# }
# NOT RUN {
new_cornell = generate_cornell(leftcolor="purple", rightcolor="yellow")
render_scene(new_cornell, samples=400,aperture=0, fov=40, ambient_light=FALSE,
parallel=TRUE,clamp_value=3)
# }
Run the code above in your browser using DataLab