TCAX 字幕特效制作工具官方论坛 | ASS | TCAS | Python | Aegisub | Lua

 找回密码
 新人加入
查看: 4523|回复: 2
打印 上一主题 下一主题

[入场效果] SylFX_out_01 [复制链接]

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

楼主
发表于 2014-12-14 16:14:37 |显示全部楼层
Cool effect, thanks for your sharing, ALKOON :)

values of points (i.e. Pixel xy-Coordinates) retrieved by PixPoints(), are exactly between [(0, 0), (width - 1, height - 1)]
here width and height construct the minimal box that holds the text



2014-12-14_165437.jpg

It seems that the cut does going through the middle of every text.

------------------------------------------------------------------------------------------------------------

TCAX using FreeType library as its built-in font engine (to retrive metrics, pixels, etc.)

some links that I thought may be helpful

http://www.tcax.org/forum.php?mod=viewthread&tid=59    (http://freetype.sourceforge.net/ ... tutorial/step2.html)

http://www.tcax.org/forum.php?mod=viewthread&tid=38

http://www.tcax.org/forum.php?mod=viewthread&tid=32

http://www.tcax.org/forum.php?mod=viewthread&tid=31

http://www.tcax.org/forum.php?mo ... =1079&fromuid=2

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

沙发
发表于 2014-12-15 21:05:09 |显示全部楼层
ALKOON 发表于 2014-12-15 16:31
Thank you milky =D
but don't you think it's too much that I have to read ? XD
anyway it's helpful, I ...

:) Yes, I think so. But I cannot figure out exactly what problem are you facing, so, I give it back to you.

I wonder whether it's convenient for you to draw a simple graph to show your idea about how the pixels (particles from text) should move?

Administrator

TCAX Dev.

Rank: 7Rank: 7Rank: 7

板凳
发表于 2014-12-16 21:47:30 |显示全部楼层
ALKOON 发表于 2014-12-16 16:47
round(PIX_ori[1][1])
It's better than
_Height[_i][_j]

_Height[_i][_j] should be equal with the original PIX[1][1] (PIX_t), since 'PIX' has the structure ((initX, initY), (width, height),...), but 'PIX' may be manipulated, applied with filters, transformations, etc. some of them will enlarge or reduce PIX, such as PixBlur (enlarges a bit), so in this case _Height[_i][_j] will be smaller than PIX[1][1] (what's more, after combination with PIX generated from FontOut font, PIX will be even larger, _Height[_i][_j] should be with the same metric as PIXs directly generated from Font)

so, as a conclusion,
the solution provided by saiyaku is better.

but still cannot figure why not cut exactly through every middle of texts,
I suggest you using tcaxLog() --- to dump information into log files, or simply use Python built-in print(),
and with the help of Pause() function, to do some debug.

您需要登录后才可以回帖 登录 | 新人加入

GitHub|TCAX 主页

GMT+8, 2024-5-7 04:10

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部
RealH