Jump to content

Bugs animations Rotation Blender in BabylonJS


Zino54220
 Share

Recommended Posts

Hi everyone,

I have a new problem.

My scene is finished and I need to animate several meshes.

When I use "Location" animation, always is good but if I use a "Rotation" animation, all objects animated become wrong. Here an example with screen shots :

Cas 1. Start animation rotation of plan mesh (in background of the scene, selected in Blender in orange) :

cas1.thumb.jpg.780df2176aa0bad2c04c5937a29d9acb.jpg

Cas 2. first rotation like we open a door :

cas2.thumb.jpg.f7dfd0a5a4df8d82b9616cc2c047e84d.jpg

Cas 3. back to origin position :

cas3.thumb.jpg.aae6ba19902f5dbe8d4ba42d90778550.jpg

cas 4 : after export, many problems and same render like here in babylonJS :

cas4.thumb.jpg.d9e8340f131e475b0ca2627db2c1f810.jpg

You can see all meshes animated are offset or anything else ... What I'm doing wrong please ?

Thanks !

 

Link to comment
Share on other sites

@Zino54220 : Some suggestions following similar experiences I encountered where objects jump after export, I think I solved it by:

Apply the scale of the offending objects: Ctrl + A, Scale (always the first thing I'd try)

I guess this door is parented? If so, try unparenting it. If it's not parented, then parent it... best to try both - just in case.

If after trying the above and it still not working, you can create a new scene (in a new file) and appending: File > Append all the objects from the old scene.

PS. And as per above post, make sure animation name is ObjectName-Action.

 

Edited by babbleon
Link to comment
Share on other sites

Thank you very much for your answers.

I found the solution after trying your methods.

First, I have rename the vertex groups like this : "objetc_Data".

Then, just go to the "Animation" tab, click on "calculate" below "Motion path" which then becomes "update", click on "bake action" and leave the default setting. We can see that after the manipulation, several "Key Frames" are automatically created on the animated objects.

After that, you will have the right animations for the rotations and no impact on the other objects already animated.

5abd2361b95b7_buganimationrotationresolusBJS.thumb.jpg.d7f507f96b5bad535236964a4ba9dff9.jpg

I hope however that these added "Key frames" won't make the scene too heavy because I had already made a topic about display performance issues when I first loaded the scene once deployed on Azure.

Thank you all once again ! :)

merci.thumb.jpg.ea06914bd64528ceeb68757d718a7a1f.jpg

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...