Описание


# Panoramic Screenshot


A client mod, allows you to take high resolution normal/panoramic/skybox screenshots.
Use `/screenshot` to take a specified type of screenshot. Also supports set a shortcut key to take panoramic or skybox screenshots.
## Feature Details
### `/screenshot normal `
Take a normal screenshot with the specified resolution. Max to 16384 * 16384.
### `/screenshot panoramic `
Shoter form of the command below, will use default parameters.
This is what the shortcut key actually calls.
Default parameters are:
- `height`: your current screen height
- `fov`: your current FOV
- `yaw_start`: 0
- `frame_delay`: 0
### `/screenshot panoramic `
Take a panoramic screenshot that around yourself, like the title image.
Implementation method is to rotate the perspective 360° and take screenshots repeatedly, and stitch them.
To prevent scene changes during filming, the mod will try to pause game client. Bus run `/tick freeze` before this is still recommended.
Parameters:
- `mode`: one of `FAST` and `PRECISE`, `FAST` will take 360 screenshots while `PRECISE` take one screenshot each column of pixels.
`FAST` mode have some flaws when fov larger than 60°. So `PRECISE` mode is recommended.
- `height`: height of the final screenshot, in pixels, the width will be calculated by `height/fov * 360`.
- `fov`: field of view when taking screenshots, in degrees.
- `yaw_start`: the starting yaw when taking screenshots, in degrees. 0 means facing south, 90 means facing west.
- `frame_delay`: delay between each screenshot, in frames.
### `/screenshot skybox `
Take a skybox screenshot, which is a 6-face cubemap. Like Minecraft title screen background.
In fact you can custom title screen with those skybox screenshots.
Parameters:
- `name`: the file name of screenshots, form `_0.png` to `_5.png`.
- `size`: the width and height, in pixels.
### `/screenshot gif `
Record screen as gif file and save it in `screenshots` folder.
You can run `/screenshot gif` directly to record a short gif with default parameters (`2` seconds, `10` fps).
Parameters:
- `start`: start recording with the given frame rate, and keep recording until run `/screenshot gif end`.
- `end`: finish the recording started by `start` and save it.
- `fix_time `: record for a fixed duration and save automatically.
- `frame_rate`: how many frames to capture each second.
### Custom Title Screen Background

#### Prue Vanilla Resource Pack
Just put skybox screenshots in `minecraft/textures/gui/title/background` and name them `panorama_0.png` to `panorama_5.png`.
#### With this mod
This mod allows multiple skyboxes exist, and load one randomly at a time.
Put skybox screenshot in `{namespace}/textures/gui/title/background`, and create a metadata file named `{name}.json` in the same folder, with content like this:
```json
{
"name": "{name}",
"weight": 1
}
```
The directory should looks like:
```
\{namespace}
\textures
\gui
\title
\background
{name}_0.png
{name}_1.png
{name}_2.png
{name}_3.png
{name}_4.png
{name}_5.png
{name}.json
```
Mod will load all metadata and pick one randomly by the weight each time.