Cloud render on own DEM #265
cmlosariaGIS
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,
Thanks for making rayshader. I am playing around with it and plan to use it on my future projects.
I tried your sample script and DEM and it works fine. However, when i use my own DEM, it gives me an error when trying to render clouds
Script
elmat %>%
sphere_shade(texture = "imhof3") %>%
add_water(detect_water(elmat), color = "lightblue") %>%
add_shadow(cloud_shade(elmat, zscale = 10, start_altitude = 2000, end_altitude = 3000,), 0) %>%
plot_3d(elmat, zscale = 10, fov = 0, theta = 135, zoom = 0.75, phi = 45, windowsize = c(1200, 800),
background="Gray")
render_camera(theta = 20, phi=40,zoom= 0.64, fov= 56 )
render_label(elmat, x = 300, y = 270, z = 16000, zscale = 100,
text = "Fansipan", dashed = "False", offset = 4000, textsize = 1.5, linewidth = 0.75, textcolor = "white", linecolor = "white")
render_compass(position = "E")
render_scalebar(limits=c(0, 5, 10),label_unit = "km",position = "W", y=50,
scale_length = c(0.33,1))
Sys.sleep(0.2)
render_clouds(elmat, zscale = 10, start_altitude = 2000, end_altitude = 3000,
sun_altitude = 45, attenuation_coef = 2, offset_y = 300,
cloud_cover = 0.55, frequency = 0.01, scale_y=3, fractal_levels = 32, clear_clouds = T)
render_snapshot(clear=TRUE)
Error
Error in render_floating_overlay(generate_cloud_layer(heightmap, coef = attenuation_coef, :
If
remove_na = TRUE,heightmapandoverlaymust have same number of rows and columns to make overlay transparent at those pointsHow can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions