Page switching method, page switching device, program, and electronic device
The page switching method improves operation efficiency in virtual social scenes by allowing a single zoom operation to switch from one page to another, addressing the inefficiencies of existing methods.
Patent Information
- Application Number
- JP2024560934
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-10-28
- Filing Date
- 2023-09-12
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2043-09-12
AI Technical Summary
Existing page switching methods in virtual social scenes are inefficient, requiring multiple operations to switch between pages, leading to low operation efficiency.
A page switching method that allows switching from a first page to a second page by performing a zoom operation, where the zoom operation triggers entry into the second page corresponding to a virtual object in the first virtual scene, thereby simplifying the page switching process.
This method reduces the number of operation steps required for page switching, enhancing operation efficiency by allowing page switching and enlargement to be performed with a single zoom operation.
Smart Images

Figure 2025516129000001_ABST
Abstract
Description
Technical Field
[0001] This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 28, 2022, with the application number 202211336842.5 and the invention title "Page Switching Method, Apparatus, Storage Medium, and Electronic Device".
[0002] This application relates to the technical field of computers, and specifically to page switching methods, apparatuses, storage media, electronic devices, and program products.
Background Art
[0003] Virtual social scenes usually include various scene areas, virtual characters, and other elements. Different scene areas represent different fields of social scenes. To enhance the entertainment of virtual social interactions, users can select the scene areas they want to enter according to their needs, such as entering a friend's square or a self-study room for learning purposes.
[0004] In related technologies, mainly by clicking on selectable elements, users can enter the scene at one level below or one level above the current scene area. That is, page switching is realized by the click operation method. For example, by clicking on a target virtual character, the user can enter the detailed page of the target virtual character, thereby realizing interaction with the target virtual character. However, when switching to the detailed page after expanding the current page, multiple operations are required, resulting in the technical problem of low operation efficiency in the page switching process.
[0005] So far, no effective solution has been shown for the above problems.
Summary of the Invention
Problems to be Solved by the Invention
[0006] An embodiment of the present application provides a page switching method, apparatus, storage medium, electronic device, and program product for solving at least the technical problem of low operation efficiency in the page switching process.
Means for Solving the Problem
[0007] According to one aspect of an embodiment of the present application, there is provided a page switching method executed by an electronic device, including: displaying a first page on which at least one virtual object in a first virtual scene is displayed; in response to a first zoom operation, zooming in on the first page and displaying the zoomed-in first page; and when it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switching the display of the zoomed-in first page to the display of the second page.
[0008] According to another aspect of an embodiment of the present application, there is further provided a page switching apparatus, including: a first display unit for displaying a first page on which at least one virtual object in a first virtual scene is displayed; a first processing unit for zooming in on the first page in response to a first zoom operation and displaying the zoomed-in first page; and a second processing unit for switching the display of the zoomed-in first page to the display of a second page when it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene.
[0009] According to another aspect of an embodiment of the present application, there is further provided a computer-readable storage medium storing a computer program, which is configured to execute the above page switching method when the computer program runs.
[0010] According to another aspect of the embodiments of the present application, there is further provided a computer program product including a computer program / command, and when the computer program / command is executed by a processor, the steps of the above method are realized.
[0011] According to another aspect of the embodiments of the present application, there is further provided an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the page switching method according to the computer program.
Brief Description of the Drawings
[0012] The drawings described herein are used to better understand the present application and constitute a part of the present application. The schematic embodiments and their descriptions of the present application are used to interpret the present application, but do not unduly limit the present application. The drawings include the following.
[0013]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Embodiments for Carrying Out the Invention
[0014] In order for the scheme of the present application to be better understood by those skilled in the art, the technical scheme of the embodiments of the present application will be clearly and comprehensively described below in combination with the drawings in the embodiments of the present application. Of course, the described embodiments are only a part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts should belong to the protection scope of the present application.
[0015] Note that in the description, claims, and the above drawings of this application, terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to explain a specific order or sequence. The data used in this way is interchangeable according to the situation, and thus it should be understood that the embodiments of this application described herein can be implemented in an order other than the illustrated or described order. Also, terms such as "include", "comprise", and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device including a series of steps or means is not limited to those steps and means explicitly listed, and may include steps and means not explicitly listed, or other steps and means specific to these processes, methods, products, or devices.
[0016] According to one aspect of the embodiments of this application, a page switching method is provided. As an optional embodiment, the above page switching method is applicable to the application scenario shown in FIG. 1, but is not limited thereto. In the application scenario shown in FIG. 1, the terminal device 102 communicates with the server 106 via the network 104, but is not limited thereto. The server 106 executes operations on the database 108, such as data writing operations and reading operations, but is not limited thereto. The above terminal device 102 includes a man-machine interaction screen, a processor, and a memory, but is not limited thereto. The above man-machine interaction screen is used to display virtual objects in the first virtual scene on the terminal device 102, the second page corresponding to the first virtual object, etc., but is not limited thereto. The above processor is used to execute corresponding operations in response to the above man-machine interaction operation, or generate corresponding commands and send the generated commands to the server 106, but is not limited thereto. The above memory is used to store related processing data such as the trigger condition of the first zoom operation and the correspondence between the first virtual object and the second page.
[0017] As an optional form, on server 106, the following steps in the page switching method are executed.
[0018] Step S102: Display a first page on which at least one virtual object in the first virtual scene is being displayed.
[0019] Step S104: In response to a first zoom operation, zoom in on the first page and display the zoomed-in first page.
[0020] Step S106: When it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switch the display of the zoomed-in first page to the display of the second page.
[0021] As an example, in this embodiment, the execution subject of the above steps S102 to S106 is not limited. For example, all of the above steps S102 to S106 may be executed on the terminal device 102 or the server 106, or a part may be executed on the terminal device 102 and a part may be executed on an arithmetic server that communicates with the server 106.
[0022] When the above form is adopted, when a first zoom operation is executed on the first page and the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, the displayed zoomed-in first page is switched to the display of the second page corresponding to the first virtual object. In this way, by only executing a zoom operation on the first page, the first page can be zoomed in and automatically switched to the second page.
[0023] However, in the prior art, when a user wants to interact with the enlarged page and continue the interaction on the switched page, the user can only perform an enlargement operation on the current page and can only interact on the current enlarged page, but cannot enter the switched page. Only by performing a click operation again can the page switching be realized.
[0024] Therefore, the embodiments of the present application reduce the intermediate operation steps, realize the double function of enlarging and switching the page with one click, reduce the operation complexity, solve the technical problem of low operation efficiency in the page switching process, and realize the technical effect of improving the operation efficiency.
[0025] In order to solve the problem of low operation efficiency occurring in the above page switching process, the embodiments of the present application provide a page switching method. FIG. 2 is a flowchart of the page switching method according to the embodiments of the present application, and the flow includes the following steps.
[0026] Step S202: Display a first page on which at least one virtual object in a first virtual scene is being displayed.
[0027] As shown in FIG. 3(a), the first virtual scene of the first page includes, but is not limited to, a plurality of virtual objects such as virtual buildings and virtual characters. The virtual object acts as each social portal in the form of a map. For example, one can enter the friend square through the virtual building. Also, one can enter the detailed page where the virtual character exists through the virtual character and perform interactions between characters.
[0028] Step S204: In response to a first enlargement operation, execute the following steps S2041 and S2042.
[0029] Step S2041: Enlarge the first page and display the enlarged first page.
[0030] Step S2042: When it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switch the display of the first page after zooming to the display of the second page.
[0031] By performing a zoom operation on the first page, display the enlarged first page shown in FIG. 3(b). When the first zoom operation meets the trigger condition, switch the currently enlarged first page shown in FIG. 3(b) to the second page shown in FIG. 3(c). The second page is the page corresponding to the first virtual object on the first page.
[0032] In the virtual scene, the user can start from the page where the top - layer virtual scene exists and sequentially enter the pages of the next lower level through the specified operations. For example, by performing a zoom operation, switch from the first page shown in FIG. 3(a) to the second page corresponding to the first virtual object.
[0033] As an example of being selectable, when the above - mentioned first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switching the display of the first page to the display of the second page corresponding to the first virtual object means that, based on the first zoom operation, when it is determined that the magnification of the first page is equal to or greater than a first predetermined magnification and the center of the first zoom operation is located on the first virtual object, or when it is determined that the magnification of the first page is equal to or greater than a first predetermined magnification and the center of the first page after zooming is located on the first virtual object, switch the display of the first page after zooming to the display of the second page. This includes the above two cases.
[0034] Assume that the default magnification factor is 1. When the magnification factor of the first page after magnification is 2 or more and the center of magnification of the first magnification operation is located on the first virtual object, the trigger condition for page switching is satisfied, and the display of the magnified first page is switched to the second page.
[0035] For example, as shown in Fig. 4(a), assume that the first magnification operation on the first page is executed, the magnification factor of the first page after magnification is 2, and the center of magnification A of the first magnification operation is located on the virtual building. In this case, page switching is triggered. That is, the currently displayed magnified first page is switched to the second page.
[0036] Also, for example, as shown in Fig. 4(b), assume that the first magnification operation on the first page is executed, the magnification factor of the first page after magnification is 3, and the center point B of the magnified first page is located on the virtual building. In this case, page switching is triggered. That is, the currently displayed magnified first page is switched to the second page.
[0037] As an optional embodiment, when the first magnification operation is a magnification operation triggered by two fingers on the screen, the center between the two fingers on the screen is determined as the center of magnification of the first magnification operation.
[0038] As shown in Fig. 4(a), if the first page is magnified by the movement operation of two fingers, the center point A of the connection line between the two fingers may be used as the center of magnification of the first magnification operation, but it is not limited to this.
[0039] Of course, for the movement operation of two fingers, the second finger may be moved away from the first finger while keeping the position of the first finger unchanged, or the first finger and the second finger may be moved simultaneously to increase the distance between the fingers, but it is not limited to these.
[0040] In one selectable example, the center point of the connection line formed at the initial position where two fingers are placed on the first page may be used as the expansion center for the first expansion operation, or alternatively, the center point of the connection line at the position after moving the two fingers a predetermined distance in a direction away from each other may be used as the expansion center for the first expansion operation, but it is not limited thereto.
[0041] In another selectable example, switching the display of the first page to the display of the second page corresponding to the first virtual object includes, when the first virtual object is a virtual building, displaying the detailed page of the virtual building, which is the second page corresponding to the virtual building, or when the first virtual object is a virtual character, displaying the detailed page of the virtual character, which is the second page corresponding to the virtual character. The detailed page of the virtual building displays the second virtual scene in the virtual building, and the second virtual scene includes virtual characters and / or virtual objects in the virtual building. The detailed page of the virtual character displays the character information of the virtual character.
[0042] The first virtual scene shown in Fig. 3(a) includes virtual objects such as virtual buildings and virtual characters, but is not limited thereto. And the virtual objects are in the form of a map and serve as each social portal. For example, when the first virtual object is a virtual building, by performing the first expansion operation, the display of the first page is switched to the display of the second page corresponding to the virtual building. As shown in Fig. 3(c), a plurality of virtual characters in the friend square are displayed, and interactions between the virtual characters are performed in the friend square.
[0043] When the first virtual object is a virtual character, by performing a first zoom operation, a second page corresponding to the virtual character is displayed. For example, as shown in FIG. 7, by performing a third zoom operation on a third page where a second virtual object (virtual character) exists, a fourth page, that is, a detailed page of the virtual character is displayed, and character information of the virtual character (for example, clothing information of the virtual character) is displayed on the detailed page.
[0044] Note that the character information of the virtual character may be, but is not limited to, the state information of the virtual character (for example, online or offline), attribute information (for example, level, gender, age), and clothing information (for example, hat, glasses).
[0045] As can be seen from FIG. 3, the second page is a detailed page of the virtual building. That is, the second page is a page at one level below the first page, and a second virtual scene inside the virtual building is displayed on the detailed page. However, the second virtual scene includes, but is not limited to, virtual characters, virtual objects, etc. The second page shown in FIG. 3(c) is just an example and does not limit the second page.
[0046] As an example of being selectable, switching the display of the enlarged first page to the display of the second page includes making the display of the enlarged first page gradually hidden and gradually displaying the second page in the process of the first page being enlarged.
[0047] In the process of performing the first zoom operation, assuming that after the enlarged first page shown in Fig. 5(a) appears and the first zoom operation is still being performed, the first page is gradually hidden while the second page is gradually displayed. Also, before the page switch, the transition page shown in Fig. 5(b) appears. It can be seen that the transition page contains the virtual objects on the enlarged first page and the virtual objects on the second page. That is, the content shown on the transition page is the overlapping of the virtual objects on the enlarged first page and the virtual objects on the second page.
[0048] After the transition page shown in Fig. 5(b) appears, by continuing to perform the first zoom operation, when the magnification multiple of the enlarged first page becomes equal to or greater than the magnification threshold a (the first predetermined multiple) and the zoom center of the first zoom operation is located on the first virtual object, specifically as shown in Fig. 5(c), the display of the enlarged first page is switched to the display of the second page.
[0049] By using the above method, in the process of performing the first zoom operation, the state of page change from different perspectives can be seen, and according to the state of page change from different perspectives, it is possible to control whether to continue performing the first zoom operation or stop the execution, more intuitively display the detailed process of page switching, and enhance the flexibility of page switching.
[0050] As an example of being selectable, on the second page, at least one virtual object in the second virtual scene is displayed. The above method further includes, on the second page, in response to a second zoom operation, enlarging the second page and displaying the enlarged second page; and when it is determined that the second zoom operation triggers entering a third page corresponding to the second virtual object in the second virtual scene, switching the display of the enlarged second page to the display of the third page.
[0051] From the description of the above embodiment, by performing a first zoom operation on the first page, after switching the currently displayed page from the first page to the second page shown in Fig. 5(c), by performing a second zoom operation on the second page, for example, as shown in Fig. 6(a), it can be understood that the second page is zoomed by the movement operation of two fingers.
[0052] When the magnification multiple of the second page becomes equal to or greater than the magnification threshold b and the zoom center of the second zoom operation is located on the second virtual object, switch the display of the second page to the display of the third page corresponding to the second virtual object.
[0053] For example, when performing a second zoom operation on the second page, if the magnification multiple of the second page satisfies the magnification threshold b (for example, magnified by 2 times) and the zoom center of the second zoom operation is located on the second virtual object, the trigger condition for page switching is satisfied, and the currently displayed magnified second page is switched to the third page corresponding to the second virtual object. For example, specifically, as shown in Fig. 6(b), switch from the friend square to the detailed page of the target virtual character.
[0054] Note that the execution processes of the second zoom operation and the first zoom operation are the same, but the trigger conditions that must be satisfied for the switching from the first page to the second page and the switching from the second page to the third page may be the same or different. For example, the value taken by the magnification threshold a that the magnification multiple of the first page must satisfy and the predetermined magnification threshold b that the magnification multiple of the second page must satisfy may be the same or different.
[0055] For any two page switches, usually, according to a specific scene, respective predetermined multiple thresholds are set. For example, according to the size of the currently enlarged page, a multiple threshold that the page switch must meet is set. When the currently enlarged page is small, the predetermined multiple threshold is set small, and when the currently enlarged page is large, the predetermined multiple threshold may be set large.
[0056] As an example that can be selected, by performing a third zoom operation on the third page shown in FIG. 6(b) according to the same execution process as the above first zoom operation and second zoom operation, when the multiple by which the third page is enlarged is equal to or greater than the multiple threshold c and the zoom center of the third zoom operation is located on the second virtual object, specifically as shown in FIGS. 7(a) and 7(b), the display of the enlarged third page is switched to the display of the clothing detail page of the image corresponding to the second virtual object (virtual character).
[0057] By performing different zoom operations on different pages and when the corresponding trigger conditions are met, the enlarged page is switched to the page at one level lower than the current page, simplifying the operation steps of the page switch and improving the operation efficiency.
[0058] As an example that can be selected, on the second page, at least one virtual object in the second virtual scene is displayed. The method further includes, on the second page, when the first zoom operation has not ended and is being continuously executed, enlarging the second page in response to the continuously executed first zoom operation and displaying the enlarged second page; and when the continuously executed first zoom operation is determined to trigger entering the third page corresponding to the second virtual object in the second virtual scene, switching the display of the enlarged second page to the display of the third page.
[0059] As shown in Fig. 8(a), when a first zoom operation is performed on the first page and the first page is zoomed in by a factor of 2, the display of the first page is switched to the second page shown in Fig. 8(b). Then, when the first zoom operation continues to be executed and the second page is zoomed in by a factor of 3, specifically as shown in Figs. 8(c) and 8(d), the display of the zoomed second page is switched to the third page.
[0060] That is, in response to the first zoom operation, after zooming in the first page and switching the display of the first page to the display of the second page, continuing to respond to the first zoom operation, while zooming in the second page, the page after the second page is zoomed in is displayed. When the zoom factor of the page becomes larger than a predetermined multiple threshold, the zoomed second page is switched to the third page.
[0061] Note that in this embodiment, the first zoom operation refers to a zoom operation triggered by two fingers on the screen. The continuously executed first zoom operation refers to that after switching the display of the first page after zooming to the display of the second page, the two fingers continue to maintain contact with the screen and move in a direction away from each other on the screen.
[0062] That is, the continuous execution of the first zoom operation can be understood as that the screen continues to be zoomed by the operation of the two fingers moving continuously on the screen, and in the process of continuous zooming, first, it is switched from the first page to the second page, and then from the second page to the third page, but it is not limited to this.
[0063] As shown in Figs. 8(a) and 8(b), assuming that the first zoom operation is a zoom operation triggered by two fingers on the screen and the first zoom operation triggers entering the second page, as shown in Fig. 8(b), the display of the first page is switched to the display of the second page, and the two fingers continue to maintain contact with the screen on the second page.
[0064] If the first zoom operation has not been completed and is still being executed, by continuously moving the two fingers, move the two fingers away from each other on the screen to display the enlarged second page shown in Fig. 8(c). Finally, if the magnification multiple of the enlarged second page is greater than a predetermined magnification threshold, specifically as shown in Fig. 8(d), switch the display of the enlarged second page to the display of the third page corresponding to the second virtual object.
[0065] Note that when the two fingers move away from each other on the screen and trigger the first zoom operation, first switch the currently displayed page from the first page to the second page. After entering the second page, if the two fingers continue to move away from each other on the screen, that is, the distance between the two fingers becomes even larger, the second page is enlarged. In other words, when displaying the second page, the distance d2 between the two fingers is larger than the distance d1 between the two fingers when displaying the first page, and when displaying the enlarged second page, the distance d3 between the two fingers is larger than the distance d2 between the two fingers when displaying the second page.
[0066] As another selectable example, in a virtual scene that realizes human-machine interaction using cross-reality (XR) technology, the method for realizing the first zoom operation includes, but is not limited to, one of the following methods.
[0067] (1) When the user communicates in the virtual scene by means of a wearable device, the first zoom operation is realized by a gesture operation.
[0068] For example, when the user wears a head-mounted display, a completely closed viewing angle is provided to the user, and according to the page in the virtual scene that the user is viewing, the first page or the second page is enlarged by a gesture of spreading the user's both arms.
[0069] (2) Operate the device with a pad to realize the first zoom operation.
[0070] For example, by operating on the buttons on a Bluetooth game pad or performing a combined operation between buttons, the first page or the second page is enlarged.
[0071] (3) In the virtual scene of a somatosensory game, an enlargement operation on the first page is realized by the somatosensory game device and the physical movements of the user.
[0072] For example, by using video-based motion capture technology to analyze the physical movements of the user based on camera data, when the physical movements meet a predetermined command (for example, spreading both arms), the first page or the second page is enlarged.
[0073] By continuously performing the first enlargement operation, it is possible to smoothly switch from the first page to the third page, avoiding performing multiple enlargement operations on multiple pages, enhancing the continuity of the page switching operation, and enhancing the entertainment of virtual social interaction.
[0074] From the description of each of the above embodiments, it can be understood that in the virtual scene, the user can enter the page at the next lower level by enlarging sequentially from the topmost scene (or the page where the scene exists) towards the lower layer. Conversely, by means of a zoom operation, it is possible to sequentially return from the bottommost page to the page at the next upper level towards the upper layer. Specifically, on the third page, in response to the first reduction operation, the third page is reduced and the reduced third page is displayed, and when the first reduction operation is specified to trigger entering the second page, the display of the reduced third page is switched to the display of the second page.
[0075] As shown in FIG. 9, when a first reduction operation is performed on the third page, the reduced third page shown in FIG. 9(b) is displayed. Here, the first reduction operation can, but is not limited to, decreasing the display scale of the currently displayed page according to the movement of two fingers by moving the two fingers on the screen in a direction approaching each other.
[0076] When the first reduction operation triggers entering the second page, the display of the third page is switched to the display of the second page. As an example that can be selected, when switching from the third page to the second page, the trigger condition that the first reduction operation needs to meet is that when it is determined based on the first reduction operation that the scale at which the third page is reduced is equal to or less than a first predetermined scale, switching the display of the reduced third page to the display of the second page.
[0077] As shown in FIGS. 9(a) and 9(b), if the third page is reduced to 50% of the original page, the trigger condition of the first reduction operation is satisfied, and the currently displayed reduced third page is returned to the second page shown in FIG. 9(c).
[0078] According to a similar operation, when displaying a virtual object in a second virtual scene on the second page, the second page is reduced according to a second reduction operation, and the reduced second page is displayed. Further, when the second reduction operation triggers entering the third page where the first virtual object is displayed, the display of the reduced second page is switched to the display of the first page.
[0079] According to the above embodiments provided by the present application, when a first reduction operation is performed on the third page and the first reduction operation triggers entering the second page, the currently displayed third page is switched to the display of the second page. In other words, by simply performing a reduction operation on the third page, the third page can be switched to the second page, achieving the technical effect of reducing the operation steps, reducing the complexity of the operation, and improving the operation efficiency.
[0080] As a selectable example, by adopting the process of continuously performing the above-described first enlargement operation and further continuously performing the first reduction operation, it is possible to smoothly return from the third page to the first page. Specifically, when the second page is displayed and the first reduction operation has not ended and is continuously executed, in response to the continuously executed first reduction operation, the second page is reduced and the reduced second page is displayed. And when the continuously executed first reduction operation is identified to trigger entering the first page, the display of the reduced second page is switched to the display of the first page. This includes performing these operations.
[0081] As shown in FIGS. 10(a) and 10(b), assuming that the first reduction operation is a reduction operation triggered by two fingers on the screen and the first reduction operation triggers entering the second page, as shown in FIG. 10(b), the display of the third page is switched to the display of the second page, and the two fingers continue to maintain contact with the screen on the second page.
[0082] As a selectable example, when the above-described first reduction operation is a reduction operation triggered by two fingers on the screen, and after switching the display of the third page to the display of the second page, the two fingers continue to maintain contact with the screen, the second page is displayed, and the first reduction operation has not ended and is continuously executed. In response to the continuously executed first reduction operation, reducing the second page and displaying the reduced second page includes, when the second page is displayed and the two fingers move in a direction approaching each other on the screen, reducing the second page in response to the first reduction operation triggered by the two fingers on the screen and displaying the reduced second page.
[0083] For example, if the first zoom-out operation has not been completed and is still being executed, by continuously moving two fingers, move the two fingers on the screen in a direction towards each other, and display the second page after zooming out as shown in FIG. 10(c). Finally, if the scale at which the second page is zoomed out is equal to or less than a second predetermined scale, specifically as shown in FIG. 10(d), switch the display of the second page after zooming out to the display of the first page.
[0084] Note that when the two fingers move on the screen in a direction towards each other and trigger the first zoom-out operation, first switch the currently displayed page from the third page to the second page. After entering the second page, if the two fingers continue to move on the screen in a direction towards each other, that is, the distance between the two fingers becomes even smaller, zoom out the second page. In other words, when displaying the second page, the distance between the two fingers is smaller than the distance between the two fingers when displaying the first page.
[0085] Using the above method, in response to the first zoom-out operation, zoom out the third page and switch the display of the third page to the display of the second page. Then, continue to respond to the first zoom-out operation, zoom out the second page, display the second page after zooming out, and finally, if the trigger condition is met, switch the display of the second page to the first page.
[0086] By continuously performing the first zoom-in operation, it is possible to smoothly return from the third page to the first page, avoiding performing multiple zoom-in operations on multiple pages and enhancing the continuity of the page switching operation.
[0087] To more clearly understand the page switching method in the embodiments of the present application, the following will further explain by combining the overall flowchart shown in FIG. 11 and the sequence diagram shown in FIG. 12.
[0088] As shown in FIG. 11, taking the method of realizing page switching by performing a zoom-in operation as an example, the specific steps of the above page switching method include the following.
[0089] Step S1102: Enter the scene map, i.e., the first page.
[0090] As shown in Fig. 3(a), the expression form of the scene map may include, but is not limited to, virtual buildings, virtual characters, etc.
[0091] Step S1104: The user performs a zoom-in operation in the current scene.
[0092] The current scene is the first virtual scene on the first page. Assuming that the user performs a first zoom-in operation in the first virtual scene, as shown in Figs. 3(a) and 3(b), it can be understood from the figure that as the two fingers move, the display scale of the first page increases and the virtual objects in the virtual scene also become larger.
[0093] Note that the first virtual scene may be a partial virtual scene on the first page, but it is not limited thereto. In addition, other virtual scenes may also be included on the first page.
[0094] Step S1106: Determine whether the magnification multiple of the first page meets a predetermined magnification threshold.
[0095] For example, as shown in Fig. 3(b), assuming that the first virtual scene is magnified to twice the size of the first page, it meets the condition that the predetermined magnification threshold is 2 or more.
[0096] Step S1108: Determine whether to trigger the page at the next lower level of the zoom center.
[0097] For example, as shown in Fig. 3(b), assuming that the first virtual scene is magnified to twice the size of the first page and the zoom center is located on the first virtual object, step S1110 is executed; otherwise, step S1112 is executed.
[0098] Here, the first virtual object is one of the entrances to the social area, that is, there exists a page at one level below corresponding to the first virtual object, for example, the second page which is the detailed page corresponding to the first virtual object.
[0099] Step S1110: Enter the page at one level below.
[0100] For example, switch from the first page shown in Fig. 3(b) to the second page shown in Fig. 3(c), or switch from the second page shown in Fig. 6(a) to the third page shown in Fig. 6(b).
[0101] Here, when page switching occurs, set the initial magnification factor for entering the page at one level below, for example, set the default magnification factor to 1.
[0102] Step S1112: Do not perform any operation.
[0103] For example, assume that after magnifying the first page, it becomes as shown in Fig. 3(b), and if the operation center of the first magnification operation at this time is not located on the first virtual object, then stay on the magnified first page shown in Fig. 3(b) and do not perform any operation.
[0104] To more clearly understand the above page switching method, the following combines with the sequence diagram shown in Fig. 12 to explain the above page switching method from the interaction process among the user, the client-side presentation layer, and the background logic layer.
[0105] Step S1202: The user performs a magnification operation in the current scene.
[0106] Here, through the interaction between the user side and the client side, move two fingers on the screen in a direction away from each other to perform a magnification operation, for example, perform the first magnification operation in the above embodiment.
[0107] Step S1204: Determine whether the magnification factor threshold of the scene has been reached.
[0108] On the client side, determine whether the magnification factor of the virtual scene of the current page meets a predetermined magnification threshold. For example, determine whether the magnification factor of the first page shown in FIG. 3 is equal to or greater than the first predetermined magnification factor. If it is met, execute step S1206.
[0109] Step S1206: When the magnification threshold has been reached, determine whether to trigger the page at the next lower level of the magnification center.
[0110] As shown in FIG. 4, when the magnification factor of the first page meets the first predetermined magnification factor and the magnification center A or B of the first zoom operation is located on the first virtual object, the trigger condition is met and step S1208 is executed. Otherwise, step S1210 is executed.
[0111] Step S1208: Request the address of the page at the next lower level from the background logic layer.
[0112] As shown in FIG. 4, when the magnification factor of the first page meets the first predetermined magnification factor and the magnification center A or B of the first zoom operation is located on the first virtual object, request the access address of the second page in the background and execute step S1212.
[0113] Step S1210: Do not perform any operation.
[0114] Step S1212: Return the access address of the second page to the client.
[0115] Step S1214: On the display interface of the client, hide the page of the current scene and display the page at the next lower level.
[0116] For example, as shown in FIG. 3, switch from the enlarged first page to the second page.
[0117] According to the above embodiments provided by the present application, when an enlargement operation is performed on the first page, and the first enlargement operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene, the displayed enlarged first page is switched to the display of the second page corresponding to the first virtual object. In other words, by simply performing an enlargement operation on the first page, the first page can be switched to the second page, reducing the operation steps and the complexity of the operation, thereby solving the technical problem of low operation efficiency in the page switching process and achieving the technical effect of improving the operation efficiency.
[0118] For the sake of simplicity in the description of the above embodiments of each method, all are represented as a combination of a series of operations. However, for those skilled in the art, the present application is not limited to the described order of operations. Based on the present application, it is obvious that some steps can be performed in other orders or simultaneously. Next, for those skilled in the art, it is also obvious that the embodiments described in the specification all belong to preferred embodiments, and the related operations and modules are not necessarily required by the present application.
[0119] Based on another aspect of the embodiments of the present application, a page switching device shown in FIG. 13 is further provided. The device includes: a first display unit 1302 for displaying a first page on which at least one virtual object in the first virtual scene is displayed; a first processing unit 1304 for enlarging the first page in response to a first enlargement operation and displaying the enlarged first page; and a second processing unit 1306 for switching the display of the enlarged first page to the display of the second page when it is determined that the first enlargement operation triggers entry into the second page corresponding to the first virtual object in the first virtual scene.
[0120] The first virtual scene on the first page shown in Fig. 3(a) includes, but is not limited to, virtual objects such as virtual buildings and virtual characters. Here, in the first virtual scene, the virtual objects are responsible for each social portal in the form of a map. For example, one can enter the friend square through a virtual building. Also, one can enter the detailed page where the virtual character exists through the virtual character and perform interactions between characters.
[0121] By performing an enlargement operation on the first page, the enlarged first page shown in Fig. 3(b) is displayed. When the first enlargement operation satisfies the trigger condition, the currently displayed enlarged first page is switched to the second page shown in Fig. 3(c). Here, the second page is the page corresponding to the first virtual object on the first page.
[0122] As can be intuitively understood from Fig. 3, the second page is the detailed page of the virtual building. That is, the second page is a page at one level lower than the first page, and a second virtual scene inside the virtual building is displayed on the detailed page. Here, the second virtual scene includes, but is not limited to, virtual characters, virtual objects, etc. The second page shown in Fig. 3(c) is just an example and does not limit the second page.
[0123] Optionally, the second processing unit 1306 includes a first processing module for switching the display of the enlarged first page to the display of the second page when it is specified based on the first enlargement operation that the magnification multiple of the first page is equal to or greater than a first predetermined multiple and the center of the enlarged first page is located on the first virtual object, or when it is specified based on the first enlargement operation that the magnification multiple of the first page is equal to or greater than a first predetermined multiple and the center of the enlarged first page is located on the first virtual object.
[0124] Optionally, when the first zoom operation is a zoom operation triggered by two fingers on the screen, the device further includes a third processing unit for determining the center between the two fingers on the screen as the zoom center of the first zoom operation.
[0125] Optionally, the second processing unit includes a second processing module for gradually hiding the display of the enlarged first page and gradually displaying the second page during the process of enlarging the first page.
[0126] Optionally, on the second page, at least one virtual object in the second virtual scene is displayed. The device further includes a fourth processing unit for enlarging the second page and displaying the enlarged second page in response to a second zoom operation on the second page, and a first switching unit for switching the display of the enlarged second page to the display of the third page when it is determined that the second zoom operation triggers entry into a third page corresponding to a second virtual object in the second virtual scene.
[0127] Optionally, on the second page, at least one virtual object in the second virtual scene is displayed. When the first zoom operation has not ended and continues to be executed on the second page, the device further includes a fifth processing unit for enlarging the second page and displaying the enlarged second page in response to the continuously executed first zoom operation, and a second switching unit for switching the display of the enlarged second page to the display of the third page when it is determined that the continuously executed first zoom operation triggers entry into a third page corresponding to a second virtual object in the second virtual scene.
[0128] Optionally, the first zoom operation refers to a zoom operation triggered by two fingers on the screen, and the continuously executed first zoom operation refers to that after switching the display of the first page after zooming to the display of the second page, the two fingers continue to maintain contact with the screen and move away from each other on the screen.
[0129] Optionally, when the first virtual object is a virtual building, the second processing unit 1306 includes a first display module for displaying a detailed page of the virtual building, which is the second page corresponding to the virtual building, or when the first virtual object is a virtual character, a second display module for displaying a detailed page of the virtual character, which is the second page corresponding to the virtual character. The detailed page of the virtual building displays a second virtual scene in the virtual building, and the second virtual scene includes virtual characters and / or virtual objects in the virtual building. The detailed page of the virtual character displays the character information of the virtual character.
[0130] Optionally, the device further includes a second display unit for displaying a third page, a sixth processing unit for reducing the third page in response to a first reduction operation and displaying the reduced third page, and a third display unit for switching the display of the reduced third page to the display of the second page when the first reduction operation is determined to trigger entry into the second page.
[0131] Optionally, when it is determined that the scale at which the third page is reduced based on the first reduction operation is equal to or less than a first predetermined scale, the third display unit includes a fourth processing module for switching the display of the reduced third page to the display of the second page.
[0132] Optionally, when the second page is displayed, the first reduction operation has not ended and is continuously executed, and the apparatus further includes a seventh processing unit configured to reduce the second page and display the reduced second page in response to the continuously executed first reduction operation; and an eighth processing unit configured to switch the display of the reduced second page to the display of the first page when it is determined that the continuously executed first reduction operation triggers entering the first page.
[0133] It should be noted that the embodiments of the page switching apparatus herein can refer to the embodiments of the above page switching method, and the description thereof is omitted here.
[0134] According to still another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the above page switching method, and the electronic device may be the terminal device shown in FIG. 14. This embodiment will be described by taking the electronic device as a background device as an example. As shown in FIG. 14, the electronic device includes a memory 1402 and a processor 1404. A computer program is stored in the memory 1402, and the processor 1404 is configured to execute the steps in the embodiments of the method according to any one of the above items by the computer program.
[0135] Optionally, in this embodiment, the electronic device may be located at at least one of a plurality of network devices of a computer network.
[0136] Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program.
[0137] Step S1: Display a first page on which at least one virtual object in a first virtual scene is displayed.
[0138] Step S2: In response to a first zoom operation, zoom in on the first page and display the zoomed-in first page.
[0139] Step S3: When it is specified that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switch the display of the enlarged first page to the display of the second page.
[0140] Optionally, for those skilled in the art, the structure shown in FIG. 14 is only an image, and the electronic device of the electronic apparatus may be a target terminal such as a smartphone (for example, an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a pocket PC, and a mobile Internet device (MID), a PAD, etc. FIG. 14 does not limit the structure of the electronic device of the above electronic apparatus. For example, the electronic device of the electronic apparatus may include more or fewer assemblies (for example, a network interface, etc.) than those shown in FIG. 14, or may have an arrangement different from that shown in FIG. 14.
[0141] Here, the memory 1402 is used to store software programs and modules, for example, program commands / modules corresponding to the page switching method and apparatus in the embodiments of the present application. The processor 1404 executes the software programs and modules stored in the memory 1402 to perform various functional applications and data processing, that is, to implement the above page switching method. The memory 1402 may include a high-speed random access memory, or may include, for example, one or more magnetic storage devices, non-volatile memories such as flash memories, or other non-volatile solid-state memories. In some embodiments, the memory 1402 may further include a memory remotely installed with respect to the processor 1404, and these remote memories may be connected to the terminal by a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Here, the memory 1402 is specifically used to store, but is not limited to, the trigger condition of the first zoom operation, the correspondence between the first virtual object and the second page, etc. As an example, as shown in FIG. 14, the memory 1402 may include, but is not limited to, the first display unit 1302, the first processing unit 1304, and the second processing unit 1306 in the above page switching apparatus. It can also include other module units in the above page switching apparatus, but is not limited thereto, and the description thereof is omitted in this example.
[0142] Optionally, the transmission device 1406 is used to receive or transmit data via one network. Specific examples of the above network may include a wired network and a wireless network. In one example, the transmission device 1406 includes a network interface controller (NIC) that can communicate with the Internet or a local area network by being connected to other network devices and routers through a network cable. In one example, the transmission device 1406 is a radio frequency (RF) module for communicating with the Internet wirelessly.
[0143] In addition, the electronic device further includes a monitor 1408 for displaying target information transmitted by the target account, and a connection bus 1410 for connecting each module member in the electronic device.
[0144] In other embodiments, the target terminal or server may be a node in a distributed system, the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes in the form of network communication. Here, the nodes may form a peer-to-peer (P2P) network, and any form of computer device, such as an electronic device such as a server or a terminal, can become a node in the blockchain system by joining the peer-to-peer network.
[0145] According to one aspect of the present application, a computer program product or a computer program is provided. The computer program product or the computer program includes computer commands, and the computer commands are stored in a computer-readable storage medium. A processor of a computer device reads the computer commands from the computer-readable storage medium, and by executing the computer commands by the processor, causes the computer device to execute a page switching method provided in various alternative implementation manners in the check processing of the server and the like. The computer program is configured to execute the steps in the method embodiment of any one of the above when running.
[0146] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for executing the following steps.
[0147] Step S1: Display a first page on which at least one virtual object in a first virtual scene is displayed.
[0148] Step S2: In response to a first zoom operation, zoom in on the first page and display the zoomed-in first page.
[0149] Step S3: When it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switch the display of the zoomed-in first page to the display of the second page.
[0150] Optionally, in this embodiment, those skilled in the art can understand that all or some of the steps in the various methods of the above embodiments can be completed by a program issuing commands to the hardware related to the target terminal. The program is stored in a computer-readable storage medium, and the storage medium may include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
[0151] The numbers of the above embodiments of the present application are only for explanation and do not indicate the superiority or inferiority of the embodiments.
[0152] In the above embodiments, the integrated units are realized in the form of software function units. When sold or used as independent products, they may be stored in the above computer-readable storage medium. Based on such an understanding, the essence of the technical solution of the present application, that is, the part contributing to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and contains some commands for causing one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or some of the steps of the methods of the embodiments of the present application.
[0153] In the above embodiments of the present application, each embodiment description has its own key points. For parts not detailed in a certain embodiment, the relevant descriptions of other embodiments can be referred to.
[0154] It is understood that the client side disclosed in some embodiments provided by this application can be implemented in other forms. Here, the embodiments of the above device are merely exemplary. For example, the division of the above units is only a division of a kind of logical function, and there may be other division methods when actually implemented. For example, a plurality of units or assemblies may be combined, or integrated into another system, or some features may be omitted or not executed. It should be noted that the explicit or discussed couplings, direct couplings or communication connections between each other may be indirect couplings or communication connections through some interfaces, units or modules, and may be electrical or other forms.
[0155] The units described as separate members may or may not be physically separated. The members shown as units may or may not be physical units, and may be located in one place or distributed among multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0156] In addition, each functional unit in each embodiment of this application may be integrated into one processing unit, each unit may physically exist independently, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0157] The above are only the preferred embodiments of this application. It should be pointed out that those skilled in the art can make some improvements and changes on the premise of not departing from the principle of this application, and these improvements and changes are also regarded as the protection scope of this application.
Claims
1. A page switching method executed by an electronic device, comprising: displaying a first page on which at least one virtual object in a first virtual scene is displayed; in response to a first zoom operation, zooming in on the first page and displaying the zoomed-in first page; when it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switching the display of the zoomed-in first page to the display of the second page,
2. When it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switching the display of the zoomed-in first page to the display of the second page includes, when it is determined based on the first zoom operation that the magnification multiple by which the first page is zoomed in is equal to or greater than a first predetermined multiple and the center of the first zoom operation is located on the first virtual object, switching the display of the zoomed-in first page to the display of the second page. The page switching method according to Claim 1.
3. When it is determined that the first zoom operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene, switching the display of the zoomed-in first page to the display of the second page includes, when it is determined based on the first zoom operation that the magnification multiple by which the first page is zoomed in is equal to or greater than a first predetermined multiple and the center of the zoomed-in first page is located on the first virtual object, switching the display of the zoomed-in first page to the display of the second page. The page switching method according to Claim 1.
4. When the first zoom operation is a zoom operation triggered by two fingers on the screen, the page switching method according to Claim 2 further includes determining the center between the two fingers on the screen as the zoom center of the first zoom operation.
5. Switching the display of the zoomed-in first page to the display of the second page In the process of enlarging the first page, the display of the enlarged first page is gradually hidden, and the second page is gradually displayed. The page switching method according to claim 1 includes this.
6. On the second page, at least one virtual object in the second virtual scene is displayed, and the page switching method further includes On the second page, in response to a second zoom operation, Enlarge the second page and display the enlarged second page; When it is determined that the second zoom operation triggers entering a third page corresponding to a second virtual object in the second virtual scene, switching the display of the enlarged second page to the display of the third page. The page switching method according to claim 1 includes that this is executed.
7. On the second page, at least one virtual object in the second virtual scene is displayed, and the page switching method further includes On the second page, when the first zoom operation has not ended and continues to be executed, in response to the continuously executed first zoom operation, Enlarge the second page and display the enlarged second page; When it is determined that the continuously executed first zoom operation triggers entering a third page corresponding to a second virtual object in the second virtual scene, switching the display of the enlarged second page to the display of the third page. The page switching method according to claim 1 includes that this is executed.
8. The first zoom operation is a zoom operation triggered by two fingers on the screen. The continuously executed first zoom operation is that after switching the display of the enlarged first page to the display of the second page, the two fingers continue to maintain contact with the screen, and the two fingers move in a direction away from each other on the screen. The page switching method according to claim 7.
9. Switching the display of the enlarged first page to the display of the second page is When the first virtual object is a virtual building, it includes displaying a detailed page of the virtual building, which is the second page corresponding to the virtual building. The detailed page of the virtual building displays a second virtual scene in the virtual building, and the second virtual scene includes virtual characters and / or virtual objects in the virtual building. The page switching method according to any one of claims 1 to 8.
10. Switching the display of the enlarged first page to the display of the second page is When the first virtual object is a virtual character, it includes displaying a detailed page of the virtual character, which is the second page corresponding to the virtual character. The detailed page of the virtual character displays character information of the virtual character. The page switching method according to any one of claims 1 to 8.
11. On the third page, in response to a first reduction operation, Reducing the third page and displaying the reduced third page, and When it is determined that the first reduction operation triggers entering the second page, further including switching the display of the reduced third page to the display of the second page. The page switching method according to claim 6 or 7.
12. When it is determined that the first reduction operation triggers entering the second page, switching the display of the reduced third page to the display of the second page is Based on the first reduction operation, when it is determined that the scale at which the third page is reduced is equal to or less than a first predetermined scale, including switching the display of the reduced third page to the display of the second page. The page switching method according to claim 11.
13. When the second page is displayed, the first reduction operation has not ended and is continuously executed. In response to the continuously executed first reduction operation, Reducing the second page and displaying the reduced second page, and When it is determined that the continuously executed first reduction operation triggers entering the first page, further including switching the display of the reduced second page to the display of the first page. The page switching method according to claim 11.
14. A first display unit for displaying a first page on which at least one virtual object in a first virtual scene is displayed; A first processing unit for enlarging the first page in response to a first enlargement operation and displaying the enlarged first page; A second processing unit for switching the display of the enlarged first page to the display of a second page when it is determined that the first enlargement operation triggers entry into a second page corresponding to a first virtual object in the first virtual scene. A page switching device comprising: **Claim 15** In the second page, at least one virtual object in a second virtual scene is displayed, and the page switching device further comprises: In the second page, a fourth processing unit for enlarging the second page in response to a second enlargement operation and displaying the enlarged second page; A first switching unit for switching the display of the enlarged second page to the display of a third page when it is determined that the second enlargement operation triggers entry into a third page corresponding to a second virtual object in the second virtual scene. The page switching device according to claim 14, comprising: **Claim 16** In the second page, at least one virtual object in a second virtual scene is displayed, and the page switching device further comprises: In the second page, when the first enlargement operation has not ended and is continuously executed, a fifth processing unit for enlarging the second page in response to the continuously executed first enlargement operation and displaying the enlarged second page; A second switching unit for switching the display of the enlarged second page to the display of a third page when it is determined that the continuously executed first enlargement operation triggers entry into a third page corresponding to a second virtual object in the second virtual scene. The page switching device according to claim 14, comprising: **Claim 17** A second display unit for displaying a third page; In the third page, a sixth processing unit for reducing the third page in response to a first reduction operation and displaying the reduced third page; When it is specified that the first reduction operation triggers entry into the second page, a third display unit for switching the display of the reduced third page to the display of the second page, the page switching device according to claim 15 or 16, further comprising.
18. A computer-readable storage medium including a stored program, wherein when the program is executed by a processor, the page switching method according to any one of claims 1 to 13 is executed.
19. A computer program product including a computer program / command, wherein when the computer program / command is executed by a processor, the steps of the page switching method according to any one of claims 1 to 13 are realized.
20. An electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the page switching method according to any one of claims 1 to 13 by the computer program.
Citation Information
Patent Citations
Interface display method and device, terminal and storage medium
CN114177614A
Stereoscopic scene switching method and device, terminal and storage medium
CN114764295A
Image display device, image display method and program
JP2014160461A
Gesture input device
JP2015018432A
Method for displaying position indication information, electronic device, storage medium, and computer program
JP2021516580A