Trying to modify ISceneNode.h
-
- Posts: 13
- Joined: Thu Mar 27, 2008 2:59 am
Trying to modify ISceneNode.h
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?
-
- Posts: 13
- Joined: Thu Mar 27, 2008 2:59 am
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 13
- Joined: Thu Mar 27, 2008 2:59 am
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
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?
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?