IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

Added a differential to the cars in the IrrOdeCar demo to make them more controllable. This differential can be switched off (default key: "D")
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

A new version is online. This time it's a step to get a better separation between the ODE and Irrlicht. Updates to the properties of bodies and joints (at the moment Hinge and Hinge2) are now completely sent through the message queue instead of querying some parameters from the ODE, plus I added some dirty fog (seems I have a problem with pollution in the IrrOdeCar demo ;) ).
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

Uploaded an update yesterday. I removed some joints (only "Fixed", "Hinge", "Hinge2" and "Slider" are left ... the ones I need ... if anyone needs one of the removed joints just tell me and I'll re-integrate them), and I worked on the car model in the IrrOdeCar demo ... it does now have a V8 engine (still ugly, but a V8 ;) ).
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

Some changes:

the cars, helicopters and planes do now have a rearview camera
modified car and plane models
Joint events can now be prevented from being serializes
Fixed texturing problem of roads
Enhanced road loader
Fixed normal problem in the road loader
Added exhaust smoke to car (if boost is active)
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

Added the missing clone functionality for the new joint attributes added with the last upload + added a switch to the IrrOdeCar demo to turn the rearview monitors on and off.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

Finally another update of IrrOde:

Cleanup of the IrrOde car scene
modified the car's model
added steeringwheel to the car
little bugfix in IrrOdeGeomTrimesh: initial mass is now 1
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
ulao
Posts: 274
Joined: Fri Mar 28, 2008 2:13 am

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by ulao »

I downloaded irrODE.zip guessing this is the latest(2011-12-25 )? I get this crash after I call

pManager->getPhysManager()->initPhys();


Image

This crashes on the line that runs the Init for the ODE. Any thoughts?

Also are you planning to use coppercube, or sticking with irredit?
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

Sorry, I got no idea what this could be. Maybe you should try to link ODE as a static lib to the program.

For the moment I'll stick to IrrEdit, does Copperlicht support plugins? (Btw: I do at the moment not have the time to do much freetime programming :( )

Edit: found a thread about your problem: http://www.codeguru.com/forum/showthrea ... did=366290
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
ulao
Posts: 274
Joined: Fri Mar 28, 2008 2:13 am

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by ulao »

interesting but I'm not doing an exported DLL. I'm just using a lib?

maybe more so as Posted 23 March 2005 - 06:37 PM on this tread.
http://www.gamedev.net/topic/308819-run ... f-esp-was/
Being the only change was using your 2011 lib/dll.

Still not able to figure it out though. Is swapping the dll and lib all I need to do going from you 09 to 11 build?

-------------------------------------------------------------
One thing about libs and dlls I never liked is there is no way to know what version it is. Below is a list of your files ( in the zip ) and my files.
Image
Not a one but irrOdeEdit is the same in size. I know the single may change since you are require to build it, but not sure why irrlicht and klang would be any different.
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

The IrrOdEdit dll has changed, but that's OK as it's only the IrrEdit plugin. I think it's been a long time since I re-compiled the ode_single.dll, so that should not be a problem, and Irrlicht.dll is out of the package (I only compile the mingw version myself, and I guess you are still using the Visual-C versions).
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
ulao
Posts: 274
Joined: Fri Mar 28, 2008 2:13 am

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by ulao »

yup VC version out of the package. hurm... od.

I use a file irrOde.lib ( one for Debug one for Release ), was is irrLibOde? ( debug or release )
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

It was irrode.lib, but I removed the binaries for VC. I'll add them again and upload a new package in a moment, and I hope it will work then.
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
ulao
Posts: 274
Joined: Fri Mar 28, 2008 2:13 am

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by ulao »

ok cool maybe so. I tried to build it from source and it made the irrlibODe.lib file but when using it in my source I get missing symbols

LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW

I did make sure to build for debug.


I also see a irrOde.sln and I tried to build that. Now the lib is much bigger. only getting

Code: Select all

LINK : warning LNK4199: /DELAYLOAD:OleAcc.dll ignored; no imports found from OleAcc.dll
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol _dJointGetPRAngle referenced in function "public: virtual float __thiscall irr::ode::CIrrOdeDevice::jointGetPrAngle(unsigned int)" (?jointGetPrAngle@CIrrOdeDevice@ode@irr@@UAEMI@Z)
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol _dJointGetPRAngleRate referenced in function "public: virtual float __thiscall irr::ode::CIrrOdeDevice::jointGetPrAngleRate(unsigned int)" (?jointGetPrAngleRate@CIrrOdeDevice@ode@irr@@UAEMI@Z)
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointSlider::CIrrOdeEventJointSlider(class irr::ode::CIrrOdeJoint *,float,float)" (??0CIrrOdeEventJointSlider@ode@irr@@QAE@PAVCIrrOdeJoint@12@MM@Z) referenced in function "public: virtual class irr::ode::IIrrOdeEvent * __thiscall irr::ode::CIrrOdeDevice::writeEventFor(class irr::ode::IIrrOdeEventWriter *)" (?writeEventFor@CIrrOdeDevice@ode@irr@@UAEPAVIIrrOdeEvent@23@PAVIIrrOdeEventWriter@23@@Z)
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointHinge2::CIrrOdeEventJointHinge2(class irr::ode::CIrrOdeJoint *,float,float,float)" (??0CIrrOdeEventJointHinge2@ode@irr@@QAE@PAVCIrrOdeJoint@12@MMM@Z) referenced in function "public: virtual class irr::ode::IIrrOdeEvent * __thiscall irr::ode::CIrrOdeDevice::writeEventFor(class irr::ode::IIrrOdeEventWriter *)" (?writeEventFor@CIrrOdeDevice@ode@irr@@UAEPAVIIrrOdeEvent@23@PAVIIrrOdeEventWriter@23@@Z)
irrode.lib(CIrrOdeDevice.obj) : error LNK2019: unresolved external symbol "public: __thiscall irr::ode::CIrrOdeEventJointHinge::CIrrOdeEventJointHinge(class irr::ode::CIrrOdeJoint *,float,float)" (??0CIrrOdeEventJointHinge@ode@irr@@QAE@PAVCIrrOdeJoint@12@MM@Z) referenced in function "public: virtual class irr::ode::IIrrOdeEvent * __thiscall irr::ode::CIrrOdeDevice::writeEventFor(class irr::ode::IIrrOdeEventWriter *)" (?writeEventFor@CIrrOdeDevice@ode@irr@@UAEPAVIIrrOdeEvent@23@PAVIIrrOdeEventWriter@23@@Z)
I had this once before and you had me remove some joint stuff, I forget how that worked.
Brainsaw
Posts: 1176
Joined: Wed Jan 07, 2004 12:57 pm
Location: Bavaria

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by Brainsaw »

OK, I am currently uploading a new version. I have added the libIrrOde.lib, the IrrOdEditExample and the necessary dlls again. But you have to build the single precision ode lib file yourself, apart from that everything should now be there (including a test program to see that it really works).
Dustbin::Games on the web: https://www.dustbin-online.de/

Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
ulao
Posts: 274
Joined: Fri Mar 28, 2008 2:13 am

Re: IrrODE - an Irrlicht - ODE wrapper (now with SVN)

Post by ulao »

by "single precision ode lib" so you mean the ode_single.lib ? Because I already have my own.

Also I can not try the examples as the file "..\source\IrrOdEditExample\main.cpp" is not there. Also all tuts have only pix folders?

Oh, woudl you happen to know what calling convention ODE uses? __stdcall or __cdecl, I have yet to figure out where this is entered. I hate sites that go all wiki, so hard to get what you need on them. I know the default is cdecl for VS, but maybe you set this up in the environment? What are you using?

I checked my sln for irrOde and its __cdecl (/Gd) , as is my project.


Also I found this in the irrlicht forums ( some sort of a QA )
I rebuilt Irrlicht / installed a new SDK on Windows, and now when I run I get this error:

Run-Time Check Failure #0
The value of ESP was not properly saved across a function call.
This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.



This happens when your headers and Irrlicht.lib don't match your Irrlicht.dll. You're using old headers/lib with a new dll, or vice versa. Ensure that you don't have an old Irrlicht.dll in your application's directory or in a system path.
I did use the latest headers aswell.
Post Reply