Use animated car in Unreal Engine 4

Got questions, comments and/or feedback regarding Craft Director Studio? Post them here.
Forum rules
We only allow posts that
  • Is in English
  • Is related to our tools and the programs they support.

If these rules are not met you are most likely going to be banned.

Please Note:
  • New users will have their posts reviewed before being publicly available for other to see.
mratashi7
Posts: 2
Joined: Tue Jan 21, 2020 11:34 am

Use animated car in Unreal Engine 4

Post by mratashi7 » Tue Jan 21, 2020 11:48 am

Hey everyone
Can anyone help and guid me through the process of importing an animated car to UE4 (Unreal Engine 4)?
Has anybody ever done it?
I did it as Alembic cache and FBX but since the objects are parented the movement doesen't transfer properly.
Thank you

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Thu Jan 23, 2020 3:03 pm

EDIT - We have now a tutorial for 3ds max to Unreal Engine. And as for Maya the suggestion is to export to 3ds max then to Unreal. Click on the below image to get to the tutorial.

https://www.youtube.com/watch?v=Ux4ZTmVMX2k

Image
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

mratashi7
Posts: 2
Joined: Tue Jan 21, 2020 11:34 am

Re: Use animated car in Unreal Engine 4

Post by mratashi7 » Sun Jan 26, 2020 9:09 pm

Thanks, I also found another method, before getting a fbx export from Maya, I freeze the transportation and orientation of high poly models, in a way that everything changes to zeros in channel box.
This causes the fbx to move properly in UE4. Then in UE4 use hidden material for low poly (Craft objects) models.
That's it.

About tutorial, I really hope this happens soon, because UE4 is getting a lot of attention recently.

boxpilot
Posts: 5
Joined: Tue Oct 13, 2020 6:15 am

Re: Use animated car in Unreal Engine 4

Post by boxpilot » Tue Oct 13, 2020 6:27 am

Hi, I am having similar problems where exporting animated mesh from maya to unreal doesn't work as expected.

I have constrained my model to the craft rig, baked the keys and exported both fbx and abc. The body of the car moves correctly, but the wheels act as if their pivot point has been changed.

I've checked all pivots, frozen and refrozen all transformations, matched all pivot points of the model to the craft rig, imported, referenced, tried many different export options, followed the directions in this post - but I can't get the wheels to "stay on"

If I export the craft rig with the model parented according to craft rig instructions - it plays correctly, (but then I have the craft proxy geo in the file. I haven't been able to successfully hide just the craft proxy geo, but will be trying that again soon.) if I bake and export constrained geo, it does not . . .anybody else have any ideas?

boxpilot
Posts: 5
Joined: Tue Oct 13, 2020 6:15 am

Re: Use animated car in Unreal Engine 4

Post by boxpilot » Tue Oct 13, 2020 8:48 am

Hoping I can add some images for illustration of what my wheels are doing. . . first image shows wheels correct when scrubbing, but when playing or rendering, they rotate around a strange axis (other 2 images)
correct_wheels.jpg
correct wheels when scrubbing
incorrect_wheels.jpg
incorrect when playing or rendering
incorrect_wheels_2.jpg
incorrect when playing or rendering

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Tue Oct 13, 2020 10:38 am

boxpilot wrote:
Tue Oct 13, 2020 6:27 am
Hi, I am having similar problems where exporting animated mesh from maya to unreal doesn't work as expected.

I have constrained my model to the craft rig, baked the keys and exported both fbx and abc. The body of the car moves correctly, but the wheels act as if their pivot point has been changed.

I've checked all pivots, frozen and refrozen all transformations, matched all pivot points of the model to the craft rig, imported, referenced, tried many different export options, followed the directions in this post - but I can't get the wheels to "stay on"

If I export the craft rig with the model parented according to craft rig instructions - it plays correctly, (but then I have the craft proxy geo in the file. I haven't been able to successfully hide just the craft proxy geo, but will be trying that again soon.) if I bake and export constrained geo, it does not . . .anybody else have any ideas?
boxpilot wrote:
Tue Oct 13, 2020 8:48 am
Hoping I can add some images for illustration of what my wheels are doing. . . first image shows wheels correct when scrubbing, but when playing or rendering, they rotate around a strange axis (other 2 images)
correct_wheels.jpg
incorrect_wheels.jpg
incorrect_wheels_2.jpg
Make sure that all the meshes are directly constrained to the 4-Wheeler Extended wheel meshes.

Like this
  • WheelMesh
    • tyre
    • rim
    • bolts
Not
  • WheelMesh
    • rim
      • tyre
      • bolts

btw, the datasmith plugin works great also and no need to bake the keys, which means that if the animation needs to be adjusted it is quite simple to do so. Make an animation, export again as datasmith and "refresh" in Unreal Engine. Aslo much much quicker.

Are you using 3ds Max or Maya?
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

boxpilot
Posts: 5
Joined: Tue Oct 13, 2020 6:15 am

Re: Use animated car in Unreal Engine 4

Post by boxpilot » Tue Oct 13, 2020 10:41 pm

Hey Patrick, thank you for your suggestions -

I'm using:
4wheeler free
Maya

I was only constraining the group node that had the meshes in it, before. After your suggestion, I constrained all of the individual meshes and got the same results as before.

I then combined the wheel geo, deleted history, matched the pivot point of the model geo to the pivot point on the craft rig geo, and froze transformations. I then constrained the "Tyre" geo to the craft tool geo and re-exported.
Screenshot 2020-10-13 133319.jpg
I am still getting the same results. The body geo group is constrained to the craft rig mesh and works just fine . . . I keep wondering if it's a setting in ue4 that I'm missing, as, when I import the results back to Maya, all subframes look as expected . . .

In ue4, the problem get's greater the farther the mesh moves from the origin, as if compounding somehow.

I have a few other things that I can think to try on my end . . . but welcome any and all other suggestions.

Unfortunately Datasmith plugin doesn't support maya at the moment.

Thanks

boxpilot
Posts: 5
Joined: Tue Oct 13, 2020 6:15 am

Re: Use animated car in Unreal Engine 4

Post by boxpilot » Tue Oct 13, 2020 11:01 pm

ok, if found something interesting, and i'm not sure how to rectify it - but there seems to be some transform that is getting left at the origin when I constrain things to the craft rig mesh, and export the constrained mesh.

since the export seemed to play fine in maya, i decided to drop it into blender to see what results i would get - it plays fine, but there is a representation of a transform that behaves differently between the 2 exports and seems to correlate with the results i get importing into ue4

maybe this is because i'm using the "free" version, I don't know - but you can see the orange dots and dotted lines travel with the craft rig car, but something get's left at the origin with the exported model only -
blender_craft.jpg
tireTransform.jpg

boxpilot
Posts: 5
Joined: Tue Oct 13, 2020 6:15 am

Re: Use animated car in Unreal Engine 4

Post by boxpilot » Wed Oct 14, 2020 7:08 am

FIXED IT!

I long suspected that the issue with the wheels had something to do with pivot point, and it appears that was the case.

I don't know what's happening under the hood - but when I baked the pivot point, the issue was resolved. Whether a single geometry or in a group, I have imported the car geometry, then made sure the wheels pivot point matched the craft rig wheels pivot point. After that I have baked the pivot point on the model wheels.
bakePivot.jpg
DO NOT FREEZE TRANSFORMS AFTER THE BAKE.

When I baked the pivot, I got values in the trans X, Y and Z channels. When I froze these transforms, the issue re-appeared. If I left the values and constrained the model wheels to the craft rig, I was able to export an FBX which maintained correct transformations.

Hope hearing about this process helps others - it took me a long time to figure it out :D !

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Wed Oct 14, 2020 10:37 am

boxpilot wrote:
Wed Oct 14, 2020 7:08 am
FIXED IT!

I long suspected that the issue with the wheels had something to do with pivot point, and it appears that was the case.

I don't know what's happening under the hood - but when I baked the pivot point, the issue was resolved. Whether a single geometry or in a group, I have imported the car geometry, then made sure the wheels pivot point matched the craft rig wheels pivot point. After that I have baked the pivot point on the model wheels.

bakePivot.jpg

DO NOT FREEZE TRANSFORMS AFTER THE BAKE.

When I baked the pivot, I got values in the trans X, Y and Z channels. When I froze these transforms, the issue re-appeared. If I left the values and constrained the model wheels to the craft rig, I was able to export an FBX which maintained correct transformations.

Hope hearing about this process helps others - it took me a long time to figure it out :D !
Nice to see that you solved it!

I am planning to make video tutorials on how to export from 3ds MAx/Maya to Unreal Engine.
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

sujususeelan
Posts: 1
Joined: Sat Nov 21, 2020 1:28 pm

Re: Use animated car in Unreal Engine 4

Post by sujususeelan » Tue Nov 24, 2020 9:46 pm

Hi could you please tell me 3dsmax datasmith export animation how to work in ue4
Attachments
03.PNG
02.PNG

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Thu Nov 26, 2020 11:43 am

sujususeelan wrote:
Tue Nov 24, 2020 9:46 pm
Hi could you please tell me 3dsmax datasmith export animation how to work in ue4
When making the datasmith export make sure that you are exporting the active time frame and that the craft dummy meshes are visible so they are included in the export.
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

veith69
Posts: 1
Joined: Sat Jan 23, 2021 6:45 pm

Re: Use animated car in Unreal Engine 4

Post by veith69 » Sat Jan 23, 2021 6:50 pm

Hello guys,

thank you very much for this input! I still haven't figured out how to set up the constraints for for position (translation) and orientation (rotation) instead of making the parts children of the rig. Can someone show a screenshot of rigging one wheel?

Would help me so much! I am trying to figure out, but maybe someone has the energy/effort and time to show it!

Thanks for your amazing product!

Kindly regards,

Veith

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Mon Jan 25, 2021 2:03 pm

veith69 wrote:
Sat Jan 23, 2021 6:50 pm
Hello guys,

thank you very much for this input! I still haven't figured out how to set up the constraints for for position (translation) and orientation (rotation) instead of making the parts children of the rig. Can someone show a screenshot of rigging one wheel?

Would help me so much! I am trying to figure out, but maybe someone has the energy/effort and time to show it!

Thanks for your amazing product!

Kindly regards,

Veith
Maya
1. Select the 4-Wheeler wheel and then the target mesh
2. Go to Constrain menu and press Parent.
Image
3. Redo for each part (or script)
4. Done

3ds Max
1. Select all the parts that are to follow the 4-wheelers wheel
2. From the Animation -> Constraints click on Link Constraint
Image
3. Click the 4-Wheeler's wheel that the parts are to follow.
4. Done
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

Qiu
Posts: 1
Joined: Mon May 03, 2021 7:55 pm

Re: Use animated car in Unreal Engine 4

Post by Qiu » Mon May 03, 2021 7:59 pm

hi
does anyone know how to his the rig after importing to Unreal Engine 4

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Tue May 04, 2021 2:27 pm

Qiu wrote:
Mon May 03, 2021 7:59 pm
hi
does anyone know how to his the rig after importing to Unreal Engine 4
Hi Qiu and welcome to our forum.

I'm not sure what you are asking. Can you please explain a bit more what you are asking?

thanks
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

3dlegend
Posts: 2
Joined: Mon May 10, 2021 6:21 pm

Re: Use animated car in Unreal Engine 4

Post by 3dlegend » Mon May 10, 2021 6:59 pm

can anyone tell me how can I hide the dummy car mesh inside the unreal engine?

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Thu May 13, 2021 10:08 pm

3dlegend wrote:
Mon May 10, 2021 6:59 pm
can anyone tell me how can I hide the dummy car mesh inside the unreal engine?
The one that is created by our tools or one you looking to create one yourself?
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

3dlegend
Posts: 2
Joined: Mon May 10, 2021 6:21 pm

Re: Use animated car in Unreal Engine 4

Post by 3dlegend » Fri May 14, 2021 9:12 pm

hi, Patrik, I'm using craft studio for Maya. the problem I'm facing when I'm importing the animation inside the unreal engine then it's coming with a dummy mesh so how can I hide that dummy mesh?

Patrik Martin
Partner
Posts: 416
Joined: Mon Feb 25, 2008 1:07 pm
Location: Gothenburg, Sweden
Contact:

Re: Use animated car in Unreal Engine 4

Post by Patrik Martin » Sat May 15, 2021 10:02 am

3dlegend wrote:
Fri May 14, 2021 9:12 pm
hi, Patrik, I'm using craft studio for Maya. the problem I'm facing when I'm importing the animation inside the unreal engine then it's coming with a dummy mesh so how can I hide that dummy mesh?
On a selected mesh(actor) you can under the Rendering section in the actors(mesh) settings set the object to be hidden by using “visible”or “hidden in game” checkboxes.

Here is a tutorial on the subject:
https://youtu.be/SAd1fOb7agk
Partner
http://www.craftanimations.com
patrik.martin-at-craftanimations.com

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests