Viewport setting (X, Y) does not work while rendering using RenderTarget

  • I do not see it in poor English. (I am Japanese)

I draw one by using RenderTarget, and finally do PostEffect processing.
I thought about splitting the screen for multiplayer,
When changing the viewport and drawing it,
Viewport.X and Viewport.Y
It does not work.
(The drawing start position does not change)

Viewport.Width and Viewport.Height It seems to be working.

So, drawing of multiple screens is done from X = 0, Y = 0.
Is there a solution?

  • I tried it with the test code, but the screen splitting process that ran out of RenderTarget has no problem.

----- in Japanese
RenderTarget を1枚使い、それに描画して、最終的にPostEffect処理をしています。
マルチプレイヤー用の画面分割をしようと思い、
Viewportを変更して描画すると、
Viewport.X とViewport.Y
が効きません。
(描画開始位置が変わりません)
Viewport.Width とViewport.Height
は効いているようです。
ですので、複数画面の描画が全て、X=0,Y=0 から行われてしまいます。
解決方法はあるでしょうか?

*テストコードで試しましたが、RenderTargetを使わない画面分割の処理は、問題はありません。

You can use this to help with language translations.

これを使用して、言語の翻訳に役立てることができます。

1 Like

He basically wants to create multiple split screen cameras with post draw effects… for multiplayer

彼は基本的にポストドロー効果を持つ複数の分割画面のカメラを作成したい… マルチプレイヤー用

申し訳ありませんが、私は助けることはできませんが、私はメッセージを理解すると思います。

Thanks for the reply, of course I am using it.