Method and apparatus for view control in a virtual environment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-17
- Publication Date
- 2026-08-11
AI Technical Summary
然而,目前的移动地图的控制操作是繁琐的,无法通过移动地图快速找到目标
[0008] It should be understood that the content described in this summary section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description.
Smart Images

Figure CN115581917B_ABST
Abstract
Description
Technical Field
[0001] The exemplary embodiments disclosed herein generally relate to the field of computers, and particularly to a method, apparatus, device, and computer-readable storage medium for viewpoint control in a virtual environment. Background Technology
[0002] With the rapid development of computer technology, people can now use powerful terminal devices to perform various types of virtual interactions. These virtual interactions can simulate various phenomena in the real world.
[0003] Maps are widely used in various virtual interactive scenarios such as games and simulations. For example, when a map in a virtual environment serves as a game platform, players can control virtual objects to find targets within the map, often requiring them to move the map to locate these targets. However, current map movement controls are cumbersome and do not allow for quick target finding. Summary of the Invention
[0004] In a first aspect of this disclosure, a method for controlling viewpoint in a virtual environment is provided. The method includes: presenting first scene information of the virtual environment in a map interface from an initial viewpoint; presenting a motion control associated with the map interface in response to a preset operation on the map interface; determining a viewpoint change based on interaction with the motion control; and presenting second scene information of the virtual environment in the map interface based on the initial viewpoint and the viewpoint change.
[0005] In a second aspect of this disclosure, an apparatus for viewpoint control in a virtual environment is provided. The apparatus includes: a first scene presentation module configured to present first scene information of the virtual environment in a map interface from an initial viewpoint; a motion control presentation module configured to present a motion control associated with the map interface in response to a preset operation on the map interface; a viewpoint change determination module configured to determine a viewpoint change based on interaction with the motion control; and a second scene presentation module configured to present second scene information of the virtual environment in the map interface based on the initial viewpoint and the viewpoint change.
[0006] In a third aspect of this disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect.
[0007] In a fourth aspect of this disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program that can be executed by a processor to implement the method of the first aspect.
[0008] It should be understood that the content described in this summary section is not intended to limit the key or essential features of the embodiments of this disclosure, nor is it intended to restrict the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0009] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. In the drawings, the same or similar reference numerals denote the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram of an example environment in which embodiments of the present disclosure can be implemented is shown;
[0011] Figure 2 A flowchart illustrating a process for controlling viewpoint in a virtual environment according to some embodiments of the present disclosure is shown;
[0012] Figure 3A A schematic diagram showing a motion control presented at a first interactive location in a map interface according to some embodiments of the present disclosure is illustrated.
[0013] Figure 3B A schematic diagram showing a motion control displayed at a preset location in a map interface according to some embodiments of the present disclosure is illustrated.
[0014] Figure 4A A schematic diagram of a map interface before a change in perspective is caused by interaction based on a mobile control, according to some embodiments of this disclosure;
[0015] Figure 4B The diagram illustrates a map interface after a change in perspective caused by interaction with a mobile control, according to some embodiments of this disclosure.
[0016] Figure 5 A block diagram of a device for view control in a virtual environment according to some embodiments of the present disclosure is shown; and
[0017] Figure 6 A block diagram of an apparatus capable of implementing several embodiments of the present disclosure is shown. Detailed Implementation
[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0019] In the description of embodiments of this disclosure, the term "comprising" and similar terms should be understood as open-ended inclusion, i.e., "including but not limited to". The term "based on" should be understood as "at least partially based 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. The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0020] As briefly mentioned earlier, the map in the virtual environment plays a crucial role as the game's medium. Players need to continuously swipe on the map to find targets (e.g., mines, oil fields) and perform actions on them (e.g., gathering resources, combat). In the first method of finding targets on the map, players use a "search" function key. They enter the target's name in the corresponding input box, click the key, and the map automatically jumps to the target's coordinates, allowing for direct action. However, this method lacks a strong sense of the target's location on the map, diminishing the fun of searching for targets. The second method involves switching between a large and small map. However, this switching is cumbersome, and the mapping relationship is unclear, making it difficult for players to quickly find targets. In the third method, players can switch targets by swiping the viewfinder. Since the viewfinder size changes with the player's map zoom, the swiping action is sensitive, making it difficult for players to control the viewfinder's position, further hindering quick target finding.
[0021] This disclosure proposes a scheme for viewpoint control in a virtual environment. According to various embodiments of this disclosure, firstly, a map interface presents first scene information of a virtual scene (e.g., a game scene) from an initial viewpoint. In response to a preset operation performed on the map interface (e.g., long-pressing a location on the map interface), a movement control associated with the map interface is presented on the map interface. Further, based on interactions with the movement control (e.g., a user controlling a sliding movement control on the map interface), changes in the viewpoint of the virtual scene can be determined, and based on the initial viewpoint and the viewpoint changes, the changed viewpoint is obtained, and second scene information is presented on the map interface from the changed viewpoint.
[0022] Therefore, in the embodiments of this disclosure, by interacting with the mobile controls presented on the map interface, the perspective of the virtual scene changes, and the scene information is presented on the map interface from the changed perspective, thereby enabling the player to find the target within the scene information presented from the changed perspective. Since interacting with the mobile controls can change the perspective of the virtual scene, that is, change the map scene displayed on the map interface, players can quickly and accurately find the target on the map interface.
[0023] The following detailed description of various example implementations of this solution, in conjunction with the accompanying drawings, is provided. To illustrate the principles and ideas of the embodiments of this disclosure, some descriptions below will refer to the gaming industry. However, it will be understood that this is merely exemplary and is not intended to limit the scope of this disclosure in any way. Embodiments of this disclosure can be applied to various fields such as simulation, modeling, virtual reality, and augmented reality.
[0024] Example Environment
[0025] First see Figure 1 The illustration schematically shows a sample environment 100 in which exemplary implementations according to this disclosure may be implemented. Figure 1 As shown, example environment 100 may include electronic device 110.
[0026] In some embodiments, such as Figure 1 As shown, electronic device 110 may include, for example, a suitable type of portable device that can be held by the user's hands for various interactive operations. Such electronic device 110 may include, but is not limited to, smartphones, tablets, PDAs, portable gaming terminals, virtual reality or augmented reality devices, etc.
[0027] It should be understood that, although electronic device 110 is in Figure 1The device is shown as a portable device, but this is only illustrative. In some other embodiments, the electronic device 110 may also be other suitable forms. For example, the electronic device 110 may include a display device for display and a computing device for computation, and the display device and computing device may be physically coupled or decoupled, for example. For example, the electronic device 110 may include a display screen for image display and a game console for image rendering and game control.
[0028] Alternatively, electronic device 110 can achieve interaction using other suitable input devices, such as a keyboard, mouse, joystick, game controller, or other suitable interactive devices that are communicatively coupled.
[0029] Alternatively, the electronic device 110 can also achieve interaction via touch. For example, the electronic device 110 can achieve interaction through haptic feedback systems such as resistive technology, capacitive technology, infrared technology, and surface acoustic wave (SAW).
[0030] Continue to refer to Figure 1 The electronic device 110 may, for example, present an application interface 120, which may present a corresponding virtual environment. Such a virtual environment may include, but is not limited to, various types of game environments, simulation environments, or emulation environments. For example, the application interface 120 may be a game application interface to present a corresponding game-related virtual environment. Alternatively, the application interface 120 may also be other suitable types of interactive interfaces that can support user control of the movement of virtual objects in the interface.
[0031] In some embodiments, the electronic device 110 may present, in response to an interactive operation on the application interface 120, such as Figure 1 The map interface 121 shown is used to present scene information of the virtual environment of the map from the player's perspective. For example, the scene information presented by the map interface 121 can be the entire scene or at least a part of the scene of the virtual environment of the entire map. For example, the scene information can include virtual elements such as mountains, rivers, buildings, minerals, oil, animals and plants that the player needs to pass through in the process of finding a target on the map.
[0032] For example, such as Figure 1 As shown, the electronic device 110 can also display a game task interface 122, for example. The game task interface 122 can display, for example, the game task the player needs to complete, "Assemble at the base," and the completion status of operations performed on the target (e.g., gathering). For example, while on the way to the base, the player must perform gathering operations on multiple virtual elements and complete all gathering before reaching the destination base.
[0033] It is understood that other interfaces presented by the electronic device 110 may be interfaces displayed by the player during the game, and this embodiment does not make any specific limitations.
[0034] The following section will detail the specific process of viewpoint control in a virtual environment.
[0035] Example process
[0036] Figure 2 A flowchart of a process 200 for viewpoint control in a virtual environment according to some embodiments of the present disclosure is shown. Exemplarily, process 200 may be... Figure 1 The electronic device 110 can be implemented independently or in combination with other computing devices.
[0037] like Figure 2 As shown in box 210, the electronic device 110 presents the first scene information of the virtual environment from the initial perspective in the map interface.
[0038] In some embodiments, the viewpoint can be understood as the range of angles that a player can observe in a virtual environment. The initial viewpoint can be understood as the viewpoint corresponding to the moment the player enters the virtual environment. This moment can be determined as the player progresses during the game, and is not specifically limited in this embodiment.
[0039] For example, Figure 1 The scene information of the virtual environment presented in the initial viewpoint of the map interface 121 shown may include virtual elements such as bases and mountains (and many other virtual elements not shown in the figure). For ease of description, the scene information of the virtual environment presented in the initial viewpoint is also referred to herein as the first scene information.
[0040] In box 220, electronic device 110 responds to a preset operation for the map interface by presenting a motion control associated with the map interface.
[0041] Figure 3A A schematic diagram 300A is shown illustrating a motion control presented at a first interactive position in a map interface according to some embodiments of the present disclosure. Figure 3B A schematic diagram 300B is shown illustrating a motion control displayed at a preset location in a map interface according to some embodiments of the present disclosure. The following is in conjunction with... Figure 3A and Figure 3B This describes the process of rendering the mobile controls.
[0042] In some embodiments, the electronic device 110 may receive preset operations for the map interface 121. Alternatively, the electronic device 110 may receive preset operations for the map interface 121 via a touchscreen. For example, the electronic device 110 may receive pressure from a user's finger or other touch device (e.g., a stylus) on a corresponding area of the map interface 121. Alternatively, the electronic device 110 may receive preset operations for the map interface 121 via a communication-coupled input device. For example, the electronic device 110 may receive input from a user via an input device (such as a mouse, keyboard, joystick, or game controller). For example, a user may use a mouse to press on an area of the map interface 121.
[0043] For example, the preset operations that the electronic device 110 can receive may include preset operations performed on preset locations or any locations on the map interface 121. For instance, preset operations may be performed at the top, bottom, left, right, or center of the map interface 121. Preset operations may include long press, double-click, or other similar operations. For example, when presetting a long press operation on the map interface 121, the long press duration may be preset to 5 seconds or 10 seconds, etc. It is understood that preset operations can also be other types of gesture operations, and this embodiment does not impose specific limitations.
[0044] In some embodiments, the electronic device 110, in response to a preset operation on the map interface, determines the display position of the motion control on the map interface. This display position may include a first interactive position indicated by the preset operation, or a preset position. The electronic device 110 then presents the motion control at the display position.
[0045] like Figure 3A As shown, please refer to the first scene information of the virtual environment presented from the initial perspective in map interface 121. Figure 1 This will not be described in detail here. After receiving a preset operation for the map interface 121, the electronic device 110 can display the movement control 130 at a display location (e.g., location A) in the map interface 121.
[0046] In some embodiments, the location indicated by the preset operation of the map interface 121, which allows the user and the electronic device 110 to interact, is called the interaction location, and for convenience, it is also referred to as the first interaction location herein. The electronic device 110 can display the motion control 130 at the first interaction location. The display location is the first interaction location; that is, the display location is the same location as the first interaction location indicated by the preset operation. Figure 3A For example, the map interface 121 is subjected to preset operations such as long press and double tap by the gesture 140. The contact point of the gesture 140 on the map interface 121 (e.g., position A) is the first interaction position. The electronic device 110 can present the motion control 130 at position A.
[0047] In some embodiments, the electronic device 110 may display the motion control 130 at a preset location. For example, the preset location could be any location on the map interface 121. Figure 3B For example, the preset location could be location C in the lower right corner of the map interface 121. For instance, after the map interface 121 is subjected to a preset operation such as a long press or double-click by gesture 140, the first interaction location is determined to be location B, and the electronic device 110 displays the movement control 130 at the preset location C. It is understood that the displayed location (preset location, location C) and the first interaction location indicated by the preset operation (location B) may not be the same location.
[0048] In some embodiments, the electronic device 110 presents the motion control 130 in a semi-transparent manner overlaid on the map interface 121. For example, the semi-transparent shape of the motion control 130 can be freely set, such as any shape like a circle, rectangle, or irregular shape, and its area can be preset according to the ratio to the map interface 121; no specific limitation is made in this embodiment. The semi-transparent motion control 130 does not obstruct the map interface 121, which is beneficial for players to find targets on the map interface 121.
[0049] In some embodiments, the motion control 130 also indicates at least some of the virtual elements included in the scene associated with the first scene information. For ease of description, the scene associated with the first scene information is also referred to as the first scene herein. For example, the first scene may be larger or smaller than the scene presented in the map interface 121. The virtual elements included in the first scene may be virtual elements in the first scene that are presented in the map interface 121, or they may be virtual elements in the first scene that are not presented in the map interface 121.
[0050] For example, the first scene can be presented as a thumbnail of a semi-transparent map. The center of the thumbnail is associated with the center of the map interface 121, and the scene range displayed by the thumbnail can be a range extending outward from the center of the map interface 121 with a fixed radius (e.g., the thumbnail may include a fixed number of map areas of a predetermined size). In some embodiments, the elements presented in the thumbnail can change as the player zooms in and out of the virtual environment scene presented in the map interface 121.
[0051] In some embodiments, at least some virtual elements included in the first scene associated with the first scene information, such as key buildings, minerals, coordinates, etc., can be displayed in shapes such as squares, circles, or ellipses. Taking Figure 300A as an example, it may include display frames 150-1, 150-2, 150-3, etc., which are collectively referred to or individually as display frame 150. For example, display frame 150 can also be presented in a semi-transparent manner overlaid on a thumbnail of a semi-transparent map. For example, display frame 150-1 corresponds to presenting the virtual element base, and display frame 150-2 corresponds to presenting the virtual element mountain. If the electronic device 110 is selected (e.g., clicked) in the display frame 150 of the virtual element, the corresponding virtual element is enlarged and presented at an appropriate position on the map interface 121.
[0052] It should be noted that the parts of the first scene not shown in the map interface 121, as well as the virtual elements not shown, can be shown in the map interface 121 by changing the viewpoint.
[0053] Continue to refer to Figure 2 In box 230, electronic device 110 can determine the change of viewpoint based on the interaction of the motion control.
[0054] Figure 4A A schematic diagram 400A shows a map interface before a change of view caused by interaction based on a mobile control according to some embodiments of the present disclosure. Figure 4B A schematic diagram 400B shows a map interface after a change in viewpoint caused by interaction based on a mobile control according to some embodiments of the present disclosure. The following is in conjunction with... Figure 4A and Figure 4B This describes the process of determining perspective changes based on the interaction of mobile controls.
[0055] In some embodiments, the motion control 130 may be a joystick control, and the interaction of the motion control 130 may be, for example, a swipe interaction on the joystick control. Exemplarily, the electronic device 110 may also implement a swipe interaction on the joystick control via touch.
[0056] In some embodiments, the electronic device 110 may determine a change in viewing angle based on an interaction with a motion control (e.g., a swipe interaction with a joystick control). In some embodiments, after an interaction with the motion control 130, the electronic device 110 may determine a second interaction position associated with the interaction with the motion control 130, and determine a change in viewing angle based on the second interaction position.
[0057] For example, electronic device 110 can receive a swipe interaction operation on mobile control 130. The starting position of the swipe interaction operation can be the center position of mobile control 130, or it can be any position on mobile control 130 other than the center position. The position of the swipe interaction operation on mobile control 130 is the ending position. For ease of description, the ending position of the operation corresponding to the interaction of mobile control 130 is referred to as the second interaction position in this document.
[0058] As shown in Figure 400A, the center position of the movement control 130 is position A. The sliding interaction operation starts from position A. Before sliding, the map interface 121 still presents the first scene information from the initial perspective, such as the base and mountains (and other virtual elements not shown in the figure). For example, the sliding interaction operation starts from position A and can slide in any direction. After sliding, the perspective changes, and based on the initial perspective and the change in perspective, the second scene information of the virtual environment is presented in the map interface 121, which will be described in detail below.
[0059] In some embodiments, the electronic device 110 may determine the direction of the viewpoint change based on a first angle between the second interactive position and the center position of the motion control; and determine the scale (or size) of the viewpoint change based on a first distance between the second interactive position and the center position of the motion control.
[0060] For example, as shown in Figure 400B, the starting position of the interaction is the center position A of the movement control, and the ending position of the interaction is position A', which is also the second interaction position. The electronic device 110 can determine the direction of the viewpoint change based on the angle between the line connecting positions A and A' and the horizontal line. For ease of description, this angle is referred to as the first angle. The electronic device 110 can determine the scale of the viewpoint change based on the distance between the second interaction position A' and the center position A of the movement control. For ease of description, this distance is referred to as the first distance. It can be understood that after interacting with the movement control 130, the electronic device 110 determines the direction and scale of the viewpoint change, and transforms the initial viewpoint based on the direction and scale of the viewpoint change. That is, the center of the map interface 121 is moved along the direction and scale of the viewpoint change in the map, resulting in the scene presented in the map interface 121 after the viewpoint change.
[0061] Alternatively or additionally, the electronic device 110 determines the scale of the viewpoint change from a preset set of scales based on a comparison between a first distance and a threshold distance. For example, if the first distance is greater than the threshold distance, a scale greater than the threshold scale is selected from the preset set of scales as the scale of the viewpoint change. If the first distance is less than the threshold distance, a scale less than the threshold scale is selected from the preset set of scales as the scale of the viewpoint change.
[0062] For example, the scale of the viewpoint change can correspond to the speed at which the map moves in the map interface based on the operation of the motion control 130. In some embodiments, the electronic device 110 can set one or more threshold distances. As an example, the threshold distance can include half the radius of the circular joystick control. Accordingly, when the first distance is greater than half the radius, the viewpoint change can correspond to a first scale, causing the map to move at a first speed. Conversely, when the first distance is less than or equal to half the radius, the viewpoint change can correspond to a second scale, causing the map to move at a second speed less than the first speed.
[0063] In some embodiments, the electronic device 110 may also be configured with multiple threshold distances. For example, the electronic device 110 may set one-third of the radius as a first threshold distance and two-thirds of the radius as a second threshold distance. In this case, if the first distance is less than one-third of the radius, the viewpoint change may correspond to a smaller scale, for example, causing the map to move at a slower speed; if the first distance is greater than or equal to one-third of the radius and less than two-thirds of the radius, the viewpoint change may correspond to a medium scale, for example, causing the map to move at a moderate speed; if the first distance is greater than or equal to two-thirds of the radius, the viewpoint change may correspond to a larger scale, for example, causing the map to move at a faster speed.
[0064] Based on the methods discussed above, the embodiments of this disclosure can achieve more flexible viewpoint control.
[0065] Alternatively or additionally, the electronic device 110 determines the scale of the viewpoint change such that the scale is proportional to the first distance. For example, as the first distance increases, the scale of the viewpoint change increases, or as the first distance decreases, the scale of the viewpoint change decreases.
[0066] In some embodiments, the electronic device 110 may determine the direction of the viewpoint change based on a second angle between the second interaction position and the starting position of the interaction; and determine the scale of the viewpoint change based on a second distance between the second interaction position and the starting position of the interaction.
[0067] For example, the starting position of the interaction can be any position other than the center position of the movement control (not shown in the figure), and the ending position of the interaction can be a second interaction position (not shown in the figure). The electronic device 110 can determine the direction of the viewpoint change based on the angle between the line connecting the starting and second interaction positions and the horizontal line. For ease of description, this angle is referred to as the second angle. The electronic device 110 can determine the scale of the viewpoint change based on the distance between the second interaction position and the starting position of the interaction. For ease of description, this distance is referred to as the second distance. It can be understood that after interacting with the movement control 130, the electronic device 110 similarly determines the direction and scale of the viewpoint change, and transforms the initial viewpoint based on the direction and scale of the viewpoint change. That is, the center of the map interface 121 is moved along the direction and scale of the viewpoint change within the map, so that the map interface 121 displays the scene after the viewpoint change.
[0068] Continue to refer to Figure 2 In box 240, electronic device 110 presents the second scene information of the virtual environment in the map interface based on the initial viewpoint and viewpoint changes.
[0069] In some embodiments, after the electronic device 110 transforms the initial viewpoint according to the direction and scale of the viewpoint change, the map interface 121 presents scene information of the virtual environment from the changed viewpoint. For ease of description, this is also referred to as second scene information. For example, as shown in Figure 400A, the map interface 121 presents the mountain (within the dashed box) from the initial viewpoint. Based on the initial viewpoint and the viewpoint change, as shown in Figure 400B, the map interface 121 presents the mountain (within the dashed box) from the changed viewpoint, while the base is removed from the map interface 121.
[0070] In some embodiments, the virtual environment scene presented in the map interface 121 after the electronic device 110 changes its viewing angle according to a first distance and a first angle is the same as the scene presented in the map interface 121 after the electronic device 110 changes its viewing angle according to a second distance and a second angle.
[0071] Based on the process described above, when players enter the game's map to search for virtual elements that can be collected, they perceive the positional relationships or distribution of these virtual elements through changes in perspective. The embodiments of this disclosure can achieve perspective changes through interactive movement controls, and present the scene before and after the perspective change on the map interface. This allows for fast and precise movement within the map, with controllable movement speed. Targets can be found more intuitively on the map interface without needing to switch back and forth between the large and small maps.
[0072] Example devices and equipment
[0073] Figure 5 A schematic structural block diagram of a device 500 for view control in a virtual environment according to certain embodiments of the present disclosure is shown. The device 500 may be implemented as or included in an electronic device 110. Various modules / components in the device 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0074] As shown in the figure, device 500 includes a first scene presentation module 510, configured to present first scene information of the virtual environment in a map interface from an initial perspective. Device 500 also includes a motion control presentation module 520, configured to present motion controls associated with the map interface in response to preset operations on the map interface; and a perspective change determination module 530, configured to determine perspective changes based on the interaction of the motion controls. Device 500 also includes a second scene presentation module 540, configured to present second scene information of the virtual environment in the map interface based on the initial perspective and perspective changes.
[0075] In some embodiments, the mobile control rendering module 520 includes: a display position determination module, configured to determine the display position of the mobile control in the map interface in response to a preset operation on the map interface, the display position including a first interaction position indicated by the preset operation, or a preset position; and a rendering module, configured to render the mobile control at the display position.
[0076] In some embodiments, the movement control is a joystick control, and the viewpoint change determination module 530 includes a sliding interaction module configured for sliding interaction with the joystick control.
[0077] In some embodiments, the mobile control rendering module 520 includes: overlaying the mobile control onto the map interface in a semi-transparent manner.
[0078] In some embodiments, the motion control also indicates at least a portion of the virtual elements included in the first scene associated with the first scene information.
[0079] In some embodiments, the viewpoint change determination module 530 is further configured to: determine a second interaction position associated with the interaction, and determine a viewpoint change based on the second interaction position.
[0080] In some embodiments, the viewpoint change determination module 530 includes: a direction determination module configured to determine the direction of the viewpoint change based on a first angle between the second interaction position and the center position of the motion control; and a scale determination module configured to determine the scale of the viewpoint change based on a first distance between the second interaction position and the center position of the motion control.
[0081] In some embodiments, the scale determination module is further configured to: determine the scale of the viewpoint change from a preset set of scales based on a comparison between a first distance and a threshold distance.
[0082] In some embodiments, the scale determination module is further configured to: determine the scale of the viewpoint change such that the scale is proportional to the first distance.
[0083] In some embodiments, the viewpoint change determination module 530 is further configured to: determine the direction of the viewpoint change based on a second angle between the second interaction position and the starting position of the interaction; and determine the scale of the viewpoint change based on a second distance between the second interaction position and the starting position of the interaction.
[0084] Figure 6 A block diagram is shown illustrating a computing device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that... Figure 6 The computing device 600 shown is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein.
[0085] like Figure 6 As shown, computing device 600 is in the form of a general-purpose computing device. Components of computing device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage devices 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be a physical or virtual processor and is capable of performing various processes according to programs stored in memory 620. In a multiprocessor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing capability of computing device 600.
[0086] Computing device 600 typically includes multiple computer storage media. Such media can be any accessible media that is accessible to computing device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. Memory 620 can be volatile memory (e.g., registers, cache, random access memory (RAM)), non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. Storage device 630 can be removable or non-removable media and can include machine-readable media, such as flash drives, disks, or any other media that can be used to store information and / or data (e.g., training data for training) and can be accessed within computing device 600.
[0087] The computing device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not explicitly stated... Figure 6As shown, disk drives for reading from or writing to removable, non-volatile disks (e.g., "floppy disks") and optical disk drives for reading from or writing to removable, non-volatile optical disks can be provided. In these cases, each drive can be connected to a bus (not shown) via one or more data media interfaces. Memory 620 may include computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of this disclosure.
[0088] The communication unit 640 enables communication with other computing devices via a communication medium. Additionally, the components of the computing device 600 can function as a single computing cluster or multiple computing machines capable of communicating via communication connections. Therefore, the computing device 600 can operate in a networked environment using logical connections to one or more other servers, networked personal computers (PCs), or another network node.
[0089] Input device 650 can be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 660 can be one or more output devices, such as a monitor, speaker, printer, etc. Computing device 600 can also communicate as needed with one or more external devices (not shown) via communication unit 640. These external devices, such as storage devices, display devices, etc., can communicate with one or more devices that enable user interaction with computing device 600, or with any device (e.g., network card, modem, etc.) that enables computing device 600 to communicate with one or more other computing devices. Such communication can be performed via input / output (I / O) interfaces (not shown).
[0090] According to an exemplary implementation of this disclosure, a computer-readable storage medium is provided that stores computer-executable instructions thereon, wherein the computer-executable instructions are executed by a processor to implement the methods described above. According to an exemplary implementation of this disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which are executed by a processor to implement the methods described above.
[0091] Various aspects of this disclosure are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to this disclosure. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0092] 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 apparatus to produce a machine such that, when executed by the processing unit of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0093] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions that execute on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0095] Various implementations of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is chosen to best explain the principles, practical applications, or improvements to technology in the market, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A method for controlling viewpoint in a virtual environment, comprising: The first scene information of the virtual environment is presented in the map interface from the initial perspective; In response to a preset operation on the map interface, a motion control associated with the map interface is presented, wherein the motion control further indicates at least some virtual elements included in a first scene associated with the first scene information, the first scene being presented as a thumbnail of a semi-transparent map; the at least some virtual elements are presented through display boxes superimposed on the thumbnail of the map; the virtual elements change as the scene of the virtual environment presented in the map interface is scaled, or are enlarged in the map interface in response to the display box being selected; Based on the interaction of the aforementioned mobile control, the change in viewing angle is determined; as well as Based on the initial viewpoint and the viewpoint changes, the second scene information of the virtual environment is presented in the map interface.
2. The method of claim 1, wherein in response to a preset operation on the map interface, presenting a motion control associated with the map interface includes: In response to the preset operation on the map interface, the display position of the mobile control on the map interface is determined, the display position including a first interaction position indicated by the preset operation, or a preset position; as well as The motion control is displayed at the specified location.
3. The method according to claim 1, wherein the movement control is a joystick control, and the interaction of the movement control includes: For the sliding interaction of the joystick control.
4. The method of claim 1, wherein presenting the motion control comprises: The movement control is overlaid on the map interface in a semi-transparent manner.
5. The method according to claim 1, wherein determining the viewpoint change based on the interaction of the motion control includes: Determine the second interaction location associated with the interaction; as well as The viewpoint change is determined based on the second interaction position.
6. The method of claim 5, wherein determining the viewpoint change based on the second interaction position comprises: The direction of the viewpoint change is determined based on the first angle between the second interactive position and the center position of the mobile control; as well as The scale of the viewpoint change is determined based on the first distance between the second interactive position and the center position of the mobile control.
7. The method of claim 6, wherein determining the scale of the viewpoint change based on a first distance between the second interaction position and the center position of the motion control comprises: Based on the comparison between the first distance and the threshold distance, the scale of the viewpoint change is determined from a preset set of scales.
8. The method of claim 6, wherein determining the scale of the viewpoint change based on a first distance between the second interaction position and the center position of the motion control comprises: Determine the scale of the viewpoint change such that the scale is proportional to the first distance.
9. The method of claim 5, wherein determining the viewpoint change based on the second interaction position comprises: The direction of the viewpoint change is determined based on the second angle between the second interaction position and the starting position of the interaction; as well as The scale of the viewpoint change is determined based on the second distance between the second interaction position and the starting position of the interaction.
10. A device for controlling viewpoint in a virtual environment, comprising: The first scene presentation module is configured to present the first scene information of the virtual environment in the map interface from an initial perspective; A mobile control rendering module is configured to render a mobile control associated with the map interface in response to a preset operation on the map interface, wherein the mobile control further indicates at least some virtual elements included in a first scene associated with the first scene information, the first scene being rendered as a thumbnail of a map in a semi-transparent form; the at least some virtual elements are rendered through display boxes superimposed on the thumbnail of the map; the virtual elements change as the scene of the virtual environment presented in the map interface is scaled, or are enlarged in the map interface in response to the display box being selected; The viewpoint change determination module is configured to determine viewpoint changes based on the interaction of the mobile control; as well as The second scene presentation module is configured to present the second scene information of the virtual environment in the map interface based on the initial viewpoint and the viewpoint changes.
11. An electronic device, comprising: At least one processing unit; as well as At least one memory, coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, which, when executed by the at least one processing unit, cause the electronic device to perform the method according to any one of claims 1 to 9.
12. A computer-readable storage medium having a computer program stored thereon, the computer program being executable by a processor to implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Information processing method and device, electronic equipment and storage medium
CN107754308A
Virtual joystick control method and device
CN108815843A
Way-finding control method and device in game
CN111760268A
Program and server
JP2015192708A