CN114020383B - Interface display method, terminal and storage medium - Google Patents
Interface display method, terminal and storage medium Download PDFInfo
- Publication number
- CN114020383B CN114020383B CN202111272906.5A CN202111272906A CN114020383B CN 114020383 B CN114020383 B CN 114020383B CN 202111272906 A CN202111272906 A CN 202111272906A CN 114020383 B CN114020383 B CN 114020383B
- Authority
- CN
- China
- Prior art keywords
- interface
- displayed
- view
- full
- size parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000006854 communication Effects 0.000 claims description 22
- 238000004891 communication Methods 0.000 claims description 21
- 230000000875 corresponding effect Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 11
- 230000002596 correlated effect Effects 0.000 claims description 3
- 238000013461 design Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 10
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 6
- 230000009466 transformation Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention provides an interface display method, a terminal and a storage medium, which aim at the problems that the display content of a 3D interface on the existing terminal is limited and the user experience is poor, and a view port coordinate system of the 3D interface to be displayed is determined; according to the actual display range of the screen, determining the extension distance of the coordinate origin in the z-axis direction in a view port coordinate system of the 3D interface to be displayed; according to the extension distance, the 3D interface to be displayed is displayed on the screen, so that the extension distance of the coordinate origin in the z-axis direction is adjusted by setting the view port coordinate system of the 3D interface to be displayed, the effect that the 3D interface to be displayed is freely displayed on the screen is achieved, and user experience is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an interface display method, a terminal, and a storage medium.
Background
When a user browses an application program (such as a 3D game) of a 3D interface on a mobile terminal such as a mobile phone, a tablet computer and the like, the original 3D pattern is larger than the screen range on the premise of the same resolution, the actual visual range of the user is slightly different in display size along with the different sizes and resolutions of the screen, and the larger the size and resolution of the screen, the larger the display range of the 3D interface observable by the user, and the more content is observed; however, on the premise that the size specification of the terminal screen is certain, the displayed range of the 3D interface is always consistent, and on the premise that the screen parameters and the 3D interface size parameters are unchanged, the actual visible range which can be observed by a user cannot be changed, so that the experience of the user is poor.
Disclosure of Invention
The invention aims to solve the technical problem that the display content of a 3D application on a terminal in the related technology is limited, and provides an interface display method, the terminal and a storage medium.
In order to solve the technical problems, the invention provides an interface display method, which comprises the following steps:
Determining a view port coordinate system of a 3D interface to be displayed;
According to the actual display range of the screen, determining the extension distance of the coordinate origin in the z-axis direction in the view port coordinate system of the 3D interface to be displayed;
and displaying the 3D interface to be displayed on the screen according to the extension distance.
Optionally, in the determining the viewport coordinate system of the 3D interface to be displayed, the 3D interface to be displayed includes an interface greater than or equal to a preset scale range in the full-view 3D interface.
Optionally, the determining, according to the actual display range of the screen, the extending distance of the origin of coordinates in the z-axis direction in the viewport coordinate system of the 3D interface to be displayed includes:
and the display content of the 3D interface to be displayed is positively correlated with the extension distance.
Optionally, when the size parameter proportion of the full-view 3D interface matches the size parameter proportion of the actual display range, the 3D interface to be displayed is the full-view 3D interface.
Optionally, when the difference between the size parameter proportion of the full-view 3D interface and the size parameter proportion of the actual display range is greater than or equal to a first preset threshold, the 3D interface to be displayed includes the full-view 3D interface; or, the 3D interface to be displayed includes a first 3D interface, the display content in the length direction of the first 3D interface is consistent with the display content in the direction corresponding to the full-view 3D interface, and the display content in the width direction of the first 3D interface is at least part of the display content in the direction corresponding to the full-view 3D interface.
Optionally, when the size parameter ratio of the full-view 3D interface and the size parameter ratio of the actual display range are different from each other by a distance greater than or equal to a first preset threshold and less than a second preset threshold, the size parameter ratio of the full-view 3D interface is adjusted to be matched with the size parameter ratio of the actual display range, and the 3D interface to be displayed is the full-view 3D interface.
Optionally, in the dimension parameter proportion of the full-fig. 3D interface, the dimension parameter includes a design resolution and a dimension of the full-fig. 3D interface; the size parameter ratio of the actual display range includes the maximum resolution and the size of the actual display range.
Optionally, displaying the 3D interface to be displayed on the screen according to the extension distance includes:
And in the process of starting the corresponding application program, changing the z axis in the viewport coordinate system mapped by the application program in the frame according to the extension distance, and displaying the 3D interface to be displayed according to the changed viewport coordinate system.
The invention also provides a terminal, which comprises a processor, a memory and a communication bus;
The communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the interface display method described above.
The present invention also provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the interface display method described above.
Advantageous effects
The invention provides an interface display method, a terminal and a storage medium, which aim at the problems that the display content of a 3D interface on the existing terminal is limited and the user experience is poor, and a view port coordinate system of the 3D interface to be displayed is determined; according to the actual display range of the screen, determining the extension distance of the coordinate origin in the z-axis direction in a view port coordinate system of the 3D interface to be displayed; according to the extension distance, the 3D interface to be displayed is displayed on the screen, so that the extension distance of the coordinate origin in the z-axis direction is adjusted by setting the view port coordinate system of the 3D interface to be displayed, the effect that the 3D interface to be displayed is freely displayed on the screen is achieved, and user experience is improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
Fig. 1 is a schematic diagram of a hardware architecture of an alternative mobile terminal for implementing various embodiments of the present invention.
Fig. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in fig. 1;
FIG. 3 is a basic flowchart of an interface display method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface display effect according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
The terminal may be implemented in various forms. For example, the terminals described in the present invention may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a Portable media player (Portable MEDIA PLAYER, PMP), a navigation device, a wearable device, a smart bracelet, a pedometer, and the like, as well as fixed terminals such as a digital TV, a desktop computer, and the like.
The following description will be given taking a mobile terminal as an example, and those skilled in the art will understand that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for a moving purpose.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention, the mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the mobile terminal structure shown in fig. 1 is not limiting of the mobile terminal and that the mobile terminal may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the components of the mobile terminal in detail with reference to fig. 1:
The radio frequency unit 101 may be used for receiving and transmitting signals during the information receiving or communication process, specifically, after receiving downlink information of the base station, processing the downlink information by the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, global System for Mobile communications), GPRS (GENERAL PACKET Radio Service), CDMA2000 (Code Division Multiple Access, code Division multiple Access 2000), WCDMA (Wideband Code Division Multiple Access ), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time Division synchronous code Division multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency Division Duplex Long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time Division Duplex Long term evolution), etc.
WiFi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to send and receive e-mails, browse web pages, access streaming media and the like through the WiFi module 102, so that wireless broadband Internet access is provided for the user. Although fig. 1 shows a WiFi module 102, it is understood that it does not belong to the necessary constitution of a mobile terminal, and can be omitted entirely as required within a range that does not change the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the mobile terminal 100. The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive an audio or video signal. The a/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, and the like, and can process such sound into audio data. The processed audio (voice) data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting the audio signal.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and/or the backlight when the mobile terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; as for other sensors such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured in the mobile phone, the detailed description thereof will be omitted.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal. In particular, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 110, and can receive and execute commands sent from the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc., as specifically not limited herein.
Further, the touch panel 1071 may overlay the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel 1071 is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components for implementing the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 may be integrated with the display panel 1061 to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power source 111 (e.g., a battery) for supplying power to the respective components, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based will be described below.
Referring to fig. 2, fig. 2 is a schematic diagram of a communication network system according to an embodiment of the present invention, where the communication network system is an LTE system of a general mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network ) 202, an epc (Evolved Packet Core, evolved packet core) 203, and an IP service 204 of an operator that are sequentially connected in communication.
Specifically, the UE201 may be the terminal 100 described above, and will not be described herein.
The E-UTRAN202 includes eNodeB2021 and other eNodeB2022, etc. The eNodeB2021 may be connected with other eNodeB2022 by a backhaul (e.g., an X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide access from the UE201 to the EPC 203.
EPC203 may include MME (Mobility MANAGEMENT ENTITY ) 2031, hss (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, SGW (SERVING GATE WAY ) 2034, pgw (PDN GATE WAY, packet data network gateway) 2035, PCRF (Policy AND CHARGING Rules Function) 2036, and so on. The MME2031 is a control node that handles signaling between the UE201 and EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location registers (not shown) and to hold user specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034 and PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flows and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem ), or other IP services, etc.
Although the LTE system is described above as an example, it should be understood by those skilled in the art that the present invention is not limited to LTE systems, but may be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and the communication network system, various embodiments of the method of the present invention are provided.
First embodiment
Fig. 3 is a basic flowchart of an interface display method provided in this embodiment, where the interface display method includes:
s301, determining a view port coordinate system of a 3D interface to be displayed;
S302, determining the extension distance of a coordinate origin in the z-axis direction in a view port coordinate system of a 3D interface to be displayed according to the actual display range of a screen;
and S303, displaying the 3D interface to be displayed on the screen according to the extension distance.
By an application running on a terminal with a 3D interface, such as a 3D game developed by a 3D game engine, the running process is generally subjected to the following transformation process before drawing objects in the game to a graphics buffer:
World transformation, view transformation, perspective projection transformation, clipping and normalization, window transformation; in these processes, a coordinate system is generated, which is screen coordinates, viewport coordinates, world coordinates, and local coordinates, respectively. Wherein the content that can be displayed by the screen of the terminal is related to these coordinate systems.
In 3D applications, one very important parameter is viewport coordinates. The view port coordinates are equivalent to the visual area of the screen seen through by the camera, namely the shooting principle of the see-through camera, the view port coordinates are outwards diffusely emitted from the origin, the farther the distance is, the larger the view port area is, and the more the displayable content is; for the display of the 3D interface on the terminal, the view port coordinate system established from the original full-view 3D interface is longer in z-axis extension, and the farther from the screen, the more the screen display content is. Please refer to fig. 4.
In S301, first, a view port coordinate system of the 3D interface to be displayed, that is, a coordinate system of the 3D interface to be displayed under a projection view angle on a terminal screen is determined, where an x-axis and a y-axis extending directions are parallel to the screen, and a z-axis extending direction is perpendicular to the screen. In the embodiment of the invention, the 3D interface to be displayed is a 3D interface to be displayed to the user on the terminal screen visually, namely, the original full-view 3D interface, and the effect is actually displayed on the terminal screen. The actual display effect of the 3D interface may be set according to the needs of the user, which is not limited by the embodiment of the present invention.
In S302, according to the actual display range of the screen, an extension distance of the origin of coordinates in the z-axis direction in the viewport coordinate system of the 3D interface to be displayed is determined. Wherein the actual display range of the screen, i.e. the range on the screen that can be used for displaying the content. In general, in most cases, the actual display range of the screen is the whole screen, and certainly, the scheme of splitting the display range of the screen in the scene of the screen in the split screen mode, the small window mode and the like is not excluded, and if the screen is split by the split screen mode, the small window mode and the like, the actual display range of the screen is the range allocated to the 3D interface to be displayed after the splitting.
Knowing the actual display range of the screen and knowing the viewport coordinate system of the 3D interface to be displayed, determining that if the display effect of the 3D interface to be displayed is to be displayed, the extending distance of the origin of coordinates in the z-axis direction, that is, the known display effect, on the viewport coordinate system is required, and adjusting the extending distance of the origin of coordinates in the z-axis direction to achieve the desired display effect.
In some optional embodiments, determining, according to an actual display range of the screen, an extension distance of the origin of coordinates in the z-axis direction in a viewport coordinate system of the 3D interface to be displayed may specifically include:
The display content of the 3D interface to be displayed is positively correlated with the extension distance. For the screen of the terminal, the display content of the original full-figure 3D interface is more, and for presenting more display content, the size of the extension distance can be adjusted, and the larger the extension distance is, the smaller the proportion of the display content in the 3D interface to be displayed is, the more the corresponding display content is. It should be noted that, in the 3D interface to be displayed, the positive correlation relationship stops as the 3D interface to be displayed is consistent with the original full-view 3D interface, that is, if the 3D interface to be displayed is already the display content of the full-view 3D interface, the display content in the 3D interface to be displayed is not increased, but only the display proportion in the 3D interface to be displayed is further reduced.
In S303, according to the extension distance, the 3D interface to be displayed is displayed on the screen. After the extension distance in the z-axis direction is determined through the 3D interface to be displayed, the 3D interface to be displayed can be displayed on the screen according to the extension distance. In this way, it is possible to implement that the 3D interface is presented on the terminal with a display size desired by the user even if the display resolution of the terminal and the resolution of the original 3D interface are given to be unable to vary, and specifically, displaying the 3D interface to be displayed on the screen according to the extension distance may include:
and in the process of starting the corresponding application program, changing the z axis in the viewport coordinate system mapped by the application program in the frame according to the extension distance, and displaying the 3D interface to be displayed by using the viewport coordinate system after changing.
In some alternative embodiments, in determining a viewport coordinate system of the 3D interface to be displayed, the 3D interface to be displayed may include an interface greater than or equal to a preset scale range in the full-view 3D interface. In the related art, the 3D interface to be displayed is typically a part of the full-view 3D interface, and the user may display other parts of the full-view 3D interface by dragging the screen; in the embodiment of the invention, the 3D interface to be displayed can be set as an interface with a ratio greater than or equal to a preset ratio range in the whole 3D interface, that is, more contents in the whole 3D interface can be displayed on a screen as much as possible. The preset proportion range can be determined according to parameters such as the size and the resolution of the screen, and more contents in the full-figure 3D interface are displayed on the premise that the display details are not affected as much as possible.
In some alternative embodiments, the 3D interface to be displayed is a full-view 3D interface when the size parameter scale of the full-view 3D interface matches the size parameter scale of the actual display range. This means that if the ratio of the size parameters of the full-view 3D interface and the ratio of the size parameters of the actual display range are matched, the entire full-view 3D interface may be displayed as the 3D interface to be displayed. It is emphasized that the scale of the size parameters of the full 3D interface is adapted to the size parameters of the actual display range. Specifically, in the dimension parameter proportion of the full-fig. 3D interface, the dimension parameters thereof may include the design resolution and the dimension of the full-fig. 3D interface; the size parameter ratio of the actual display range may include the maximum resolution and size of the actual display range on the screen. Then, if the aspect ratio of the full-view 3D interface is similar to the aspect ratio of the screen and the resolution of the full-view 3D interface is similar to the resolution of the screen, the size parameter ratio of the full-view 3D interface and the size parameter ratio of the actual display range are matched, and in this case, the whole full-view 3D interface can be displayed as the 3D interface to be displayed.
In some optional embodiments, when the difference between the size parameter proportion of the full-view 3D interface and the size parameter proportion of the actual display range is greater than or equal to a first preset threshold, the 3D interface to be displayed includes the full-view 3D interface; or, the 3D interface to be displayed includes a first 3D interface, the display content in the length direction of the first 3D interface is consistent with the display content in the corresponding direction of the full-view 3D interface, and the display content in the width direction of the first 3D interface is at least part of the display content in the corresponding direction of the full-view 3D interface. This is shown by the fact that if the size parameter ratio of the whole 3D interface is large, there are several processing methods available in this case: firstly, the whole full-figure 3D interface can be continuously displayed as the 3D interface to be displayed regardless of the difference between the two interfaces; the method inevitably wastes the display space on the screen, and part of the space needs to be filled by black; secondly, according to the difference between the two, the interface to be displayed is set as a first 3D interface, wherein the display content of the first 3D interface in the length direction is consistent with the display content of the whole 3D interface in the corresponding direction, the display content of the first 3D interface in the width direction is a part of the display content of the whole 3D interface in the corresponding direction, and the size parameter proportion of the first 3D interface is matched with the size parameter proportion of the actual display range. This means that the whole 3D interface section displays a part of the content in the width direction on the basis of preferentially satisfying the display in the length direction.
In some alternative embodiments, when the size parameter ratio of the full-view 3D interface is greater than or equal to the first preset threshold and less than the second preset threshold, the size parameter ratio of the full-view 3D interface is adjusted to match the size parameter ratio of the actual display range, and the 3D interface to be displayed is the full-view 3D interface. In this case, if the size parameter ratio of the full-view 3D interface has a certain difference (greater than or equal to the first preset threshold) from the size parameter ratio of the actual display range, but the difference is not very large (less than the second preset threshold), the size parameter ratio of the full-view 3D interface may be adjusted to match the size parameter ratio of the actual display range, and then displayed. For example, in the size parameter ratio of the original actual display range, the resolution ratio is 16:9, whereas the dimension parameter scale for the full fig. 3D interface is 20:9, the display content in the length direction in the full fig. 3D interface can be compressed as appropriate to 16:9, matching the size parameter proportion of the actual display range, and displaying the whole full-figure 3D interface on a screen.
The embodiment provides an interface display method, which aims at the problems that the display content of a 3D interface on the existing terminal is limited and the user experience is poor, and determines a view port coordinate system of the 3D interface to be displayed; according to the actual display range of the screen, determining the extension distance of the coordinate origin in the z-axis direction in a view port coordinate system of the 3D interface to be displayed; according to the extension distance, the 3D interface to be displayed is displayed on the screen, so that the extension distance of the coordinate origin in the z-axis direction is adjusted by setting the view port coordinate system of the 3D interface to be displayed, the effect that the 3D interface to be displayed is freely displayed on the screen is achieved, and user experience is improved.
Second embodiment
The present embodiment also provides a terminal, as shown in fig. 5, which includes a processor 51, a memory 52, and a communication bus 53, wherein:
The communication bus 53 is used to enable connection communication between the processor 51 and the memory 52;
the processor 51 is configured to execute one or more programs stored in the memory 52 to implement the steps of the interface display method in the above embodiment, which is not described herein.
The present embodiment also provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of the interface display method in the above embodiments, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (9)
1. An interface display method, characterized in that the interface display method comprises:
Determining a view port coordinate system of a 3D interface to be displayed;
According to the actual display range of the screen, determining the extension distance of the coordinate origin in the z-axis direction in the view port coordinate system of the 3D interface to be displayed;
And in the process of starting the corresponding application program, changing the z axis in the viewport coordinate system mapped by the application program in the frame according to the extension distance, and displaying the 3D interface to be displayed according to the changed viewport coordinate system.
2. The interface display method according to claim 1, wherein in the view port coordinate system of the 3D interface to be displayed, the 3D interface to be displayed includes an interface greater than or equal to a preset scale range in the full-view 3D interface.
3. The interface display method according to claim 1, wherein determining, according to the actual display range of the screen, an extension distance of the origin of coordinates in the z-axis direction in the viewport coordinate system of the 3D interface to be displayed includes:
and the display content of the 3D interface to be displayed is positively correlated with the extension distance.
4. The interface display method according to claim 2, wherein the 3D interface to be displayed is the full-view 3D interface when the size parameter ratio of the full-view 3D interface matches the size parameter ratio of the actual display range.
5. The interface display method according to claim 2, wherein when a difference between a size parameter ratio of the full-view 3D interface and a size parameter ratio of the actual display range is greater than or equal to a first preset threshold, the 3D interface to be displayed includes the full-view 3D interface; or, the 3D interface to be displayed includes a first 3D interface, the display content in the length direction of the first 3D interface is consistent with the display content in the direction corresponding to the full-view 3D interface, and the display content in the width direction of the first 3D interface is at least part of the display content in the direction corresponding to the full-view 3D interface.
6. The interface display method according to claim 2, wherein when the size parameter ratio of the full-view 3D interface is greater than or equal to a first preset threshold and less than a second preset threshold, the size parameter ratio of the full-view 3D interface is adjusted to match the size parameter ratio of the actual display range, and the 3D interface to be displayed is the full-view 3D interface.
7. The interface display method according to claim 4, wherein in the scale of the size parameter of the full-view 3D interface, the size parameter includes a design resolution and a size of the full-view 3D interface; the size parameter ratio of the actual display range includes the maximum resolution and the size of the actual display range.
8. A terminal comprising a processor, a memory, and a communication bus;
The communication bus is used for realizing connection communication between the processor and the memory;
The processor is configured to execute one or more programs stored in the memory to implement the steps of the interface display method according to any one of claims 1-7.
9. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the interface display method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111272906.5A CN114020383B (en) | 2021-10-29 | 2021-10-29 | Interface display method, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111272906.5A CN114020383B (en) | 2021-10-29 | 2021-10-29 | Interface display method, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114020383A CN114020383A (en) | 2022-02-08 |
CN114020383B true CN114020383B (en) | 2024-06-04 |
Family
ID=80058960
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111272906.5A Active CN114020383B (en) | 2021-10-29 | 2021-10-29 | Interface display method, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114020383B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130063324A (en) * | 2011-12-06 | 2013-06-14 | 엘지전자 주식회사 | Mobile terminal and 3d image controlling method thereof |
KR20130082371A (en) * | 2012-01-11 | 2013-07-19 | 엘지전자 주식회사 | Apparatus and method for generating multi-3d image |
CN109683703A (en) * | 2018-10-30 | 2019-04-26 | 努比亚技术有限公司 | A kind of display control method, terminal and computer readable storage medium |
CN111476876A (en) * | 2020-04-02 | 2020-07-31 | 北京七维视觉传媒科技有限公司 | Three-dimensional image rendering method, device and equipment and readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110782532B (en) * | 2019-10-23 | 2021-04-16 | 北京达佳互联信息技术有限公司 | Image generation method, image generation device, electronic device, and storage medium |
-
2021
- 2021-10-29 CN CN202111272906.5A patent/CN114020383B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130063324A (en) * | 2011-12-06 | 2013-06-14 | 엘지전자 주식회사 | Mobile terminal and 3d image controlling method thereof |
KR20130082371A (en) * | 2012-01-11 | 2013-07-19 | 엘지전자 주식회사 | Apparatus and method for generating multi-3d image |
CN109683703A (en) * | 2018-10-30 | 2019-04-26 | 努比亚技术有限公司 | A kind of display control method, terminal and computer readable storage medium |
CN111476876A (en) * | 2020-04-02 | 2020-07-31 | 北京七维视觉传媒科技有限公司 | Three-dimensional image rendering method, device and equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114020383A (en) | 2022-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110175062B (en) | Screen refreshing frame rate method of mobile terminal, mobile terminal and storage medium | |
CN112799577B (en) | Method, terminal and storage medium for projecting small window | |
CN112394896B (en) | Reverse screen-throwing frame rate control method, device and computer readable storage medium | |
CN109144441B (en) | Screen adjusting method, terminal and computer readable storage medium | |
CN108958936B (en) | Application program switching method, mobile terminal and computer readable storage medium | |
CN112822538A (en) | Screen projection display method, screen projection device, terminal and storage medium | |
CN109471579B (en) | Terminal screen information layout adjustment method and device, mobile terminal and storage medium | |
CN107862217B (en) | Position information acquisition method, mobile terminal and computer storage medium | |
CN107979667B (en) | Dual-screen display method, mobile terminal and computer-readable storage medium | |
CN112114767B (en) | Screen-throwing frame rate control method, equipment and computer readable storage medium | |
CN112102780A (en) | Display frame rate regulation and control method, device and computer readable storage medium | |
CN110069122B (en) | Screen control method, terminal and computer readable storage medium | |
CN111324407A (en) | Animation display method, terminal and computer readable storage medium | |
CN112494932A (en) | Game frame supplementing method and device, terminal and computer readable storage medium | |
CN109491577B (en) | Holding interaction method and device and computer readable storage medium | |
CN109389394B (en) | Multi-screen payment control method, equipment and computer readable storage medium | |
CN108762709B (en) | Terminal control method, terminal and computer readable storage medium | |
CN110955397A (en) | Method for setting frame rate of game terminal, game terminal and storage medium | |
CN112437472B (en) | Network switching method, equipment and computer readable storage medium | |
CN112667339B (en) | Screen refresh rate setting method, terminal and computer readable medium | |
CN111970738B (en) | Network switching control method, device and computer readable storage medium | |
CN109462829B (en) | Call transfer method, device and computer readable storage medium | |
CN109669616B (en) | Side screen interaction control method and device and computer readable storage medium | |
CN108037959B (en) | Intelligent interface merging method, mobile terminal and computer readable storage medium | |
CN108196924B (en) | Brightness adjusting method, terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |