Skip to content

Commit

Permalink
doc: Scalefactor explanations.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Feb 3, 2021
1 parent 2468126 commit e54db58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions doc/media/openage/blendmask_format_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ image quality with higher zoom levels.
```
# Assume the texture image has a size of 100x100
scalefactor 1.0 # No scaling, 100x100 at default zoom
scalefactor 2.0 # 50x50 at default zoom; 100x100 at 2x zoom
scalefactor 4.0 # 25x25 at default zoom; 100x100 at 4x zoom
scalefactor 2.0 # scaled down to 50x50 at default zoom; original 100x100 at 2x zoom in
scalefactor 4.0 # scaled down to 25x25 at default zoom; original 100x100 at 4x zoom in
# Factors <1 result in upscaling
scalefactor 0.5 # 200x200 at default zoom; 100x100 at 2x zoom
scalefactor 0.5 # scaled up to 200x200 at default zoom; original 100x100 at 2x zoom out
```


Expand Down
9 changes: 5 additions & 4 deletions doc/media/openage/terrain_format_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ imagefile <image_id> <filename>
# selection of blendomatic borders
blendmask <blend_id> <filename> <priority>
# How much the texture is scaled down at default zoom level
# the zoom level at which the texture is shown in full detail
# e.g. scalefactor 2.0 -> full detail at 200% zoom
scalefactor <factor>
# layer and animation definitions
Expand Down Expand Up @@ -221,11 +222,11 @@ image quality with higher zoom levels.
```
# Assume the texture image has a size of 100x100
scalefactor 1.0 # No scaling, 100x100 at default zoom
scalefactor 2.0 # 50x50 at default zoom; 100x100 at 2x zoom
scalefactor 4.0 # 25x25 at default zoom; 100x100 at 4x zoom
scalefactor 2.0 # scaled down to 50x50 at default zoom; original 100x100 at 2x zoom in
scalefactor 4.0 # scaled down to 25x25 at default zoom; original 100x100 at 4x zoom in
# Factors <1 result in upscaling
scalefactor 0.5 # 200x200 at default zoom; 100x100 at 2x zoom
scalefactor 0.5 # scaled up to 200x200 at default zoom; original 100x100 at 2x zoom out
```


Expand Down

0 comments on commit e54db58

Please sign in to comment.