[Solved]Own Application class

Bob

21-02-2007 11:00:09

I will write my own Application class based on the SimpleTutorialEihort class
without betagui.

I tried to remove all betagui thinks but then I got a lot of errors so I think is better to start writing from ground up.

But I donĀ“t know where to start and whats the basic needs of nxogre.

I hope somebody can give me some tips :D

betajaen

21-02-2007 11:19:32

The SimpleTutorialEihort is just an example, a badly written example. But an example just the same, I wouldn't recommend anyone basing it on their application. But the setup is almost the same as Ogre.

When you include them in your code, it goes:
#include <NxOgre.h>
#include <Ogre.h>


Make sure you reference the correct include directories in your project settings:

$(OGRE_HOME)\include\
$(OGRE_HOME)\..\Dependencies\include
$(PHYSX_DIR)\SDKs\PhysXLoader\include
$(PHYSX_DIR)\SDKs\Physics\include
$(PHYSX_DIR)\SDKs\Foundation\include
$(PHYSX_DIR)\SDKs\Cooking\include
$(PHYSX_DIR)\SDKs\NxCharacter\include
$(NXOGRE_DIR)\include


And make sure the linker settings are correct

$(OGRE_HOME)\lib
$(OGRE_HOME)\..\lib
$(OGRE_HOME)\lib\$(ConfigurationName)\
$(OGRE_HOME)\..\Dependencies\lib\$(ConfigurationName)\
$(NXOGRE_DIR)\compiler\NxOgre.VC8\$(ConfigurationName)\lib
$(PHYSX_DIR)\SDKs\lib\win32\
$(PHYSX_DIR)\SDKs\Physics\lib\win32\Release
$(PHYSX_DIR)\SDKs\Cooking\lib\win32\Release
$(PHYSX_DIR)\SDKs\NxCharacter\lib\win32\Release


OgreMain.lib
PhysXLoader.lib
NxCooking.lib
NxCharacter.lib
nxOgre.lib



It may seem a bit much, but it's not really. Once you have it in, you can forget it's there then.

Have fun! :D

Bob

21-02-2007 11:31:30

That was not the problem to me.

but thanks for the listing.

I see in the Run function that there are Initialization for mWindow,mSceneMgr
etc.

So Is the only think I need in my own class as example a run function that
creates the SceneMgr,camera... like in a basic ogre application or what more do I need to setup an initialise for nxogre?

betajaen

21-02-2007 11:48:43

Yep, that is all for Ogre.

NxOgre only requires you to store a copy of the World class for you - mWorld. Create it and destroy it when needed.

There are some cases where the debug manager needs a copy of the camera but again not needed for beginners.

Essentially what you see in the code of NxTutorial101.cpp is needed to start and stop NxOgre.

Bob

21-02-2007 11:56:21

Thanks that's was helpfull :D

Now I can begin.

Also I would be nice if there where tutorial of this basics in the wiki.

So when I finished my basic class I put it in the ogre wiki.