tylermorganwall / rayrender

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

render_highquality error on matrix with na values #49

Open LTHD97 opened 1 year ago

LTHD97 commented 1 year ago

Hi Tyler, Thx for your work, project is very cool, using it for a few days trying to render data with 3D through rayshader

packageVersion("rayshader") [1] ‘0.36.1’ packageVersion("rayrender") [1] ‘0.30.3’ Was followings some tutorial wich were not working at some points. Seems that's its related to render_highquality generating error when matrix use in plot3D has NA values (render_snapshot is working fine). error : Erreur dans rayvertex::validate_mesh(mesh) : !any(is.na(normals)) n'est pas TRUE Hace a nice day, thx again

trevorld commented 1 year ago

Could you please provide a minimal, reproducible example of your issue? What was the tutorial?

LTHD97 commented 1 year ago

Hi, was following this one https://www.youtube.com/watch?v=zgFXVhmKNbU code is here https://github.com/Pecners/kontur_rayshader_tutorial/blob/main/main.R

not functionnal until i add "mat[is.na(mat)] <- 0" line 79

Have a nice day