This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
en:tutorials:viewport:viewport [2020/08/31 05:37 (5 years ago)] – ↷ Links adapted because of a move operation sausage | en:tutorials:viewport:viewport [2021/02/11 21:29 (4 years ago)] (current) – Updated for recent config changes sausage | ||
---|---|---|---|
Line 135: | Line 135: | ||
<code ini> | <code ini> | ||
- | Camera | + | Camera |
- | RelativeSize | + | Size |
- | RelativePosition | + | UseRelativeSize = true |
- | BackgroundColor | + | Position |
+ | BackgroundColor = (0, 100, 0) ~ (0, 255, 0) | ||
[Viewport2] | [Viewport2] | ||
- | Camera | + | Camera |
- | RelativeSize | + | Size |
- | RelativePosition | + | UseRelativeSize = true |
- | BackgroundColor | + | Position |
+ | BackgroundColor = (100, 0, 0) ~ (255, 0, 0) | ||
[Viewport3] | [Viewport3] | ||
Camera | Camera | ||
- | RelativeSize | + | Size |
- | RelativePosition | + | UseRelativeSize |
+ | Position | ||
BackgroundColor | BackgroundColor | ||
[Viewport4] | [Viewport4] | ||
Camera | Camera | ||
- | RelativeSize | + | Size |
- | RelativePosition | + | UseRelativeSize |
+ | Position | ||
BackgroundColor | BackgroundColor | ||
Line 164: | Line 168: | ||
In other words, each viewport covers exactly a quart of our display, whichever sizes we have chosen for it, fullscreen or not.\\ | In other words, each viewport covers exactly a quart of our display, whichever sizes we have chosen for it, fullscreen or not.\\ | ||
- | As you may have noticed, we only gave an explicit value for the '' | + | As you may have noticed, we only gave an explicit value for the '' |
- | All the other viewports inherits from the '' | + | All the other viewports inherits from the '' |
- | That means that this value will be the same than the one from '' | + | That means that this value will be the same than the one from '' |
We did it exactly the same way for '' | We did it exactly the same way for '' | ||
We then need to place them on screen to prevent them to be all displayed on top of each other.\\ | We then need to place them on screen to prevent them to be all displayed on top of each other.\\ | ||
- | To do so, we use the property '' | + | To do so, we use the property '' |
Lastly, the first three viewports use different shades for their '' | Lastly, the first three viewports use different shades for their '' |