sinsro
sinsro

Reputation: 915

XNA Flash or Silverlight integration

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.

Upvotes: 3

Views: 1029

Answers (2)

Neil Knight
Neil Knight

Reputation: 48547

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.

Upvotes: 1

sinsro
sinsro

Reputation: 915

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.

Upvotes: 1

Related Questions