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

Renders only black image #14

Closed vonjd closed 4 years ago

vonjd commented 4 years ago

No matter which code I use from the documentation, it only renders a black image?!?

Example:

library(rayrender)
#Generate the ground and add some objects
scene = generate_ground() %>%
  add_object(sphere(material = diffuse(color="#ff5555")))
render_scene(scene, parallel = TRUE, width = 800, height = 800, samples = 1000)

Any thoughts? Thank you!

trevorld commented 4 years ago

Are you using the release version on CRAN or the development version on Github installable by remotes::install_github("tylermorganwall/rayrender")?

I suspect you are affected by #10 which has been fixed in the development version but the fix hasn't yet been released to CRAN.

tylermorganwall commented 4 years ago

Yes, try updating to the latest version on github and see if that fixes your issue.

remotes::install_github("tylermorganwall/rayrender")
vonjd commented 4 years ago

Yes, it does fix it... thank you!

When will you update the CRAN version?

tylermorganwall commented 4 years ago

The latest version has just been released on CRAN.

vonjd commented 4 years ago

Works like a charm... thank you!