Mesh deformation problem

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
YoJi

Mesh deformation problem

Post by YoJi »

Hi,
In first time i want to apologize my english because i don't speak english very well but i understand english well.
So I've a problem with my .x mesh , my code is easy :

Code: Select all

IAnimatedMesh* Dragonmesh = ism->getMesh("./dragon3.X");                            
    IAnimatedMeshSceneNode* Dragonnode = ism->addAnimatedMeshSceneNode( Dragonmesh );      


    if (Dragonnode)
    {
	   Dragonnode->setMaterialFlag(EMF_LIGHTING, false);
	   Dragonnode->setAnimationSpeed(30);
    }

    ism->addCameraSceneNodeFPS();
When i rotate my camera i don't have any probleme i see my mesh well animated but when i translate my cam i've some "deformation"

May be a person have encounting this problem too , thanks to answer
YoJi

Re: Mesh deformation problem

Post by YoJi »

I post a screenshot of the deformation :
Image
YoJi

Post by YoJi »

No people to help me ?
Isometric God
Posts: 69
Joined: Sun Oct 12, 2003 3:42 pm
Location: Germany

Post by Isometric God »

I have the same problem, but I don´t know what to do .... It does not appear in .obj files, but .obj file suck :-(
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

This looks, as if not all vertices are assigned a bone and thus are never translated. Do the vertices that look distorted move in your animation? If not, then this is the problem. Go back to your modeller and make sure, each vertex is assigned to at least one bone and reexport.
Yoji

Post by Yoji »

Hum i don't understand your answer but i don't have this probleme if i don't translate the camera and in 3Ds max i don't have the problem too.


Thank to you're answer !! :)
YoJi

Post by YoJi »

I Have a new information , if i don't put the setPosition of my caméra in the position of the dragon i have the deformation :(
YoJi

Post by YoJi »

No Idea ? :'(
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

most likely your model is broke

can you provide your model for download so we can verify it?
Image
YoJi

Post by YoJi »

needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

I had the same problem when I tried to export the animation to X too,
verticies vere broken

more worst is that the model of the dragon is loaded properly in DX meshviewer, ... if you can save it there, it will be ok, but meshviewer doesn't have save function allowed :cry: , is there a version that has?
what is this thing...
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I got the same problem. I resaved it in MView.exe and it worked fine, very nice model/animation, BTW! :D

I keep June 2005 version of DX installed, just for mesh view. Here's linbk to MView.exe - http://irrlicht.spintz.com/downloads/MView.exe
Image
YoJi

Post by YoJi »

That Works !!!!!!! Thank you very muchhhhh :)
kiss peace love thx i love u ^^
Post Reply