Apart from an essential ingredients for cakey goodness. Flour is a multi-purpose Windows command-line tool for converting Ogre Meshes into PhysX ones for use with NxOgre.
The installer for Flour (0.3.2) can be downloaded from your local NxOgre website. As this tool is meant for Artists, You don’t need to install Visual Studio, compile Ogre/NxOgre (don’t worry it has them inside it) or even install the PhysX SDK to use it – but you will need the PhysX System Software though, but luckily I made one specially for you.
The Flour installation tool will silently install it to c:/Program Files/ or c:/Program Files (x86)/ depending on if your Windows is 32-bit or 64-bit.
Open a command prompt, and goto the Flour directory, which you’ll find the lonely fat Flour executable in there.
C:\Program Files (x86)\flour>flourNo command given, try one these: convert, make, remotedebugger, test, version or view If you're in a bit of a pickle, try one of those commands with this "flour what-is <command>"
The test tool will perform a few stressing tests on the PhysX SDK and the NxOgre within. On failure would mean that PhysX is not installed, or Flour was installed incorrectly.
flour test
C:\Program Files (x86)\flour>flour test ---------------------------- NxOgre Single Test ---------------------------- Versions: - NxOgre 1.0.22T5 Bleeding Edge - Ogre 1.6.0 'Shoggoth' Results: - Core: ........ - PASSEDAll tests were sucessfull! ---------------------------------------------------------------------------- OK
The convert tool can convert the following files into;
mesh) into a PhysX (nxs) file as a Convex or Triangle Mesh.mesh) into a NxOgre (xsk) file as a CCD Skeleton.xhf) file as a Heightfield.flour convert params
barrel.meshbarrel.nxsflour convert in: barrel.mesh, into: convex, out: barrel.nxs
flour convert in: skeleton.mesh, into: skeleton, out: skeleton.xsk
flour convert in: image.raw, into: heightfield, out: heightfield.xhf, width: 512, height: 256,
depth: 8, signed: yes