IrrNewt irrlicht\newton framework >> SVN access
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
I discovered IrrNewt yesterday and it seems awesome !
That's exactly what i was searching for.
But i just have a little problem :
I get some memory leaks when the program ends, even with the memleaks example or character controlling example. Do anyone else had memory leaks problems ?
I'm under linux and compiled IrrNewt from source using codeblocks.
Here is the trace :
Quit message received.
*** glibc detected *** ./program: double free or corruption (!prev): 0x08c4a480 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7a41a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7a454f0]
/usr/local/lib/libIrrNewt.so(_ZN6dgListI16dgSortArrayEntryE10dgListNodeD0Ev+0x1c)[0xb7eb648a]
That's exactly what i was searching for.
But i just have a little problem :
I get some memory leaks when the program ends, even with the memleaks example or character controlling example. Do anyone else had memory leaks problems ?
I'm under linux and compiled IrrNewt from source using codeblocks.
Here is the trace :
Quit message received.
*** glibc detected *** ./program: double free or corruption (!prev): 0x08c4a480 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7a41a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7a454f0]
/usr/local/lib/libIrrNewt.so(_ZN6dgListI16dgSortArrayEntryE10dgListNodeD0Ev+0x1c)[0xb7eb648a]
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
Hello,
Thanks for that great project. It`s very useful, but I have one (big) problem with it:
I have Irrlich 1.5 with IrrNewt 0.4 + 1.5 compiled DLLs (page no. 24 of this thread). I`ve got "Application Error" - Wrong Inicialization of application (0xc0150002). It is ok when I remove the IrrNewt.
Is this some kind of bad-dll or something else (if I stick to original 0.4 dlls, application falls immediately after start) ?
Thanks.
Thanks for that great project. It`s very useful, but I have one (big) problem with it:
I have Irrlich 1.5 with IrrNewt 0.4 + 1.5 compiled DLLs (page no. 24 of this thread). I`ve got "Application Error" - Wrong Inicialization of application (0xc0150002). It is ok when I remove the IrrNewt.
Is this some kind of bad-dll or something else (if I stick to original 0.4 dlls, application falls immediately after start) ?
Thanks.
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
hi, this is generally caused by wron compiled dlls (for example dll compiled with 1.5 used in an application compiled with 1.4)Prott wrote:Hello,
Thanks for that great project. It`s very useful, but I have one (big) problem with it:
I have Irrlich 1.5 with IrrNewt 0.4 + 1.5 compiled DLLs (page no. 24 of this thread). I`ve got "Application Error" - Wrong Inicialization of application (0xc0150002). It is ok when I remove the IrrNewt.
Is this some kind of bad-dll or something else (if I stick to original 0.4 dlls, application falls immediately after start) ?
Thanks.
please download the svn version of irrnewt from
https://aresfps.svn.sourceforge.net/svn ... ps/IrrNewt
using a SVN client, compile it (you need Newton SDK) and then link against your program
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
I have problems finding a function to tell Newton that a Scene node is an static body and dosent need to move at all, just have to collide.
Im getting all node from a .irr and give them high mass, but that pretty dumb and slow.
Is there a function to tell them to not move?
Thanks
Im getting all node from a .irr and give them high mass, but that pretty dumb and slow.
Code: Select all
core::array<irr::scene::ISceneNode*> listProps;
pScene->getSceneNodesFromType(ESNT_MESH,listProps);
for(unsigned int i =0; i<listProps.size(); i++){
irr::newton::SBodyFromNode props_data;
props_data.Type=newton::E_BODY_TYPE::EBT_PRIMITIVE_BOX;
props_data.Node= listProps[i];
scene::IMeshSceneNode* msn = (scene::IMeshSceneNode*)listProps[i];
props_data.Mesh=msn->getMesh();
props_data.BodyOffsetFromNode.setScale(core::vector3df(listProps[i]->getScale()));
props_data.Mass=10000000.f;
p_world->createBody(props_data);
}
listProps.clear();
Thanks
http://rapidshare.com/files/214198206/d ... t.rar.html
Sure, here they are. I still cant find the function. Not even in the documentation
Sure, here they are. I still cant find the function. Not even in the documentation
Thanks,
I found this:
To set a collision with bsp map (in ragdoll example). I`m not sure if it`s what you want, but seems there isn`t set any mass value.
Also, I remember something about setting mass value to zero. Did you try that?
And ... I`m sorry, but could you also share with me your compiled .lib file?
I found this:
Code: Select all
world_material = p_world->createMaterial();
scene::IMesh* world_mesh = smgr->getMesh("media/level/20kdm2.bsp")->getMesh(0);
scene::ISceneNode* world_node = smgr->addOctTreeSceneNode(world_mesh);
p_world->createBodyAuto(world_node,world_mesh)->setMaterial(world_material);
Also, I remember something about setting mass value to zero. Did you try that?
And ... I`m sorry, but could you also share with me your compiled .lib file?