将 flex 4 gui 组件与 papervision3d 混合
我想将 papervision 渲染(“全屏”或限制在某些区域)与覆盖该渲染的 Flex GUI 组件混合在一起。这如何实现?
现在我可以设计手头的 .mxml 模板并在单独的 .as 文件中进行一些 papervision 渲染(定义 [SWF ...]),但我对 as3/flex 仍然很陌生,所以不要假设任何事情,详细的解释将不胜感激。
预先感谢=)!
I'd like to mix papervision rendering (either "fullscreen" or constrained in some area) with flex gui components laying over that rendering.. how could this be achieved?
For now I can design .mxml templates at hand and do some papervision rendering in a separate .as file (definig [SWF ...]), but I'm still very new at as3/flex, so don't assume anything, a detailed explanation will be highly appreciated.
Thanks in advance =)!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 papervision3d 渲染的内容最终会出现在视图(基本、位图等)中,该视图扩展了 Sprite,因此它是一个 DisplayObject。
如果要在渲染上添加组件,只需将该组件添加为显示列表中视图的同级组件即可。
您可能会发现 Efflex 很有趣。
What you render with papervision3d ends up in a View(basic,bitmap, etc.), which extends Sprite, so it's a DisplayObject.
If you want to add a component over the rendering, just add that component as a sibling of the View in the display list.
You might find Efflex interesting.