dmurdoch / rgl2gltf

Read and write .gltf and .glb files in R.
https://dmurdoch.github.io/rgl2gltf
7 stars 0 forks source link

Sizing is incorrect for gltfWidget in pkgdown #31

Closed dmurdoch closed 2 years ago

dmurdoch commented 2 years ago

Nothing shows up, and the browser console shows these messages:

This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. [readGLB.html](file:///Users/murdoch/svn/MyR/rgl2gltf/docs/dev/reference/readGLB.html)
WebGL warning: getContext/restoreContext: Requested size 46080x46080 was too large, but resize to 5760x5760 succeeded.
WebGL warning: drawElementsInstanced: Drawing to a destination rect smaller than the viewport rect. (This warning will only be given once)
dmurdoch commented 2 years ago

This looks like an rgl issue, not specific to rgl2gltf.

dmurdoch commented 2 years ago

Actually it was a pkgdown issue, affecting all htmlwidgets. It is fixed by this PR: https://github.com/r-lib/pkgdown/pull/2063 .

dmurdoch commented 2 years ago

The PR has been merged into the main branch of pkgdown, but is not yet on CRAN.

dmurdoch commented 2 years ago

This has been fixed on CRAN.