有什么方法可以不处理 Away3D Lite 中的某些对象吗?
我想知道是否有办法避免处理away3DLite场景中的某些对象。问题是我有一个包含很多球体的场景,其中一些不可见(超出相机范围),我不想处理它们。
也许 Away3D 会自动执行此操作。
也许visible = false可以帮助
任何关于Away3d优化BTW的好的教程???
多谢!!!
I would like to know if there is a way to avoid processing some objects in a away3DLite scene. The problem is that I Have a scene with a lot of spheres, some of them are not visible ( out of camera range ) and I would like not to processing them.
Maybe Away3D automatically does that.
Maybe visible = false can help
Any good tutorials on Away3d optimizing BTW???
Thanks a lot!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Awa3D 会自动执行此操作。他们称之为剔除。它不会渲染相机后面和相机范围之外的对象。 (但是,它必须计算它们是否在每帧的摄像机范围内)
有一些对象可以用于成本较低的远处球体,例如广告牌和 Sprite2D。如果您的对象不需要显示多个侧面,那么这些是理想的选择。
Awa3D does that automagically. They call it culling. It does not render objects behind the camera, and out of camera range. (It does however have to calculate if they are in the camera range each frame)
There are some objects you can use for faraway spheres that are less costly, like billboards and Sprite2D. If your object does not need to show more than one side, theses are an ideal choice.