IPhysics - Newton/Irrlicht framework
hey nick, i just asked because i thought newton is not free, i browsed their site to search for the licence details, but i dont really understand it.
do you know if it's free to use for both non-commerial and commercial or just non-commercial use?
your examples look very easy to use so i'd appreciate if newton would be really free so i could use it
good work you have done!
do you know if it's free to use for both non-commerial and commercial or just non-commercial use?
your examples look very easy to use so i'd appreciate if newton would be really free so i could use it
good work you have done!
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
@monkeycracks: hmm - interesting one. I could reproduce those errors by taking that line out of the header. I don't mean to be a bore but check your directories again. Anyone else have issues like this?
@gfxstyler: Yes, Newton is free for commercial as well as non-commercial use, the only requisite being that you notify them of your project.
@gfxstyler: Yes, Newton is free for commercial as well as non-commercial use, the only requisite being that you notify them of your project.
Great lib, but it crashes on
*IPhysicsEntity* levelEntity = physics.addEntity(&level);*
SPhysicsStaticMesh level;
level.mesh = Mesh;
level.meshnode = LevelNode;
level.meshScale = vector3df(0.1f, 0.1f, 0.1f);
level.meshnode->setScale(level.meshScale);
IPhysicsEntity* levelEntity = physics.addEntity(&level);
does any one encouter this?
*IPhysicsEntity* levelEntity = physics.addEntity(&level);*
SPhysicsStaticMesh level;
level.mesh = Mesh;
level.meshnode = LevelNode;
level.meshScale = vector3df(0.1f, 0.1f, 0.1f);
level.meshnode->setScale(level.meshScale);
IPhysicsEntity* levelEntity = physics.addEntity(&level);
does any one encouter this?
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
Sorry to hear that omaremad. Could you elaborate on that a bit? Is that in the level example (the car one) or in your own code? Does Irrlicht load the mesh ok? I'm assuming it does if the call to setScale() doesn't crash. If it's nothing obvious then please post the code and the mesh you're trying to use. Also how big is your level - IPhysics is currently using Irrlicht 1.1 unmodified, which I don't think has the 32bit verticies fix
Its a animated mesh, lightmapped and such.. so do you think that your mesh buffer routines are hard cocded for the Vertex type with one texcoord rather than two? ill have a look at the source.
ok i had a look and i found the code only works for non light mapped meshes aka not of the type vertex S3DVertex2TCoords
ill try a simple fix i hope it works if it does ill inform you.
ok i had a look and i found the code only works for non light mapped meshes aka not of the type vertex S3DVertex2TCoords
ill try a simple fix i hope it works if it does ill inform you.
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
I'm getting an error at line 15 in IPhysicsEntity.h that says
I'm running the codeblocks IDE with GCC.
It's the only thing keeping me from compiling example 1.
Code: Select all
error: initializer specified for non-virtual method 'IPhysicsEntity::IPhysicsEntity()'
It's the only thing keeping me from compiling example 1.
-
- Posts: 34
- Joined: Tue Aug 22, 2006 2:48 pm
- Location: Malaysia
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
@omaremad: ok cool - easy fix. Will sort out.
@twentytortures: Visual C++ EE doesn't complain about that, but commenting out the constructors in IPhysicsEntity still compiles fine (and they're not needed as it's an abstract interface class anyway), so I can easily fix that too.
@Lee Zhi Eng: It's a static library - should work fine with any compiler. Are you having issues using it in DevC++?
@twentytortures: Visual C++ EE doesn't complain about that, but commenting out the constructors in IPhysicsEntity still compiles fine (and they're not needed as it's an abstract interface class anyway), so I can easily fix that too.
@Lee Zhi Eng: It's a static library - should work fine with any compiler. Are you having issues using it in DevC++?
-
- Posts: 98
- Joined: Mon Dec 13, 2004 11:47 am
- Location: Japan
I've just upgraded IPhysics to 1.2, which should fix the vertex problem and also get rid of twentytortures' problem with the redundant constructors. Also had the upshot of making the lib a bit smaller.
Best of all though I've upgraded it to super whizzy doxygen documentation format - much nicer than my html!
Best of all though I've upgraded it to super whizzy doxygen documentation format - much nicer than my html!
-
- Posts: 41
- Joined: Thu Sep 28, 2006 4:34 am
- Location: Eaton, Colorado, United States
Well I was able to get it to compile by changing the code to:
Now I'm getting whole new errors
Anybody know what this means?
It's too bad my experience with GCC is so limited. I feel like a total noob. XD
EDIT:
Ok I changed some build options and got those errors to go away, now I have this:
EDIT 2:
hahahaha. I'm a moron.
Fixed it with a simple
I still have one problem though....
How can I disable this?
I'm leaving all these edits as a reference in case somebody else is as dumb as me.
EDIT 3:
Alright... I have this problem and I have no idea what to do now....
I feel like I'm spamming....
Sorry...
Oh and almost forgot, I upgraded to 1.2. Thanks nick .
Code: Select all
IPhysicsEntity();
Anybody know what this means?
Code: Select all
mingw32-g++.exe: /GX: No such file or directory
mingw32-g++.exe: /W3: No such file or directory
mingw32-g++.exe: /Ox: No such file or directory
EDIT:
Ok I changed some build options and got those errors to go away, now I have this:
Code: Select all
Linking console executable: Irrlicht.exe
.objs\main.obj:main.cpp:(.text+0x19a): undefined reference to `CPhysics::CPhysics()'
.objs\main.obj:main.cpp:(.text+0x1c8): undefined reference to `CPhysics::init(irr::ITimer*)'
.objs\main.obj:main.cpp:(.text+0x2ff): undefined reference to `CPhysics::addEntity(SPhysicsCube*)'
.objs\main.obj:main.cpp:(.text+0x49e): undefined reference to `CPhysics::addEntity(SPhysicsCube*)'
.objs\main.obj:main.cpp:(.text+0x5bc): undefined reference to `CPhysics::update()'
.objs\main.obj:main.cpp:(.text+0x5f8): undefined reference to `CPhysics::~CPhysics()'
.objs\main.obj:main.cpp:(.text+0x637): undefined reference to `CPhysics::~CPhysics()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 20 seconds)
hahahaha. I'm a moron.
Fixed it with a simple
Code: Select all
#include <CPhysics.h>
Code: Select all
mingw32-g++.exe: /Ox: No such file or directory
I'm leaving all these edits as a reference in case somebody else is as dumb as me.
EDIT 3:
Alright... I have this problem and I have no idea what to do now....
I feel like I'm spamming....
Code: Select all
Linking console executable: C:\irrlicht\physics1\physics.exe
.objs\main.o:main.cpp:(.text+0x19a): undefined reference to `CPhysics::CPhysics()'
.objs\main.o:main.cpp:(.text+0x1c8): undefined reference to `CPhysics::init(irr::ITimer*)'
.objs\main.o:main.cpp:(.text+0x2ff): undefined reference to `CPhysics::addEntity(SPhysicsCube*)'
.objs\main.o:main.cpp:(.text+0x49b): undefined reference to `CPhysics::addEntity(SPhysicsCube*)'
.objs\main.o:main.cpp:(.text+0x5b6): undefined reference to `CPhysics::update()'
.objs\main.o:main.cpp:(.text+0x5f2): undefined reference to `CPhysics::~CPhysics()'
.objs\main.o:main.cpp:(.text+0x631): undefined reference to `CPhysics::~CPhysics()'
collect2: ld returned 1 exit status
Oh and almost forgot, I upgraded to 1.2. Thanks nick .
-
- Posts: 34
- Joined: Tue Aug 22, 2006 2:48 pm
- Location: Malaysia