1 min
Splitscreen is working! Since the splitscreen need to accommodate for multiple cameras, multiple viewports were required. 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. Having multiple viewports is the method I used for rendering multiple cameras. Our lecture set up a pointer to a camera in the render data which is sent to render function as a batch to be drawn. The scissor rect is used to change the size of how much is rendered. The scissor rect has to be changed based on the size of the window but not the viewport.
Subscribe to this blog via RSS.
Low level programming dev diary 28
Text based adventure dev diary 6
Level design developer diary 3
Game engine programming dev diary 14
Audio-visual production dev diary 7
Audio-Visual Production: Particle System Mesh Spawning Issues
Posted on 20 Feb 2020Low level programming dev diary (28) Text based adventure dev diary (6) Level design developer diary (3) Post mortem (4) Ex-machina dev diary (11) Game engine programming dev diary (14) Network game dev diary (11) Audio-visual production dev diary (7)