How i can render SWF file to surface ? or to 2D texture ???

8 views
Skip to first unread message

Alexey....@gmail.com

unread,
May 17, 2007, 3:05:01 PM5/17/07
to Fluix
Interesting idea, using flash animation in XNA project.
But i dont understend how i can render swf movieclip to 2DTexture.

Thanks.

Chris 'coldacid' Charabaruk

unread,
May 18, 2007, 2:39:02 PM5/18/07
to Fluix
At this point, I believe that ability is yet to be added. However, I'm
sure that Scott plans on adding it in the near future.

Chris Charabaruk

Scott Graham

unread,
May 18, 2007, 4:33:27 PM5/18/07
to fl...@googlegroups.com
Yup, it's not possible right now because Fluix renders directly. Absolutely seems like a good feature though, I'll put it on the todo's.

Also, profuse apologies for not getting a version of Fluix out that works with the Refresh. It's a long weekend here and supposed to be raining, so I'm hopeful that I'll make a new release (with source) this weekend.

scott

Alexey....@gmail.com

unread,
May 23, 2007, 11:35:16 PM5/23/07
to Fluix
If .SWF flash file renders directly to DC - it's not interesting.
It's a big work, but not usability. And if flash file render to 2D
texture and can be used in pipeline (adding vertex shader, pixel
shader) it-s very interesting idea. Like this: use Flash to generate
alpha channel, reflection maps or bump effect maps. in my vision
method for render flash file to 2Dtexture can have a flag for
grayscale rendering, for faster work when flash file using for
different pixelshaders.


On 19 май, 00:33, "Scott Graham" <sgra...@gmail.com> wrote:
> Yup, it's not possible right now because Fluix renders directly. Absolutely
> seems like a good feature though, I'll put it on the todo's.
>
> Also, profuse apologies for not getting a version of Fluix out that works
> with the Refresh. It's a long weekend here and supposed to be raining, so
> I'm hopeful that I'll make a new release (with source) this weekend.
>
> scott
>

> On 5/18/07, Chris 'coldacid' Charabaruk <colda...@gmail.com> wrote:
>
>
>
>
>
> > At this point, I believe that ability is yet to be added. However, I'm
> > sure that Scott plans on adding it in the near future.
>
> > Chris Charabaruk
>
> > On May 17, 3:05 pm, Alexey.Smesh...@gmail.com wrote:
> > > Interesting idea, using flash animation in XNA project.
> > > But i dont understend how i can render swf movieclip to 2DTexture.
>

> > > Thanks.- Скрыть цитируемый текст -
>
> - Показать цитируемый текст -

Scott Graham

unread,
May 24, 2007, 4:41:49 PM5/24/07
to fl...@googlegroups.com
I was intending to support rendering to a RenderTarget2D (as in, for example: http://blogs.msdn.com/shawnhar/archive/2007/05/23/transitions-part-four-rendertargets.aspx ). Would that work for what you're thinking?

scott

DeanoC

unread,
Jun 9, 2007, 5:47:24 PM6/9/07
to Fluix
AFAICT it renders to the currently set render target? so as long as
the caller to Movie.Draw() has set up the render target to point to
there RenderTarget2D before Draw(), it will will probably work.

Its actually how I think it should do, it doesn't try and change the
render target it just renders to whatever set. For advancing
compositing, its simple a matter of
SetRenderTarget( offscreen )
Movie.Draw()
SetRenderTarget( backbuffer)
DoFlashyStuffWith( offscreen )

Deano

On May 24, 9:41 pm, "Scott Graham" <sgra...@gmail.com> wrote:
> I was intending to support rendering to a RenderTarget2D (as in, for

> example:http://blogs.msdn.com/shawnhar/archive/2007/05/23/transitions-part-fo...).


> Would that work for what you're thinking?
>
> scott
>

Reply all
Reply to author
Forward
0 new messages