problems with altered Iscenenode class

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
FoxHound
Posts: 10
Joined: Fri Nov 18, 2005 2:11 pm

problems with altered Iscenenode class

Post by FoxHound »

I altered teh Iscenenode class so that I could put in skills for use in game. One of them is an array of vector3df. Now I'm able to read and write to these skills, but they don't stay the same. In fact it changes the position of the node when I change vector3df.

My main question is do I need to recomple the DLL in order to get it to work correctly with the changed header file, or is there something wrong on my end?

I'm not on my home machine so I can't post the code now.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yes, you would need to recompile the dll. You've changed the sizes of some of the ISceneNode derived classes that are compiled into the dll, which is causing your problems.

Typically, when making a game, the rendering engine is seperated from the game engine. The game engine would have entities that are players or objects in the game, and each of those things would have a node in the scene graph.

The nice thing about doing it this way is that the rendering engine can be left alone when making changes that are specific to your game. Just something you might want to consider.

Travis
FoxHound
Posts: 10
Joined: Fri Nov 18, 2005 2:11 pm

Post by FoxHound »

Thank you, that fixed my problems.
Post Reply