Page 27 of 29

Posted: Tue Sep 08, 2009 10:36 am
by baiqian
hi all, I have made my character collision with a whole .irr scene. However, the rigid body position of my character was not in the center of mesh. I know there is some bodyoffsetfromnode method to adjust. but i'm quite not sure about the bodyoffsetfromnode method. there is no specification about this. such as bodyoffsetfromnode.rotation and translation. any one can advice the result for these methods?

Posted: Sun Sep 13, 2009 3:03 am
by omar shaaban
i wanted to use irrnewtinmy project soi included just the headers and when compiling an error came out in matrix4.h in this line
line 106:

Code: Select all

int  NewtonMaterialCollisionContactProcess(
				const NewtonMaterial* material,
				[i]const NewtonContact* contact);[/i]
here error:
C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: expected `,' or `...' before '*' token|

here is the rest of the errors:
  • C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: expected `,' or `...' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|106|error: ISO C++ forbids declaration of `NewtonContact' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|129|error: expected `,' or `...' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\hidden.hpp|129|error: ISO C++ forbids declaration of `NewtonRagDollBone' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|18|error: ISO C++ forbids declaration of `NewtonContact' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|18|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|21|error: expected `)' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|24|error: ISO C++ forbids declaration of `NewtonContact' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|24|error: `NewtonContact' declared as an `inline' field|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|24|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|25|error: expected `;' before '}' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp||In constructor `irr::newton::IMaterialContact::IMaterialContact()':|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|20|error: class `irr::newton::IMaterialContact' does not have any field named `newton_contact'|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp|27|error: `NewtonContact' has not been declared|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp|27|error: ISO C++ forbids declaration of `contact_to_set' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp||In constructor `irr::newton::IMaterialPairAndContact::IMaterialPairAndContact(NewtonMaterial*, int*)':|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\material_pair_and_contact.hpp|28|error: no matching function for call to `irr::newton::IMaterialContact::IMaterialContact(int*&)'|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|17|note: candidates are: irr::newton::IMaterialContact::IMaterialContact(const irr::newton::IMaterialContact&)|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\contact.hpp|20|note: irr::newton::IMaterialContact::IMaterialContact()|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|32|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|32|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|37|error: `NewtonRagDoll' has not been declared|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|38|error: `NewtonRagDollBone' has not been declared|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|41|error: ISO C++ forbids declaration of `ragDoll' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|41|error: ISO C++ forbids declaration of `parentDollBone' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|53|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|53|error: `NewtonRagDoll' declared as an `inline' field|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|53|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|56|error: expected `;' before "IRagDollBone"|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|89|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|89|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|90|error: ISO C++ forbids declaration of `NewtonRagDollBone' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|90|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|98|error: expected `)' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|103|error: ISO C++ forbids declaration of `NewtonRagDoll' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|103|error: `NewtonRagDoll' declared as an `inline' field|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|103|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: expected `;' before "inline"|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: ISO C++ forbids declaration of `NewtonRagDollBone' with no type|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: `NewtonRagDollBone' declared as an `inline' field|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|106|error: expected `;' before '*' token|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|109|error: expected `;' before "irr"|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp||In constructor `irr::newton::IRagDollBone::IRagDollBone()':|
    C:\Users\omar shaaban\Work\IrrNewt_SDK_0_4\include\ragdoll.hpp|99|error: class `irr::newton::IRagDollBone' does not have any field named `n_bone'|
    C:\Users\omar shaaban\Work\Veda\main.cpp||In function `int rf(int)':|
    C:\Users\omar shaaban\Work\Veda\main.cpp|35|warning: converting to `int' from `const irr::f32'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|36|warning: converting to `long int' from `const irr::f32'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|37|warning: converting to `long int' from `const irr::f32'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|38|warning: converting to `long int' from `const irr::f32'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|39|warning: converting to `long int' from `const irr::f32'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|40|warning: converting to `long int' from `const irr::f32'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|44|warning: converting to `long int' from `double'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|45|warning: converting to `long int' from `double'|
    C:\Users\omar shaaban\Work\Veda\main.cpp|46|warning: converting to `long int' from `double'|
    ||=== Build finished: 39 errors, 9 warnings ===|

Posted: Thu Sep 17, 2009 4:25 am
by omar shaaban
this framework is dead!! :cry:

Posted: Thu Sep 17, 2009 1:40 pm
by omar shaaban
well i have no choice but to compile with irrlicht 1.2!!

Posted: Thu Sep 17, 2009 4:35 pm
by hybrid
I can only guess since I did not look at this frameowrk's code. But it sounds as if the direct matrix access that was removed in Irrlicht 1.2 or so makes the NewtonContact struct to fail. Hence the rest of the errors. The access can be easily fixed by changing matrix.M to matrix and some similar changes.

Posted: Fri Sep 18, 2009 5:50 am
by omar shaaban
hybrid wrote:I can only guess since I did not look at this frameowrk's code. But it sounds as if the direct matrix access that was removed in Irrlicht 1.2 or so makes the NewtonContact struct to fail. Hence the rest of the errors. The access can be easily fixed by changing matrix.M to matrix and some similar changes.

i fixed that..that was easy
the problem is with bufferLOD thingy and an error in join.hpp

Posted: Fri Sep 18, 2009 9:13 am
by hybrid
Any chance to see this error in full length?

Posted: Sat Sep 19, 2009 3:12 pm
by omar shaaban
another problem is what is the delta time did irrnewt set for newton engine update i mean what is the maximum numbers update per second (as when i make it depend on fps sometimes irr newt give me stupid calculations and ofcourse when i make it frame independent with const framerate of 60fps it works fine)

Posted: Sat Sep 19, 2009 8:05 pm
by m_krzywy
It isn't compatibile with 1.5.1? I wanted to use it :D

Posted: Sun Sep 20, 2009 2:06 am
by omar shaaban
m_krzywy wrote:It isn't compatibile with 1.5.1? I wanted to use it :D
i downloaded irrlich1.2 and tested it its fine but not accurate
every time i run the simulation results differ
i will try irrphysix

Posted: Mon Sep 21, 2009 6:22 pm
by Mux
I've had no problems to compile IrrNewt for Irrlicht 1.5 so it should probably work just fine with 1.5.1 too.

Posted: Fri Sep 25, 2009 10:55 am
by prchakal
Anyone can post or send me the compiled version for irrlicht 1.5.1 ?

Posted: Fri Sep 25, 2009 8:11 pm
by Seven
I am not having trouble compiling with 1.6, but the terrain doesnt work for me? Has anyone compiled against 1.6 and gotten terrain to not crash?

Posted: Sun Sep 27, 2009 12:54 am
by BoingBoing
Which version of Newton does this support?

Posted: Sun Sep 27, 2009 2:03 am
by Seven
I am writing my own Newton2 wrapper similar to IrrNewt, but i have not been able to get terrain working either with irrnewt or with my wrapper. Has anyone compiled irrnewt with 1.5 or 1.6 and gotten the terrain to load properly?