Changes between Initial Version and Version 3 of Ticket #4638


Ignore:
Timestamp:
Jul 28, 2017, 5:16:39 PM (7 years ago)
Author:
elexis
Comment:

The isometric view part should be reserved for #3653.

In the context of this ticket, people can code the config options and potentially the options page entries.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4638

    • Property Status newreopened
    • Property Component UI & SimulationCore engine
    • Property Summary Camera Options and Isometric ViewCamera view config options
    • Property Keywords simple added
  • Ticket #4638 – Description

    initial v3  
    1 Since it can be really useful for players and people who create promotional videos to change the maxzoom or camera movement speed, we should provide a way to change these things in the options page.
     11.
     2Since it can be really useful for players and people who create promotional videos to change the maxzoom or camera movement speed, we should provide a way to change these things in the config file (everything under `[view]` in the `default.cfg`).
    23
    3 The `fov` setting can be changed to implement an isometric view, see this setting from this demo: https://www.youtube.com/watch?v=NF9KTnkdlO0
    44{{{
    5 view.fov = 2.0 ; This is what gives the nearly isometric view
     5[view] ; Camera control settings
     6scroll.speed = 120.0
     7scroll.speed.modifier = 1.05      ; Multiplier for changing scroll speed
     8rotate.x.speed = 1.2
     9rotate.x.min = 28.0
     10rotate.x.max = 60.0
     11rotate.x.default = 35.0
     12rotate.y.speed = 2.0
     13rotate.y.speed.wheel = 0.45
     14rotate.y.default = 0.0
     15rotate.speed.modifier = 1.05      ; Multiplier for changing rotation speed
     16drag.speed = 0.5
     17zoom.speed = 256.0
     18zoom.speed.wheel = 32.0
     19zoom.min = 50.0
     20zoom.max = 200.0
     21zoom.default = 120.0
     22zoom.speed.modifier = 1.05        ; Multiplier for changing zoom speed
     23pos.smoothness = 0.1
     24zoom.smoothness = 0.4
     25rotate.x.smoothness = 0.5
     26rotate.y.smoothness = 0.3
     27near = 2.0                        ; Near plane distance
     28far = 4096.0                      ; Far plane distance
     29fov = 45.0                        ; Field of view (degrees), lower is narrow, higher is wide
     30height.smoothness = 0.5
     31height.min = 16
    632}}}
    733
    8 If those other camera settings are a requirement of isometric view, then those could be enforced by locking the settings if a new isometric option entry is enabled:
    9 {{{
     342. The `Restrict camera` option in `developer_overlay.xml` should also be loaded from a config entry, so that artists wanting to take screenshots from arbitrary angles can do that without having to interact with the menu each start (potentially in a separate patch).
    1035
    11 
    12 view.zoom.min = 1000.0 ; Zoom needs to be this far because of low fov
    13 view.zoom.max = 4600.0 ; Zoom needs to be this far because of low fov
    14 view.zoom.default = 2500.0 ; Zoom needs to be this far because of low fov
    15 view.zoom.speed = 4000.0 ; Zoom speed needs to be this high because of reasons
    16 view.zoom.speed.wheel = 256.0 ; Zoom speed needs to be this high because of reasons
    17 view.zoom.smoothness = 0.2 ; Lowered because of the extreme zoom
    18 view.rotate.y.speed = 0.0 ; This prevents camera rotation
    19 view.rotate.x.speed = 0.0 ; This prevents camera tilting
    20 view.fov = 2.0 ; This is what gives the nearly isometric view
    21 view.near = 40.0 ; Near plane distance increased to prevent z-fighting
    22 view.far = 5000.0 ; To make the max zoom work
    23 }}}
     363. Assuming that the options are only visible if some "advanced settings" boolean is toggled and assuming that we have tabbing (as used in the credits page for example),
     37these options could be exposed in the options page with checkboxes and sliders (potentially in a separate patch).