HikariWrapper version 0.3

GantZ

16-10-2008 11:14:24

Binary for 1.7.1
up to this version, it use a static lib of hikari, you don't need the native dll anymore.
IMPORTANT ! If your application crash when trying to load a flash movie, put the flash.ocx file in the directory of your exe.

[attachment=0]HikariWrapper.zip[/attachment]

What is hikari?

Hikari is a library who allow you to use Flash in a Ogre application.
wiki : http://www.ogre3d.org/wiki/index.php/Hikari
forum : http://princeofcode.com/forums/viewforum.php?f=15
HikariWrapper has been made to use it with MOGRE

HikariWrapper version 0.3

I have made a new version of the hikariwrapper along with crodude, this version use the latest hikari version from the svn.

the main changes are :

-> full wrapping of FlashControl and HikariManager

-> renaming of the classes and functions to follow .NET standards

you'll find more information on the readme and changelog files.

link : http://blackbox.qsh.eu/Files/HikariWrapper.zip

if you have any question/problem related to the wrapper post here or send me a pm.

note : the file extension is zip, but it contain the real archive on the 7z format.

Vectrex

17-10-2008 15:51:53

nice one. I'll try this later

Chulein

09-01-2009 11:46:40

Hi.

i was wondering i anybody has been able to play movies (flv) with the hikariwrapper.. and if so, how?

thanks.



Chulein

GantZ

09-01-2009 13:45:58

i've test it briefly and it work as long as you embed you video in the flash file.

AFAIK, streaming a video using , for example, a netconnection object don't work.

Chulein

09-01-2009 14:54:19

k.

i never used flash before but im eager to learn..
Going to give it go in the weekend.

Thank you for the quick reply.

Chulein

pedrodbs

27-05-2009 01:03:25

Hi GantZ,

I've been using HikariWrapper with my Mogre projects, but recently I have updated to Mogre 1.6.2.
I've tried to compile your wrapper code against this version but I guess some changes were made to the original Hikari to support the new Ogre version, so basically it didn't work.

Are you planning on a new release compatible with MOgre/Ogre 1.6.2?

Cheers

GantZ

27-05-2009 13:04:16

hi,

what error do you get ? i have update myself to Mogre 1.6.2 and didn't get any problem.

if you need it, i can send you my binaries. they have been compiled against Mogre 1.6.2_2

pedrodbs

27-05-2009 19:29:20

GantZ, that would be great!

After building Hikari and HikariWrapper against Mogre 1.6.2_2, when I run the HikariDemo, this Ogre exception occurs:

"OGRE EXCEPTION(3:RenderingAPIException): Surface locking failed in D3D9HardwarePixelBuffer::lockImpl at ..\\src\\OgreD3D9HardwarePixelBuffer.cpp (line 245)"

when trying to create the FPS overlay:
fps = hikariMgr.CreateFlashOverlay("FPS", viewport, 130, 91, RelativePosition.TopLeft, 0, 0);

I don't understand much of the wrapping process so maybe I did something wrong.. So if you could send the compiled binaries that would be great.

Thanks

GantZ

28-05-2009 18:02:44

that's weird, you have an error related to direct 3d. have you tried to run the demo with openGL ?

here the binaries of hikari and the wrapper for mogre 1.6. hope it could solve you're problem

[attachment=0]Hikari_Mogre1.6.2_2.zip[/attachment]

pedrodbs

28-05-2009 19:13:18

GantZ, thanks!

Now it works great with Mogre 1.6.2_2!

Yes I tried with OpenGL before but it didn't work, white blank image appeared. Now it works for both.

GantZ

22-10-2009 21:32:34

i have update hikariwrapper to mogre 1.6.4, see first post for binary

issingle

21-01-2010 03:16:07

GantZ,where can i download the source code of HikariWrapper for 1.6.4?
thanks.

GantZ

21-01-2010 08:03:25

see http://blackbox.qsh.eu/Files/HikariWrapper.zip, it should work for 1.6 version (even if it's not the last version of the source code)

i will upload on the mogre svn the last version, so that it will be more convenient for further developpement

xerios

13-05-2010 19:41:36

GantZ could you kindly update the Hikari wrapper to Mogre 1.7.1 ?
I failed miserably doing it myself, managed to make everything compile with no problems but I still couldn't make it work with my application :(

GantZ

13-05-2010 20:07:00

What kind of problems do you have ? I won't have access to my computer until sunday, so you will have to wait until then, or perhaps i can help you fix the issues you have here. (btw, i have move your post to the hikari topic)

xerios

13-05-2010 21:44:58

"is not a valid Win32 application. (Exception from HRESULT: 0x800700C1) " when creating HikariManager in my c# app

So basically it means that I screwed something big up, could be because I used Vs2010 even though I set compiler to v90 , recompiled both projects Hikari and the wrapper and adjusted the framework versions and all.

Don't really think that it helps you with anything, oh well... I might try again tomorrow using vs2008, I'll post the code if I ever succeed :)

GantZ

16-05-2010 19:04:52

I have update hikariwrapper to mogre 1.7.1, see first post for the download link. It have been compiled with vs2008.

xerios

16-05-2010 20:54:02

Thanks alot :D :D
Works flawlessly !

kdr35

22-07-2010 15:31:35

Hi,
I am new mogre , we are using ;

mogre SDK 1.7.1 ,
.NET Framework 4.0

While I was searching Mogre GUI which works on above features I have seen Hikari.

I saw your mogrewrapper for Mogre 1.7.1 then I immediately tried your demo project;

I downloaded demo project,
I changed framework 2.0 to 4.0
then referenced to Mogre 1.7.1
and changed HikariWrapper.dll and Flash.ocx.

Does Hikari support mogre SDK 1.7.1 and .NET Framework 4.0?

GantZ

22-07-2010 19:37:10

hi,

It support mogre 1.7.1, but only the vs2008 version. I suppose you use vs2010 since you use .net 4.0. For this, you need to compile both hikari and hikariwrapper with vs2010, and link it to the vs2010 version of mogre.

kdr35

23-07-2010 12:06:23

Thanks your suggestion , I will immediately try that.

kdr35

24-07-2010 13:23:17

Firstly I tried VS 2008 ,
I changed HikariWrapper.dll and Flash.ocx which arein bin directory to your files.Then I referenced your HikariWrapper.dll.
I downloaded your wrapper for 1.7.1 Mogre then changed project's references to 1.7.1 mogre.dll.

I took error which says "A procedure imported by 'Mogre, Version=1.7.1.0, Culture=neutral, PublicKeyToken=null' could not be loaded." :(

Is there any idea?

GantZ

24-07-2010 18:23:13

do you have a ogre.log generated in your bin directory ? don't forget to check where you're exe is generated (either in debug or release dir). Also, check out that you have OgreMain.dll located in the same directory of your exe. Also, post the full stack trace of the exception.

mstoyke

24-07-2010 18:34:50

do you have a ogre.log generated in your bin directory ? don't forget to check where you're exe is generated (either in debug or release dir). Also, check out that you have OgreMain.dll located in the same directory of your exe. Also, post the full stack trace of the exception.

And make sure that Mogre.dll is also in the same directory, the Mogre version of OgreMain.dll will not load without it.

Beauty

20-08-2010 15:43:03

Nice would be if somebody create a tiny demo application.
This we would add to the MogreSDK.
Using the MogreFramework or the code of ExampleApplication would be a useful, because it still contains basics like creating sceneManager, camera, viewPort and handles the input.

Beauty

20-08-2010 15:53:27

I created a wiki page for this wrapper.
http://www.ogre3d.org/tikiwiki/Hikari+Wrapper+for+MOGRE

It would be great when somebody adds details.

Also one or more screenshots would be nice.
How to add images you can read here:
http://www.ogre3d.org/tikiwiki/Help+-+Images

More help you find in the wiki menu at "Ogre Wiki Help".

GantZ

20-08-2010 18:14:36

i still have the original demo of hikari ported to mogre on my hdd. Since it's quite simple, i can rewrite it a little to use mogreframework, then upload it to the sdk svn.

I will write some details about the wrapper on the wiki, i'm still using it quite a lot, in the end :)

GantZ

28-08-2010 11:11:58

i have uploaded the demo of hikariwrapper to the mogre sdk svn, it use the example application dll like other samples.

I have also update the hikariwrapper wiki page, you can check it out if you want to review it (the overall presentation could be improved, since i don't know tikiwiki too much, i will look into it later)

Beauty

04-09-2010 14:07:51

Great work!
Thanks GantZ :D

Beauty

18-09-2010 15:15:43

I looked to the source code of the MogreSDK repository.
GantZ - In your file HikariSample.cs you have load instructions for the files controls.swf and fps.swf.
But they are not in the repository. (Maybe also some other files are missing?)
Can you add them, please?

GantZ

20-09-2010 21:20:04

my mistake, I have forget about adding in source control the media files. it's ok now. I have included the swf files along with the fla.

peterjs2011

22-09-2010 07:13:39

Does Hikari support mogre SDK 1.7.1 and .NET Framework 4.0?

When I compiled Hikari and Hkariwrapper with vs2010 it built successfully,
but I tried to run HikariDemo with new Hkariwrapper, Mogre and Mois ,it crashed.

The exception is:
Could not load file or assembly 'HikariWrapper.dll' or one of its dependencies. is not a valid Win32 application.


Can you give me some suggestion ?
Thanks

GantZ

22-09-2010 18:43:31

hikari work on 1.7.1, but i haven't tested it with .net 4.0 / vs2010, since i stick with .net 2.0 / vs2008 for now.

On which configuration have you build it (x86, x64) ? hikari (and it's wrapper) must be build with x86 settings.

peterjs2011

23-09-2010 15:41:13

hi
Today I compiled the hikari and hikariwrapper with Mogre171vs2010Libs(win32 x86 setting) and it compiled sucessfully!
http://www.mogalib.com/Mogre171VS2010Libs.7z

When I tried to run HikariDemo with new Hkariwrapper and Mogre171vs2010Libs,it crashed.

The exception is:
Could not load file or assembly 'HikariWrapper.dll' or one of its dependencies. The specified module could not be found.


Can you give me some suggestion?

Thanks

GantZ

23-09-2010 18:06:28

have you statically linked hikari to hikariwrapper ? if not, you need to have hikari and hikariwrapper dll in the same folder. if you want to build hikari as a static lib, check your configuration settings, under general you should have a rollout where you could choose the type of configuration (dynamic lib / static lib / etc..).

if you still have issues, i will try to find some time this week end to build it on vs2010.

peterjs2011

24-09-2010 05:22:57

have you statically linked hikari to hikariwrapper ? if not, you need to have hikari and hikariwrapper dll in the same folder. if you want to build hikari as a static lib, check your configuration settings, under general you should have a rollout where you could choose the type of configuration (dynamic lib / static lib / etc..).

if you still have issues, i will try to find some time this week end to build it on vs2010.


I get it. The demo run Flawless under .Net Framework 4.0.
I used dynamic lib and now i copy hikari.dll to my application folder, it runs well.

Thanks GantZ!

Acnirak

02-02-2011 09:33:06

Hi i downloaded and tried to compile last version of hikari under VS10,.NET 4.0 but it gave error:
Cannot open include file: Ogre.h: No such file or directory.

GantZ

03-02-2011 19:28:55

you have to edit the project settings. In the c/c++ settings part, add the path to the include directory of mogresdk in "Others include directories". You have to do the same with the libraries. (see your linker options).