Game Development Reference
In-Depth Information
Since we can create multiple views, we can switch between them in the render frame and
render the scene repeatedly. In this way, we will have the scene shown as they appear
from the different views. In our previous example, we can render the same scene in all
four quadrants, but with different transformations. To do that, we have to initialize the
four views in the four corners of our screen with the following viewports: top left (0, 0,
0.5, 0.5), top right (0.5, 0, 0.5, 0.5), bottom left (0, 0.5, 0.5, 0.5), and bottom right (0.5,
0.5, 0.5, 0.5). Once we have these, we manipulate their transformation and put them in a
viewList vector. Then our render frame is as simple as:
The result depends on how we choose to manipulate our views. Here is an example which
you can find in the code samples provided with this topic:
Search WWH ::




Custom Search