SWF Flash in Irrlicht.

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
mathijsB
Posts: 4
Joined: Sat Jan 19, 2008 7:08 pm

SWF Flash in Irrlicht.

Post by mathijsB »

Image
Image

Irrlicht sample

Hey,

Recently I have been working on a port for irrlicht version of my flash control for 3d rendering. Above are some screenshots of it. It is based on the original Adobe Flash Control, yet adds quite a lot of functionality. I have listed a few core features below.

*Since the flash control is drawn on a texture, it can also be used on 3d surfaces. For example, in game computer terminals, movie displays, etc.

*Works with c++/.NET/delphi, build on a powerful c++ core.

*Works in fullscreen mode and handles mouse and keyboard input that you pass to the control fully.

*Synchronous and asynchronous communication with flash. This means, you can call functions inside the actionscript inside your flash control. Visa versa actionscript can call functions inside your applications. In both cases return arguments can be returned to the calling application.

*Optimized for speed, rerendering only happens when the flash control updates and at a framerate you specify. The rendering is implemented fully double-buffered/threaded.

*Fully engine/directx/opengl independant. By a provided set of classes you can implement this to work with virtually any rendering mechanism. For irrlicht a full implementation is available with the sample.

*Custom sound handlers, hook your own sound handler to the control and let your application’s sound system play the sound for flash.

*You can provide your own flash player. This means you can deploy your applications without worrying about any problems by users using other versions of flash than the version you tested with.

*Full flash transparency and translucency supported

*Allows you to set your own handler for cursor changes, for example, when you mouseover a button in Flash, you can link your own cursor to that that fits in the theme of your game.

The irrlicht sample is build upon the terrain rendering sample that comes with the sdk. Currently it just works with DirectX and the fast software renderer. I am not sure why the texture doesn't seem to work with opengl, since locking and unlocking of the irrlicht texture isn't failing. Maybe someone with some more irrlicht experience knows why?

More information and the full sdk can be found on my website at
http://mathijs.jabberjab.com

Greetings,
mathijs.
Last edited by mathijsB on Sat Jan 19, 2008 8:49 pm, edited 1 time in total.
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Damn! This is genius!

I never thought of using flash for my chatting/inventory/etc. I've been hard coding that stuff with irrlicht and its been quite interesting :)

I will check this out right now, thanks mathijsB, not only for the implementation but also the idea!
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Wow! This is great! I will certainly check this soon.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Looks really cool. Would make a good choice for online games as flash has all the scripting and network stuff you could ever need, plus a user-base of thousands of artist/programmers who can already use it.
Good luck with it :)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Hmm, any of you guys finding the interface to be rediculously slow?

I still get ~400 fps, but typing into the flash text field is suppppeerrr slow and I can barely press the button (it takes forever to respond).
mathijsB
Posts: 4
Joined: Sat Jan 19, 2008 7:08 pm

Post by mathijsB »

krama757 wrote:Hmm, any of you guys finding the interface to be rediculously slow?

I still get ~400 fps, but typing into the flash text field is suppppeerrr slow and I can barely press the button (it takes forever to respond).
Mh, looking into this one, the input is indeed a little slow here, though this only happens in the irrlicht version, and not in the general directx versions. So I might be using irrlicht wrong somewhere...
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

this prog doesn't even start on my maschine. do i need anything? and there is no message in the console which could tell me why i crashes righ on startup. everything seams to load fine but after the textures are loaded it just crashes.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
mathijsB
Posts: 4
Joined: Sat Jan 19, 2008 7:08 pm

Post by mathijsB »

You need to have the latest version of Flash installed. I think thats the most important thing, other missing stuff won't cause a crash.
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

Any updates mathijs? I am eagerly waiting for some update to the speed that the flash runs in irrlicht.
Morgawr
Posts: 95
Joined: Wed Sep 26, 2007 7:04 pm

Post by Morgawr »

This looks AWESOME!

It will come in handy for a GUI RPG-like and stuff like turn based battles for my game... I might try that out :wink:

GREAT job man
mathijsB
Posts: 4
Joined: Sat Jan 19, 2008 7:08 pm

Post by mathijsB »

small update from my side: I finally have some time now to look into the irrlicht speed issues and hope to have an updated irrlicht version in a matter of days.
krama757
Posts: 451
Joined: Sun Nov 06, 2005 12:07 am

Post by krama757 »

No breakthroughs yet? Been a while since you last posted an update :)

No rush though....its just Im excited at seeing such an amazing tool being developed.
Zeuss
Posts: 114
Joined: Mon Nov 08, 2004 9:02 pm
Location: Canberra - Australia
Contact:

Post by Zeuss »

This is pretty awesome, could you imagine some of the possibilities:

If you have an extendable filesystem, you could add the ability to load files from the internet and then stream updated flash content to your game.


Anywho, mathijsB would you be willing to add and maintain this to the irrlicht plugin project?
Help make Irrlicht even Better! Create and submit your own Irrlicht Extension
Want a Games Education? Try The Academy of Interactive Entertainment
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

u shud check his site. its not free or anything, its quite severly limited :)

but its still cool
Zeuss
Posts: 114
Joined: Mon Nov 08, 2004 9:02 pm
Location: Canberra - Australia
Contact:

Post by Zeuss »

I'm not going to take stuff without permission
Help make Irrlicht even Better! Create and submit your own Irrlicht Extension
Want a Games Education? Try The Academy of Interactive Entertainment
Post Reply