GMan's Mods & Stuff


Help and information forum for programs and BlitzMax mods written by GMan.
For games from GMan, visit G-Squared Games.
For web consulting check out ggSoftware.

You are not logged in.

Announcement

#1 2010-01-06 15:30:36

Barratator
New member
Registered: 2010-01-06
Posts: 5

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

Offline

 

#2 2010-01-09 09:19:17

gman
Administrator
Registered: 2006-01-04
Posts: 723

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.

Offline

 

#3 2010-01-09 09:56:47

Barratator
New member
Registered: 2010-01-06
Posts: 5

Re: XEffect in Irrlicht (BlitzMax)

Ah :-) Thank you for reply wink

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



Bastian

Offline

 

#4 2010-01-09 14:40:52

gman
Administrator
Registered: 2006-01-04
Posts: 723

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.

Offline

 

#5 2010-01-10 03:38:28

Barratator
New member
Registered: 2010-01-06
Posts: 5

Re: XEffect in Irrlicht (BlitzMax)

Oh nice!
Thank you! :-)

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

Code:

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!

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

Offline

 

#6 2010-01-10 07:54:44

gman
Administrator
Registered: 2006-01-04
Posts: 723

Re: XEffect in Irrlicht (BlitzMax)

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

Offline

 

#7 2010-01-10 09:51:46

Barratator
New member
Registered: 2010-01-06
Posts: 5

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

Offline

 

#8 2010-01-10 10:17:52

gman
Administrator
Registered: 2006-01-04
Posts: 723

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?

Offline

 

#9 2010-01-10 10:32:46

Barratator
New member
Registered: 2010-01-06
Posts: 5

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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB