Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] Anyone know the forumla to convert a Unity animation frame to WoW Animation frame?

[DiscordArchive] Anyone know the forumla to convert a Unity animation frame to WoW Animation frame?

[DiscordArchive] Anyone know the forumla to convert a Unity animation frame to WoW Animation frame?

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
11-09-2024, 08:02 PM
#11
Archived author: Needle • Posted: 2024-11-09T20:02:06.532000+00:00
Original source

Anyone know the forumla to convert a Unity mod...
rektbyfaith
11-09-2024, 08:02 PM #11

Archived author: Needle • Posted: 2024-11-09T20:02:06.532000+00:00
Original source

Anyone know the forumla to convert a Unity mod...

rektbyfaith
Administrator
0
11-09-2024, 08:02 PM
#12
Archived author: Needle • Posted: 2024-11-09T20:02:25.897000+00:00
Original source

Anyone know the forumla to convert a Unity animation frame to WoW Animation frame?
rektbyfaith
11-09-2024, 08:02 PM #12

Archived author: Needle • Posted: 2024-11-09T20:02:25.897000+00:00
Original source

Anyone know the forumla to convert a Unity animation frame to WoW Animation frame?

rektbyfaith
Administrator
0
11-09-2024, 09:08 PM
#13
Archived author: Xahnder • Posted: 2024-11-09T21:08:56.132000+00:00
Original source

Update in case anyone looks for this. The problem turns out to be interpolation related. Vid related is what happens when the rotation interpolation is set to "None". It seems that, for whatever reason, the Linear intepolation is taking 'the long way' on the rotation for some frames. So, the solution looks to be to figure out if a rotation direction would be shorter, and modify the frames of animation to account for it (negative vs positive).
2024-11-09_15-06-16.mp4
rektbyfaith
11-09-2024, 09:08 PM #13

Archived author: Xahnder • Posted: 2024-11-09T21:08:56.132000+00:00
Original source

Update in case anyone looks for this. The problem turns out to be interpolation related. Vid related is what happens when the rotation interpolation is set to "None". It seems that, for whatever reason, the Linear intepolation is taking 'the long way' on the rotation for some frames. So, the solution looks to be to figure out if a rotation direction would be shorter, and modify the frames of animation to account for it (negative vs positive).
2024-11-09_15-06-16.mp4

rektbyfaith
Administrator
0
11-09-2024, 11:05 PM
#14
Archived author: Xahnder • Posted: 2024-11-09T23:05:52.918000+00:00
Original source

And in case anyone ever has this extremely esoteric problem... the solution was to calculate the shortest rotation path. I did that by...
1. Normalized the quaternion
2. Performed SLERP against it and the identity quaternion, and a full amount (1.0f)
3. Save that over the rotation frames
Result is what you see here.
2024-11-09_17-02-28.mp4
rektbyfaith
11-09-2024, 11:05 PM #14

Archived author: Xahnder • Posted: 2024-11-09T23:05:52.918000+00:00
Original source

And in case anyone ever has this extremely esoteric problem... the solution was to calculate the shortest rotation path. I did that by...
1. Normalized the quaternion
2. Performed SLERP against it and the identity quaternion, and a full amount (1.0f)
3. Save that over the rotation frames
Result is what you see here.
2024-11-09_17-02-28.mp4

rektbyfaith
Administrator
0
11-14-2024, 02:18 PM
#15
Archived author: Needle • Posted: 2024-11-14T14:18:18.101000+00:00
Original source

Thread was archived by Xahnder. Anyone can send a message to unarchive it.
rektbyfaith
11-14-2024, 02:18 PM #15

Archived author: Needle • Posted: 2024-11-14T14:18:18.101000+00:00
Original source

Thread was archived by Xahnder. Anyone can send a message to unarchive it.

Pages (2): Previous 1 2
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)