Page 1 of 2

Interpolating animations with DAIN

Posted: Thu Nov 28, 2019 6:25 pm
by Azteca
Interpolating animations



As found here: https://reddit.com/r/GameUpscale/commen ... e_a_badly/

Could be interesting for Daggerfall enemies.

Re: Interpolating animations with DAIN

Posted: Thu Nov 28, 2019 6:37 pm
by pango
Quite impressive video...

Re: Interpolating animations with DAIN

Posted: Mon Dec 09, 2019 8:52 pm
by Azteca
The person behind that video is taking requests! Do you guys have anything from Daggerfall that would be a good candidate? Check out the wave example.

https://www.reddit.com/r/GameUpscale/co ... test_some/

Re: Interpolating animations with DAIN

Posted: Mon Dec 09, 2019 10:23 pm
by King of Worms
Most of the videos. And the animated MOBs and NPCs.

But mobs do not support additional frames yet. And adding more frames to npcs make em move slower.

So only working part now is the vids I guess. Have em upscalled on my hdd.

Re: Interpolating animations with DAIN

Posted: Tue Dec 10, 2019 2:03 am
by pango
More fluid animations is not out of question, but yeah you can't just drop them into current Daggerfall Unity and expect them to work. The number of frames, and their rate of display is hardcoded, and would have to be adjusted.

Obviously, that the kind of possibility that reminds me of how animations were originally created, then sampled down because of memory constraints (as explained in old Mark Jones web page). For example the female druid walk GIF on the site has 32 frames, when the final game only has 4 :(
Actually so much was lost, I'm not sure what can be done with 4 frames...

Re: Interpolating animations with DAIN

Posted: Fri Jan 10, 2020 5:33 pm
by Azteca
Good news. There is now a simple Windows application to try out DAIN on whatever you want.
It is in alpha, so read carefully.
https://www.reddit.com/r/GameUpscale/co ... te_videos/
º The app will not work if there is any empty space in the video/gif filename or filepath.
º The "Complete bar" will stop around 98% and there is no "Complete message" but the video will be in the output folder.
I am on a Mac but would like to try this out. Here is the denoise intro video I made a while back. Can someone run this through DAIN for me?
https://www.dropbox.com/s/6ksci2ezzjfnz ... g.mp4?dl=0
(EDIT: I remember now that the denoised video is at 30fps but the original is 10FPS. So try setting input FPS to 10. I'm not sure how it will handle it)


If you run any animations through, I'd love to see those too.

Re: Interpolating animations with DAIN

Posted: Fri Jan 10, 2020 9:49 pm
by King of Worms
Lovely news, I will deffo try that out and see what happens. I will report back in few days. Thanks for info

Re: Interpolating animations with DAIN

Posted: Fri Jan 10, 2020 10:20 pm
by DigitalMonk
pango wrote: Tue Dec 10, 2019 2:03 am More fluid animations is not out of question, but yeah you can't just drop them into current Daggerfall Unity and expect them to work. The number of frames, and their rate of display is hardcoded, and would have to be adjusted.
How hard would it be to patch this into the asset injection? Seems like it could be automated somewhat, using the currently hardcoded values to provide the basis for timing.

For example:
If a hardcoded animation has 4 frames and they change every second, then the animation cycle time is 4 seconds.
If a override animation was detected that had 32 frames, you could assume that the cycle time should still be 4 seconds, so the frame time would be 4/32 == 1/8 second.

I'm out of touch with the animated flat injection system -- can it take GIFs, or does it take a sequence of images? I suppose the total number of frames can be detected either way, but GIF would be a lot easier both for producers and for the engine (separate images requires enumerating files to determine the number of frames, and that can end up being a lot slower than it ought to be).

Since there is a 32 frame GIF out there already, that would be a cool test subject...

Re: Interpolating animations with DAIN

Posted: Fri Jan 10, 2020 10:26 pm
by King of Worms
Its a sequence of png images. Rest I dont know, sry

Re: Interpolating animations with DAIN

Posted: Wed Jan 15, 2020 4:06 pm
by Azteca


New alpha for the DAIN app. Very nice improvements for getting usable results.