Mario Kart Dev Diary: More Cameras

Mario Kart Dev Diary: More Cameras

Feb 25, 2019. | By: Lewis Bond
1 min

Camera 2.0

Carrying on with the cameras from last time, I am now trying to get it to display multiple cameras in order to get the split screen working.

I figured out how to set the size of viewport and that the scissor rect is used to select what part of the viewport is rendered.

The difference in the what is displayed when the scissor rect is changed.


The first image shows the viewport normally and the second shows the viewport being 1.5x bigger than the window and and the rect being 1.1x bigger than the window.

These two variables, is what is needed to get the splitscreen working, but I haven’t quite figure out what needs to be done. Does there need to be multiple viewports to accommodate for multiple cameras or does using the scissor rect can one viewport being used with multiple scissors rects splitting up the screen.

PREVIOUS BLOG POST NEXT BLOG POST

About

Those who can do and those who can't teach games design.

Our Bunker



United Kingdom.