:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Mon Jun 21, 2021 3:31 pm
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Animation matching the length of music?
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Mr.Hymn
Rocket Infantry


Joined: 01 May 2020

PostPosted: Thu Jun 10, 2021 5:45 pm    Post subject:  Animation matching the length of music? Reply with quote  Mark this post and the followings unread

This game doesn't allow any music or sound playing longer 15 sec, I can do 20 sec in some case. so put the song as workingsound for technology type doesn't play longer than 15 sec even cut the song down to 15 sec each part.

However attach the song to the animation is working,
Each blank animation with the report=songA next=animB and songB

For example

[SovietAnthemA]
Rate=60
Image=BLANK15
Report=NationalUSSRA
Next=SovietAnthemB
Normalized=no

[SovietAnthemB]
Rate=60
Image=BLANK15
Report=NationalUSSRB
Next=SovietAnthemC
Normalized=no

[SovietAnthemC]
Rate=60
Image=BLANK15
Report=NationalUSSRC
Next=SovietAnthemD
Normalized=no

Modenc stated rate=60 mean playing 1 frame per second.
But in reality it doesn't the animation still plays ahead and the song of that part doesn't finish whole 15 seconds and animation moved to the next part.

Is there a way to make animation synchronize with 15 seconds of the song?

Back to top
View user's profile Send private message
TAK02
General


Joined: 28 Jun 2015
Location: It was Damascus.

PostPosted: Thu Jun 10, 2021 5:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

What's the code for those Reports/Sounds?

Or the code for the full anthem that didn't work on your end.
_________________
One and only developer of the Command & Conquer Dune "C&C D" mod.
m7 wrote:
I tend to release things I create so that assets are never lost to hard drive problems, accidental deletion, or me having to pretend to care about rippers taking things from my project when it is done. #Tongue

Back to top
View user's profile Send private message Send e-mail Visit poster's website ModDB Profile ID YouTube User URL Twitter Channel URL Skype Account
Mr.Hymn
Rocket Infantry


Joined: 01 May 2020

PostPosted: Thu Jun 10, 2021 5:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

TAK02 wrote:
What's the code for those Reports/Sounds?

Or the code for the full anthem that didn't work on your end.

Each one is the same just A B C D .... so on

[NationalUSSRA]
Sounds=nationussrA
Control= all
Priority=high
Type= local shroud
Range= 20
Limit=1
Volume=100

The game actually play the song to the end but it doesn't run smoothly. I have to cut the music to 17 parts. 15 sec each but in reality it only plays around 10-12 sec and move to another part. Making a laggy music.

Back to top
View user's profile Send private message
Mr.Hymn
Rocket Infantry


Joined: 01 May 2020

PostPosted: Thu Jun 10, 2021 6:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

If Normalized=no the animation will finish faster than the song. once animation is over the rest of unplayed song in that part will be skipped.

If Normalized=yes the animation will finish much slower than the song leave a silent in between each part.

I have no idea of How long I should take it into consideration it's not 15 frames per second as modec stated for sure.

Back to top
View user's profile Send private message
Virgil
Cyborg Firebomber


Joined: 22 Jul 2018

PostPosted: Thu Jun 10, 2021 7:25 pm    Post subject: Reply with quote  Mark this post and the followings unread

Animation follows ingame speed settings, while sound does not, I think. You may get that to work for a certain game speed, but once it was adjusted everything would get messed up.

Back to top
View user's profile Send private message
Mr.Hymn
Rocket Infantry


Joined: 01 May 2020

PostPosted: Thu Jun 10, 2021 7:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Virgil wrote:
Animation follows ingame speed settings, while sound does not, I think. You may get that to work for a certain game speed, but once it was adjusted everything would get messed up.


Probably. In Modenc it stated if Normalized=no then the animation will not depend on the game speed. It will play at 15 FPS.

So I first making 225 frames of animation for 15 sec sound.
It still not fit. I have to reduce the Rate from 900 to 450 and it is better but still overlapsed.

Changing Rate=60 with 15 frames animation make it a lot worst. Even Modenc stated Rate=60 with no "Normalized" mean 1 frame per sec.

With Normalized=yes makes things get more crazier.





Because I can't get the exact frame per second so I can't calculate correctly.

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Fri Jun 11, 2021 12:13 am    Post subject: Reply with quote  Mark this post and the followings unread

Then don’t calculate. Try & error.
_________________
I DON'T extract models from Rivals.
I play Rivals tho, PM me for a fight.

Back to top
View user's profile Send private message Skype Account
Mr.Hymn
Rocket Infantry


Joined: 01 May 2020

PostPosted: Fri Jun 11, 2021 5:47 am    Post subject: Reply with quote  Mark this post and the followings unread

cxtian39 wrote:
Then don’t calculate. Try & error.


Silly me. All I need just record a video and make an animation with number of each frame then look in the video to see how many frames actually passed by within 1 second.

Make the animation length accordingly and enjoy the full music with less laggy maybe.

Back to top
View user's profile Send private message
Mr.Hymn
Rocket Infantry


Joined: 01 May 2020

PostPosted: Sat Jun 12, 2021 7:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hmmmm... Something is... off?
I am using counter animation to get how many FPS the game actually produced and I got exact 15 frames same as Modenc stated, is the sound actually playing slower rate than usual?

What I do either 16 frames or 14 frames will the result is differ. I must try.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1499s ][ Queries: 11 (0.0073s) ][ Debug on ]