[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 561: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 617: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1065: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5284: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5284: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5284: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
BitMagicGarden • RPGツクールで直線を引く方法を教えてください。
ページ 11

RPGツクールで直線を引く方法を教えてください。

Posted: 2015年11月27日(金) 21:07
by ヱビ@名前が2文字

Re: RPGツクールで直線を引く方法を教えてください。

Posted: 2015年11月28日(土) 14:48
by ヱビ@名前が2文字
自己解決しました。
PIXI.Graphicsを使うのをやめ、線の画像を用意してSpriteを伸ばしたり回転させたりして実現しました。

Re: RPGツクールで直線を引く方法を教えてください。

Posted: 2015年11月29日(日) 00:03
by galanti
ウィンドウ上のグラデーションはポリゴンマスクのようです。PIXI.GraphicsのインスタンスをaddChildするとなぜかすべてのウィンドウにマスクがかかり、シーンが変わってもグラデーションが残り続けます。
WebGLでレンダリングした時のみ起こる現象で、Canvasレンダリングの時はグラデーションは起こらず、ちゃんと線だけ表示されます。
原因はrpg_core.jsの5888行目、WindowLayer.prototoype._webglMaskRectです。この関数でウィンドウ上にマスクをかけています。その結果ウィンドウが緑と赤に染まります。
もしウィンドウマスクを無効にしても問題ないなら、この関数を無効にしてもいいかもしれません。
なぜPIXI.Graphicsでウィンドウ全体にマスクがかかるのかはちょっとわかりませんでした。

Re: RPGツクールで直線を引く方法を教えてください。

Posted: 2015年11月30日(月) 08:13
by ヱビ@名前が2文字
詳しく解答してくださりありがとうございます。
勉強になりました。