IrrNewt irrlicht\newton framework >> SVN access

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Malebolge
Posts: 19
Joined: Sun Aug 31, 2008 8:24 pm

Post by Malebolge »

http://rapidshare.com/files/214221055/l ... t.rar.html

Yes, mass zero seems to solve the problem. Thanks
Prott
Posts: 104
Joined: Sun Jan 14, 2007 12:01 pm

Post by Prott »

You`re welcome.
Thanks for the lib. I`m sorry, but could you please send IrrNewt.lib? :oops:
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

here

Post by 3DModelerMan »

That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Prott
Posts: 104
Joined: Sun Jan 14, 2007 12:01 pm

Post by Prott »

Thanks ... I don`t know what to do - I never compiled a dll before.
My program is in C++ (.net 2005), but IrrNewt project is for Code::Blocks. So I tryed to compile my own dll, but it still doesn`t work.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

timestep?

Post by 3DModelerMan »

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
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

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

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 ==========
Please help! Can can i compileit?
PS im using Microsoft Visual C++ 2008 Express Edition
white tiger
Posts: 269
Joined: Tue Oct 31, 2006 3:24 pm
Contact:

Post by white tiger »

Malebolge wrote:http://rapidshare.com/files/214221055/l ... t.rar.html

Yes, mass zero seems to solve the problem. Thanks
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 body
type

to compile newton for the last irrlicht version you have to download the svn version of irrnewt ;)
white tiger
Posts: 269
Joined: Tue Oct 31, 2006 3:24 pm
Contact:

Re: timestep?

Post by white tiger »

3DModelerMan wrote:What is the recomended time step for newton?
irrnewt calculate it automatically ;)
jkateva
Posts: 2
Joined: Wed May 13, 2009 8:32 pm

Compiling in Ubuntu

Post by jkateva »

Can anybody tell me can IrrNewt be compiled in Ubuntu? If somebody knows, please tell me...
baiqian
Posts: 43
Joined: Sun Apr 06, 2008 2:29 pm

Post by baiqian »

as Newton 2.01 already released, with a lot of new features(such as destructable) and performance improved, when will you release irrNewt with newton 2.0 version? It's really expected.
laci37
Posts: 6
Joined: Mon Jan 19, 2009 7:12 pm

Errors

Post by laci37 »

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 ==========
laci37
Posts: 6
Joined: Mon Jan 19, 2009 7:12 pm

Problems solved

Post by laci37 »

Well I tried it out with Newton SDK 1.53, that solved 49 of the errors, the 1 remaining was easy :D(I had to change a pow function to a '^'operator)
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Framerate independent?

Post by 3DModelerMan »

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/
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
stefbuet
Competition winner
Posts: 495
Joined: Sun Dec 09, 2007 4:13 pm
Location: france

Post by stefbuet »

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 :o

Thanks,

Stef.
grumpymonkey
Posts: 222
Joined: Mon Jan 19, 2009 10:03 pm
Location: Miami, Florida
Contact:

Post by grumpymonkey »

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:

Code: Select all

1>c:\users\owner\desktop\irrnewtsdk\examples\terrain\main.cpp(268) : error C2259: 'MyEventReceiver' : cannot instantiate abstract class
then when it finally compiled I got a break point on this line:

Code: Select all

p_world = irr::newton::createPhysicsWorld(device);
Image
Post Reply