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

How to change dpi in render_highquality()? #50

Closed dominicroye closed 11 months ago

dominicroye commented 11 months ago

I am trying to obtain an image with more than 75 dpi. As far as I understand, width and height in render_highquality() define the rgl window in pixels, but what about dpi? I have created 8000 x 8000 px but always only with 75 dpi, which is low resolution for printing. I found from another package https://coolbutuseless.github.io/package/devoutrgl/reference/rgldev.html where it is possible for rgl to indicate both width and height in inches and the dpi value.

Thank you