Trying to modify ISceneNode.h

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
starphoenix
Posts: 13
Joined: Thu Mar 27, 2008 2:59 am

Trying to modify ISceneNode.h

Post by starphoenix »

So I'm trying to modify ISceneNode.h to handle my framework's rotation of objects better, IE using quaternions instead of euler angles, and for some reason, any time I add ANY function to the ISceneNode class, its like it corrupts the class, and any time I try to call setPosition, of all functions, i get an access violation. Any help here?
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

i think if you wanna change irrlicht files, you have to recompile the full engine. just guessing xD
starphoenix
Posts: 13
Joined: Thu Mar 27, 2008 2:59 am

Post by starphoenix »

Tried doing that, still got the access violation, besides this file is one of the include files, its not directly part of the .lib or .dll
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Because the include files are also used within the dll it is very important that your application and the library are compiled with the same headers. So recompiling the library on each change is a must.

Beside that we can't help much without further information. It's possible to change the headers as long as you recompile, so that alone won't cause the crash - I'm doing that a lot myself. This typically happens because your application does not use the newly compiled dll. Maybe you have an old one for example in your system path and that one is used. Copy the new irrlicht.dll beside your application to be sure that it is used.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
starphoenix
Posts: 13
Joined: Thu Mar 27, 2008 2:59 am

Post by starphoenix »

You know what, its probably that I didn't use the newly built dll, I didn't think that got compiled with the engine, I thought it was just the libs. That seems to have fixed the crash, but I don't seem to be getting expected behavior. Oh well, thats just a debugging issue, I got it to run successfully now
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

I have very similar question here so I think I can hijack this thread a bit:

I changed ISceneNode to add new attribute and serialize it with others (i know userdata can be used for that, but i still want to know the answer to this problem), when I recompile release version of irrlicht and copy dll/lib/exp to my aplication - new attribute is not serialized, acctually it IS serialized with CameraSceneNode, but terrain and animated scene nodes are ignoring it.
When I build debug version of irrlicht and copy those dll/lib/exp to my application - it all works as expected, new attribute is present in irr file.

I tried several times combination of clean/build/rebuild/copy, and I don't have idea what can be the cause of this?
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

ok, it was problem with old dll it was using from root dir.... :oops:
Post Reply