winston2020
11-10-2009 21:22:21
Hi, I'm trying to figure this whole NxOgre thing out, but the tutorials seem to be largely out dated. I'm trying to understand how to make a cube, and a plane, and have the cube fall and hit the plane. Would someone be able to post some sample code for this?
carlosmorcerf
11-10-2009 21:30:45
The tutorials are all even out of date. to learn a little more I'm going to the tutorials that have the package PhysiX SDK and looking at the source of NxOgre to understand some things, which slows down enough. Lack of good stuff on a cloth and vehicles (machines) to 1.5.5, this is expected for the stable? I knew it helped with the tutorials. maybe here a few months.
ta what you need to create and understand?
excuse the google translator
winston2020
11-10-2009 21:37:58
The tutorials are all even out of date. to learn a little more I'm going to the tutorials that have the package PhysiX SDK and looking at the source of NxOgre to understand some things, which slows down enough. Lack of good stuff on a cloth and vehicles (machines) to 1.5.5, this is expected for the stable? I knew it helped with the tutorials. maybe here a few months.
ta what you need to create and understand?
excuse the google translator
Just how to create a box, and a plane, and have gravity pull the box onto the plane. I've managed to create a box this way:
OGRE3DBody* crateBody = mRenderSystem->createBody(new NxOgre::Box(boxSize), NxOgre::Vec3(0,20.0f,0), "crate.mesh", desc);
The problem is when I run the app, the box just floats in the air. I've set the scene to have gravity but nothing happens. I just don't understand how everything works together. Does the Body hold a scene node? Should I ever touch the Body's scene node? If I make a scene node, can I attach a body to it?
spacegaier
11-10-2009 22:03:00
WHAT? The tutorials are outdated? No way. I wrote them myself!!!
Just to make sure: Are we talking of them same tutorials? Those from the
NxOgre Portal?
To your problem: Yes, an OGRE3DBody has an internal Ogre::Scenenode. And the scene you want to realize is more or less the one, I created in the second BloodyMess tutorial in the above mentioned NxOgre Portal...
betajaen
11-10-2009 22:27:23
Tutorials aren't outdated. Spacegaier keeps badging me on Steam everytime I make an update to see if it effects the tutorials.
But it sounds like you don't have gravity set in your Scene.
carlosmorcerf
12-10-2009 16:39:53
on the tutorials I meant clothes, machines and raycasting that is there and I'm having to search the source code and physx sdk. the rest ta very thorough and really enjoyed it. nxogre is fantastic!
winston2020 .. what you want ta all described in the tutorials.
start here:
http://www.ogre3d.org/wiki/index.php/Bl ... Tutorial_2
and check the installation of NxOgre here:
http://www.ogre3d.org/wiki/index.php/Bl ... Tutorial_1
worked for me.
spacegaier
12-10-2009 16:55:08
Yeah, it's true...There are still some tutorials missing (e.g. for cloth, machines and raycasting), but they are on my todo list. However, I have some other things going on as well, so I can't say when they will be done. Until then you have to crawl your way thorugh the code and the PhysX SDK documentation yourself...
winston2020
15-10-2009 03:12:03
Thank you. Actually I hadn't found those tutorials, and they helped a lot.
carlosmorcerf
15-10-2009 22:35:37
Yeah, it's true...There are still some tutorials missing (e.g. for cloth, machines and raycasting), but they are on my todo list. However, I have some other things going on as well, so I can't say when they will be done. Until then you have to crawl your way thorugh the code and the PhysX SDK documentation yourself...
yes of course. stayed in expectations, I'm looking forward to it. You could even add the possibility of creating a ogre3dkinematicbody out either through node, like they did with the ogre3dbody. I am creating a connection with the ogremax and it would help a lot.