yuriythebest
16-01-2008 13:36:45
right, I've managed to integrate nxogre into my project, but where can I get any examples/demos/documentaion on nxogre?? physX has great examples and tutorials but they do not seem applicable to nxogre. The only documentation "wiki" I've found so far is on
www.nxogre.com but that's just 3 lines of code on how to add a simple object with mass.
betajaen
16-01-2008 13:40:16
http://www.nxogre.org/shortguide/
Still be written but you'll find it useful.
[Edit]
You should have a look at Cake as well.
p.s. It's a capital "n" in NxOgre. Never a small.
yuriythebest
16-01-2008 14:20:11
cool, that was quite informative but how come all the actors I create are invisible?
my code:
World* mHax = new NxOgre::World();
Scene* mPhysScene=mHax->createScene("My Scene",mSceneMgr,"gravity: yes, floor: yes");
// ogreHead is visible, affected by actor
Body* mBody = mPhysScene->createBody("myBody; ogrehead.mesh", new CubeShape(1,1,1),Vector3(0,160,0),"mass: 30");
//actor is invisible, but affects ogrehead
Actor* mActor=mPhysScene->createActor("Spot",new CubeShape(1.0f),Vector3(0,2,0),"mass:10");
also, now that I've finished reading that where do I get info on nxogre parameters?
betajaen
16-01-2008 14:37:13
Actors are always invisible. Bodies aren't. But the reason why your Body seems to be invisible is because the Camera is most likely inside the Ogre head (which is huge by the way).
You should use Cake when your new to NxOgre, to play with things. And it comes with all the nice meshes like cube.1m.mesh.
yuriythebest
16-01-2008 14:49:17
Actors are always invisible. Bodies aren't. But the reason why your Body seems to be invisible is because the Camera is most likely inside the Ogre head (which is huge by the way).
You should use Cake when your new to NxOgre, to play with things. And it comes with all the nice meshes like cube.1m.mesh.
nono my body is visible- it was the actors that weren't. guess everything is fine then
thanks for answering so fast, I'll check out cake.
Artic_Ice83
16-01-2008 22:20:21
Hi! if you read in the short guide, if i don't remember wrong, there is a point that say that the actor haven't a visible rapresentation but only a "physical" one. in fact, if you see the body class it is an actor that has associated an entity (the mesh and so it is visible) and a scene node.
correct me if i'm in error...
betajaen
16-01-2008 22:31:49
Yep. Bodies are Actors with some visual representation (Node/Entity combination in 0.9 or a NodeRenderable in Bleeding).
But you don't have use them. I expect most people would make their own in bigger projects. Usually using the NxOgre body class as a guide. There isn't a description on how to do it in the guide, but there is at least two forum posts about it, as well as whole chunk of comments in NxOgreActor.h explaining it.