XNA Flash 或 Silverlight 集成
我想在使用 C# 通过 XNA 渲染的 3D 场景上播放常规 Flash 影片或 Silverlight 影片。 Flash/Silverlight 对象的背景应该是透明的,并且由 3D 引擎动态加载。
这个想法是,第三方开发人员和艺术家可以有效地将简单的 2D 动画添加为 3D 渲染场景之上的图层,以便实时播放。
这有可能吗?如果是这样,有什么指示吗?
Flash和Silverlight都是我们现在想到的,但也可以考虑其他技术。这个想法是动画层应该易于艺术家制作,并且易于动态添加,而不需要重新编译 3D 引擎。
它只需要在 Windows 上运行。
I would like to play either a regular Flash movie or a Silverlight movie on top of a 3D scene rendered with XNA using C#. The background of the Flash/Silverlight object should be transparent, and be loaded dynamically by the 3D engine.
The idea is that third party developers and artists efficiently can add simple 2D animations as a layer on top of the 3D rendered scene to be played back in realtime.
Is this possible at all? And if so, any pointers?
Both Flash and Silverlight are what we have in mind now, but other technologies can also be considered. The idea is that the animated layer should be easy to make by artists, and easy to add dynamically, without the need to recompile the 3D engine.
It only needs to work on Windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
谢谢,但我的意思是闪光/银光。闪光/银光!=视频。它可能有一些互动元素。
无论如何,我找到了一个解决方案:
http://www.khrona.com/products/awesomium/
这允许我在 XNA 渲染的图形之上渲染 HTML,并且它包括 Flash 支持。
Thanks, but I meant Flash/Silverlight. Flash/Silverlight!=video. It may have some interactive elements.
Anyway, I found a solution:
http://www.khrona.com/products/awesomium/
This allows me to render HTML on top of XNA rendered graphics, and it includes Flash support.
以下链接可帮助您启动并运行 2D 视频播放。
XNA 中的 2D 视频
我想让它在 3D 模型上显示的唯一想法是创建一个
RenderTarget
,然后在其上显示视频。 此处可以看到一个示例,他们使用网络摄像头在电视的 3D 模型上显示视频。Here is a link to get you up and running with playing the video in 2D.
2D Video in XNA
My only thoughts on getting this to display on a 3D model, would be to create a
RenderTarget
and then display the video onto that. An example can be seen here where they are using a WebCam to display the video on a 3D model of a TV.