|
34 | 34 | #' generate_studio() %>%
|
35 | 35 | #' add_object(pig(y=-1.2,scale=0.5,angle=c(0,-70,0)))%>%
|
36 | 36 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
37 |
| -#' render_scene(samples=128,sample_method = "sobol_blue") |
| 37 | +#' render_scene(samples=16,sample_method = "sobol_blue") |
38 | 38 | #' }
|
39 | 39 | #' if(run_documentation()) {
|
40 | 40 | #' #Render a moving pig
|
|
45 | 45 | #' start_position = c(-0.1,0,0), end_position = c(0.1,0.2,0))
|
46 | 46 | #' ) %>%
|
47 | 47 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
48 |
| -#' render_scene(samples=128,sample_method = "sobol_blue",clamp_value = 10) |
| 48 | +#' render_scene(samples=16,sample_method = "sobol_blue",clamp_value = 10) |
49 | 49 | #' }
|
50 | 50 | #' if(run_documentation()) {
|
51 | 51 | #'
|
|
57 | 57 | #' start_scale = c(1,1,1), end_scale = c(0.5,0.5,0.5))
|
58 | 58 | #' ) %>%
|
59 | 59 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
60 |
| -#' render_scene(samples=128,sample_method = "sobol_blue",clamp_value = 10) |
| 60 | +#' render_scene(samples=16,sample_method = "sobol_blue",clamp_value = 10) |
61 | 61 | #' }
|
62 | 62 | #' if(run_documentation()) {
|
63 | 63 | #' #Render a spinning pig
|
|
68 | 68 | #' start_angle = c(0,-30,0), end_angle = c(0,30,0))
|
69 | 69 | #' ) %>%
|
70 | 70 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
71 |
| -#' render_scene(samples=128,sample_method = "sobol_blue",clamp_value = 10) |
| 71 | +#' render_scene(samples=16,sample_method = "sobol_blue",clamp_value = 10) |
72 | 72 | #' }
|
73 | 73 | #' if(run_documentation()) {
|
74 | 74 | #'
|
|
80 | 80 | #' start_angle = c(0,-30,0), end_angle = c(0,30,0))
|
81 | 81 | #' ) %>%
|
82 | 82 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
83 |
| -#' render_scene(samples=128,sample_method = "sobol_blue",clamp_value = 10, |
| 83 | +#' render_scene(samples=16,sample_method = "sobol_blue",clamp_value = 10, |
84 | 84 | #' shutteropen=0.4, shutterclose = 0.6)
|
85 | 85 | #' }
|
86 | 86 | #' if(run_documentation()) {
|
|
92 | 92 | #' start_angle = c(0,-30,0), end_angle = c(0,30,0))
|
93 | 93 | #' ) %>%
|
94 | 94 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
95 |
| -#' render_scene(samples=128,sample_method = "sobol_blue",clamp_value = 10, |
| 95 | +#' render_scene(samples=16,sample_method = "sobol_blue",clamp_value = 10, |
96 | 96 | #' shutteropen=0, shutterclose = 0.1)
|
97 | 97 | #' }
|
98 | 98 | #' if(run_documentation()) {
|
|
105 | 105 | #' start_angle = c(0,-30,0), end_angle = c(0,30,0))
|
106 | 106 | #' ) %>%
|
107 | 107 | #' add_object(sphere(y=5,x=5,z=5,radius=2,material=light())) %>%
|
108 |
| -#' render_scene(samples=128,sample_method = "sobol_blue",clamp_value = 10, |
| 108 | +#' render_scene(samples=16,sample_method = "sobol_blue",clamp_value = 10, |
109 | 109 | #' shutteropen=0, shutterclose = 0.1)
|
110 | 110 | #' }
|
111 | 111 | animate_objects = function(scene, start_time = 0, end_time = 1,
|
|
0 commit comments