[SOLVED] simple 3d char animator
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
FINALY WORKS!!!!
this was my mistake:
the first thing i do when i start with Ogre was instaling the kiloWatt X exporter, but then, when i instal the panda Direct x exporter i did not read this...
coz i instal pandaDX AFTER i instal kWx, that was my mistake.
so, long story short, i reinstall 3ds max 8 and now it works perfect, o warnings, no errors...
so i will say this thread is a [SOLVED] and a BIG THANKS to the one and only belfegor
this was my mistake:
the first thing i do when i start with Ogre was instaling the kiloWatt X exporter, but then, when i instal the panda Direct x exporter i did not read this...
coz i instal pandaDX AFTER i instal kWx, that was my mistake.
so, long story short, i reinstall 3ds max 8 and now it works perfect, o warnings, no errors...
so i will say this thread is a [SOLVED] and a BIG THANKS to the one and only belfegor
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
when i see he .x model in the MView i see it perfect, but when i load it into irrlicht this is what i see
why?
this is the code i'm using:
why?
this is the code i'm using:
Code: Select all
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:main")
#include <irrlicht.h>
using namespace irr;
#pragma comment(lib, "Irrlicht.lib")
IrrlichtDevice* device = 0;
int main()
{
device = createDevice(video::EDT_DIRECT3D9,core::dimension2d<s32>(800, 600));
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
driver->setAmbientLight(video::SColorf(0.1f, 0.3f, 0.3f));
scene::IAnimatedMesh* meshX = smgr->getMesh("testing.X");
scene::IAnimatedMeshSceneNode* meshNode = smgr->addAnimatedMeshSceneNode(meshX);
meshNode->setAnimationSpeed(3000);
meshNode->setPosition(core::vector3df(0.0f, 0.0f, 100.0f));
scene::ICameraSceneNode* cam;
cam = smgr->addCameraSceneNodeFPS(0, 10.0f, 200.0f);
cam->setNearValue(0.1f);
cam->setFarValue(500.0f);
int lastFPS = -1;
while(device->run())
{
driver->beginScene(true, true, video::SColor(255, 128, 128,128));
smgr->drawAll();
driver->endScene();
int fps = driver->getFPS();
if (lastFPS != fps)
{
core::stringw str = L"Irrlicht ver. SVN - Bones Animation [";
str += driver->getName();
str += "] FPS:";
str += fps;
str += " /////////// ALT + F4 to close ////////";
device->setWindowCaption(str.c_str());
lastFPS = fps;
}
}
device->drop();
return 0;
}
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
this is all my folder where i'm working, all the files.
2Mb
http://bandinopla.ifastnet.com/irrlicht_test.rar
u open that with winRAR or winZiP
2Mb
http://bandinopla.ifastnet.com/irrlicht_test.rar
u open that with winRAR or winZiP
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am
is something wrong with this code?
coz thats all the code...
what code whould u use?
Code: Select all
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:main")
#include <irrlicht.h>
using namespace irr;
#pragma comment(lib, "Irrlicht.lib")
IrrlichtDevice* device = 0;
int main()
{
device = createDevice(video::EDT_DIRECT3D9,core::dimension2d<s32>(800, 600));
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* smgr = device->getSceneManager();
driver->setAmbientLight(video::SColorf(0.1f, 0.3f, 0.3f));
scene::IAnimatedMesh* meshX = smgr->getMesh("testing.X");
scene::IAnimatedMeshSceneNode* meshNode = smgr->addAnimatedMeshSceneNode(meshX);
meshNode->setAnimationSpeed(3000);
meshNode->setPosition(core::vector3df(0.0f, 0.0f, 100.0f));
scene::ICameraSceneNode* cam;
cam = smgr->addCameraSceneNodeFPS(0, 10.0f, 200.0f);
cam->setNearValue(0.1f);
cam->setFarValue(5000.0f);
int lastFPS = -1;
while(device->run())
{
driver->beginScene(true, true, video::SColor(255, 128, 128,128));
smgr->drawAll();
driver->endScene();
int fps = driver->getFPS();
if (lastFPS != fps)
{
core::stringw str = L"Irrlicht ver. SVN - Bones Animation [";
str += driver->getName();
str += "] FPS:";
str += fps;
str += " /////////// ALT + F4 to close ////////";
device->setWindowCaption(str.c_str());
lastFPS = fps;
}
}
device->drop();
return 0;
}
what code whould u use?
-
- Posts: 28
- Joined: Fri Nov 24, 2006 11:05 am