Hướng dẫn viết effect cơ bản

50 3.4K 15
Hướng dẫn viết effect cơ bản

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Hướng dẫn viết effect cơ bản cho người mới bắt đầu. Ưng dụng cho các bạn viết effect làm video, tạo hiệu ứng chữ và hình cho sub. Các bạn có thể học và làm theo hướng dẫn mà không cần phải biết những kiến thức về c hay c++, chỉ cần chăm chỉ , chịu khó tìm tòi thêm một chút sau khi đọc tài liệu này , cùng với sự đam mê và sáng tạo là các bạn có thể tự tay mình tạo ra các hiệu ứng đẹp mắt. Chúc các bạn thành công, mong nhận được sự đóng góp và chia sẻ của các bạn.

Tác giả : Hoa Mẫu Đơn Facebook: http://www.facebook.com/groups/aegisubvn/ Forum: http://aegisubvn.net/forum/ Vui lòng leech nhớ ghi rõ nguồn gốc  - Muốn đọc hiểu cách viết này, trước tiên bạn đọc hiểu tag Aegisub 2.1.9 đọc qua hướng dẫn viết số dạng hiệu ứng đơn giản Aegisub: Link down Aegisub 2.1.9: http://ftp2.aegisub.org/pub/releases/Aegisub-2.1.9-setup.exe or: http://ftp.aegisub.org/pub/releases/Aegisub-2.1.9-setup.exe AviSynth 2.6.0: http://sourceforge.net/projects/avisynth2/files/AviSynth_Alpha_Releases/A VS%202.6.0%20Alpha%203%20%5B110525%5D/AviSynth_110525.exe/ download Tag: http://vnsharing.net/forum/showthread.php?p=3722344 Hướng dẫn: http://vnsharing.net/forum/showthread.php?t=154118 Nếu giỏi tiếng anh, luyện hết phần Automation bên forum Aegisub.org: http://docs.aegisub.org/manual/Automation Hướng dẫn thêm VSFIlterMod vào Aegisub 2.1.9: http://youtu.be/0FhQurZjvno Các bạn làm theo bước video để không bị lỗi Thật tình mà nói, với effect phức tạp chút, việc đưa code không giúp cả, người làm effect nhiều viết code lung tung (như tớ) đọc khó hiểu (nếu không muốn nói tớ hồi trước beginner đọc script ví dụ không hiểu chút gì), đưa mớ code cho người muốn học hỏi làm họ bị confused nhiều nản không vậy, nhiều effector không muốn đưa code cho ai, buộc họ đưa code làm người muốn post vô tớ thấy thay bắt buộc đưa code, tớ thấy cậu nên khuyến khích người ta giải thích cách làm effect (dùng override tag nào, cách tìm ý tưởng cho effect sao, ) hay hơn, không cần yêu cầu code làm Phép tính đặt hai dấu chấm than ! ! - Tính hai số -1 (Nhân thêm để tăng độ lớn) !(math.random(0,1)*2-1)! - Tính hai số -1 !(($si%2)*2-1)! - Tính tăng dần từ trái qua phải, nhân 10 tùy ý để tăng độ lớn Bỏ -1 muốn bắt đầu !($si-1)*10! - Từ phải qua trái Bỏ +1 muốn kết thúc !($syln-$si+1)*10! Bắt đầu FX1: Ý tưởng fx sau: hát đến syl kiếm gỗ đập vào syl đó, làm chữ co lại đồng thời bắn "sao" Đây hình vẽ kiếm gỗ Code: Comment: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,code once,bambooblade ="m 30 56 b 32 60 36 60 38 56 l 38 15 l 30 15 m 18 12 l 50 12 l 50 l 18 m 30 l 33 l 33 -57 l 30 -57 m 38 l 35 l 35 -57 l 38 -57 m 38 -60 l 30 -60 l 30 -77 l 38 -77 m 38 -80 l 38 -120 l 35 -120 l 35 -80 m 30 -80 l 33 -80 l 33 -120 l 30 -120 m 38 -123 l 30 -123 l 30 -140 b 32 -145 36 -145 38 -140" Còn Code: Comment: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,code once,stardust = "m -50 b -17 -1 -6 -1 -8 -6 b -1 -6 -1 -17 -50 b -17 -6 -6 b -1 17 -1 50 b 17 b 17 50 b -1 17 -1 -8 b -17 -50 0" Hai hình vẽ ass draw Về khoản syl co lại, bạn dùng tag \t để chuyển scale chữ, Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template syl noblank,!retime("syl",0,0)!{\an5\blur4\pos($scenter,$smiddle)\alpha&H0 0&\1c!line.styleref.color1!\3c!line.styleref.color3!\fscx100\fscy100\t(0,!$s dur*0.3!,\1c!line.styleref.color3!\3c!line.styleref.color2!\fscx80\fscy80\blu r6)\t(!$sdur*0.3!,$sdur,\1c!line.styleref.color1!\3c!line.styleref.color3!\bl ur4\fscx100\fscy100)} Về kiếm gỗ, muốn tạo hiệu ứng cho giống đập xuống, tớ cho thay đổi \frz khoảng thời gian syl hát Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template syl noblank notext,!retime("syl",0,0)!{\an5\blur4\pos(!$scenter+80!,!$smiddle+55!)\al pha&H00&\1c!line.styleref.color1!\3c!line.styleref.color3!\fscx45\fscy45\ bord0.5\frz!math.random(35,45)!\t(0,!$sdur*0.4!,\frz!math.random(80,85) !)\p1}!bambooblade! Ngôi bắn dùng lệnh move cho hình vẽ Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template syl noblank notext loop 10,!retime("syl",0,100)!{\an5\blur2\fad(0,200)\move(!$scenter+10!,!$smi ddle+25!,!$scenter+math.random(-100,100)!,!$smiddle+math.random(50,100)!)\1c&HFFFFFF&\fscx40\fscy40\alpha&H00&)\bord0\shad0\p1} !stardust! Còn nhiều thứ khác hiệu ứng chữ to hay nhỏ kiếm to hay nhỏ theo, dùng fxgroup lằng nhằng, tớ bận thời gian hướng dẫn share code lại đụng tới vấn đề đọc ko hiểu, mà thôi, chúc cậu sáng tạo thêm fx từ ý tưởng FX2: Chuyển nhiều màu liền cho dòng sub Chỉnh lại vị trí \clip line.left line.right muốn add thêm màu, thêm màu thêm dòng MultiColorTransform Original scrpit: ezgradient by Ai-chan Update: Hoa Mẫu Đơn Code: Comment: 0,0:00:00.00,0:00:00.00,Default,MutilColorTransform,0000,0000,0000,,{ Change first color in after line same last color in before line, change clipping position if you want add more color; Orginal script by Ai-chan, Update by jofori89} Comment: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template loop 20 keeptags,{\pos($x, $y)\clip(!_G.interpolate((j-1)/maxj, $lleft-3, $lleft+$lwidth/3)!, $ltop, !_G.interpolate(j/maxj, $lleft-3, $lleft+$lwidth/3)!, $lbottom)\c!_G.interpolate_color(j/maxj, "&HFFC8A0&", "&H00FFFF&")!} Comment: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template loop 20 keeptags,{\pos($x, $y)\clip(!_G.interpolate((j-1)/maxj, $lleft+$lwidth/3, $lright-$lwidth/3)!, $ltop, !_G.interpolate(j/maxj, $lleft+$lwidth/3, $lright-$lwidth/3)!, $lbottom)\c!_G.interpolate_color(j/maxj, "&H00FFFF&", "&H0000FF&")!} Comment: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template loop 20 keeptags,{\pos($x, $y)\clip(!_G.interpolate((j-1)/maxj, $lright$lwidth/3, $lright+3)!, $ltop, !_G.interpolate(j/maxj, $lright-$lwidth/3, $lright+3)!, $lbottom)\c!_G.interpolate_color(j/maxj, "&H0000FF&", "&H000000&")!} Dialogue: 0,0:00:05.00,0:00:15.00,Default,,0000,0000,0000,karaoke, This is template to transfrom four colors Kara template: http://www.mediafire.com/?dwyklngzqxr Một lặt vặt khác, tên tạm gọi Soft blur Code: Comment: 1,0:00:00.00,0:22:23.74,Default,,0000,0000,0000,template pre-line mainfx,!retime("line",120,120)!{\fad(70,70)\shad0\t(70,120,\shad!line.styleref.shadow!\bord!lin e.styleref.outline*2!)\t(!$ldur+120!,!$ldur+24070!,\shad0\bord!line.styleref.outline!}{\k12} Comment: 0,0:22:23.74,0:22:23.74,Default,,0000,0000,0000,template line mainfx,{\k!(syl.duration>500) and "f" or ""!$kdur} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*20, j*20)!{\shad0\move($x, $y, !$x+15!, !$y+15!)\alpha&H40\t(\alpha&HFF&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*20, j*20)!{\shad0\move($x, $y, !$x15!, !$y+15!)\alpha&H40\t(\alpha&HFF&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*20, j*20)!{\shad0\move($x, $y, !$x+15!, !$y-15!)\alpha&H40\t(\alpha&HFF&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*20, j*20)!{\shad0\move($x, $y, !$x15!, !$y-15!)\alpha&H40\t(\alpha&HFF&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*35, j*35)!{\shad0\move(!$x+15!, !$y+15!, $x, $y)\alpha&HFF\t(\alpha&H40&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*35, j*35)!{\shad0\move(!$x-15!, !$y+15!, $x, $y)\alpha&HFF\t(\alpha&H40&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*35, j*35)!{\shad0\move(!$x+15!, !$y-15!, $x, $y)\alpha&HFF\t(\alpha&H40&)} Comment: 0,0:00:00.00,0:00:00.00,Default,loop,0000,0000,0000,template noblank loop 5,{\be2}!retime("syl", j*35, j*35)!{\shad0\move(!$x-15!, !$y-15!, $x, $y)\alpha&HFF\t(\alpha&H40&)} Comment: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,karaoke,{\k35}Shi{\k68 }n{\k29}ji{\k25}ru FX3: Nói chi tiết - Đặt \an8 để hiệu ứng xoay \t(\frx) theo kiểu lật, đặt \org($scenter, $stop) vào Dùng !retime("start2syl", -400+($si- 1)*20, 0)! để tính thời gian giảm bắt đầu sớm với line 400ms, cách quãng 20ms (các số khác chút) để chữ lật từ trái qua phải Code: template noblank: !retime("start2syl", -400+($si-1)*30, 0)!{\an8\shad0\3c&HFFFFFF\c!line.styleref.color2!\frx-180\t(0, 400, \frx0)\pos($scenter, $stop)\fad(150, 0)} - Cũng đặt \an7 để chữ giãn theo chiều xuống sang ngang, đặt thời gian tăng kích thước, mờ viền chuyển màu trắng nhỏ với co trở lại style cũ Các hình trái tim \move tùy ý lặp lại lần \fad Thế chẳng hạn: Code: Layer (nằm trên) template noblank: !retime("syl", 0, 0)!{\an7\shad0\3c&HFFFFFF\t(0, !$dur/3!, \fscx150\fscy150\be2\c&HFFFFFF)\t(!$dur/3!, $dur, \fscx100\fscy100\be0\c!line.styleref.color2!)\pos($sleft, $stop)} Layer template notext noblank loop 5: !retime("syl", 0, 2000)!{\an8\be1\shad0\3c&HFFFFFF\move(!$scenter+math.random($sl eft, $sright)!, $stop, !$scenter+math.random(-5, 5)*5!, !$stop+math.random(-5, 5)*5!)\fad(0, 250)\p1}m 16 30 b 28 22 30 18 30 14 b 32 22 -2 16 10 b 10 -2 14 b 18 22 16 30{\p0} - Phần lại chả đặc biệt cần \fad(0, 150) Code: template noblank: !retime("syl2end", 0, 50)!{\an8\shad0\3c&HFFFFFF\c!line.styleref.color2!\pos($scenter, $stop)\fad(0, 150)} Tổng thể này: Code: Comment: 1,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template noblank,!retime("start2syl", -400+($si-1)*30, 0)!{\an8\org($scenter, $stop)\shad0\3c&HFFFFFF\c!line.styleref.color2!\frx-180\t(0, 400, \frx0)\pos($scenter, $stop)\fad(150, 0)} Comment: 2,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template noblank,!retime("syl", 0, 0)!{\an7\shad0\3c&HFFFFFF\c!line.styleref.color2!\t(0, !$dur/4!, \fscx150\fscy150\be2\c&HFFFFFF)\t(!$dur/4!, $dur, \fscx100\fscy100\be0\c!line.styleref.color1!)\pos($sleft, $stop)} Comment: 1,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template noblank,!retime("syl2end", 0, 50)!{\an8\shad0\3c&HFFFFFF\c!line.styleref.color1!\pos($scenter, $stop)\fad(0, 150)} Comment: 0,0:00:00.00,0:00:05.00,Default,,0000,0000,0000,template notext noblank loop 5,!retime("syl", 0, 2000)!{\an5\be1\c&H9D7AE4&\fscx50\fscy50\shad0\3c&HFFFFFF\mov e(!$scenter+math.random(-$swidth, $swidth)!, !$stop+math.random(0, $sheight)!, !$scenter+math.random(-5, 5)*10!, !$stop+math.random(-5, 5)*10!)\fad(100, 500)\p1}m 16 30 b 28 22 30 18 30 14 b 32 22 -2 16 10 b 10 -2 14 b 18 22 16 30{\p0} Comment: 0,0:12:43.45,0:12:49.66,Default,,0000,0000,0000,karaoke,{\k28}Ki{\k23} no{\k25}u {\k22}no {\k25}E{\k51}ga{\k24}o {\k46}U{\k27}tsu{\k46}ri {\k71}Ya{\k30}ke{\k24}ni {\k25}Ka{\k23}na{\k28}shi{\k103}i Comment: 0,0:12:50.01,0:12:58.80,Default,,0000,0000,0000,karaoke,{\k27}O{\k25} na{ FX4: Khoảng syl bình thường, dùng pos đặt chữ vị trí trung tâm, sử dụng tag t khoảng đến 1/2 dur đồng thời tăng kích thước chữ lên 150 Sử dụnng tiếp t khoảng đến dur giảm kích thước chữ xuống Khoảng kiếm Code: !retime("syl",-200,0)!{\an5\blur4\pos(!$scenter10!,!$smiddle+30!)\alpha&H00&\1c!line.styleref.color1!\3c!line.stylere f.color3!\fscx150\fscy150\bord0.5\fry45\t(0,!$sdur*0.6!,\frz!math.rando m(-5,40)!)\p1}m 25 -5 b 25 -5 25 -5 25 -5 b 10 -4 -6 -4 -21 -3 b -21 -3 21 -3 -21 -3 b -22 -3 -23 -4 -23 -3 l -23 -5 b -23 -5 -23 -5 -23 -5 b -23 -6 -23 -6 -23 -7 b -23 -7 -18 -4 -23 -10 l -18 -6 b -23 -10 -23 -10 -18 -12 l 25 -10 b -25 -10 -25 -10 -25 -9 l -25 -2 b -25 -2 -25 -2 -26 -1 l -31 -1 b 33 -2 -33 -2 -33 -2 l -33 b -33 -33 -31 l -26 b -25 -25 -25 l -25 10 b -25 10 -25 10 -25 10 l -24 b -23 10 -22 -18 10 l -23 b -23 -23 -18 b -23 -23 -21 l 25 b 25 25 25 b 25 25 25 l 50 {\p0} Cũng đơn giản, dùng pos cho T.kiếm vị trí bên trái -10 theo trục x xuống 30 theo trục y chỉnh kích thước hình 150 sử dụng frz math.random cho hình vẽ cảm giác gâm vào chữ Còn vấn đề tỏa sử dụng math.random nên lật lại page trước hướng dẫn Code: !retime("syl",500,1000)!{\an5\bo FX17: Hình xoáy kiểu kho vecto, sử dụng layer Code: m 103 97 b 105 101 105 105 103 108 b 87 116 70 124 54 132 b 70 121 87 109 103 97 m 79 104 b 79 107 76 113 71 113 b 53 111 34 108 15 105 b 36 105 58 104 79 104 m 62 100 b 58 101 55 101 50 99 b 40 86 30 73 20 60 b 34 73 48 87 62 100 m 52 81 b 49 81 45 80 41 75 b 41 58 40 41 40 24 b 44 43 48 62 52 81 m 52 63 b 50 59 49 54 51 49 b 62 40 74 30 97 11 b 77 34 63 49 52 63 m 70 50 b 72 47 74 43 79 42 b 90 42 105 43 136 42 b 103 45 85 48 71 50 m 90 51 b 90 51 96 48 103 49 b 103 49 139 76 148 83 b 148 83 90 51 90 51 m 107 67 b 112 67 116 68 119 72 b 118 91 116 110 115 129 b 113 109 110 88 107 67 m 78 72 b 75 72 73 74 73 77 b 73 80 75 82 78 82 b 81 82 83 80 83 77 b 83 74 81 72 78 72 m 81 70 b 84 69 90 68 92 68 b 92 68 85 75 85 75 b 85 75 88 76 95 81 b 95 81 85 81 85 81 b 85 81 88 85 90 91 b 90 91 79 84 79 84 b 77 87 71 92 70 92 b 70 92 72 82 72 82 b 70 82 65 82 61 81 b 61 81 70 76 70 76 b 68 74 65 68 65 66 b 65 66 74 71 74 71 b 75 68 79 62 81 60 b 81 60 81 70 81 70 Lead-in Code: !retime("start2syl",-350+($si1)*30,0)!{\an5\fscx0\fscy0\org($scenter,$smiddle)\frz!(($si%2)*21)*360!,\move(!$scenter-100!,!$smiddle+math.random(25,25)!,$scenter,$smiddle,0,500)\t(0,700,\fscx100\fscy100\frz0\3c&HFFF FFF&\blur0)} Chỉnh kích thước lúc đầu chữ 0, dùng tâm org, sử dụng frz(($si%2)*2-1) tính giá trị -1 *360 chữ xoay ngược xuôi từ move bên trái trục x -100 random trục y 25,25 đến vị trí trung tâm Dùng t khoảng đến 700 ms tăng kích thước chữ lên 100 chỉnh frz xuống ( để ngoan ngoãn không xoay Code: !retime("syl",0,100)!{\an5\bord0.5\3c&HFFFFFF&\pos($scenter,$smiddl e)\t(0,!$dur/4!,\fscx150\fscy120\3c&HFFFFFF&\2c&HFFFFFF&\blur5\ bord2)\t(!$dur/4!,$dur,\fscx0\fscy0\3c&HFFFFFF\bord0.5\blur0)} Đặt pos vị trí trung tâm, khoảng từ đến 1/4 dur tăng kích thước chữ theo trục x 150 y 120 sét màu tùy ý tăng blur Tiếp tục từ 1/4 đến dur giảm kích thước chữ xuống giảm blur layer1 hình vẽ Code: !retime("syl",100,200)!{\an5\fscx20\fscy20\bord0.5\blur4\shad0\3c&H00FFFF&\1c&H 00FFFF&\org($scenter, $smiddle)\move($scenter, $smiddle, !$scenter+30*math.cos(math.pi*2*j/maxj)!, !$smiddle+30*math.sin(math.pi*2*j/maxj)!}( bỏ hình vào ) Bắt đầu từ -100 đến 200 syl, chỉnh kích thước hình 20, cho move hình vị trí trung tâm, sử dụng math.sin cos cho trục x y để chữ tỏa thành vòng Layer hình Code: !retime("syl",100,200)!{\an5\bord0.5\fscx10\fscy10\move($scenter,$smiddle,!$scenter+ 40*math.sin(math.pi*2*j/maxj)!, !$smiddle+40*math.cos(math.pi*2*j/maxj)!,0,800)\3c&H00FFFF&\2c& H00FFFF&\1c&H00FFFF&\blur3\bord0.5)} Chỉnh kích thước nhỏ lại so với layer hình trước, tương tự Lead-out Code: !retime("syl2end",100,$syln*30+syl.i*30)!{\an5\fscx60\fscy60\pos($scenter,$smiddle)\t(0,400,\fs cx100\fscy100\fad(0,1500)} Kế tiếp thời gian syl, dùng t khoảng đến 400ms tăng kích thước trở ban đầu, sử dụng fad để chữ mờ Kết thúc FX18: Comment: 0,0:00:00.62,0:00:00.62,Default,,0000,0000,0000,code once,sao = { "m 16 -2 l 11 l -7 15 l 26 l 42 l 16 36 l 30 42 l 29 26 l 39 15 l 24 11 "} Comment: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,code once,mau = { "&H0000FF&", "&H00FFF7&", "&H00CE5D&", "&HFF8D00&", "&H8300FF&"} Comment: 0,0:00:15.27,0:00:15.27,Default,,0000,0000,0000,template,!retime("start2 syl",600+syl.i*50,0)!{\an5\blur2\bord1\fad(0,0)\pos($scenter,$smiddle)\fscx30 0\fscy300\q5\t(0,200,\fscx20\fscy20)\q5\t(200,400,\fscx100\fscy100)c!ma u[math.random(5)]!} Comment: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template char noblank,!retime("start2syl",500+syl.i*100,0)!{\an5\blur2\alpha&H30&\fscx0\fscy0\fsp30\pos($center ,$middle)\t(0,500,\fsp0\fscx100\fscy100\fr360\c!mau[math.random(5)]!)} Comment: 2,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template syl noblank,!retime("syl",0,0)!{\blur2\an5\pos($center,$middle)\t(0,100,\bord 2.5\blur4\be2\fscx110\fscy110\3c!mau[math.random(5)]!)\t(100,$dur,\fscx 100\fscy100)} Comment: 2,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template syl noblank,!retime("syl",0,0)!{\blur2\an5\pos($center,$middle)\1a!mau[math random(5)]!\3c!mau[math.random(5)]!\fscx100\fscy100\t(0,$dur,\bord2\b lur3\be2\fscx!(math.random(140,170))!\fscy!(math.random(140,170))!)\fa d(0,200)} Comment: 2,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template char noblank,!retime("syl2end",0,500+syl.i*100)!{\blur1.5\an5\alpha&H00&\fscx100\fscy100\fad(0,500)\p os($center,$middle)\t($dur,0,\fscx100\fscy100\b1\bord0\be4\blur5\3c!mau [math.random(5)]!\c!mau[math.random(5)]!)} Comment: 0,0:01:38.82,0:01:40.16,Default,,0000,0000,0000,template syl noblank notext loop 10,!retime("syl",0+($si1)*50,math.random(40,60)*10)!{\an5\move($scenter,$smiddle,!$scenter+ math.random(-70,70)!,!$smiddle+math.random(70,70)!)\blur4\bord2.5\shad0\p3\fad(0,500)\1c!mau[math.random(5)]!\3c! mau[math.random(5)]!\c!mau[math.random(5)]!\t(!$START50!,!$START30!,\fscx0\fscy0)\t($END,!$END+250!,\fscx50\fscy50)\t(!$END+200!,!$ END+275!,\fscx50\fscy50)\t(!math.random($START, $END)!,!$END+250!,\fscx50\fscy50)}!sao[1]! Giờ xin giải thích qua fx: Code: Comment: 0,0:00:00.62,0:00:00.62,Default,,0000,0000,0000,code once,sao = { "m 16 -2 l 11 l -7 15 l 26 l 42 l 16 36 l 30 42 l 29 26 l 39 15 l 24 11 "} Comment: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,code once,mau = { "&H0000FF&", "&H00FFF7&", "&H00CE5D&", "&HFF8D00&", "&H8300FF&"} lệnh dùng để gắn mã màu, mã vector hình Code: Comment: 0,0:00:15.27,0:00:15.27,Default,,0000,0000,0000,template,!retime("start2 syl",600+syl.i*50,0)!{\an5\blur2\bord1\fad(0,0)\pos($scenter,$smiddle)\fscx30 0\fscy300\q5\t(0,200,\fscx20\fscy20)\q5\t(200,400,\fscx100\fscy100)c!ma u[math.random(5)]!} Comment: 0,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template char noblank,!retime("start2syl",500+syl.i*100,0)!{\an5\blur2\alpha&H30&\fscx0\fscy0\fsp30\pos($center ,$middle)\t(0,500,\fsp0\fscx100\fscy100\fr360\c!mau[math.random(5)]!)} Hơi phức tạp chút, dòng dùng để làm chữ với FSCX FSCY lớn, co lại thành điểm nhỏ vị trí $scenter,$smiddle Dòng thứ làm chữ to kích cỡ ban đầu Code: Comment: 2,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template syl noblank,!retime("syl",0,0)!{\blur2\an5\pos($center,$middle)\t(0,100,\bord 2.5\blur4\be2\fscx110\fscy110\3c!mau[math.random(5)]!)\t(100,$dur,\fscx 100\fscy100)} Comment: 2,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template syl noblank,!retime("syl",0,0)!{\blur2\an5\pos($center,$middle)\1a!mau[math random(5)]!\3c!mau[math.random(5)]!\fscx100\fscy100\t(0,$dur,\bord2\b lur3\be2\fscx!(math.random(140,170))!\fscy!(math.random(140,170))!)\fa d(0,200)} Comment: 2,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template char noblank,!retime("syl2end",0,500+syl.i*100)!{\blur1.5\an5\alpha&H00&\fscx100\fscy100\fad(0,500)\p os($center,$middle)\t($dur,0,\fscx100\fscy100\b1\bord0\be4\blur5\3c!mau [math.random(5)]!\c!mau[math.random(5)]!)} Làm chữ "lột xác" (dòng 1,2) dần theo chiều tăng syllable index Và cuối cùng: Code: Comment: 0,0:01:38.82,0:01:40.16,Default,,0000,0000,0000,template syl noblank note FX19: Hình vẽ sao, sử dụng layer Code: m l l 10 l 13 l 20 l 14 12 l 17 20 l 10 15 l 20 l 12 Lead-in Code: !retime("start2syl",-300+($si-1)*40,0)!{\an5\pos($scenter,$smiddle)} Lead-in đơn giản dùng pos chỉnh chữ vị trí trung tâm Code: !retime("sylpct",0,100)!{\an5\pos($scenter,$smiddle)\t(0,!$dur/2!,\3c&HF FFFFF&\blur2\bord0.5)\t(!$dur/2!,$dur,\3c&HFFFFFF&\1c&HFFFFF F&\blur5\bord0.5)} Thời gian từ đến 100% lượng lời hát, dùng t khoảng đến 1/2 dur chỉnh màu viền trắng tăng blur Dùng t khoảng thời gian đến dur, tăng blur lên cao Tiếp đến hình vẽ Layer Code: Comment: 0,0:00:00.00,0:00:00.00,Kara,,0000,0000,0000,template notext loop 10,!retime("syl",0,250)!{\an5\fscx50\fscy50\shad0\t(\frz!(($si%2)1*2)*360!)\fad(0,100)\org($scenter, $smiddle)\pos(!$scenter+15*math.cos(math.pi*1*j/maxj)!, !$smiddle+15*math.sin(math.pi*1*j/maxj)!)\3c&HFFFFFF&\1c&HFFF FFF&\alpha&H00&}{\p1}m l l 10 l 13 l 20 l 14 12 l 17 20 l 10 15 l 20 l 12 {\p0} Chỉnh kích thước hình vẽ, dùng frz cho chữ xoay đặt pos với việc dùng dùng math.sin cos Layer hình Code: !retime("syl",250,500)!{\an5\fscy20\fscx20\bord4\blur7\shad7\move($scen ter,$smiddle,!$scenter+math.random(-40,40)!,!$smiddle+math.random(30,30)!)\alpha&H00&\3c&HFFFFFF&\1c&HFFFFFF&}{\p1}m l l 10 l 13 l 20 l 14 12 l 17 20 l 10 15 l 20 l 12 {\p0} Dùng move từ trung tâm đến khoảng random trái phải (-40,40) (-30,30) FX20: Clip: http://www.youtube.com/watch?v=778e1HgPK8&feature=player_embedded • Trước tiên vẽ đại hình sakura Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,code once,sakura = "m 0 b -4 -1 -11 -11 -11 -21 b -7 -19 -5 -16 -3 -13 b -10 21 -8 -32 -8 -32 b 10 -24 -5 0 " • Lead in: Thấy bình thường ta tưởng dòng xoắn, viết tới line eff lận Mục đích để xoắn xong lấy màu line eff thứ Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template noblank char,!retime("start2syl", -500+($si-1)*30, 0)!{\an7\pos(!$center5!,!$top10!)\fad(500,0)\fr180\frx360\t(0,500,\fr0\frx0)\t(499,500,\alpha&HFF)\1c &H43C1C3&} – Line 1: đặt alignment cho 7, alignment nên bị kéo lên sang trái nên pos phải tinh chỉnh lại với giá trị center - lấy top - 10 Vì thời gian để 500ms nên với tag \fad(500,0) để chữ mờ dần kèm theo cho xoắn với tag \fr tag \frx với giá trị 180 360, thời gian kết thúc giá trị 0, tag \frx360 ~> \frx0 để trục x xoắn vòng 360˚ tag \fr180 ~> \fr0 để trạng thái bắt đầu chữ nằm ngang quay 180˚ để trở trạng thái bình thường Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template noblank char,!retime("start2syl", -500+($si-1)*30, 0)!{\an1\pos(!$center5!,$bottom)\fad(500,0)\fr-180\frx360\t(0,500,\fr0\frx0)\t(499,500,\alpha&HFF)\1c&H0751AD&} – Line 2: tương tự line 1, set lại alignment cho chữ 1, set lại pos, chỉnh lại tag \fr \frx với giá trị âm để xoay ngược lại Code: Comment: 1,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template noblank,!retime("start2syl", -500+($si-1)*30, 0)!{\an5\pos($center,$middle)\blur0.5\alpha&HFF&\t(499,500,\alpha&H 00)\1vc(&H00FFFF&,&H00FFFF&,&H0751AD&,&H0751AD&)\3c&H 042443&} – Line 3: dòng mục đích phụ nên khoảng thời gian cuối line từ 499-500 biến để khoảng thời gian line xuất set màu cho line • Syl: Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template noblank syl loop 5,!relayer(((j%2)*2-1)*1+1)!!retime("presyl", 1000+j*50, 0)!{\an7\move(!$left-40+math.random(-50,25)!,!$ltop20+math.random(-50,10)!,!$center+math.random($width/3,$width/3)!,!$middle+math.random($height/4,$height/4)!)\fr!math.random(-180,180)!\frx!math.random(180,180)!\fry!math.random(-180,180)!\t(\fr!math.random(360,360)!\frx!math.random(-10,10)!\fry!math.random(10,10)!)\fscx!math.random(35,55)!\fscy!math.random(35,55)!\p1\blur3\be 3\1c&HFFFFFF&\3c&HFBDDFF&}!sakura! – Chạy trước chữ khoảng thời gian 1000ms move random để hoa rơi đụng vào chữ kèm theo move tag \fr , \frx , \fry để xoay lung tung Code: Comment: 0,0:00:00.00,0:00:00.00,Romaji,,0000,0000,0000,template noblank syl loop 3,!relayer(((j%2)*2-1)*0.5+0.5)!!retime("presyl", -100, $ldur/2)!{\an5\fad(0,2000)\move(!math.random($left,$center*1.025)!,!$lt op+math.random(50,0)!,!math.random($center*1.025,$right*1.025)!,!$lbottom+math.rand om(0,50)!)\fr!math.random(-180,180)!\frx!math.random(180,180)!\fry!math.random(-180,180)!\t(\fr!math.random(360,360)!\frx!math.random(-360,360)!\fry!math.random(360,360)!)\fscx!math.random(35,55)!\fscy!math.random(35,55)!\p1\blur3\ be3\1c&HFFFFFF&\3c&HFBDDFF&}!sakura! – Cái y chang không cho đụng vào chữ, mà cho xa để cảm giác rơi rớt Code: Comment: 1,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template noblank syl,!retime("syl", 0, 0)!{\an2\move($center,$bottom,$center,$top)\1c&HFFFFFF&\3a&HFF &\t(\fscx0\fscy0)\t(!$dur/2!,$dur,\alpha&HFF&)} – Mục đích để lấy phần Primary color bỏ phần Border đi, cho move lên kèm theo cho nhỏ lại Code: Comment: 1,0:00:00.00,0:00:00.00,Default,,0000,0000,0000,template noblank syl,!retime("syl", 0, 0)!{\an8\pos($center,$top)\1a&HFF&\3c&HFBDDFF&\t(\fscy300)\t(!$d ur/2!,$dur,\alpha&HFF&)} – Mục đích gần giống trên, thay vào bỏ phần Primary color lấy phần Border cho zoom lớn dịch chuyển xuống set alignment Eff thôi, vài dòng, không phức tạp cho Nói gần hết FX21: Clip: SNSD-tears [vietsub+kara] 4phút 17s http://www.youtube.com/watch?v=er2TZG0nVvE Kara -Hình vẽ Code: m 222 114 l 159 96 l 190 41 l 137 75 l 121 11 l 102 75 l 48 41 l 81 96 l 18 114 l 81 130 l 47 187 l 102 152 l 120 218 l 137 152 l 194 187 l 159 130 l 222 114 Code: Na = {"1","-1"} Cái thật gán giá trị +1 -1 chả -Với hàm function char_counter Lead-in Code: !char_counter(2)!!retime("start2syl",750+ci[1]*30,0)!{\an5\move(!$scenter+(($si%2)*2-1)*5+math.random(2,2)!,!$smiddle+(($si%2)*2-1)*10+math.random(2,2)!,$scenter,$smiddle,0,300)\3c!line.styleref.color3!)} Dùng Move di chuyển trục x trái phải trục y lên xuống 10 đến vị trí trung tâm Bóng Lead-in Code: !char_counter(1)!!retime("start2syl",750+ci[1]*30,0)!{\an5\move(!$scenter+(($si%2)*2-1)*3+math.random(2,2)!,!$smiddle+70+math.random(2,2)!,$scenter,!$smiddle+50!,0,300)\alpha&H80&\frx120\t(0,400,\frx120\ fscx100\fscy100\be1\alpha&H80&)} Tương tự lead-in, điều move trục y+70 đến +50 để chữ nằm phía Lead-in đầu, kết hợp với frx để chữ ngược lại alpha&H80& chữ suốt 50% Code: !retime("syl",0,0)!{\an5\move(!$scenter!,!$smiddle+5!,!$scenter!,!$smidd le!)\fscx100\fscy100\t(0,400,\fscy140\blur7\shad0.5\3c&HFFFFFF&\bord 0.5\be1)} Move theo trục y+5 đến trung tâm kết hợp tăng fscx140 để chữ cảm giác đẹp linh động Code: !retime("syl",0,0)!{\an5\pos($scenter,!$smiddle+50!)\fscx100\fscy100\frx1 20\t(0,400,\frx120\fscy170\blur1\shad0.5\bord0.5\3c&HFFFFFF&\be1\fs cx100\alpha&H80&)} Bóng syl thế, lúc đầu lead-in dùng move đến vị trí trục y+50, nên syl dùng pos đặt y +50, sử dụng frx alpha giống bóng lead-in đầu Về khoảng rơi Code: !maxloop(math.random(5,8))!!retime("syl",50,1000)!{\an5\bord0\shad0\1 c&HFFFFFF&\2c&HFFFFFF&\3c&HFFFFFF&\move(!$center+20+m ath.random(-50,50)!,!$middle-20-2*math.random(3,3)!,!$center+math.random(-20,20)!,!$middle+math.random(30,30)!)\t(!$dur/4!,!$dur/3!,\fry!math.random(250,250)!)\t(!$dur/3!,!$dur/2!,0.5,\fry!math.random(500,500)!\frx!math.random(-5,20)!\frz!math.random(1000,1000)!)\t(!$dur/2!,$dur,\blur7)\p1\fscx70\fscy70\frz!math.random(10 )*Na[math.random(1,2)]!)\blur10\shad0.5\bord1\be1\fscx5\fscy5\shad4}!s hape[1]! Nhìn thấy lung tung thật toàn tag đơn giản, kết hợp fr x y z để hình vẽ lung linh Bóng Hình vẽ Code: !maxloop(math.random(5,8))!!retime("syl",50,1000)!{\an5\bord0\shad0\1 c&HFFFFFF&\2c&HFFFFFF&\3c&HFFFFFF&\move(!$center+20+m ath.random(-50,50)!,!$middle+50-2*math.random(- 3,3)!,!$center+math.random(-20,20)!,!$middle+math.random(30,30)!)\t(!$dur/4!,!$dur/3!,\frx!math.random(250,250)!\fry!math.random(250,250)!)\t(!$dur/3!,!$dur/2!,0.5,\fry!math.random(500,500)!\frx!math.random(-5,20)!\frz!math.random(1000,1000)!)\t(!$dur/2!,$dur,\blur7)\p1\fscx70\fscy70\frz!math.random(10 )*Na[math.random(1,2)]!)\blur10\shad0.5\bord1\be1\fscx5\fscy5\shad4\fr x120\alpha&H50&}!shape[1]! Cũng tương tự hình vẽ 1, dùng frx120 alpha để hình suốt Lead-out] Code: !retime("syl2end",0,0)!{\an5\pos($center,$middle)\fad(0,1000)} Không khó hiểu nên không nói thêm Bóng lead-out Code: !retime("syl2end",0,0)!{\an5\pos($scenter,!$smiddle+50!)\frx120\fscx100\ fscy100\alpha&H80&\fad(0,1000)} Cũng lead-in, dùng pos đặt y+50, sử dụng frx120 sử dụng alpha để chữ suốt Đến phần việt sub Code: !char_counter(3)!!retime("line",-850+(ci[1]-1)*50,$syln*100+syl.i*100)!{\an5\org($sleft,$stop)\move(!$center15!,!$middle+(($si%1)*21)*15!,$center,$middle,0,1000)\frz180\fscx60\fscy60\3c&HFFFFFF&\t(0 ,800,\frz720\fscx100\fscy100\3a&H00&)\fad(0,300)} Cũng đặc biệt dùng frz xoay 180 , dùng t từ đến 800ms xoay vòng dùng fad để chữ mờ .. .Hướng dẫn thêm VSFIlterMod vào Aegisub 2.1.9: http://youtu.be/0FhQurZjvno Các bạn làm theo bước video để không bị lỗi Thật tình mà nói, với effect phức tạp chút, việc... bị lỗi Thật tình mà nói, với effect phức tạp chút, việc đưa code không giúp cả, người làm effect nhiều viết code lung tung (như tớ) đọc khó hiểu (nếu không muốn nói tớ hồi trước beginner đọc script... không vậy, nhiều effector không muốn đưa code cho ai, buộc họ đưa code làm người muốn post vô tớ thấy thay bắt buộc đưa code, tớ thấy cậu nên khuyến khích người ta giải thích cách làm effect (dùng

Ngày đăng: 27/04/2017, 08:54

Tài liệu cùng người dùng

Tài liệu liên quan