Author : Pubudu Ranathunga (pubudurana@gmail.com)
Here are the basic steps and simple guide for integrating collision detections in Ogre3D using NxOgre. (For Complete Details : Click Here)
Required Software
- Physx sdk
- NxOgre (Physx wrapper for Ogre)
- Critter (Rendering system for NxOgre)
- Flour (Bounding box constructer for |NxOgre)
Steps carried out to integrate physics project
- Install the Physx SDK to machine and setup Environment variable “PHYSX_DIR” to physx sdk folder path.
- Extract Nxogre and open Nxogre project using VC++.
- Link Physx SDK includes and Lib folder accordingly in VC++ (Tools –> Options –> Projects and Solutions –> VC++ Directories)
- Build the project. (If you have successfully configured NxOgre as earlier steps, a separate sdk folder should have been created inside NxOgre folder)
- Setup environment variable “NXOGRE_DIR” and set path to NxOgre sdk
- Extract Critter to a preferred location and open VC++ project.
- Link with Nxogre and build the project (If successful, a separate sdk folder should have been created inside Critter folder ).
- Include NxOgre and Critter SDK folders to the created project.
- Put all the DLL files in Physx,Nxogre and Critter to release or debug folder of the project accordingly.
- Put LIB files (Physx,Nxogre,Critter) to a folder and link to the project and Start the project.
Steps to build Flour to create bounding boxes
- Extract Flour to a preferred location and link with Nxogre
- Build the Project and put Nxogre and Nxcharacter DLL to use Flour
Steps to build an accurate bounding box
- Export a “.mesh” file from preferd modeling software.
- Convert to “.xml” file using Ogre XML Converter
- Then go to exporters/OgerXML folder in Flour and run ogrexmltoflower.rb file using CMD ( Machine should have Ruby installed )
- Fallow the guidelines on CMD to create .flower file
- Copy that “.flower ” file to the flour release folder and run the command “Flour convert (folwer file name) (folwer file name) .nxs ”
Author : Pubudu Ranathunga (pubudurana@gmail.com)
Recent Comments