View Single Post
Old 2004-11-02, 15:47   Link #49
Sylf
翻訳家わなびぃ
*Fansubber
 
 
Join Date: Nov 2003
Age: 50
Send a message via MSN to Sylf Send a message via Yahoo to Sylf
Say, you have the original line of karaoke that looks like
Code:
{\K237}da{\K42}i{\K29}su{\K103}ki{\K129}yo
All you need to do is to figure out how to convert all \K tags with \t tags.

Let's take your request as an example - make it look like the text is glowing.
Basic concept -
The translation between \K tag and \t tag are not very transparent. \K tags are all noted in centiseconds. \t are in milliseconds. Also, \t timing are absolute against when the entire line was shown, compared to \K, which you must consider the length of karaoke effect in prior words / syllables. So, in above example, what you should end up with is something like:
Code:
{\t(0,2370,\effect)}da{\r\t(2370,2790,\effect)}i{\r\t(2790,3080,\effect)}su...
What happened there?
{\t(0,2370,\effect)}da - The effect for the first syllable takes 2370ms. Nice and simple.
{\r\t(2370,2790,\effect)}i - First, put \r to reset the effects specified prior to this spot, so the text beyond this point will look unchanged until the next specified time. Then, the effect starts 2370ms after the line was displayed, and goes on for 420ms.

Now, take that concept, and apply couple real effects:
Method 1 - use the border thickness shift
Code:
{\bord1\t(0,2370,\bord4)}da{\r\bord1\t(2370,2790,\bord4)}i{\r\bord1\t(2790,3080,\bord4)}su...
Method 2 - use the alpha transparency fades
Code:
{\3a&HFF&\t(0,2370,\3a&H44&)}da{\r\3a&HFF&\t(2370,2790,\3a&H44&)}i{\r\3a&HFF&\t(2790,3080,\3a&H44&)}su...
Method 3 - combined the previous 2 methods
Code:
{\bord1\3a&HFF&\t(0,2370,\3a&H44&\bord4)}da{\r\bord1\3a&HFF&\t(2370,2790,\3a&H44&\bord4)}i{\r\bord1\3a&HFF&\t(2790,3080,\3a&H44&\bord4)}su...
Of course, you're not limited to 1 \t tag per syllable.
Method 4 - glow & fade of Method 3
Code:
{\bord1\3a&HFF&\t(0,200,\3a&H44&\bord4)\t(200,2370,\3a&HAA&\bord1.6)}da{\r\bord1\3a&HFF&\t(2370,2570,\3a&H44&\bord4)\t(2570,2790,\3a&HAA&\bord1.6)}i{\r\bord1\3a&HFF&\t(2790,2990,\3a&H44&\bord4)\t(2990,3080,\3a&HAA&\bord1.6)}su...
That's the gist of it.

Disclaimer - I didn't test the code used in here, so it may have some bugs. And I'm quite certain that it'll be ugly. But you should get the idea of how things can be done. The rest is up to your imagination.

Note - check out the post by Mr Paper in http://forums.animesuki.com/showthre...5&page=1&pp=20 for the possible effects used in \t tag. (Basically, all the hints given in this post have been posted previously within this thread... but I committed the sin of not reading the entire thread beforehand >.< )

Last edited by Sylf; 2004-11-02 at 15:59.
Sylf is offline   Reply With Quote