ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrEdit
forum topic indicator Game Plugin problems..
person icon
JP
Registered User
Quote
2008-03-08 19:19:02

Ok,

I've got some problems with the plugins i've written for irrEdit.

One is a sort of custom node based on the sphere scene node, with some added information which i've added to the seralise/deserialise functions and gets saved and reloaded properly.

Then i've got a game plugin which should then use that extra information to render lines linking the custom nodes together.

The links are rendered properly but one of the pieces of extra information is the colour to use to render that line. This is the part that isn't working...

In fact, none of the extra information is used, just the default values. irrEdit handles these values properly, my game plugin does not.

Is there something that i should be doing extra in my game plugin to get these datas loaded? I assumed that this data would already be loaded, assuming that irrEdit passes all the information to it.

So if anyone has any ideas i'd be very grateful to hear them! I'm sure some more info might be needed so let me know if you need to see any code snippets or source etc.

person icon
JP
Registered User
Quote
2008-03-08 23:32:54

Ok, well now i've actually tried it out in my actual irrlicht app and it's got the right colour and other parameters... so that's good, but obviously i still need to sort out the irrEdit plugin and get that working properly.

I guess irrEdit must be doing something different when running my plugin than what i'm doing in my game... but all i'm doing is calling smgr->loadScene(), which i assume irrEdit is doing too...

EDIT: oh and just to be clear, i'm using irrlicht 1.3.1, which i believe is the same as the irrEdit version i'm using; 0.7.1

person icon
JP
Registered User
Quote
2008-03-09 21:16:40

OK, well this problem has solved itself, i basically had three versions of my scene node code, one in the node plugin, one in the game plugin and one in the library i'm making and apparently there were some differences between them which i guess were causing the problems as now that they're using all the same code it works!

New problem though... In the game plugin i traverse the scene graph, pick out my special nodes and give them a text scene node with their ID on it to label them. In the game plugin this doesn't work quite right for some reason. The labels are all there and laid out in the correct formation, but they're strangely offset from the nodes and their transformation seems to almost be affected by the camera (though this could just be an illusion..).

Also, smgr->getGUIEnvironment returns NULL in irrEdit plugins, is that right? I had to get a valid gui environment pointer from Services->getDevice()->getGUIEnvironment...


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |