Profile Picture

Fix for FBX export frames doubling on 3DX Export

Posted By Rampa 7 Years Ago
You don't have permission to rate!
Author
Message
Rampa
Rampa
Posted 7 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)

Group: Forum Members
Last Active: 8 hours ago
Posts: 8.1K, Visits: 60.5K
I've been experimenting with this a bit today. It seems that if you export at 30 FPS, you get double your frame count, with a long blank second half when the animation is done. The internal FPS for iClone is 60, so I tried 60 FPS instead of 30 FPS when I exported my FBX from 3DX. I got the right number of frames, and it played fine when I re-imported it. I could import at 30 or 60, and I got the same proper result.

So there you have it! YMMV. Wink
paulg625
paulg625
Posted 7 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)Distinguished Member (2.4K reputation)

Group: Forum Members
Last Active: 2 Years Ago
Posts: 388, Visits: 1.4K
Yes I have been using 60fps to export as well. I'm using Lightwave and things play slowly in there but reimport correctly back into Iclone.

Rampa (9/15/2017)
I've been experimenting with this a bit today. It seems that if you export at 30 FPS, you get double your frame count, with a long blank second half when the animation is done. The internal FPS for iClone is 60, so I tried 60 FPS instead of 30 FPS when I exported my FBX from 3DX. I got the right number of frames, and it played fine when I re-imported it. I could import at 30 or 60, and I got the same proper result.

So there you have it! YMMV. Wink


jorgeferherrero
jorgeferherrero
Posted 7 Years Ago
View Quick Profile
Senior Member

Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 21, Visits: 124
Hey Rampa, I know you're not Reallusion staff and you don't have to answer me if you don't feel like but as long as I've noticed that you're a very active user I thought maybe you'd have the experience to give me some useful tip or workaround for my isuues:
When I save a motion into my library after making changes and adaptations with motion layer edit if I charge that animation from my library the result is different to the original. I can't believe nobody is having trouble with this. If you want to combine different animations and blend them and if those animations have stored different orientation info and you need to rotate them  the only workaround that really Works is saving the animation into your library without blending between them and then cut the baked clip where that jump happens. Then the orientation info is gone and the blending Works fine. But if what you get after saving to your library isn't the same this workflow no longer Works. This changing the animation output is also reproduced when exporting it to FXB. I've experienced this in two different computers with CC Characters, I can't believe nobody is having this issue and after posting it in the iClone 7.02 issues thread my post has disappeared. My thread isn't answered. What's going on? I'm not trying to do anything really fancy just adjusting template animations to my character's proportions and morphs, basic blending animations and sending them to Unity. I'm really desperate here.

Thank's in advance and sorry for the inconvenience
Rampa
Rampa
Posted 7 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)

Group: Forum Members
Last Active: 8 hours ago
Posts: 8.1K, Visits: 60.5K
jorgeferherrero (11/19/2017)
Hey Rampa, I know you're not Reallusion staff and you don't have to answer me if you don't feel like but as long as I've noticed that you're a very active user I thought maybe you'd have the experience to give me some useful tip or workaround for my isuues:
When I save a motion into my library after making changes and adaptations with motion layer edit if I charge that animation from my library the result is different to the original. I can't believe nobody is having trouble with this. If you want to combine different animations and blend them and if those animations have stored different orientation info and you need to rotate them  the only workaround that really Works is saving the animation into your library without blending between them and then cut the baked clip where that jump happens. Then the orientation info is gone and the blending Works fine. But if what you get after saving to your library isn't the same this workflow no longer Works. This changing the animation output is also reproduced when exporting it to FXB. I've experienced this in two different computers with CC Characters, I can't believe nobody is having this issue and after posting it in the iClone 7.02 issues thread my post has disappeared. My thread isn't answered. What's going on? I'm not trying to do anything really fancy just adjusting template animations to my character's proportions and morphs, basic blending animations and sending them to Unity. I'm really desperate here.

Thank's in advance and sorry for the inconvenience

Hi Jorge,

The tracking is what is throwing you off, mostly.

The stored motions do not actually contain any tracking data. The tracking is added at runtime, if enabled, and so is automatically aligning your clip to the existing position of your character's hips, as if it were the new zero position. Thus the change. Up until the 7.1 release, rotation was not tracked, so the position would be correct for a new clip, but not the rotation (direction the character was facing). You can now enable the rotation tracking in the Animation menu and your new motion will insert oriented to the character's pelvis in the last frame of the previous motion clip. That means no more flip-flopping.

See this video from testing I was doing on it.


You can also disable the tracking if you prefer.

Edited
7 Years Ago by Rampa
jorgeferherrero
jorgeferherrero
Posted 7 Years Ago
View Quick Profile
Senior Member

Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 21, Visits: 124
Sir, I haven't tested what you are indicating here and  I'm still not sure this is going to be a definitive solution to what has been for me a real nightmare so far, but I can't explain with words how much I appreciate you devoting some of your precious time to provide me with what might be the key to understand what wasn't working in my work flow. I really really really appreciate it. So, if I deactivate tracking motions I'll get the exact same animation I manage to create in iClone even if I use  adjustments editing layer motion? No more surprises when saving the motion to library? The thing is that if I want to export that animation to Unity for example I need to do a FXB export, and that has been giving me the exact same problems. I suspect FXB export doesn't support tracking motions as well. Does this mean that I can't take advantage of that tracking motion option if i want to export that animation to Unity? Iclone 7.1 is giving me trouble exporting animations using 3dexchange anyway,it crashes constantly.       Baking constraint key or reseting root motions would affect that FXB motion export as well ?   Thanks again an by the way, your video tutorial is great













Edited
7 Years Ago by jorgeferherrero
jorgeferherrero
jorgeferherrero
Posted 7 Years Ago
View Quick Profile
Senior Member

Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 21, Visits: 124
Thanks For you help Rampa. But just to be sure, if I want to export my animations to Unity for example, that FXB export won't have any tracking info? Does that mean that if I want to make aniimations for FXB export I shouldn't use 'align actor motion ' option or 'align rotation actor' options? Reset motion root would affect my FXB animation result as well?  Thanks in advance


Rampa
Rampa
Posted 7 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)

Group: Forum Members
Last Active: 8 hours ago
Posts: 8.1K, Visits: 60.5K
I'll probably have a better answer later. I ran out of coffee! Wink

All that tracking info is just internal to iClone. When you export an FBX, it's going to export the motion as you see it in iClone. Unity will be fine it, as it tracks it with it's own internal method (based on root, below the pelvis on the floor). The tracking tools in iClone are just giving a way to easily combine your motion together.

But if you're making game motions, you want them all to start at the 0,0,0 point of the world.

Can you clarify your intended use a little more? Is it for a game? For a movie?
jorgeferherrero
jorgeferherrero
Posted 7 Years Ago
View Quick Profile
Senior Member

Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 21, Visits: 124
Hi Rampa, thanks for answering, really. But I'm a bit confused. I though what was making my animations saved into my library slightly different from what i had originally in the editor were those tracking options. Actually, i deactivated them and apparently what I get looks a lot more like what I had in the first place. I also experienced those differences when exporting to FXB, thus I thought it was the exact same issue. I'm developing a game in Unity were some characters talk to the player so i decided to make their animatins in IClone as it has very powerful facial animations and lypsinc tools, but for the rest of the body motions I'm really struggling to get  convincing well blended animations as footsliding is something I haven't solved and all the adjustments I do to avoid getting parts of the body collide or get trough other objects get messed when exporting to FXB o saving to my library. I save animations into my library very often as a technique that I reading a quite old post of yours, as a way to blend animations that had orientation issues.I know now iclone 7 has that align rotation actor option but if that is going to mess my exported animations am I going to be able to use it? Sorry for the heavy questioning but I'm a bit desperate because I have a tight deadline and I'm not getting the expected results.    Thanks in advance



Edited
7 Years Ago by jorgeferherrero
Rampa
Rampa
Posted 7 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)Distinguished Member (35.8K reputation)

Group: Forum Members
Last Active: 8 hours ago
Posts: 8.1K, Visits: 60.5K
I have made quite a few alignment tutorials, but they were all basically to fix the rotation issue. Since it can be fixed by enabling the rotation tracking, my old tuts are no longer so relevant. I'll have to go clean my Youtube channel. Smile

So you have NPC's that need animation sequences, if I understand. Do the animations need to start at 0,0,0, in Unity, or at some other coordinates? Can you place the animation in Unity to start wherever you want it? I'm not a Unity user, so have only ever done really basic stuff, like import characters.
jorgeferherrero
jorgeferherrero
Posted 7 Years Ago
View Quick Profile
Senior Member

Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)Senior Member (358 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 21, Visits: 124
Yeah, for time and knowledge limitation reasons I'm doing a sequence for each character in iCLONE and exporting it into Unity where I chop them in the pieces that I need for my interaction system. Like that they are in continuity and blend correctly. The animations start at 0,0,0 just to avoid the character to fly elsewhere when you press play but once I've put the character in place everything Works fine so far. It's an VR app so the player won't move. I'm not using mechanim (animation tool in Unity) for animating my characters, probably I should have, but  I'm also quite new at Unity and I don't know how to use Mechanim at all. I thought iClone had a lot of mocap animations to compose what I needed and exporting those to Unity seemed an easy task. My problems arised when the results wasn't the same, and if for example i have tuned an animation to touch a table, when I export it the hand gets into the table.



Reading This Topic