Jump to content

  • Log In with Google      Sign In   
  • Create Account

problem with rendering for Splitscreen mode


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 akv   Members   -  Reputation: 101

Like
0Likes
Like

Posted 14 December 2012 - 11:09 PM

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

Sponsor:

#2 akv   Members   -  Reputation: 101

Like
0Likes
Like

Posted 14 December 2012 - 11:11 PM

sorry there is a typo..
for second cam x, y , width , height values are 1980/4, 0, 1980/4, 1024




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS