OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: NxOgre Tutorial Usefull Things
View page
Source of version: 2
(current)
!!Debug Renderer What is debug renderer? It's a very helpfull thing! You can use it to automaticly draw boundinboxes, orientations, forces and joints. Only thing you must to do is add this line after creating World: {CODE(wrap="1", colors="c++")} mNxWorld->createDebugRenderer(mSceneMgr);{CODE} The mSceneMgr is a ogre stuff so if u creating your own project it can have different name. !!Remote Debugger Here comes another usefull tool. You can found it in ''$(PHYSX_DIR)/bin/win32/RemoteDebugger.exe''. It's something like debug renderer but it can work on another monitor/computer. It not only show what debug renderer can do, but it also give you ability to move objects using mouse, pause, show statiscics and watch saved video frame by frame. To use it simply write this code: {CODE(wrap="1", colors="c++")} mNxWorld->getPhysXDriver()->createDebuggerConnection(ip,port);{CODE} If you runing on the same computer leave it empty (). You can change port in remote debugger options. Remote debugger will really slow your app so don't run it if u don't need it. !!Hardware scene You can make one your scene hardware. What does it mean? The main thing in NxPhysics is that you can use AGEIA PhysX card. The physic card will do the same thing for physic like graphic card for graphic so the cpu get more time ;) But the hardware have some limits: * only one application can use it at the same time * only one scene can use hardware mode, other software To create hardware scene while createing add this param: {CODE(wrap="1", colors="c++")} "simulation-type:hardware"{CODE} It will make it hardware. Propably u won't have physx card so it will run in software anyway ;) !!NxOgre log Another usefull thing is NxOgre log. NxOgre is creating two files: * NxOgre.html - sometimes you can find there errors * [http://NxOgre.leaks.html|NxOgre.leaks.html] - contains number of created and deleted objects. If u not release something it will be written here. To get log information NxOgre need to be release at end. Read below. !!Releasing NxOgre The thing u shuld do at end is release NxOgre World. It's really easy: {CODE(wrap="1", colors="c++")} delete mNxWorld;{CODE} You can also while in game delete scene: {CODE(wrap="1", colors="c++")} mNxWorld->destroyScene("scene name"); mNxWorld->destroyAllScenes();{CODE} If u created debug renderer u can destroy it any time u want: {CODE(wrap="1", colors="c++")} mNxWorld->destroyDebugRenderer();{CODE} !!Info Feel free to edit this if you think it can be better. Problems? Quesions? [http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=7938&sid=11f8ff741c253e55245c1d6468529a81] --- {INCLUDE(page="NxOgre tpl")}{INCLUDE}
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
131 online users