Page 1 of 1

using irrlicht within flash possible?

Posted: Fri Jan 26, 2007 8:44 pm
by Abraxas
Hello,

I have been thinking and: dreaming, ok, ok ...

But what I am looking for SHOULD BE POSSIBLE.
I would like to run the irrlicht-engine within a flash-film (*.swf)
and use a MovieClip as a window for displaying irrlicht-3d-content.

This is because flash itself doesn't support 3d. There are some projects on creating 3d-engines for flash like "papervision3d or the opensource "sandy".
But they will never reach the level of a real irrlicht engine!
I would like to let online-visitors walk through a landscape, seeing their character/avatar, without having to install any other plugin like "VRML-players" etc.) But I would accept to let them install an irrlicht-browser-plugin, why not?


Has anybody eperiences in using irrlicht within flash?


greez

Oli

Posted: Fri Jan 26, 2007 9:59 pm
by r-type
I achieved the other way around ( Flash in Irr) but heh what you want, dream on :lol:

With some major hackery it SHOULD indeed be possible but I guess you better just forget it :)

Posted: Fri Jan 26, 2007 10:55 pm
by Abraxas
Hi,

you may be right, I better should forget it. But I never give up my ideas this fast.

I think one way could be to write/script a costume so called component in flash. I do not know how yet, but what I know is such a component can behave as the programmer wants. I will try to find more information about writing my own flash-components, and then will look how to integrate the irrlicht engine.

I will report it if I could have made a simple "hello world" 3d stuff.


Stay wild

Oli

Posted: Fri Jan 26, 2007 11:41 pm
by r-type
I work as a Flash programmer, flash components are nothing but precompiled swfs and some small overhead. Would be kind of a dream for malware builders if components could execute arbitrary code ;)


A way i can think of a solution. Is implementing a flash applet in a page and the irrlicht plugin whereby the irrlicht plugin works as an overlay. Then the flash plug could possibly communicate with the irr plug via javascript to communicate clipping rectangles. Veryhacky but hey.

Posted: Sat Jan 27, 2007 6:17 am
by lostclimategames
if your gonna do that i'd just write a plugin to allow irrlicht to run in a dx window in explorer or firefox, look at what the unity3d engine does, (i believe its opengl tho) there demos have some incredible graphics. it'd be difficult but if you do some studying i'd bet there is probably a way to accomplish this.

Posted: Sat Jan 27, 2007 6:27 am
by lostclimategames
I just found this too, done in ogre3d, now if it can be done in ogre3d, i think irrlicht users can do it too. :)