problem animating obj in irrlicht

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

problem animating obj in irrlicht

Post by bitarboll »

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
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

OBJ's do not store animation. Save it as an md2 for frame animation, or ms3d, b3d, or x for skeletal animation.
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

thx for this answer but i dont c these formats in maya how can i have these formats in maya
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Try finding a plugin, look for maya .b3d exporter or whatever format you need.
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

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
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Hmm, weird. If you can't find the windows version, try searching for a .ms3d or .x exporter.
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

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
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

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
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

If you have blender, it would probably be best to learn to animate inside of it.
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

may be but maya is more completed i think and i dont want to waste to much time to know how to animate it. there isnt any solution to have a mesh animated in maya and use it in irrlicht there isnt a way to do that
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

What formats can maya export normally?
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

it can export in fbx, mb, ma , dxf, dae, obj,mov, mi i think may eb there is more but i know thios
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Hmm, I think .dae can support animations, right? So if you are doing skeletal, try exporting the mesh as .dae, and then if you want you can import the .dae into blender and export a .b3d.
bitarboll
Posts: 11
Joined: Sat May 02, 2009 11:40 am

Post by bitarboll »

dae doesnt import animation im sorry but i dont know how to have just an mesh animated i dont believe that irrlicht doesnt have a way to import a mesh from maya
Post Reply