Topic: XEffect in Irrlicht (BlitzMax)

Hello,
sorry for my bad english:

Is there any possibillity to use the XEffect Lib (C++) in BlitzMax with die Irrlicht.Core-Mod? :-)

I couln't find anything to this topic here in the board.


Thanks!


Bastian

Re: XEffect in Irrlicht (BlitzMax)

greetings smile  yes you would be able to use this library but a little "glue" work would need to be done.  you will need to expose some functions using C/C++ (similar to how the Irrlicht mod is created) in order to be able to use it.  if you are planning on using only a few features of the library this may go pretty quick.  if you are planning on using all of the library this could take several hours.

Re: XEffect in Irrlicht (BlitzMax)

Ah :-) Thank you for reply wink

I must recompile irrlicht, when I want to use the "extention", or?



Bastian

Re: XEffect in Irrlicht (BlitzMax)

greetings smile  it wouldnt be in the base Irrlicht mod so you wouldnt need to recompile that.  you would need to either make it into a mod or include the files directly in your project.

some news on this... this library was pretty interesting and felt it may be useful for the Irrlicht mod userbase so i went ahead and built a mod out of it smile  took me a little over 5 hours so not bad!  i will release once i have all the examples converted and running.  probably sometime tomorrow.  i already have the mod completed and the first example converted and running so its definately a go.

5 (edited by Barratator 2010-01-10 04:37:37)

Re: XEffect in Irrlicht (BlitzMax)

Oh nice!
Thank you! :-)

But, when I want to rebuild the Mods I'm getting this error:

Building Modules
Compiling:EffectHandler.cpp
Build Error: failed to compile N:/........../BlitzMax/mod/irrlicht.mod/xeffects.mod/xeffects/EffectHandler.cpp
Process complete

And I can't run the examples :-( It always crashes with an error...


MinGW and so on is already installed.




Thanks!

Bastian


EDIT: Ok, sorry, it was my misstake: MinGW hasn't been worked correctly.
But now, there is an new error:

http://paste.frubar.net/11708/txt

I have pasted it, because it's to big ;-)




Bastian

Edit² It was my misstake to -> Not the newest Wrapper-Version :-)
Now I think, it works correctly :-)

Thank you!

Re: XEffect in Irrlicht (BlitzMax)

looks like i missed the fun smile great!  glad its working for you smile

Re: XEffect in Irrlicht (BlitzMax)

Hmm...I don't know, but I think there is a bug:

When I'm use settarget or setposition of SShadowLight the light doesn't do anything...
I can fill the parameter with any value, but the light remains constant.

Do you have any idea?


Thank you!


Bastian

Re: XEffect in Irrlicht (BlitzMax)

it should work as that appears to be how many of the examples operate (see example 1 in the while loop).  do you have sample code?

Re: XEffect in Irrlicht (BlitzMax)

Founded :-)

I saved the return of SShadowLight.Create. Now I use getShadowLight(index) and it works :-)

Thank you for helping!



Bastian