bevyengine / bevyengine/bevy

Viewport size and position to be defined through percentages or absolute values

Open
#4,960 1 comment 3 reactions 0 assignees View on GitHub
A-Rendering A-Windowing C-Feature C-Usability
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Problem
Using viewports to define split screen or minimaps have some differing requirements, that would sometimes be more easily defined by percentage of the available window or absolute values respectively. Minimaps might have more use of absolute values, and split screen would probably have either 50/50 or something similar in viewport.

## Solution

This could be expressed as enums for the viewport size and viewports positions as defined by #4898 and proposed by [comment](https://github.com/bevyengine/bevy/pull/4898#issuecomment-1148730290)

Contributor guide

Open the contributing guide

Research direction

Start by reading issue #4898 and the linked comment, which describe the proposed viewport API. Compare that proposal with the current viewport behavior for split screens and minimaps. Done means viewport size and position can be expressed using the proposed percentage-based or absolute-value forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.