[SOLVED]'Body' : is not a member of 'NxOgre'

sungoco

14-10-2009 03:18:25

why? i am using nxogre 1.5.5 + physx 2.8.1

code is: virtual NxOgre::Body* createTerrainFromWorldGeometry(
const NxOgre::NxString& terrainConfigurationFilename,
NxOgre::Pose& pose = NxOgre::Pose(),
const NxOgre::NxString& actorParams = "static: yes",
const NxOgre::NxString& shapeParams = "" );

but i can't build the code. error is: 'Body' : is not a member of 'NxOgre' & 'NxString' : is not a member of 'NxOgre'

how can i fix them?

sungoco

14-10-2009 06:06:22

:( my game code used nxogre 0.9,now i want it run with nxogre 1.5.5. how ?

spacegaier

14-10-2009 07:16:39

Well, NxOgre 0.9 (outdated!) is not compatible with NxOgre 1.5.x (called BloodyMess).
NxOgre is now independent of Ogre (so you could as well use another renderer if you like), but still comes with special classes to fill the gap between Ogre and PhysX.

So NxOgre::Body from 0.9 became OGRE3DBody in 1.5.x (not in the NxOgre namespace).

Have a look at the BloodyMess tutorials I wrote in the NxOgre Portal.

sungoco

14-10-2009 07:45:32

oh, i looked at the portal but i cann't find anyting i need. maybe i am not careful enough.

indeed, i need a list of the changes.

ver 0.9 has so many differences with ver 1.5.x;

i have 1442 errors in my projects,when i updated my nxogre.

spacegaier

14-10-2009 07:52:28

Well, step through the tutorials to sere how everything is done now with 1.5.X.

There is no changelog from 0.9 to 1.5.5 as there are way too many changes and there was even been an additional version between the two (BleedingEdge, whose usage is definetly NOT encouraged).

sungoco

14-10-2009 08:29:26

:cry:

spacegaier

14-10-2009 08:59:14

Where is the problem? The basics are all covered and you should be able to adopt them to your existing codebase.

sungoco

14-10-2009 10:01:56

i'll start from tutorials

betajaen

14-10-2009 11:37:37

Basically the big differences from 0.9/Bleeding are;

- Params are now Descriptions and they don't use inline strings anymore.
- Actors are split into four types; Actors, StaticGeometries (Static Actors), KinematicActors (Kinematic Actors) and Volumes (Triggers) - they all inherit from a main class called RigidBody.
- Body like in 0.9 is considered a Rendered Actor. But since BloodyMess uses a RenderSystem independence API, Body is regarded a blank name for any class that inherits Actor and does something on the screen. The most common one is the OGRE3DBody class.