3D Animation example with Blender

104 views
Skip to first unread message

Lorenzo Ferro

unread,
Nov 12, 2024, 2:34:24 AM11/12/24
to JaamSim Users Discussion Group
Hello.

I tried to use Blender to make a DAE file similar to the one of the "3D Animation" example (that was originally created using 3DMAX animation layers) but unfortunately without success. The DAE 3D object is correctly generated but the animations are not recognized by Jaamsim in the CustomOutputList and I get a Warning in the log file.

Is there anyone who was able to make a compatible 3D Animation file with Blender?

Thank you.
Lorenzo 

Cristiano Silva

unread,
Nov 12, 2024, 7:58:19 AM11/12/24
to Lorenzo Ferro, JaamSim Users Discussion Group
Yes.

I already created it.

Here is a video of me with the files I created in Blender.

It's a playlist.

It has English subtitles.

Video 1 :
4:45

Video 2 :


Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'


--
You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/955edc3f-4bb2-46be-81ee-d1b33f6c92e2n%40googlegroups.com.

Lorenzo Ferro

unread,
Nov 12, 2024, 1:33:43 PM11/12/24
to JaamSim Users Discussion Group
Hello Cristiano.
Thank you for your reply. I already saw your your YouTube videos in the past when I was approaching JaamSim for the first time.
I'm able to import Collada files (.DAE and also other formats) in my JaamSim models, using the 3D objects as Display Entities or SimEntities like you did in your examples.
My point is different. I'm not able to generate Collada files containing Animations like the ones of the "3D Animation" example that Harry and his staff made by means of the animation layer function of 3Dmax. These 3D objects can have multiple cinematic degrees of freedom that can be listed in the CustomOutputList and actuated by some JaamSim simulation variable. For example, you can model a robotic arm like shown it the "3D Animation" example.
I was trying to figure out how to replicate something similar by means of Blender.
We should also consider that in the future releases of Blender the .DAE files will be deprecated, even thou one can always download and use a previous version of Blender.

@ Harry: is JaamSim capable to import also other kind of Animation (layers) files different from the Collada .DAE?

@ All: Is it possible to use Blender for making animation layers to be actuated by JaamSim?

Thank you,
Lorenzo

Harry King

unread,
Nov 12, 2024, 3:34:47 PM11/12/24
to JaamSim Users Discussion Group
Hi Lorenzo,

JaamSim allows GLB files to be imported. This is the preferred format for 3D content. It is a simpler and more reliable format than DAE and it has the advantage that everything is included (no broken links to texture files). Blender can export animated content to this format.

Only certain types of animation can be handled by JaamSim. For example, you cannot use skin-and-bones type animations. The only types of animation that can be used are solid body rotations and translations. I haven't used Blender myself or any other 3D tool, so I can't give you a detailed description.

Harry

Lorenzo Ferro

unread,
Dec 2, 2024, 3:58:14 PM12/2/24
to JaamSim Users Discussion Group
Hello Harry,
concerning DAE files, I tried several times with Blender but unfortunately the Animated file exported does not contain Animation Layers according to the Collada protocol, so it doesn't work in JaamSim.
I tried also exporting GLB files with Blender but JaamSim gives me an error about the missing Colors and also the I cannot drive the Animation by CustomOutputList.

Do you have any GLB Animation file example working in JaamSim? Just a cube shifting in one direction would be enough for testing purposed, to be able to compare it with the GLB export by Blender.

Thank you,
Lorenzo

Harry King

unread,
Dec 2, 2024, 4:18:35 PM12/2/24
to JaamSim Users Discussion Group
Hi Lorenzo,

Attached is a GLB model for an underground mine truck that was exported from Blender. It has three animations that you can examine using Microsoft 3D Viewer (provided with Windows). Unfortunately, I don't have the original Blender file.

Harry

minetruck-anim.glb

Harry King

unread,
Dec 3, 2024, 12:40:36 PM12/3/24
to JaamSim Users Discussion Group
Hi Lorenzo,

Attached is a better version of the underground mine truck along with a .cfg file to demonstrate how the animations are driven from JaamSim. This version has only two animations, instead of three, but both work correctly in JaamSim. The first version I sent you had three animations, but the third one caused some problems in JaamSim.

Harry

Animated Mine Truck.cfg
minetruck-anim-rev0.glb

Lorenzo Ferro

unread,
Dec 5, 2024, 3:46:06 AM12/5/24
to JaamSim Users Discussion Group
Dear Harry.
Just a feedback.

The good news is that if I load the Mine Truck animated files into Blender and then export them as GLB again (also after some modification of the model), the export is successful and works in JaamSim, whereas with DAE I could not even achieve this result.
Unfortunately, if I start a simple model from scratch (like a cube shifting 1 m on the X axis) and I export the GLB file, it doesn't work (JaamSim cannot find the Animations).
I will try again in the next days as soon as I find some spare time.

Thank you,
Lorenzo

Lorenzo Ferro

unread,
May 21, 2026, 5:59:32 AM (yesterday) May 21
to JaamSim Users Discussion Group
Hello,

Since I recently tried again to make 3D parts in Blender and import them in JaamSim, I would just like to update about the matter.

I was able to produce multiple 3D parts in a Collection and add to every part an independent animation, that I could export in .glb format. The Actions were correctly recognized by JaamSim. In Blender, in order to generate relative movements of one part respect to the other it was sufficient to nest the dependent parts as Parents. The movement of the parts were referred to their Origin point and applied by setting just two key frames for Action.
In order to have a linear action movement it must be properly set in the GraphEditor.

Important was creating a Texture Image and assigning it as color, otherwise JaamSim could not recongnise the part in .glb format and showed just a 1 m^3 cube with texture error..

Maybe it cab be of some help for someone else.

Regards,
Lorenzo

Lorenzo Ferro

unread,
May 21, 2026, 3:53:25 PM (24 hours ago) May 21
to JaamSim Users Discussion Group
Hello,

For the sake of completeness, I would like to share a very simple and minimal test example that I made for learning purposes.
It includes the Blender 5.1 input file.

Regards,
Lorenzo

Cubes.glb
Cubes_simTime.cfg
Cubes.blend

Harvey Harrison

unread,
May 21, 2026, 4:07:53 PM (24 hours ago) May 21
to Lorenzo Ferro, JaamSim Users Discussion Group
Thanks so much for providing a worked example, it's a great resource.

Harvey
> To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/5e7fb546-48ad-4be4-88bc-8bfe822c4146n%40googlegroups.com.

Harry King

unread,
12:06 AM (16 hours ago) 12:06 AM
to JaamSim Users Discussion Group
Thanks, Lorenzo! That is a very good example of animation in JaamSim. The Blender file will be a big help to anyone else wanting to build an animated model.

Harry

Reply all
Reply to author
Forward
0 new messages