Closed can-taslicukur closed 1 year ago
Thanks, I'll look into it. (I don't think Shiny is involved at all; just calling rglwidget()
after your first example is sufficient to illustrate the problem.)
The problem is that in the rglwidget() display, the texture coordinates don't go all the way from 0 to 1, they run over a slightly smaller range, horizontally from 0 to 0.94 and vertically from 0.06 to 0.94. What you see that looks like overlap is really the texture in reverse, going from 0.94 to 0.06. This should be fairly easy to fix, but I don't think I'll have time to get to it today.
Good to hear that it's an easy fix, I cant open a PR because I don't know how GL works :) Thank you so much!
Thanks for the report, should be all fixed now (though Github isn't running R properly, so the website may take a while to be updated).
Hi, thank you for this amazing package! I am trying to visualize a sphere with a texture in a shiny app. However, I've realized that texture isn't mapped correctly in the shiny output compared to RGL Device.
Here is an example:
RGL Device
You can see that texture was mapped nicely, there is no overlap between the left and the right of the image.
Shiny
In this case, the left and right edges of the image overlap and create a deformed texture.
Same issue also happening using the
bg3d
function when thesphere = TRUE
and you can see it in the example here: https://dmurdoch.github.io/rgl/reference/bg.html