Method, device, equipment and storage medium for controlling picture viewing angle
By dynamically adjusting the virtual perspective, the problem of insufficient picture perspective control in the virtual environment is solved, achieving higher quality pictures and a better user experience.
Patent Information
- Application Number
- CN202210709070.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-06-21
AI Technical Summary
The existing technology lacks control over the screen perspective in virtual environments, resulting in poor user interaction experience. Especially in scenarios such as games, the fixed perspective or reliance on user interaction cannot be effectively adjusted, resulting in insufficient screen information and affecting interaction efficiency.
By generating the initial picture of the virtual scene, dynamically adjusting the perspective based on the position information of elements in the virtual scene, determining the change of perspective, and generating a new picture based on this, it achieves fine control of the virtual perspective and ensures picture quality and user experience.
Dynamically adjust the virtual perspective to make the picture more closely fit the distribution of scene elements, improve the effectiveness and interaction efficiency of picture information, and enhance user experience.
Smart Images

Figure CN115220576B_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for picture viewing angle control. Background Art
[0002] With the development of computer technology, various forms of electronic devices can greatly enrich people's daily life. For example, people can use electronic devices to perform various types of entertainment or virtual interaction.
[0003] In entertainment or virtual interaction scenarios, people can obtain images in a virtual environment through presentation devices (e.g., screens, projection devices, etc.) of electronic devices. How to effectively control the viewing angle of the image to provide higher quality images has become a focus of current attention. Summary of the invention
[0004] In a first aspect of the present disclosure, a method for controlling a picture perspective is provided. The method includes generating a first picture of a virtual scene at a first moment, the first picture corresponding to a first virtual perspective; determining a second virtual perspective based on first position information of a first group of elements included in the virtual scene at a second moment; determining a perspective change from the first virtual perspective to the second virtual perspective; and generating at least one second picture of the virtual scene based on the perspective change.
[0005] In a second aspect of the present disclosure, a device for controlling a picture perspective is provided. The device includes a first generation module configured to generate a first picture of a virtual scene at a first moment, the first picture corresponding to a first virtual perspective; a perspective determination module configured to determine a second virtual perspective based on first position information of a first group of elements included in the virtual scene at a second moment; a change determination module configured to determine a perspective change from the first virtual perspective to the second virtual perspective; and a second generation module configured to generate at least one second picture of the virtual scene based on the perspective change.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the medium, and when the program is executed by a processor, the method of the first aspect is implemented.
[0008] It should be understood that the contents described in the summary of the present invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1A and Figure 1B A schematic diagram showing a screen of a virtual environment presented according to a conventional process;
[0011] Figure 2 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0012] FIG. 3A to FIG. 3E A schematic diagram showing picture viewing angle control according to some embodiments of the present disclosure is shown;
[0013] Figure 4A and Figure 4B A schematic diagram showing a change in viewing angle according to some embodiments of the present disclosure;
[0014] Figure 5 Schematic diagram showing changes in viewing angles according to still other embodiments of the present disclosure;
[0015] Figure 6 A flowchart showing an example process of picture viewing angle control according to some embodiments of the present disclosure;
[0016] Figure 7 A block diagram showing an apparatus for picture viewing angle control according to some embodiments of the present disclosure; and
[0017] Figure 8 A block diagram of a device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0019] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0020] As discussed above, the control of the picture perspective is a task in virtual environment interaction. The quality of the picture perspective control will directly affect the user's interactive experience.
[0021] Electronic games are a typical type of virtual environment interactive scene, and the perspective control of the game screen will directly affect the experience of players or spectators. In games such as Auto Chess, the game scene is relatively fixed, and the positions of game elements (also called virtual objects, such as chess pieces in Auto Chess) will change as the game progresses.
[0022] For example, Figure 1A FIG. 1 is a schematic diagram showing a screen 100A presenting a virtual environment according to a conventional process. Figure 1A As shown, the screen 100A presents the entire space of the entire virtual environment (e.g., the auto chess board) 110. Figure 1A In such cases, such a screen 100A may be appropriate.
[0023] However, as the elements 120 in the scene 110 move, the distribution of the elements 120 in the scene 110 may change greatly. Traditional picture perspective control always provides a fixed picture perspective, or relies on user interaction to change the perspective. This may result in the generated picture not being able to bring a good user experience.
[0024] For example, Figure 1B As shown, the elements 120 in the scene 110 may gather in a certain area in the scene 110 after a period of time. In the case of using a fixed screen angle, the generated screen 100B will have a large blank area, and such a screen 100B will be difficult to fully present the effective information in the scene 110, which may greatly affect the interactive experience.
[0025] The embodiment of the present disclosure proposes a scheme for controlling the picture perspective. In the scheme, first, a picture of a virtual scene at a first moment can be generated, wherein the picture can correspond to a first virtual perspective, for example. Further, a second virtual perspective can be determined based on the position of a first group of elements included in the virtual scene at a second moment.
[0026] Accordingly, a perspective change from the first virtual perspective to the second virtual perspective may be determined, and a new picture of the virtual scene may be generated based on the perspective change.
[0027] Thus, the embodiments of the present disclosure can dynamically adjust the virtual perspective by tracking the changes in the positions of elements in the virtual scene, thereby achieving fine control over the virtual perspective, so that it can better conform to the characteristics of the distribution of elements in the scene. Based on this approach, the embodiments of the present disclosure can improve the quality of the generated images, thereby greatly improving the user's interactive experience.
[0028] Various example implementations of the scheme are described in detail below in conjunction with the accompanying drawings. In order to illustrate the principles and ideas of the embodiments of the present disclosure, some of the following descriptions will refer to the field of games. However, it will be understood that this is merely exemplary and is not intended to limit the scope of the present disclosure in any way. The embodiments of the present disclosure can be applied to various fields such as simulation, virtual reality, and augmented reality.
[0029] Example Environment
[0030] See first Figure 2 , which schematically shows a schematic diagram of an example environment 200 in which an exemplary implementation according to the present disclosure can be implemented. Figure 2 As shown, example environment 200 may include electronic device 240 .
[0031] like Figure 2 As shown, the electronic device 240 may be configured to determine the position of the element 230 in the virtual scene 220 and accordingly determine the corresponding virtual perspective 210. Further, the electronic device 240 may generate a picture 250 with the virtual scene 220 based on the determined virtual perspective 210.
[0032] In some embodiments, the electronic device 240 may further include a presentation device for presenting the generated screen 250 to the user. Examples of such presentation devices may include, but are not limited to, various types of displays, projection devices, smart glasses, etc. Accordingly, such electronic devices 240 may include, but are not limited to, smart phones, tablet computers, handheld computers, portable game terminals, virtual reality or augmented reality devices, etc.
[0033] In some embodiments, the electronic device 240 may be, for example, a device physically separated from the presentation device. For example, the electronic device 240 may be, for example, a cloud computing device for screen generation, which may send the generated 250 to an independent presentation device via a wired or wireless method to enable interaction with the virtual environment 220.
[0034] The specific process of determining the virtual viewing angle 210 and generating the picture 250 will be described in detail below.
[0035] Virtual perspective dynamic control
[0036] In some embodiments, the electronic device 110 may dynamically adjust the virtual viewing angle according to the arrangement of elements in the scene, thereby improving the quality of the generated picture. FIG. 3A to FIG. 3D Let's introduce the specific process of virtual perspective adjustment.
[0037] like Figure 3A As shown, in the initial state (eg, corresponding to the first moment), the virtual perspective 310 - 1 , for example, may be initially configured so that its corresponding screen 320 - 1 , for example, may cover the entire area of the virtual scene 220 .
[0038] like Figure 3A As shown, the virtual scene 220 may include, for example, multiple elements (e.g., chess pieces) 330-1 and 330-2 (individually or collectively referred to as elements 330). Such elements may be automatically added to the virtual scene 220 by the electronic device 240. Taking the auto chess game as an example, the element 330-2 may be automatically added by the electronic device 240 at the beginning of a round.
[0039] In some embodiments, such an element may also be added by the electronic device 240 in response to a user operation. For example, at the beginning of a round of auto chess, the user may, for example, drag the element 330-1 by touch or drag the mouse, so that the element 330-1 is added to the corresponding position in the virtual scene 220. Alternatively, the element 330-2 may also be automatically added due to the user triggering a specific game skill. For example, a specific game skill may summon a new element (e.g., a chess piece).
[0040] In some embodiments, the elements 330 in the virtual scene 220 may move along a predetermined trajectory. For example, the electronic device 240 may determine the trajectory of each element 330 and automatically move it in the scene 330. For example, taking the virtual scene 220 as an example, the element 330-1 and the element 330-2 may be controlled to move toward each other.
[0041] In some embodiments, the electronic device 240 may periodically determine the position of the element 330 in the virtual scene 220. For example, the electronic device 240 may periodically determine the position of each element in the virtual scene 220 every 0.05 seconds.
[0042] For example, Figure 3B As shown, the electronic device 240 can determine at the second moment that the position of the element 330 in the virtual scene 220 has changed. Figure 3B As shown, for example, element 330 - 1 and element 330 - 2 move.
[0043] Further, the electronic device 240 may determine the second virtual perspective 340 based on the position of the element 330 at the second moment. Specifically, determining the second virtual perspective 340 may include determining the position of the second virtual perspective 340 and / or determining the zoom scale of the second virtual perspective 340.
[0044] In some embodiments, the electronic device 240 may determine the position information of the plurality of elements 330 at the second moment, and further determine a predetermined reference position of the plurality of elements 330 .
[0045] In some embodiments, the predetermined reference position may be the center position of the group of elements. For example, the electronic device 240 may determine the coordinates of each element 330 in the virtual scene 220 and calculate the center coordinates of the plurality of elements 330 as the predetermined reference position.
[0046] In some embodiments, the electronic device 240 may also assign different weights to different elements, and determine the predetermined reference position as the virtual center of gravity position of the plurality of elements 330. Exemplarily, the element 330-2, for example, has a larger size than the element 330-1, and may be assigned a larger weight.
[0047] In some embodiments, the predetermined reference position may also be the center position of the smallest area indicated by the position information. For example, the electronic device 240 may determine the smallest area covering the plurality of elements 330 based on the positions of the plurality of elements 330, and determine the center position of the domain as the predetermined reference position.
[0048] Further, the electronic device 240 may determine the virtual center of gravity position of the plurality of elements 330 based on the positions and weights of the plurality of elements 330 as a predetermined reference position.
[0049] In some embodiments, the electronic device 240 may determine the second virtual perspective based on the predetermined reference position so that the picture parameters corresponding to the second virtual perspective match the determined predetermined reference position. For example, the picture parameters may include but are not limited to: picture center, picture edge or picture focus.
[0050] Taking the virtual perspective generating the picture from directly above as an example, the electronic device 240 can make the coordinates of the virtual perspective in the horizontal plane the same as the coordinates of the predetermined reference position in the horizontal plane. Thus, the center of the picture corresponding to the second virtual perspective will be the same as the predetermined reference position.
[0051] In some embodiments, the electronic device 240 may also determine the zoom scale based on the positions of the plurality of elements 330. It should be understood that the zoom scale may correspond to the scene range covered by the generated picture. For example, a larger zoom scale may correspond to a smaller scene range and more scene details.
[0052] Specifically, the electronic device 240 can determine the second virtual perspective 340 based on the positions of the multiple elements 330, so that the screen range corresponding to the second virtual perspective at least covers the multiple elements 330. Thus, the electronic device 240 can ensure that each element can be effectively presented and reduce the generation of blank areas.
[0053] In order to ensure the interactive experience, the switching of the picture perspective should be smooth during the picture generation process. The electronic device 240 can further control the generation of subsequent pictures based on the perspective change from the first virtual perspective 310-1 to the second virtual perspective 310-2.
[0054] For example, in Figure 3B At the second moment shown, although it is determined that the better viewing angle should be the second virtual viewing angle 340, the electronic device 240 may not directly generate a corresponding image based on the second virtual viewing angle 340 to avoid an abrupt feeling of viewing angle switching.
[0055] For example, at the second moment, the electronic device 240 may generate a corresponding screen 320-2 based on the virtual viewing angle 310-2. The virtual viewing angle 310-2 may be the same as the first virtual viewing angle 310-1, so as to ensure a smoother change from the screen 320-1 to the screen 320-2.
[0056] Furthermore, in Figure 3C At the third moment shown, the electronic device 240 may determine a virtual perspective 310-3 based on the perspective change from the first virtual perspective 310-1 to the second virtual perspective 340. Such a virtual perspective 310-3 is also called a transition perspective, which may be sampled and determined based on the perspective change.
[0057] The specific process of perspective change sampling will be referred to below FIG. 4A to FIG. 4B and Figure 5 Detailed description.
[0058] Furthermore, the electronic device 240 may generate a corresponding picture 320-3 based on the virtual viewing angle 310-3, for example. It can be seen that the virtual viewing angle 310-3 is closer to the determined second virtual viewing angle 340 than the first virtual viewing angle 310-1.
[0059] Specifically, the electronic device 240 may determine the picture parameters of the picture 320-3 to be generated based on the virtual viewing angle 320-3, and generate the picture 320-3 based on the picture parameters. Exemplarily, the picture parameters may include but are not limited to: the center of the picture, the edge of the picture, or the focus of the picture. Additionally, the electronic device 240 may also generate the picture 320-3 based on both the zoom scale and the picture parameters of the virtual viewing angle 320-3.
[0060] In such Figure 3D At the fourth moment shown, the electronic device 240 may determine a virtual viewing angle 310-4 based on the viewing angle change, which may be the same as the second virtual viewing angle 340. Figure 3D As shown, the electronic device 240 may further generate a picture 320 - 4 based on the virtual perspective 310 - 4 .
[0061] Combination FIG. 3A to FIG. 3D It can be seen that the electronic device 240 can control the virtual perspective to change continuously, so that the picture perspective changes more smoothly. In addition, the generated picture can also be more in line with the distribution of elements in the scene, thereby improving the effectiveness of the picture information and the interaction efficiency.
[0062] Although in Figure 3C and Figure 3D In the example of , the elements in the virtual scene 220 do not change further, but this is only exemplary. In some embodiments, during the change of the viewing angle, the positions of the elements in the virtual scene 220 may still change synchronously.
[0063] Specifically, the electronic device 240 may, for example, automatically add at least one element to the virtual scene 220 or delete at least one element. Alternatively, the electronic device 240 may also add or delete at least one element in response to user interaction. In addition, the elements in the virtual scene 220 may also move according to a predetermined trajectory.
[0064] In some embodiments, the electronic device 240 may further determine the position information of multiple elements in the virtual scene 220 to determine a new virtual perspective. Figure 3E As shown, Figure 3C Different from the example shown, the electronic device 240 may determine that the element 330 - 3 is deleted, resulting in a change in the distribution of the plurality of elements.
[0065] Accordingly, the electronic device 240 can, for example, determine the updated position information of the group of elements 330 in the virtual scene 220. The electronic device 240 can, for example, determine the fourth virtual perspective 350 based on the updated position information and use it as the new target virtual perspective, so that the perspective change approaches the fourth virtual perspective 350 rather than the second virtual perspective 340 previously determined.
[0066] Further, the electronic device 240 may determine a new perspective change (also referred to as a second perspective change) based on the third virtual perspective 310 - 3 and the fourth virtual perspective 350 , and generate subsequent images of the virtual scene 220 based on the second perspective change.
[0067] Based on this approach, the embodiments of the present disclosure can dynamically track the real-time changes of elements in the scene and achieve a perspective control effect of dynamic element tracking.
[0068] Virtual perspective change control
[0069] As discussed above, the electronic device 240 may determine a transition perspective (eg, the virtual perspective 310 - 3 ) based on the perspective change.
[0070] In some embodiments, the electronic device 240 may determine the process of the perspective change based on the distance between the starting position and the target position of the perspective change.
[0071] In some embodiments, the perspective change may include a change in the position of the virtual perspective. For example, the position of different virtual perspectives may correspond to different picture parameters (e.g., the center of the picture). In some embodiments, the perspective change may also include a change in the zoom scale of the virtual perspective. For example, different zoom scales may indicate different picture ranges.
[0072] In some embodiments, in order to make the conversion of the perspective smoother, the electronic device 240 can further subdivide the perspective change into multiple stages. Specifically, the perspective change can include, for example, an accelerated change stage, in which the position change speed or the zoom scale change speed of the virtual perspective gradually increases. The perspective change can also include a uniform change stage, in which the position change speed or the zoom scale change speed of the virtual perspective remains unchanged. In addition, the perspective change can also include a decelerated change stage, in which the position change speed or the zoom scale change speed of the virtual perspective gradually decreases.
[0073] Figure 4A FIG. 4 is a schematic diagram showing a change in viewing angle 400A according to an embodiment of the present disclosure. Figure 4A As shown, the perspective change 400A may indicate a change in the perspective position, and includes an acceleration phase 410 - 1 , a constant speed phase 410 - 2 , and a deceleration phase 410 - 3 .
[0074] In some embodiments, the ranges of the acceleration phase 410-1, the uniform speed phase 410-2, and the deceleration phase 410-3 may be determined based on the distance from the starting position (e.g., the first position of the first virtual perspective) to the target position (e.g., the second position of the second virtual perspective). For example, the proportion of the acceleration phase 410-1 and the deceleration phase 410-3 in the total distance may be set to 20%, and the proportion of the uniform speed phase 410-2 in the distance may be 60%.
[0075] Based on this method, the virtual perspective is in the accelerated movement stage in the first 20% of the moving process, in the uniform movement stage in the middle 60% of the distance, and in the decelerated movement stage in the last 20% of the distance, thereby making the perspective change smoother.
[0076] Similarly, Figure 4B FIG. 4 is a schematic diagram showing a perspective change 400A according to another embodiment of the present disclosure. Figure 4B As shown, the viewing angle change 400B may indicate a change in zoom scale, and includes an acceleration phase 420 - 1 , a constant speed phase 420 - 2 , and a deceleration phase 420 - 3 .
[0077] In some embodiments, the ranges of the acceleration phase 420-1, the uniform speed phase 420-2, and the deceleration phase 420-3 may be determined based on the distance from the starting position (e.g., the first position of the first virtual perspective) to the target position (e.g., the second position of the second virtual perspective). For example, the proportion of the acceleration phase 410-1 and the deceleration phase 410-3 in the total distance may be set to 20%, and the proportion of the uniform speed phase 410-2 in the distance may be 60%.
[0078] Based on this approach, the virtual perspective is in the stage of accelerated change of the scale in the first 20% of the moving process, in the stage of uniform change of the scale in the middle 60%, and in the stage of decelerated change of the scale in the last 20%. In this way, the perspective change can be made smoother.
[0079] In some embodiments, the perspective change may include both a change in the virtual perspective position and a change in the zoom scale of the virtual perspective, so that the center position of the picture and the range of the picture are changed at the same time.
[0080] In some embodiments, as described above with reference to Figure 3E As discussed, the electronic device 240 may also switch to the second viewing angle change without completing the first viewing angle change. Figure 5 A schematic diagram 500 of viewing angle change according to still some embodiments of the present disclosure is shown.
[0081] like Figure 5As shown, the first perspective change includes, for example, a change from the first virtual perspective 550 to the second virtual perspective 530-1. During the first perspective change, the electronic device 240 may, for example, determine at the third virtual perspective 540 to change to a new fourth virtual perspective 530-2.
[0082] like Figure 5 As shown, the third virtual perspective 540 may correspond to the process of the uniform speed stage 510-2 of the first perspective change, that is, the acceleration stage 510-1 has been completed, and the uniform speed stage 510-2 and the deceleration stage 510-3 have not yet begun.
[0083] In this case, the electronic device 240 can determine which motion state the virtual perspective should be in based on the first distance from the first position of the first virtual perspective 550 to the third position of the third virtual perspective 540 and the second distance from the first position of the third virtual perspective 540 to the fourth position of the fourth virtual perspective 530-2.
[0084] Specifically, the electronic device 240 may re-divide the acceleration phase, the uniform speed phase, and the deceleration phase based on the total distance of the first distance and the second distance. Figure 5 As shown, the first distance is 20% of the total distance, so the electronic device 240 can determine that in the second perspective change, it is in the acceleration stage 520-1 starting from the third virtual perspective 540, and then enters the uniform speed stage 520-2 and the deceleration stage 520-3 accordingly.
[0085] It should be understood that although Figure 5 The superposition of two perspective changes is described by the perspective position change speed, but the perspective scaling change speed can also be based on Figure 5 The method is similar to that used in the previous example and will not be described in detail here.
[0086] Based on this approach, the implementation of the present disclosure can track changes in elements in the scene in a more fine-grained manner, thereby achieving smoother perspective following.
[0087] Example Process
[0088] Figure 6 FIG. 6 is a flowchart showing a process 600 of controlling a picture viewing angle according to some embodiments of the present disclosure. For example, the process 600 may be: Figure 2 The electronic device 240 is implemented independently, or is implemented by a combination of the electronic device 240 and other computing devices. Figure 2 600 is described below.
[0089] like Figure 6As shown, in box 610, the electronic device 240 generates a first picture of a virtual scene at a first moment, and the first picture corresponds to a first virtual perspective.
[0090] In block 620 , the electronic device 240 determines a second virtual viewing angle based on first position information of a first group of elements included in the virtual scene at the second moment.
[0091] At block 630 , the electronic device 240 determines a change in perspective from a first virtual perspective to a second virtual perspective.
[0092] At block 640 , based on the change in viewing angle, the electronic device 240 generates at least one second picture of the virtual scene.
[0093] In some embodiments, generating at least one second picture of the virtual scene includes: determining at least one transition perspective based on a change in perspective; determining picture parameters of at least one second picture to be generated based on the at least one transition perspective; and generating at least one second picture based on the picture parameters.
[0094] In some embodiments, determining the second virtual perspective includes: determining a predetermined reference position of the first group of elements based on the first position information; and determining the second virtual perspective based on the predetermined reference position so that the picture parameters corresponding to the second virtual perspective match the predetermined reference position.
[0095] In some embodiments, determining the predetermined reference position includes: determining a center position of a first group of elements; or determining a virtual center of gravity position of the first group of elements, each of the first group of elements having a corresponding weight.
[0096] In some embodiments, determining the second virtual perspective includes: determining the second virtual perspective based on the first position information, so that a picture range corresponding to the second virtual perspective at least covers the first group of elements.
[0097] In some embodiments, determining the perspective change includes: determining the perspective change based on a distance from a first position of the first virtual perspective to a second position of the second virtual perspective, wherein the perspective change includes a position change or a zoom scale change of the virtual perspective.
[0098] In some embodiments, the perspective change includes: an accelerated change phase, in which the position change speed or zoom scale change speed of the virtual perspective gradually increases, a uniform change phase, in which the position change speed or zoom scale change speed of the virtual perspective remains unchanged, and a decelerated change phase, in which the position change speed or zoom scale change speed of the virtual perspective gradually decreases.
[0099] In some embodiments, the perspective change is a first perspective change, and the method also includes: determining a third virtual perspective corresponding to a third moment; determining a fourth virtual perspective based on second position information of a second group of elements included in the virtual scene at the third moment; determining a second perspective change based on the third virtual perspective and the fourth virtual perspective; and generating at least one third picture of the virtual scene based on the second perspective change.
[0100] In some embodiments, determining the second perspective change includes: in response to a fourth moment at which the third moment changes to the second virtual perspective earlier than expected, determining the second perspective change based on a first distance from a first position of the first virtual perspective to a third position of the third virtual perspective and a second distance from the third position of the third virtual perspective to a fourth position of the fourth virtual perspective, the second perspective change includes a position change or a zoom scale change of the virtual perspective.
[0101] In some embodiments, the method also includes: adding at least one element to the virtual scene in response to a first user operation; removing at least one element from the virtual scene in response to a second user operation; automatically adding at least one element to the virtual scene; automatically removing at least one element from the virtual scene; or causing at least one element in the virtual scene to move along a predetermined trajectory.
[0102] Example devices and equipment
[0103] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 7 A schematic structural block diagram of an apparatus 700 for picture viewing angle control according to some embodiments of the present disclosure is shown.
[0104] like Figure 7 As shown, the device 700 includes a first generation module 710, which is configured to generate a first picture of a virtual scene at a first moment, and the first picture corresponds to a first virtual perspective. The device 700 also includes a perspective determination module 720, which is configured to determine a second virtual perspective based on first position information of a first group of elements included in the virtual scene at a second moment. The device 700 also includes a change determination module 730, which is configured to determine a perspective change from the first virtual perspective to the second virtual perspective. In addition, the device 700 also includes a second generation module 740, which is configured to generate at least one second picture of the virtual scene based on the perspective change.
[0105] In some embodiments, the second generation module 740 is further configured to: determine at least one transition perspective based on the perspective change; determine picture parameters of at least one second picture to be generated based on the at least one transition perspective; and generate at least one second picture based on the picture parameters.
[0106] In some embodiments, the perspective determination module 720 is further configured to: determine a predetermined reference position of the first group of elements based on the first position information; and determine a second virtual perspective based on the predetermined reference position so that the picture parameters corresponding to the second virtual perspective match the predetermined reference position.
[0107] In some embodiments, the viewing angle determination module 720 is further configured to: determine the center position of the first group of elements; or determine the virtual center of gravity position of the first group of elements, each of which has a corresponding weight.
[0108] In some embodiments, the perspective determination module 720 is further configured to: determine the second virtual perspective based on the first position information, so that the screen range corresponding to the second virtual perspective at least covers the first group of elements.
[0109] In some embodiments, the change determination module 730 is further configured to determine a perspective change based on a distance from a first position of the first virtual perspective to a second position of the second virtual perspective, where the perspective change includes a position change or a zoom scale change of the virtual perspective.
[0110] In some embodiments, the perspective change includes: an accelerated change phase, in which the position change speed or zoom scale change speed of the virtual perspective gradually increases, a uniform change phase, in which the position change speed or zoom scale change speed of the virtual perspective remains unchanged, and a decelerated change phase, in which the position change speed or zoom scale change speed of the virtual perspective gradually decreases.
[0111] In some embodiments, the perspective change is a first perspective change, and the perspective determination module 720 is further configured to determine a third virtual perspective corresponding to a third moment; based on the second position information of a second group of elements included in the virtual scene at the third moment, a fourth virtual perspective is determined; the change determination module 730 is further configured to determine a second perspective change based on the third virtual perspective and the fourth virtual perspective; the second generation module 740 is further configured to generate at least one third picture of the virtual scene based on the second perspective change.
[0112] In some embodiments, the change determination module 730 is further configured to: in response to a fourth moment at which the third moment changes to the second virtual perspective earlier than expected, determine a second perspective change based on a first distance from a first position of the first virtual perspective to a third position of the third virtual perspective and a second distance from the third position of the third virtual perspective to a fourth position of the fourth virtual perspective, wherein the second perspective change includes a position change or a zoom scale change of the virtual perspective.
[0113] In some embodiments, the device 700 also includes an element control module, which is configured to: add at least one element to the virtual scene in response to a first user operation; remove at least one element from the virtual scene in response to a second user operation; automatically add at least one element to the virtual scene; automatically remove at least one element from the virtual scene; or make at least one element in the virtual scene move along a predetermined trajectory.
[0114] The units included in the device 700 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 700 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0115] Figure 8 800 in which one or more embodiments of the present disclosure may be implemented. Figure 8 The computing device / server 800 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein.
[0116] like Figure 8 As shown, computing device / server 800 is in the form of a general computing device. Components of computing device / server 800 may include, but are not limited to, one or more processors or processing units 810, memory 820, storage device 830, one or more communication units 840, one or more input devices 860, and one or more output devices 860. Processing unit 810 may be an actual or virtual processor and is capable of performing various processes according to a program stored in memory 820. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to increase the parallel processing capabilities of computing device / server 800.
[0117] The computing device / server 800 typically includes a plurality of computer storage media. Such media may be any available media accessible to the computing device / server 800, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 820 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 830 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device / server 800.
[0118] The computing device / server 800 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 8 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 820 may include a computer program product 825 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0119] The communication unit 840 enables communication with other computing devices via a communication medium. Additionally, the functions of the components of the computing device / server 800 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the computing device / server 800 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0120] Input device 850 may be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 860 may be one or more output devices, such as a display, speaker, printer, etc. Computing device / server 800 may also communicate with one or more external devices (not shown) as needed, such as storage devices, display devices, etc., with one or more devices that enable a user to interact with computing device / server 800, or with any device that enables computing device / server 800 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.) through communication unit 840. Such communication may be performed via an input / output (I / O) interface (not shown).
[0121] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which one or more computer instructions are stored, wherein the one or more computer instructions are executed by a processor to implement the method described above.
[0122] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0123] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0124] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0125] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0126] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the marketplace, or to enable other persons of ordinary skill in the art to understand the implementations disclosed herein.
Claims
1. A method for controlling a picture viewing angle, comprising: Generate a first picture of a virtual scene at a first moment, wherein the first picture corresponds to a first virtual perspective; Determining a second virtual perspective based on first position information of a first group of elements included in the virtual scene at a second moment; determining a first perspective change from the first virtual perspective to the second virtual perspective; as well as Based on the first perspective change, generating at least one second picture of the virtual scene; Generating at least one second picture of the virtual scene comprises: determining at least one transitional perspective based on the first perspective change; determining picture parameters of the at least one second picture to be generated based on the at least one transitional perspective; and generating the at least one second picture based on the picture parameters; The method further comprises: determining a third virtual perspective corresponding to the third moment; determining a fourth virtual perspective based on second position information of a second group of elements included in the virtual scene at the third moment; Determining a change in the second perspective based on the third virtual perspective and the fourth virtual perspective; Wherein determining the second perspective change comprises: In response to the third moment changing to the fourth moment of the second virtual perspective earlier than expected, the second perspective change is determined based on a first distance from a first position of the first virtual perspective to a third position of the third virtual perspective and a second distance from the third position of the third virtual perspective to a fourth position of the fourth virtual perspective, wherein the second perspective change includes a position change or a zoom scale change of the virtual perspective.
2. The method according to claim 1, wherein determining the second virtual perspective comprises: determining a predetermined reference position of the first group of elements based on the first position information; as well as Based on the predetermined reference position, the second virtual viewing angle is determined so that a picture parameter corresponding to the second virtual viewing angle matches the predetermined reference position.
3. The method according to claim 2, wherein determining the predetermined reference position comprises: determining the center position of the first group of elements; or The virtual center of gravity positions of the first group of elements are determined, and the first group of elements each have a corresponding weight.
4. The method according to claim 1, wherein determining the second virtual perspective comprises: Based on the first position information, the second virtual perspective is determined so that a picture range corresponding to the second virtual perspective at least covers the first group of elements.
5. The method of claim 1 , wherein determining the first perspective change comprises: The first perspective change is determined based on a distance from a first position of the first virtual perspective to a second position of the second virtual perspective, where the first perspective change includes a position change or a zoom scale change of the virtual perspective.
6. The method according to claim 5, wherein the first viewing angle change comprises: The accelerated change phase, in which the speed of the virtual perspective position change or the speed of the zoom scale change gradually increases. The uniform change phase, in which the speed of the position change or the speed of the scale change of the virtual perspective remains unchanged, and The deceleration change phase, in which the speed of position change or zoom scale change of the virtual perspective gradually decreases.
7. The method according to claim 1, further comprising: Based on the second perspective change, at least one third picture of the virtual scene is generated.
8. The method according to claim 1, further comprising: In response to a first user operation, adding at least one element to the virtual scene; In response to a second user operation, removing at least one element from the virtual scene; automatically adding at least one element to the virtual scene; automatically removing at least one element from the virtual scene; or At least one element in the virtual scene is caused to move according to a predetermined trajectory.
9. A device for controlling a picture viewing angle, comprising: A first generating module is configured to generate a first picture of a virtual scene at a first moment, wherein the first picture corresponds to a first virtual perspective; A perspective determination module, configured to determine a second virtual perspective based on first position information of a first group of elements included in the virtual scene at a second moment; a change determination module, configured to determine a first perspective change from the first virtual perspective to the second virtual perspective; as well as A second generating module is configured to generate at least one second picture of the virtual scene based on the first perspective change; The second generating module is further configured to determine at least one transitional viewing angle based on the first viewing angle change; determine picture parameters of the at least one second picture to be generated based on the at least one transitional viewing angle; and generate the at least one second picture based on the picture parameters; The perspective determination module is further configured to determine a third virtual perspective corresponding to a third moment; determine a fourth virtual perspective based on second position information of a second group of elements included in the virtual scene at the third moment; The change determination module is further configured to determine a change in the second perspective based on the third virtual perspective and the fourth virtual perspective; Among them, the change determination module is also configured to determine the second perspective change in response to the third moment changing to the second virtual perspective earlier than expected, based on a first distance from the first position of the first virtual perspective to the third position of the third virtual perspective and a second distance from the third position of the third virtual perspective to the fourth position of the fourth virtual perspective, wherein the second perspective change includes a position change or a zoom scale change of the virtual perspective.
10. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the device to perform the method according to any one of claims 1 to 8 when executed by the at least one processing unit.
11. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 8.
