使用BGPLOT3D时RGL椭圆3D透明度问题
我的目标是使用RGL在透明球上显示点。通过使用
open3d(windowRect=c(0,0,512,512))
plot3d(c(x,-x),c(y,-y),c(z,z),aspect=F)
shade3d(ellipse3d(diag(3), c(0,0,0),t=1),
color='lightgray',alpha=0.8,lit=FALSE, add=TRUE)
rglwidget()
但是,当在函数中调用函数bgplot3d()
时,将球形以某种方式推入前景并淹没了所有点和所有点周围的盒子:
以与以前相同的方式拥有球体也很棒,即使在情况bgplot3d()
中也被调用。我已经尝试了depth_mask,但是到目前为止什么都没有。
My goal is to display points on a transparent sphere using RGL. This works fine by using
open3d(windowRect=c(0,0,512,512))
plot3d(c(x,-x),c(y,-y),c(z,z),aspect=F)
shade3d(ellipse3d(diag(3), c(0,0,0),t=1),
color='lightgray',alpha=0.8,lit=FALSE, add=TRUE)
rglwidget()
However, when in the same plot the function bgplot3d()
is called, the sphere is somehow pushed into the foreground and drowns out all the points and the box around it:
It would be great to have the sphere in the same way as before, even in the case bgplot3d()
has been called. I already experimented with depth_mask, but nothing worked so far.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
调用
plot3d
shade3d
之后:Call
plot3d
aftershade3d
:安装最新的
RGL
更新(版本0.109.2)后,问题已经消失。The problem has vanished after installing the most recent
rgl
update (version 0.109.2).