添加不同尺寸的精灵
我需要在我的Forge Viewer项目中添加不同尺寸的精灵。
据我所知,我无法多次调用datavizextn.addviewables(viewabledata)
多次。考虑到viewabledata
级别设置了精灵大小,解决方案是什么?
I need to add sprites of different sizes to my forge viewer project.
As far as I know, I cannot call dataVizExtn.addViewables(viewableData)
multiple times. Considering that sprite size is set on viewableData
level, what is the solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Dataviz扩展目前仅支持所有精灵的单个尺寸设置,主要是为了使大量精灵的渲染尽可能高效。
如果您想对单个精灵进行更多控制,则可以使用“较低级别”的原语,并使用自己的
three.pointCloud
和three.shadermaterial
对象显示精灵。The DataViz extensions currently only support a single size setting for all sprites, mainly to keep the rendering of large number of sprites as efficient as possible.
If you want more control over the individual sprites, you could use "lower level" primitives instead, and display the sprites with your own
THREE.PointCloud
andTHREE.ShaderMaterial
objects.