add a car from SampleRaycastCa to my world

OGL

27-03-2009 20:18:17

Hi,
suggestions welcome on what should be done to add on stage, based on baseapplication, a vehicle from example named SampleRaycastCar?
:roll:

nargil

27-03-2009 20:27:41

My suggestion: start writing your code.

WTF ?! What do you need a sugestion for ? Is there something you don't understand ? In base application ? In NxOgre ? You can simply copy paste the physx code to your ogre/nxogre application. Use NxOgre::Scene::getNxScene() and use pure physx there.

spacegaier

27-03-2009 20:33:09

Well, please explain it a bit more in datail what you want. Do you want to build this PhysX SDK sample with NxOgre? Do you already have basic experience with NxOgre (which versions)?

OGL

27-03-2009 20:56:12

Yes, exactly, I would like to have such a vechicle in my NxOgre app.
I have basic experience with bloodymess(I'm learning it now).
I have created a 3D world of my City in Ogre 1.6.1. and now I would like to add a physics in it.
Frome tutorials on wiki I managed to do so but I dont now how to creat a car to drive around the city...

PS.
I never dealt with physics in applications and for me they are new and unknown things.
This may my be sily question for someone like my country man nargil, but I only ask for suggestions and nothing more.
Peace

OGL

27-03-2009 21:23:16

if anyone knows how to get rid of these errors?

1>NxOgre_OPOLE.obj : error LNK2001: unresolved external symbol "bool * keyDown" (?keyDown@@3PA_NA)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: static class NxVehicle * __cdecl NxVehicle::createVehicle(class NxScene *,class NxVehicleDesc *)" (?createVehicle@NxVehicle@@SAPAV1@PAVNxScene@@PAVNxVehicleDesc@@@Z) referenced in function "void __cdecl createCarWithDesc(class NxVec3 const &,bool,bool,bool,bool,bool,class NxPhysicsSDK *)" (?createCarWithDesc@@YAXABVNxVec3@@_N1111PAVNxPhysicsSDK@@@Z)
1>NxOgre_OPOLE.obj : error LNK2001: unresolved external symbol "class NxScene * gScene" (?gScene@@3PAVNxScene@@A)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall MemoryWriteBuffer::~MemoryWriteBuffer(void)" (??1MemoryWriteBuffer@@UAE@XZ) referenced in function "void __cdecl createCarWithDesc(class NxVec3 const &,bool,bool,bool,bool,bool,class NxPhysicsSDK *)" (?createCarWithDesc@@YAXABVNxVec3@@_N1111PAVNxPhysicsSDK@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall MemoryReadBuffer::~MemoryReadBuffer(void)" (??1MemoryReadBuffer@@UAE@XZ) referenced in function "void __cdecl createCarWithDesc(class NxVec3 const &,bool,bool,bool,bool,bool,class NxPhysicsSDK *)" (?createCarWithDesc@@YAXABVNxVec3@@_N1111PAVNxPhysicsSDK@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: __thiscall MemoryReadBuffer::MemoryReadBuffer(unsigned char const *)" (??0MemoryReadBuffer@@QAE@PBE@Z) referenced in function "void __cdecl createCarWithDesc(class NxVec3 const &,bool,bool,bool,bool,bool,class NxPhysicsSDK *)" (?createCarWithDesc@@YAXABVNxVec3@@_N1111PAVNxPhysicsSDK@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "bool __cdecl CookConvexMesh(class NxConvexMeshDesc const &,class NxStream &)" (?CookConvexMesh@@YA_NABVNxConvexMeshDesc@@AAVNxStream@@@Z) referenced in function "void __cdecl createCarWithDesc(class NxVec3 const &,bool,bool,bool,bool,bool,class NxPhysicsSDK *)" (?createCarWithDesc@@YAXABVNxVec3@@_N1111PAVNxPhysicsSDK@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: __thiscall MemoryWriteBuffer::MemoryWriteBuffer(void)" (??0MemoryWriteBuffer@@QAE@XZ) referenced in function "void __cdecl createCarWithDesc(class NxVec3 const &,bool,bool,bool,bool,bool,class NxPhysicsSDK *)" (?createCarWithDesc@@YAXABVNxVec3@@_N1111PAVNxPhysicsSDK@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: void __thiscall OrthographicDrawing::drawLine(float,float,float,float)" (?drawLine@OrthographicDrawing@@QAEXMMMM@Z) referenced in function "void __cdecl renderHUD(class OrthographicDrawing &)" (?renderHUD@@YAXAAVOrthographicDrawing@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: void __thiscall OrthographicDrawing::drawCircle(float,float,float,float,float,float,int,int)" (?drawCircle@OrthographicDrawing@@QAEXMMMMMMHH@Z) referenced in function "void __cdecl renderHUD(class OrthographicDrawing &)" (?renderHUD@@YAXAAVOrthographicDrawing@@@Z)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: void __thiscall OrthographicDrawing::drawText(int,int,char const *)" (?drawText@OrthographicDrawing@@QAEXHHPBD@Z) referenced in function "void __cdecl renderHUD(class OrthographicDrawing &)" (?renderHUD@@YAXAAVOrthographicDrawing@@@Z)
1>NxOgre_OPOLE.obj : error LNK2001: unresolved external symbol "private: static class NxVehicle * NxAllVehicles::_activeVehicleP" (?_activeVehicleP@NxAllVehicles@@0PAVNxVehicle@@A)
1>NxOgre_OPOLE.obj : error LNK2019: unresolved external symbol "public: static void __cdecl NxAllVehicles::handlePair(class NxContactPair &,unsigned int)" (?handlePair@NxAllVehicles@@SAXAAVNxContactPair@@I@Z) referenced in function "public: virtual void __thiscall MyContactReport::onContactNotify(class NxContactPair &,unsigned int)" (?onContactNotify@MyContactReport@@UAEXAAVNxContactPair@@I@Z)
1>bin\Debug\NxOgre_OPOLE.exe : fatal error LNK1120: 13 unresolved externals[code][/code]

nargil

27-03-2009 21:26:17

I never played around with nxOgre 1.5. Don't know if wheels are already implemented there. If no then you will have to get the nx-physx scene, and work with the physx api instead of nxogre (you can keep what you already have in nxogre).

For the errors: Include physx libraries to your linker.

betajaen

27-03-2009 21:43:40

For the errors: Include physx libraries to your linker.

You don't need to link or include to PhysX in BloodyMess anymore.

nargil

27-03-2009 22:26:43

but clearly he is using the nx phyx sdk. look at the class namex: NxVec3, NxPhysicsSDK, NxScene... etc.

Does 1.5 have wheels ?

betajaen

27-03-2009 22:43:59

Does 1.5 have wheels ?

No, I haven't added the Wheel classes yet.

@OGL

Please use the latest Bleeding, it has wheels/vehicle code, and is better than modifying the example code given by the SDK.