Dual Virtual Camera Display Adaptation for Screen Aspect Ratio Mismatch
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing methods for displaying virtual environment pictures in first-person shooting games often result in distortion or obscured fields of view when the screen resolution ratio differs from the preset ratio, leading to incomplete or distorted displays on various devices.
Innovation Solution
The implementation of a method using two virtual cameras to adjust the proportion of virtual objects in a virtual environment picture based on device information, ensuring proper alignment and display on different screen aspect ratios.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If a single virtual camera is used for picture acquisition in a first-person shooting game, then the device complexity is low and the implementation is simple, but the virtual object may obscure the central field of view when the screen resolution ratio differs from the preset ratio
Solution Approach 1:
The patent divides the single virtual camera into two separate virtual cameras: a first virtual camera for acquiring the target virtual object and a second virtual camera for acquiring other virtual objects. This segmentation allows independent parameter initialization for each camera, enabling adaptation to different screen resolution ratios while maintaining clear field of view display.
Solution Approach 2:
The patent implements dynamic parameter initialization for the virtual cameras based on device information. The field of view and other parameters are adjusted according to the actual screen resolution ratio, making the system adaptable to different devices rather than using fixed preset values.
2Manufacturing precision
If the virtual camera parameters are initialized based on preset ratios, then the manufacturing precision and display consistency are high for standard devices, but the display distortion occurs on devices with different screen resolution ratios
Solution Approach 1:
The patent changes the initialization approach from fixed preset ratios to dynamic parameter adjustment based on actual device information. The field of view and other camera parameters are adjusted according to the actual screen resolution ratio, maintaining display precision across different devices.
Solution Approach 2:
The system transitions from static preset parameters to dynamic parameter initialization that adapts to each device's screen characteristics. This allows the virtual camera to maintain optimal display precision whether the screen ratio matches the preset or differs from it.
3Reliability
If the screen resolution ratio matches the preset ratio, then the virtual object displays correctly without distortion, but devices with different screen resolution ratios experience distortion and obscured field of view
Solution Approach 1:
By segmenting the camera system into two independent virtual cameras with separate parameter initialization, the patent ensures that the target virtual object can be reliably displayed without obscuring the field of view, while simultaneously adapting to different device screen ratios.
Solution Approach 2:
The dynamic parameter initialization based on actual device information ensures reliable display on each specific device while maintaining compatibility across diverse screen resolution ratios, eliminating the need for exact preset ratio matching.
Data Source
AI summary
Embodiments of this disclosure disclose a method and apparatus for displaying a virtual environment picture, a device, and a storage medium, and belong to the computer field. The method includes: creating a first virtual camera and a second virtual camera; performing parameter initialization on the first virtual camera based on device information, to adjust a proportion of the target virtual object in a virtual environment picture; performing parameter initialization on the second virtual camera; and displaying the virtual environment picture based on pictures acquired by the first virtual camera and the second virtual camera. This method can adapt the target virtual object to a device screen, thereby preventing that the device screen has a ratio different from that of a preset virtual environment picture from causing incomplete display of the target virtual object or an obscured central field of view.


