render_snapshot persistent error in rayvertex::text3d_mesh #339
Closed
LaraJuliusson
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Tyler. I am using the following render_snapshot function after creating a rgl plot with plot_3d
render_snapshot("setRS_size.png", software_render = TRUE, width = 7551, height = 2400) and I get this error:
Error in rayvertex::text3d_mesh(label = temp_label[j, 1], position = c(temp_center[j, :
unused argument (color = temp_color[j, 1:3])
My code is below:
base_map <- frange_small %>%
rayshader::height_shade() %>%
rayshader::add_overlay(
rayshader::sphere_shade(frange_small, texture = create_texture("#e3d2db","white","#dfa283","#195f67","#c2d1cf",cornercolors = NULL), sunangle = 90, colorintensity = 5)) %>%
rayshader::add_shadow(ray_shade(frange_small,sunangle = 90,sunaltitude=75,multicore =TRUE),0) %>%
rayshader::add_overlay(
rayshader::generate_altitude_overlay(
rayshader::height_shade(frange_small, texture = "#82a574"),
frange_small,
start_transition = min-700,
end_transition = max-2000))
rayshader::plot_map(base_map)
base_map %>%
add_overlay(generate_line_overlay(frange_p,extent = extentf,
linewidth = .1, color="black",
heightmap = frange_small+1)) %>%
add_overlay(generate_line_overlay(frange_s,extent = extentf,
linewidth = 0.1, color="black",
heightmap = frange_small)) %>%
add_overlay(generate_line_overlay(frange_t,extent = extentf,
linewidth = 0.05, color="black",
heightmap = frange_small)) %>%
add_overlay(generate_point_overlay(frangelpeaks14,extent = extentf,
pch=17,size=3,color="white", heightmap = frange_small)) %>%
plot_3d(frange_small,zscale=28, background = "#6188BF", windowsize = c(2525, 800))
render_camera(theta=101.95,phi=15.0,zoom=0.220,fov=60)
Estes
render_label(frange_small,lat=40.377010,long=-105.45, clear_previous = FALSE, adjustvec=c(0.5,-0.5), extent = extentf, zscale=28, altitude=450,text = "Estes",textcolor="white",linecolor = "white",textsize=1.6, alpha=0,y=50)
Ogallala
render_label(frange_small,lat=c13$Y[7],long=c13$X[7], clear_previous = FALSE, adjustvec=c(0.5,-0.5), extent = extentf, zscale=28, altitude=a,text = f13$name[7], textcolor="black",linecolor = "#0000CC",textsize=1.5)**
render_snapshot("setRS_size.png", software_render = TRUE, width = 7551, height = 2400)
Error in rayvertex::text3d_mesh(label = temp_label[j, 1], position = c(temp_center[j, :
unused argument (color = temp_color[j, 1:3])
Following the clues in the error I decided to remove the two labels Estes and Ogallala and try again. After doing that the render_snapshot function works as expected.
Beta Was this translation helpful? Give feedback.
All reactions