GantZ
11-11-2010 12:54:00
In replacement of hikari, i have work lately on implementing akarui for mogre. i now got a working version, and want to share it for everyone 
Main features of makarui compared to hikariwrapper :

Main features of makarui compared to hikariwrapper :
- Flash plugin agnostic. you can use flash 9, 10 or better with this version. (flash 10 recommended)[/*:m]
- Better memory management, unlike the old activex version.[/*:m]
- Better performance with transparent flash control with flash 10 plugin. no more need of alpha hack.[/*:m]
- Optimization of the callback code[/*:m][/list:u]
Known issues
- Missing implementation of code like SetLoop(), SetQuality(), SetScaleMode(). basically what goes with setting property for a flash control. you can still set various property for your flashcontrol on creation but not at runtime[/*:m]
- ExternalInterface.call must be used with setTimeout on flash 10 plugin[/*:m]
- FlashMaterial is untested[/*:m]
- No implementation of Flash 9 legacy alpha hack from hikari[/*:m][/list:u]
Usage example
It work basically the same way than Hikariwrapper, the initialisation is the main difference
MakaruiManager makaruiMgr = new MakaruiManager("..\\media\\",this.window); //don't forget the last slash on the assets directory, the second parameter is the renderwindow
FlashControl controls = makaruiMgr.CreateFlashOverlay("controls.swf", this.viewport, 350, 400, RelativePosition.Center, 1, 0,true); //this function replace the old load function, just provide the control you want to load when you create your flash overlay. it's also here that your provide the position, the scalemode and the transparency settings.
Binary
You need to have NPSWF32.dll in the same directory of Makarui. you can find it in in your windows\system32 directory (sysWOW64 for 64 bit os, i guess), search for the macromed directory.
compiled against mogre 1.7.1, vs2008 version :
Makarui (12.04.2011)
Here the demo of Hikari, ported to Makarui :
Makarui demo
If you want to compile it from source, it's available on bitbucket, on the mogre addons repository :
http://bitbucket.org/mogre/mogreaddons/src
you will need to compile both akarui (under the akarui directory) and Makarui.
Dependencies used for akarui :
- Npapi-headers : http://code.google.com/p/npapi-headers/[/*:m][/list:u]
Dependencies used for Makarui :
- headers of Boost 1.40 (the version used by mogre)[/*:m]
- Mois[/*:m]
- Mogre 1.7.1, Akarui (obviously
)[/*:m]
- Npapi-headers[/*:m][/list:u]
- headers of Boost 1.40 (the version used by mogre)[/*:m]
- Npapi-headers : http://code.google.com/p/npapi-headers/[/*:m][/list:u]
- Missing implementation of code like SetLoop(), SetQuality(), SetScaleMode(). basically what goes with setting property for a flash control. you can still set various property for your flashcontrol on creation but not at runtime[/*:m]