Sign in to follow this  

problem with rendering for Splitscreen mode

This topic is 1860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Everyone!!!!
I am using a in-house rendering library. In my recent work, I needed to render split screen for four players ie four cameras for each player.
When I set the render target area of window using SetViewport call, it is being set to valid areas ie for each camera. For example if window size is 1980 x 1024 than for first cam, x, y, width and height params are 0 , 0, 1980/4, 1024, for second cam these values are 1980/4, 0, 1980/4 + 1980/4, 1024 so on so forth. I also verified that viewport is not being reset in-between.

But still I get the result from last cam rendering covering to whole window.
Can anyone help me what could possibly be wrong here?

Thanks!!
Happy coding..


akv

Share this post


Link to post
Share on other sites
sorry there is a typo..
for second cam x, y , width , height values are 1980/4, 0, 1980/4, 1024

Share this post


Link to post
Share on other sites
Sign in to follow this