Basic problems

radsun

18-10-2007 08:27:46

I use Basic Tutorial 1 from ogre wiki and trying to add some pices of code from OgreOde Walking Character but its not working :?

These is my code:
#include "ExampleApplication.h"
#include "OgreOde_Core.h"
#include "OgreOde_Prefab.h"
#include "OgreOde_Loader.h"

OgreOde::World *_world;

class MarshintoApp : public ExampleApplication
{
protected:
public:
MarshintoApp(){}
~MarshintoApp(){ }
protected:
void createScene(void)
{
Entity* ninja = mSceneMgr->createEntity("ninja","ninja.mesh");
SceneNode* ninjaNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("ninja");
SceneNode* modelNode = ninjaNode->createChildSceneNode("ninja_model");
modelNode->attachObject(ninja);
ninjaNode->setScale(0.25,0.25,0.25);

AxisAlignedBox aab = modelNode->getAttachedObject("ninja")->getBoundingBox();
Ogre::Vector3 min = aab.getMinimum()*ninjaNode->getScale();
Ogre::Vector3 max = aab.getMaximum()*ninjaNode->getScale();
Ogre::Vector3 center = aab.getCenter()*ninjaNode->getScale();
Ogre::Vector3 size(fabs(max.x-min.x),fabs(max.y-min.y),fabs(max.z-min.z));
float radius = (size.x>size.z)?size.z/2.0f:size.x/2.0f;

OgreOde::SimpleSpace* dollSpace = new OgreOde::SimpleSpace(_world,_world->getDefaultSpace());
}
};

#include "windows.h"

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
{
MarshintoApp app;

try
{
app.go();
} catch( Exception& e ) {
MessageBox( NULL, e.getFullDescription().c_str(), "BÅ

Aquatix

18-10-2007 09:07:48

Its quite simple - the "include" folder from OgreOde and ODE, and the libs: OgreOdeCore.lib, ode.lib

radsun

18-10-2007 12:59:25

Where is OgreOdeCore.lib :?: I cant find it and when compiling ogreode_core i geting 6 error(s), 284 warning(s) :(

Aquatix

18-10-2007 13:40:46

Where is OgreOdeCore.lib
Well, this is what you get as a result of your compilation. :)

Anyway, below is a link to precompiled lib's and dll's. The "includes" folder is also there. Hope you know where to put them (should be somewhere in your project).
They work with Ogre Eihort 1.4.5, and ode 0.9 (ode is there already). The OgreODE is the CVS version (no official release at the moment). Hope it works!

http://rapidshare.com/files/63415009/OgreODE_SDK.rar