IrrNewt irrlicht\newton framework >> SVN access
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
here
I've got some. win32GCC right?
http://www.mediafire.com/download.php?jn5jn20omml
http://www.mediafire.com/download.php?jn5jn20omml
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
timestep?
What is the recomended time step for newton?
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Hello guys, can somebody explain me how get it to work? I downloaded latest windows NEWTON sdk, IrrNewt15.rar, and irrnewtFPS.zip.... i tried to copy it to irrlicht directory, but both irrnewt examples (ONLY dsp files?!) and IrrNewtFPS.vcproj says "missing irrlicht.h"!! I fixed include paths in IrrNewtFPS.vcproj to irrlicht.h directory, then it yelld for newton.h, i had to add newton sdk path to include. But it still dont compile, heres error
Please help! Can can i compileit?
PS im using Microsoft Visual C++ 2008 Express Edition
Code: Select all
1>------ Build started: Project: IrrNewtFPS, Configuration: Release Win32 ------
1>Compiling...
1>IrrNewtFPS.cpp
1>c:\irrlicht-1.5\include\hidden.hpp(186) : warning C4244: 'argument' : conversion from 'irr::f64' to 'irr::f32', possible loss of data
1>c:\irrlicht-1.5\include\hidden.hpp(186) : warning C4244: 'argument' : conversion from 'irr::f64' to 'irr::f32', possible loss of data
1>c:\irrlicht-1.5\include\hidden.hpp(186) : warning C4244: 'argument' : conversion from 'irr::f64' to 'irr::f32', possible loss of data
1>c:\irrlicht-1.5\include\utils.hpp(93) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>c:\irrlicht-1.5\include\utils.hpp(93) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>c:\irrlicht-1.5\include\utils.hpp(93) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>c:\irrlicht-1.5\include\utils.hpp(195) : error C2668: 'pow' : ambiguous call to overloaded function
1> C:\Microsoft Visual Studio 9.0\VC\include\math.h(575): could be 'long double pow(long double,int)'
1> C:\Microsoft Visual Studio 9.0\VC\include\math.h(573): or 'long double pow(long double,long double)'
1> C:\Microsoft Visual Studio 9.0\VC\include\math.h(527): or 'float pow(float,int)'
1> C:\Microsoft Visual Studio 9.0\VC\include\math.h(525): or 'float pow(float,float)'
1> C:\Microsoft Visual Studio 9.0\VC\include\math.h(489): or 'double pow(double,int)'
1> C:\Microsoft Visual Studio 9.0\VC\include\math.h(123): or 'double pow(double,double)'
1> while trying to match the argument list '(int, irr::u32)'
1>c:\irrlicht-1.5\include\world.hpp(284) : warning C4244: '=' : conversion from 'irr::u32' to 'irr::f32', possible loss of data
1>.\IrrNewtFPS.cpp(134) : warning C4305: '=' : truncation from 'double' to 'irr::f32'
1>Build log was saved at "file://c:\irrlicht-1.5\Release\BuildLog.htm"
1>IrrNewtFPS - 1 error(s), 8 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
PS im using Microsoft Visual C++ 2008 Express Edition
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
i think that's not the best solution. the body will not move but will not be optimized as a static body also. i suggest you to use EBT_TREE as a bodyMalebolge wrote:http://rapidshare.com/files/214221055/l ... t.rar.html
Yes, mass zero seems to solve the problem. Thanks
type
to compile newton for the last irrlicht version you have to download the svn version of irrnewt
-
- Posts: 269
- Joined: Tue Oct 31, 2006 3:24 pm
- Contact:
Re: timestep?
irrnewt calculate it automatically3DModelerMan wrote:What is the recomended time step for newton?
Compiling in Ubuntu
Can anybody tell me can IrrNewt be compiled in Ubuntu? If somebody knows, please tell me...
Errors
I get a bunch of error when I'm trying to compile my program written with IrrNewt15(someone posted this lib a few pages before) and Irrlicht 1.5. I compile with VC 2008 Express. The includes are from IrrNewt 0.4, the error seem to be coming from those should I use the includes from SVN? Here is the list of errors:
Code: Select all
1>------ Build started: Project: 208-as, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>d:\cpp\include\hidden.hpp(91) : error C2248: 'irr::core::CMatrix4<T>::M' : cannot access private member declared in class 'irr::core::CMatrix4<T>'
1> with
1> [
1> T=irr::f32
1> ]
1> d:\irrlicht-1.5\include\matrix4.h(320) : see declaration of 'irr::core::CMatrix4<T>::M'
1> with
1> [
1> T=irr::f32
1> ]
1>d:\cpp\include\hidden.hpp(106) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\hidden.hpp(106) : error C2143: syntax error : missing ',' before '*'
1>d:\cpp\include\hidden.hpp(129) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\hidden.hpp(129) : error C2143: syntax error : missing ',' before '*'
1>d:\cpp\include\hidden.hpp(194) : warning C4244: 'argument' : conversion from 'irr::f64' to 'irr::f32', possible loss of data
1>d:\cpp\include\hidden.hpp(194) : warning C4244: 'argument' : conversion from 'irr::f64' to 'irr::f32', possible loss of data
1>d:\cpp\include\hidden.hpp(194) : warning C4244: 'argument' : conversion from 'irr::f64' to 'irr::f32', possible loss of data
1>d:\cpp\include\utils.hpp(93) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>d:\cpp\include\utils.hpp(93) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>d:\cpp\include\utils.hpp(93) : warning C4244: 'argument' : conversion from 'irr::s32' to 'irr::f32', possible loss of data
1>d:\cpp\include\utils.hpp(195) : error C2668: 'pow' : ambiguous call to overloaded function
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(575): could be 'long double pow(long double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(573): or 'long double pow(long double,long double)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(527): or 'float pow(float,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(525): or 'float pow(float,float)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(489): or 'double pow(double,int)'
1> c:\program files\microsoft visual studio 9.0\vc\include\math.h(123): or 'double pow(double,double)'
1> while trying to match the argument list '(int, irr::u32)'
1>d:\cpp\include\world.hpp(284) : warning C4244: '=' : conversion from 'irr::u32' to 'irr::f32', possible loss of data
1>d:\cpp\include\contact.hpp(18) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\contact.hpp(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\contact.hpp(18) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\contact.hpp(21) : error C2061: syntax error : identifier 'NewtonContact'
1>d:\cpp\include\contact.hpp(21) : error C2535: 'irr::newton::IMaterialContact::IMaterialContact(void)' : member function already defined or declared
1> d:\cpp\include\contact.hpp(20) : see declaration of 'irr::newton::IMaterialContact::IMaterialContact'
1>d:\cpp\include\contact.hpp(24) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\contact.hpp(24) : error C2433: 'irr::newton::IMaterialContact::NewtonContact' : 'inline' not permitted on data declarations
1>d:\cpp\include\contact.hpp(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\contact.hpp(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\contact.hpp(24) : warning C4183: 'getNewtonMaterialContact': missing return type; assumed to be a member function returning 'int'
1>d:\cpp\include\contact.hpp(20) : error C2614: 'irr::newton::IMaterialContact' : illegal member initialization: 'newton_contact' is not a base or member
1>d:\cpp\include\contact.hpp(21) : error C2065: 'contact_to_set' : undeclared identifier
1>d:\cpp\include\contact.hpp(21) : error C2614: 'irr::newton::IMaterialContact' : illegal member initialization: 'newton_contact' is not a base or member
1>d:\cpp\include\contact.hpp(24) : error C2039: 'newton_contact' : is not a member of 'irr::newton::IMaterialContact'
1> d:\cpp\include\contact.hpp(17) : see declaration of 'irr::newton::IMaterialContact'
1>d:\cpp\include\material_pair_and_contact.hpp(25) : error C2061: syntax error : identifier 'NewtonContact'
1>d:\cpp\include\material_pair_and_contact.hpp(28) : error C2065: 'contact_to_set' : undeclared identifier
1>d:\cpp\include\ragdoll.hpp(32) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\ragdoll.hpp(32) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(32) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(37) : error C2061: syntax error : identifier 'NewtonRagDoll'
1>d:\cpp\include\ragdoll.hpp(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(53) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\ragdoll.hpp(53) : error C2433: 'irr::newton::IRagDoll::NewtonRagDoll' : 'inline' not permitted on data declarations
1>d:\cpp\include\ragdoll.hpp(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(53) : warning C4183: 'getNewtonRagDoll': missing return type; assumed to be a member function returning 'int'
1>d:\cpp\include\ragdoll.hpp(53) : error C2065: 'n_ragdoll' : undeclared identifier
1>d:\cpp\include\ragdoll.hpp(89) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\ragdoll.hpp(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(90) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\ragdoll.hpp(90) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(90) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(98) : error C2061: syntax error : identifier 'NewtonRagDollBone'
1>d:\cpp\include\ragdoll.hpp(99) : error C2535: 'irr::newton::IRagDollBone::IRagDollBone(void)' : member function already defined or declared
1> d:\cpp\include\ragdoll.hpp(98) : see declaration of 'irr::newton::IRagDollBone::IRagDollBone'
1>d:\cpp\include\ragdoll.hpp(103) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\ragdoll.hpp(103) : error C2433: 'irr::newton::IRagDollBone::NewtonRagDoll' : 'inline' not permitted on data declarations
1>d:\cpp\include\ragdoll.hpp(103) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(103) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(103) : warning C4183: 'getNewtonRagDoll': missing return type; assumed to be a member function returning 'int'
1>d:\cpp\include\ragdoll.hpp(106) : error C2143: syntax error : missing ';' before '*'
1>d:\cpp\include\ragdoll.hpp(106) : error C2433: 'irr::newton::IRagDollBone::NewtonRagDollBone' : 'inline' not permitted on data declarations
1>d:\cpp\include\ragdoll.hpp(106) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(106) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\cpp\include\ragdoll.hpp(106) : warning C4183: 'getNewtonRagDollBone': missing return type; assumed to be a member function returning 'int'
1>d:\cpp\include\ragdoll.hpp(98) : error C2065: 'this_bone' : undeclared identifier
1>d:\cpp\include\ragdoll.hpp(98) : error C2614: 'irr::newton::IRagDollBone' : illegal member initialization: 'n_bone' is not a base or member
1>d:\cpp\include\ragdoll.hpp(99) : error C2614: 'irr::newton::IRagDollBone' : illegal member initialization: 'n_bone' is not a base or member
1>d:\cpp\include\ragdoll.hpp(103) : error C2065: 'n_ragdoll' : undeclared identifier
1>d:\cpp\include\ragdoll.hpp(106) : error C2065: 'n_bone' : undeclared identifier
1>Build log was saved at "file://f:\Workspace\fortress208\208-as\208-as\Debug\BuildLog.htm"
1>208-as - 51 error(s), 11 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Problems solved
Well I tried it out with Newton SDK 1.53, that solved 49 of the errors, the 1 remaining was easy (I had to change a pow function to a '^'operator)
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Framerate independent?
How can I make Irrnewt framerate independent? Will this work if I pass the time into the update functions time step parameter?
http://gafferongames.com/game-physics/f ... -timestep/
http://gafferongames.com/game-physics/f ... -timestep/
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
does anyone have the old version of the wrapper ?
Because I started my game with Irrlicht 1.4.2 and an older version of irrNewt than this one. However I don't have anymore sources, and I erased without attention (overwrited) the dll and lib files :'(
I can't compile this new version of the wrapper, I don't know why, the console is telling me : [Linker error] undefined reference to `vtable for irr::IEventReceiver'
If someone could compile it for Irrlicht 1.4.2 it would be so cool...
-> I'm using devc++, but same result on code::block
Thanks,
Stef.
Because I started my game with Irrlicht 1.4.2 and an older version of irrNewt than this one. However I don't have anymore sources, and I erased without attention (overwrited) the dll and lib files :'(
I can't compile this new version of the wrapper, I don't know why, the console is telling me : [Linker error] undefined reference to `vtable for irr::IEventReceiver'
If someone could compile it for Irrlicht 1.4.2 it would be so cool...
-> I'm using devc++, but same result on code::block
Thanks,
Stef.
-
- Posts: 222
- Joined: Mon Jan 19, 2009 10:03 pm
- Location: Miami, Florida
- Contact:
wtf is wrong with your website? you have to highlight the text to read it
EDIT:
this doesnt work, you should test your code before you release it.
hello world doesnt even work. I had to fix the pow function, then I had to completely remove the event receiver so that I wouldnt get this error:
then when it finally compiled I got a break point on this line:
EDIT:
this doesnt work, you should test your code before you release it.
hello world doesnt even work. I had to fix the pow function, then I had to completely remove the event receiver so that I wouldnt get this error:
Code: Select all
1>c:\users\owner\desktop\irrnewtsdk\examples\terrain\main.cpp(268) : error C2259: 'MyEventReceiver' : cannot instantiate abstract class
Code: Select all
p_world = irr::newton::createPhysicsWorld(device);