tylermorganwall / rayrender

A pathtracer for R. Build and render complex scenes and 3D data visualizations directly from R
http://www.rayrender.net
622 stars 42 forks source link

fix: Bump minimum {rayimage} version #39

Closed trevorld closed 1 year ago

trevorld commented 1 year ago
library(rayrender)

scene = generate_ground(material=diffuse(checkercolor="grey20")) %>%
  add_object(sphere(y=0.2,material=glossy(color="#2b6eff",reflectance=0.05))) 
render_scene(scene, parallel = TRUE, width = 800, height = 800, samples = 12)
--------------------------Interactive Mode Controls---------------------------
W/A/S/D: Horizontal Movement: | Q/Z: Vertical Movement | Up/Down: Adjust FOV | ESC: Close
Left/Right: Adjust Aperture  | 1/2: Adjust Focal Distance | 3/4: Rotate Environment Light 
P: Print Camera Info | R: Reset Camera |  TAB: Toggle Orbit Mode |  E/C: Adjust Step Size
K: Save Keyframe | L: Reset Camera to Last Keyframe (if set) | F: Toggle Fast Travel Mode
Left Mouse Click: Change Look At (new focal distance) | Right Mouse Click: Change Look At 
Error in h(simpleError(msg, call)) :                                  
  error in evaluating the argument 'x' in selecting a method for function 'plotRGB': unused argument (new_page = TRUE)

Enter a frame number, or 0 to exit   

 1: render_scene(scene, parallel = TRUE, width = 800, height = 800, samples = 1
 2: post_process_scene(rgb_mat, iso, tonemap, debug_channel, filename, return_r
 3: rayimage::plot_image(array_from_mat, new_page = new_page)
 4: suppressWarnings(raster::plotRGB(raster::brick(input, xmn = 0.5, xmx = dim(
 5: withCallingHandlers(expr, warning = function(w) if (inherits(w, classes)) t
 6: raster::plotRGB(raster::brick(input, xmn = 0.5, xmx = dim(input)[2] + 0.5, 
 7: raster::brick(input, xmn = 0.5, xmx = dim(input)[2] + 0.5, ymn = 0.5, ymx =
 8: raster::brick(input, xmn = 0.5, xmx = dim(input)[2] + 0.5, ymn = 0.5, ymx =
 9: .handleSimpleError(function (cond) 
.Internal(C_tryCatchHelper(addr, 1, cond
10: h(simpleError(msg, call))
tylermorganwall commented 1 year ago

Thanks for pointing this out! There's been a bunch of updates recently so the churn is causing some versioning issues. I already had bug fix update lined up (0.28.4) so I included the updates to the Description field in that commit.