problem animating obj in irrlicht
problem animating obj in irrlicht
hi
im sorry if u r feed up may be with this question or may be not but i search for my problem, and what i found didnt really help me bcz they use different functions so i dont know if i need to change my functions or no.
my problem is that i modeled an object with aniimation in maya and i export it by using export all so i thought i will have it with animation and when i call it the mesh is there but my animation doesnt work i will show u part of my code so u can terll me what i did wrong.
the code is
mainHero->setMesh(vue->getMesh("essai.obj"));
mainHero->setSceneNode(vue->addAnimatedMeshSceneNode(mainHero->getMesh()));
mainHero->getSceneNode()->setScale(vector3df(1.0,1.0,1.0)); // Scaling if necessary
//mainHero->getSceneNode()->setMaterialTexture( 0, driver->getTexture("monster.BMP") ); // Texturing of the character
mainHero->getSceneNode()->setMaterialFlag(video::EMF_LIGHTING, false); // on définit cet objet comme le capteur pour notre device
mainHero->getSceneNode()->setAnimationSpeed(12); // Speed of the animation
mainHero->getSceneNode()->setFrameLoop(1,14); //Frames in the animation that we loop : Idle position
im sorry if u r feed up may be with this question or may be not but i search for my problem, and what i found didnt really help me bcz they use different functions so i dont know if i need to change my functions or no.
my problem is that i modeled an object with aniimation in maya and i export it by using export all so i thought i will have it with animation and when i call it the mesh is there but my animation doesnt work i will show u part of my code so u can terll me what i did wrong.
the code is
mainHero->setMesh(vue->getMesh("essai.obj"));
mainHero->setSceneNode(vue->addAnimatedMeshSceneNode(mainHero->getMesh()));
mainHero->getSceneNode()->setScale(vector3df(1.0,1.0,1.0)); // Scaling if necessary
//mainHero->getSceneNode()->setMaterialTexture( 0, driver->getTexture("monster.BMP") ); // Texturing of the character
mainHero->getSceneNode()->setMaterialFlag(video::EMF_LIGHTING, false); // on définit cet objet comme le capteur pour notre device
mainHero->getSceneNode()->setAnimationSpeed(12); // Speed of the animation
mainHero->getSceneNode()->setFrameLoop(1,14); //Frames in the animation that we loop : Idle position
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
thx for ur quick answers.
now is there anyone know a plugin bcz i dont know where to start but i found a plug in maya but in linux they ssay there is for windows but they dont show the link. here is a link may be i miss something can anyone tell me if this is ok to use or no
http://www.bcchang.com/research/vr/b3d.php
now is there anyone know a plugin bcz i dont know where to start but i found a plug in maya but in linux they ssay there is for windows but they dont show the link. here is a link may be i miss something can anyone tell me if this is ok to use or no
http://www.bcchang.com/research/vr/b3d.php
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
there is a guy that did blitz3d exporter is it the same
here is the link
http://lordshion.over-blog.com/article-25387149.html
im sorry to bother with these question
here is the link
http://lordshion.over-blog.com/article-25387149.html
im sorry to bother with these question
i dont believe it im searching for an exporter for maya and each time there is a problem or the exporter doesnt existe for maya or it existe but dont work correctly.
i even installed blender and i got b3d exporter for blender and now i cant export from maya to blender pls anyone can tell me just how i can get from maya a b3d pls i heard that b3d is the best for animated mesh. anyone can help
i even installed blender and i got b3d exporter for blender and now i cant export from maya to blender pls anyone can tell me just how i can get from maya a b3d pls i heard that b3d is the best for animated mesh. anyone can help
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
Lonesome Ducky
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm