Picture control method, apparatus, medium, and device
Patent Information
- Application Number
- CN202211604727.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2042-12-13
AI Technical Summary
但是,用户基于不同的目的,所需要画面转动的幅度是不同的,基于上述方式无法满足用户的多样化需求
[0055]在本申请的一示例实施方式所提供的画面控制方法中,可以响应于针对控制器中触控区域的滑动操作,基于滑动操作对应的作用位置确定偏转系数,并根据偏转系数和作用范围控制画面偏转并显示偏转后的虚拟镜头捕获的虚拟场景画面,以满足用户在转动画面时的多样化需求,例如,在需要画面偏转的慢一些时,可以触发偏转系数较低的触控区域,在需要画面偏转的快一些时,可以触发偏转系数较高的触控区域。
Smart Images

Figure CN115920368B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to a screen control method, a screen control device, a computer-readable storage medium, and an electronic device. Background Technology
[0002] In role-playing games, users can control virtual characters to perform corresponding actions using terminal devices or external devices. These virtual characters typically reside within a virtual game environment, and users can control the screen rotation via external / terminal devices to observe the virtual character's surroundings, aim at enemy units, and locate targets.
[0003] The common way to control screen rotation is for the user to trigger the touchpad of a game controller or rotate a virtual / physical joystick. However, users require different degrees of screen rotation for different purposes, and the above methods cannot meet the diverse needs of users.
[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a screen control method, screen control device, computer-readable storage medium, and electronic device that can respond to a sliding operation on a touch area in a controller, determine a deflection coefficient based on the position corresponding to the sliding operation, and control the screen deflection according to the deflection coefficient and the range of action to display the virtual scene captured by the virtual camera after deflection, so as to meet the diverse needs of users when rotating the screen. For example, when a slower screen deflection is required, a touch area with a lower deflection coefficient can be triggered, and when a faster screen deflection is required, a touch area with a higher deflection coefficient can be triggered.
[0006] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0007] According to one aspect of this application, a screen control method is provided, which provides a graphical user interface through a terminal device. The graphical user interface includes a screen of a virtual scene captured by a virtual camera, and the virtual scene includes virtual objects controlled by the terminal device. The method includes:
[0008] The controller responds to swipe operations on the touch area of the controller, determining the position and range of the swipe operation within the touch area. The controller is in communication with the terminal device.
[0009] The deflection coefficient of the virtual lens to be deflected is determined based on the position of action;
[0010] The virtual camera is deflected based on the deflection coefficient and the effective range, and the image of the virtual scene captured by the deflected virtual camera is displayed through a graphical user interface.
[0011] In one exemplary embodiment of this application, the virtual scene includes a virtual object controlled by a terminal device, and the virtual object holds a virtual weapon;
[0012] Before responding to a swipe operation on a touch area in the controller and determining the position and extent of the swipe operation within the touch area, the method further includes:
[0013] Confirm that the virtual weapon has entered aiming mode.
[0014] In one exemplary embodiment of this application, the method further includes:
[0015] In response to the virtual weapon entering aiming mode, the touch area is divided into multiple sub-control areas.
[0016] In one exemplary embodiment of this application, determining the position of the sliding operation in the touch area includes:
[0017] Determine the starting touch point of the swipe operation within the touch area;
[0018] The touch position is defined as the location where the swipe operation is applied within the touch area.
[0019] In one exemplary embodiment of this application, determining the position of the sliding operation in the touch area includes:
[0020] Determine the target sub-control area where the starting touch point of the sliding operation is located;
[0021] The target sub-control area is used as the location where the swipe operation is applied in the touch area.
[0022] In one exemplary embodiment of this application, determining the deflection coefficient of the virtual lens to be deflected based on the position of action includes:
[0023] Determine the deflection coefficient corresponding to the target sub-control area, where different sub-control areas correspond to different deflection coefficients;
[0024] The deflection coefficient corresponding to the target sub-control area is used as the deflection coefficient to be deflected by the virtual lens.
[0025] In one exemplary embodiment of this application, controlling the virtual camera to deflect based on the deflection coefficient and the effective range includes:
[0026] In response to the end of the sliding operation, the virtual camera is deflected according to the deflection coefficient and the range of action.
[0027] In one exemplary embodiment of this application, the deflection coefficient is directly proportional to the magnitude of the virtual lens deflection.
[0028] In one exemplary embodiment of this application, the method further includes:
[0029] The touch area is divided into a first sub-control area, a second sub-control area, and a third sub-control area. The first deflection coefficient corresponding to the first sub-control area is greater than the second deflection coefficient corresponding to the second sub-control area, and the second deflection coefficient is greater than the third deflection coefficient corresponding to the third sub-control area. The second sub-control area is located between the first sub-control area and the third sub-control area.
[0030] According to one aspect of this application, a screen control device is provided, which provides a graphical user interface (GUI). The GUI includes an image of a virtual scene captured by a virtual camera. The virtual scene includes virtual objects controlled by the device, comprising:
[0031] The touch area determination unit is used to respond to a sliding operation on the touch area in the controller and determine the position and range of the sliding operation in the touch area. The controller is communicatively connected to the terminal device.
[0032] The deflection coefficient determination unit is used to determine the deflection coefficient of the virtual lens to be deflected based on the position of action.
[0033] The image deflection control unit is used to control the deflection of the virtual lens according to the deflection coefficient and the range of action, and displays the image of the virtual scene captured by the deflected virtual lens through a graphical user interface.
[0034] In one exemplary embodiment of this application, the virtual scene includes a virtual object controlled by a terminal device, and the virtual object holds a virtual weapon;
[0035] Before the touch area determination unit responds to a sliding operation on the touch area in the controller and determines the position and range of the sliding operation within the touch area, the device further includes:
[0036] The status determination unit is used to determine whether the virtual weapon has entered the aiming state.
[0037] In one exemplary embodiment of this application, the apparatus further includes:
[0038] The area division unit is used to divide the touch area into multiple sub-control areas in response to the virtual weapon entering the aiming state.
[0039] In one exemplary embodiment of this application, the touch area determination unit determines the position of the sliding operation within the touch area, including:
[0040] Determine the starting touch point of the swipe operation within the touch area;
[0041] The touch position is defined as the location where the swipe operation is applied within the touch area.
[0042] In one exemplary embodiment of this application, the touch area determination unit determines the position of the sliding operation within the touch area, including:
[0043] Determine the target sub-control area where the starting touch point of the sliding operation is located;
[0044] The target sub-control area is used as the location where the swipe operation is applied in the touch area.
[0045] In one exemplary embodiment of this application, the deflection coefficient determining unit determines the deflection coefficient of the virtual lens to be deflected based on the position of action, including:
[0046] Determine the deflection coefficient corresponding to the target sub-control area, where different sub-control areas correspond to different deflection coefficients;
[0047] The deflection coefficient corresponding to the target sub-control area is used as the deflection coefficient to be deflected by the virtual lens.
[0048] In one exemplary embodiment of this application, the image deflection control unit controls the virtual lens to deflect according to the deflection coefficient and the range of action, including:
[0049] In response to the end of the sliding operation, the virtual camera is deflected according to the deflection coefficient and the range of action.
[0050] In one exemplary embodiment of this application, the deflection coefficient is directly proportional to the magnitude of the virtual lens deflection.
[0051] In an exemplary embodiment of this application, the zoning unit is further configured to divide the touch area into a first sub-control area, a second sub-control area, and a third sub-control area, wherein the first deflection coefficient corresponding to the first sub-control area is greater than the second deflection coefficient corresponding to the second sub-control area, and the second deflection coefficient is greater than the third deflection coefficient corresponding to the third sub-control area; the second sub-control area is located between the first sub-control area and the third sub-control area.
[0052] According to one aspect of this application, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method of any one of the above.
[0053] According to one aspect of this application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any of the above by executing the executable instructions.
[0054] The exemplary embodiments of this application may have some or all of the following beneficial effects:
[0055] In an example embodiment of this application, the screen control method can respond to a sliding operation on a touch area in the controller, determine a deflection coefficient based on the position of the sliding operation, and control the screen deflection according to the deflection coefficient and the range of action to display the virtual scene captured by the virtual camera after the deflection, so as to meet the diverse needs of users when rotating the screen. For example, when the screen deflection needs to be slower, a touch area with a lower deflection coefficient can be triggered, and when the screen deflection needs to be faster, a touch area with a higher deflection coefficient can be triggered.
[0056] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0057] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0058] Figure 1 This schematically illustrates a structural block diagram of a computer system provided according to an embodiment of the present application;
[0059] Figure 2 A flowchart illustrating a screen control method according to an embodiment of this application is shown schematically;
[0060] Figure 3 A schematic diagram a illustrates an application scenario according to an embodiment of this application;
[0061] Figure 4 This illustration shows an application scenario diagram b according to an embodiment of the present application;
[0062] Figure 5 A flowchart illustrating another embodiment of a screen control method according to this application is shown schematically;
[0063] Figure 6 This schematic diagram illustrates a structural block diagram of a screen control device according to one embodiment of the present application;
[0064] Figure 7 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0065] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of the embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced with one or more of the specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this application.
[0066] Furthermore, the accompanying drawings are merely illustrative of this application and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0067] First, a brief introduction to the terms used in the embodiments of this application:
[0068] A virtual environment is a virtual environment displayed (or provided) by an application when it runs on a terminal. This virtual environment can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment. The virtual environment can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual environment; this application embodiment does not limit this. Optionally, the virtual environment can provide a battle environment for virtual objects. For example, in a battle royale game, at least one virtual object engages in a single-round battle within the virtual environment. The virtual object survives by avoiding attacks from enemy units and dangers present in the virtual environment (such as poison gas circles, swamps, etc.). When a virtual object's life value in the virtual environment reaches zero, its life ends. The virtual object that successfully completes the route within the level is the winner. Each client can control one or more virtual objects within the virtual environment.
[0069] Virtual objects refer to movable objects within a virtual environment. These movable objects can be virtual characters, virtual animals, anime characters, etc., such as people or animals displayed in a 3D virtual environment. Optionally, virtual objects are 3D models created based on animation skeletal technology. Each virtual object has its own shape and volume in the 3D virtual environment and occupies a portion of the space within that environment.
[0070] Please see Figure 1 , Figure 1 A schematic block diagram of a computer system provided according to an embodiment of this application is shown. Figure 1 As shown, the computer system 100 includes a mobile terminal 120 and a server 110.
[0071] Mobile terminal 120 has an application that supports a virtual environment installed and running. This application can be any of the following: a 3D map application, a military simulation application, a side-scrolling shooter, a side-scrolling adventure application, a side-scrolling platformer, a side-scrolling strategy application, a virtual reality (VR) application, or an augmented reality (AR) application. Mobile terminal 120 is a mobile terminal used by the user, who uses it to control a main virtual object located in the 3D virtual environment. These activities include, but are not limited to: adjusting body posture, walking, running, jumping, riding, driving, aiming, picking up items, using throwable items, and attacking other virtual objects. For example, the main virtual object is a virtual character, such as a realistic or anime character. For example, the user controls the main virtual character's activities through UI controls on the virtual environment screen.
[0072] Mobile terminal 120 is connected to server 110 via wireless network or wired network.
[0073] Server 110 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Exemplarily, server 110 includes a processor 112 and a memory 111. Memory 111 further includes a receiving module 1113, a control module 1111, and a sending module 1112. The receiving module 1113 receives requests from applications, such as attacks on enemies; the control module 1111 controls the rendering of the virtual environment; and the sending module 1112 sends responses to applications, such as damage values caused by attacks. Server 110 provides background services for applications supporting a 3D virtual environment. Optionally, server 110 performs the primary computing task, and mobile terminal 120 performs secondary computing tasks; or, server 110 performs secondary computing tasks, and mobile terminal 120 performs primary computing tasks.
[0074] Optionally, the above-mentioned application runs on different operating system platforms (Android or iOS). Optionally, the mobile terminal 140 running the application may be of the same or different device type, including at least one of the following: smartphone, smartwatch, smart TV, in-vehicle mobile terminal, wearable device, tablet computer, e-book reader, MP3 player, MP4 player, and laptop computer. The following embodiments use smartphones as an example.
[0075] Those skilled in the art will understand that the number of mobile terminals described above can be more or less. For example, there may be only one mobile terminal, or there may be dozens or hundreds of mobile terminals, or even more. This application does not limit the number or type of mobile terminals in its embodiments.
[0076] In one embodiment of this disclosure, the screen control method can run on a local terminal device or a server. When the screen control method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0077] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of screen control methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0078] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0079] In one possible implementation, the present invention provides a screen control method that provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system.
[0080] Please see Figure 2 , Figure 2 A flowchart illustrating a screen control method according to an embodiment of this application is shown. The method is applied to... Figure 1 The mobile terminal 120 (or the application on the mobile terminal 120) shown is illustrated by example. Figure 2 As shown, the screen control method can provide a graphical user interface through a terminal device. The graphical user interface includes the screen of a virtual scene captured by a virtual camera. The virtual scene includes virtual objects controlled by the terminal device. Specifically, it includes steps S210 to S230.
[0081] Step S210: Respond to a sliding operation on the touch area in the controller, and determine the position and range of the sliding operation in the touch area, wherein the controller is communicatively connected to the terminal device.
[0082] Step S220: Determine the deflection coefficient of the virtual lens to be deflected based on the position of action.
[0083] Step S230: Control the virtual lens to deflect according to the deflection coefficient and the effective range, and display the image of the virtual scene captured by the deflected virtual lens through the graphical user interface.
[0084] Implementation Figure 2The method shown can respond to a sliding operation on a touch area in the controller, determine the deflection coefficient based on the position of the sliding operation, and control the screen deflection according to the deflection coefficient and the range of action to display the virtual scene captured by the virtual camera after the deflection, so as to meet the diverse needs of users when rotating the screen. For example, when the screen deflection needs to be slower, the touch area with a lower deflection coefficient can be triggered, and when the screen deflection needs to be faster, the touch area with a higher deflection coefficient can be triggered.
[0085] The steps described above in this example implementation will now be explained in more detail.
[0086] In step S210, in response to a sliding operation on the touch area of the controller, the position and range of the sliding operation in the touch area are determined, wherein the controller is communicatively connected to the terminal device.
[0087] Specifically, the controller may contain any number of touch areas, which is not limited in this embodiment. Furthermore, the starting touch point corresponding to a swipe operation may be located within a touch area, and the ending touch point corresponding to a swipe operation may be located within or outside that touch area, which is not limited in this embodiment.
[0088] Optionally, if the swipe operation moves from touch area A to touch area B, the swipe displacement in touch area A and the swipe displacement in touch area B can be determined. The current screen is deflected according to the deflection coefficient, swipe direction, and swipe distance of touch area A to obtain a reference screen. Then, the current screen is deflected according to the deflection coefficient, swipe direction, and swipe distance of touch area B to obtain the target screen.
[0089] Furthermore, the effective position of a sliding operation is related to the starting touch point and / or the ending touch point, and the effective range of a sliding operation can be defined and interpreted through the touch area.
[0090] Furthermore, this application does not limit the number of touch areas traversed by the swipe operation. Regardless of the number of areas traversed by the swipe operation, screen control can be performed based on the above method, which can enhance the diversity of interaction and provide users with a richer gaming experience.
[0091] As an optional embodiment, the virtual scene includes a virtual object controlled by a terminal device, the virtual object holding a virtual weapon; before responding to a swipe operation on a touch area in the controller and determining the position and range of the swipe operation in the touch area, the method further includes: determining that the virtual weapon has entered an aiming state. This allows for precise control of the aiming of the virtual weapon in the aiming state, i.e., it can achieve effects such as fast and slow movement of the crosshair, which helps improve shooting accuracy in the game.
[0092] In this context, confirming that the virtual weapon has entered the aiming state can be understood as displaying a crosshair on the screen so that the user can control the position of the crosshair by triggering the touch area.
[0093] Furthermore, the controller can be a gamepad or a touchscreen, and the touch area can be a physical touchpad or a virtual touchpad. This facilitates application in various scenarios. Whether the user operates on a terminal device or a gamepad, the technical solution of this application can be implemented. Therefore, this embodiment can expand the application scope of the technical solution of this application. Additionally, it may include: in response to a sliding operation on an external, independent touchpad (e.g., a touchpad separately connected to an electronic device), determining the touch area corresponding to the sliding operation.
[0094] For example, regarding the physical touchpad of a game controller, please refer to [link / reference]. Figure 3 , Figure 3 A schematic diagram a illustrates an application scenario according to an embodiment of this application. For example... Figure 3 As shown, this application can be applied to a game controller. The physical touchpad area of the game controller can be divided into: area A 310, area B 320, and area C 330.
[0095] Among them, regions A (310), B (320), and C (330) correspond to different deflection coefficients. Multiplying the sliding distance corresponding to the sliding operation by the different deflection coefficients yields the final deflection distance required for the image. Users can trigger the corresponding regions according to their needs to obtain different deflection effects.
[0096] It should be noted that regions A 310, B 320, and C 330 are merely illustrative examples. This application does not limit the method of region division; the touchpad can be divided into any number of regions, and the division can be horizontal or vertical (e.g., [missing information]). Figure 3 (e.g., diagonal division).
[0097] Furthermore, the number of multiple touch areas can depend on the size of the total touchable area. The method can also include dividing the total touchable area into multiple touch areas based on a preset division unit (e.g., 5cm x 5cm). Each touch area corresponds to a different deflection coefficient. This allows users to trigger specific touch areas according to their needs, achieving a personalized screen deflection effect.
[0098] As an optional embodiment, the method further includes: dividing the touch area into multiple sub-control areas in response to the virtual weapon entering an aiming state. This can improve the controllability of each touch area.
[0099] Specifically, each touch area can also include multiple sub-control areas. Different sub-control areas can correspond to different deflection coefficients, and the deflection coefficients of the sub-control areas within the touch area can be limited to the coefficient range of the corresponding touch area. It should be noted that a sub-control area does not indicate a parent-child relationship between touch areas; rather, a sub-control area indicates that the touch area is divided into multiple smaller blocks, and the term "sub-control area" is used to refer to these smaller blocks.
[0100] As an optional embodiment, the method further includes: dividing the touch area into a first sub-control area, a second sub-control area, and a third sub-control area, wherein a first deflection coefficient corresponding to the first sub-control area is greater than a second deflection coefficient corresponding to the second sub-control area, and the second deflection coefficient is greater than a third deflection coefficient corresponding to the third sub-control area; the second sub-control area is located between the first and third sub-control areas. This method, by limiting the deflection coefficients of the first, second, and third sub-control areas, enhances the increasing relationship of the deflection coefficients among them, thereby facilitating more precise screen deflection control.
[0101] Specifically, the shapes of the regions corresponding to the first sub-control region, the second sub-control region, and the third sub-control region are not limited in this application embodiment. This application limits the names of the first sub-control region, the second sub-control region, and the third sub-control region, but does not limit the increasing order of the deflection coefficients of the first sub-control region, the second sub-control region, and the third sub-control region.
[0102] As an optional embodiment, determining the effective position of a swipe operation in the touch area includes: determining the touch position of the starting touch point of the swipe operation in the touch area; and determining the touch position as the effective position of the swipe operation in the touch area. This enables rapid detection of the effective position, allowing the effective position to be determined promptly upon detection of the starting touch point, thereby improving the response speed of screen deflection.
[0103] Specifically, if multiple initial touch points are detected simultaneously, the touch state of the multiple initial touch points (e.g., continuous touch, brief touch, etc.) can be determined, an initial touch point can be selected, and its corresponding touch position can be determined as the position of the sliding operation in the touch area.
[0104] As an optional embodiment, determining the position of the sliding operation within the touch area includes: determining the target sub-control area where the starting touch point of the sliding operation is located; and using the target sub-control area as the position of the sliding operation within the touch area. This sub-control area control scheme can improve the control accuracy of screen deflection.
[0105] Specifically, the target sub-control area can be any sub-control area within the touch area where the starting touch point is located, and this application embodiment does not limit it.
[0106] In step S220, the deflection coefficient of the virtual lens to be deflected is determined according to the position of action.
[0107] Specifically, the deflection coefficient can be preset or selected based on the current scenario. That is, the deflection coefficient corresponding to each touch area can be different in different scenarios.
[0108] For example, in a first-person perspective, the deflection coefficients corresponding to each touch area can be 0.2, 0.5, and 0.5, respectively; in a third-person perspective, the deflection coefficients corresponding to each touch area can be 1, 1.2, and 1.3, respectively; and in a scoped-and-shoot perspective, the deflection coefficients corresponding to each touch area can be 0.2, 0.5, and 0.5, respectively. The deflection coefficient of the virtual camera to be deflected can be understood as the deflection coefficient of the touch area corresponding to the position of action.
[0109] As an optional embodiment, determining the deflection coefficient of the virtual camera to be deflected based on the position of action includes: determining the deflection coefficient corresponding to the target sub-control area, wherein different sub-control areas correspond to different deflection coefficients; and using the deflection coefficient corresponding to the target sub-control area as the deflection coefficient of the virtual camera to be deflected. This allows users to customize the deflection coefficient of the touch area according to their own needs, which is beneficial to improving the interactivity between the user and the device and providing a richer interactive experience.
[0110] Optionally, in response to a swipe operation, multiple controls corresponding to different deflection coefficients can be displayed; in response to a control selection operation, a target control can be determined from multiple controls; the target deflection coefficient corresponding to the target control can be determined; and the deflection coefficient of the touch area can be set as the target deflection coefficient. This allows users to customize the deflection coefficient of the touch area according to their own needs, which is beneficial to improving interactivity with users and providing a richer interactive experience.
[0111] Setting the deflection coefficient of the touch area as the target deflection coefficient includes: setting the deflection coefficient of a specific touch area among multiple touch areas as the target deflection coefficient; or setting the deflection coefficients of multiple touch areas as the target deflection coefficient. This application embodiment does not limit this.
[0112] In step S230, the virtual lens is deflected according to the deflection coefficient and the effective range, and the image of the virtual scene captured by the deflected virtual lens is displayed through the graphical user interface.
[0113] As an optional embodiment, controlling the virtual camera to deflect based on the deflection coefficient and the effective range includes: responding to the end of the sliding operation and controlling the virtual camera to deflect based on the deflection coefficient and the effective range. This allows for the determination of an accurate deflection result based on the deflection coefficient and the effective range, enabling precise deflection of the image.
[0114] The deflection coefficient is directly proportional to the magnitude of the virtual lens deflection.
[0115] Specifically, when the virtual firing crosshair in the current frame slides a certain distance in the sliding direction, the image will change accordingly. When the virtual firing crosshair is not included in the current frame, the center point in the current frame can be controlled to deflect a certain distance in the sliding direction, thereby achieving a deflection of the image, that is, displaying the image of the virtual scene captured by the deflected virtual camera.
[0116] Please see Figure 4 , Figure 4 A schematic diagram (b) illustrates an application scenario according to an embodiment of this application. For example... Figure 4 As shown, if the game screen includes a virtual shooting crosshair of 400, it can be based on the user's... Figure 4 The triggered sliding operation deflects the virtual firing crosshair by 400 degrees, based on the sliding distance corresponding to the sliding operation. Figure 4 In the example, respectively corresponding to Figure 3 The deflection displacements of region A (310), region B (320), and region C (330) are 410, 420, and 430, respectively.
[0117] Specifically, if the user triggers a sliding operation in area A 310, the deflection displacement 410 can be determined based on the sliding distance L and the deflection coefficient of area A 310; if the user triggers a sliding operation in area B 320, the deflection displacement 420 can be determined based on the sliding distance L and the deflection coefficient of area B 320; if the user triggers a sliding operation in area C 330, the deflection displacement 430 can be determined based on the sliding distance L and the deflection coefficient of area C 330.
[0118] Further, please refer to Figure 5 , Figure 5 A flowchart illustrating another embodiment of a screen control method according to this application is shown schematically. Figure 5 As shown, the screen control method may include steps S510 to S560.
[0119] Step S510: Confirm that the virtual weapon has entered the aiming state.
[0120] Step S520: In response to the virtual weapon entering the aiming state, the touch area is divided into multiple sub-control areas.
[0121] Step S530: In response to a sliding operation targeting a sub-control area in the controller, determine the target sub-control area where the starting touch point of the sliding operation is located, and use the target sub-control area as the position of the sliding operation in the touch area; wherein, the controller is communicatively connected to the terminal device.
[0122] Step S540: Determine the deflection coefficient corresponding to the target sub-control region, wherein different sub-control regions correspond to different deflection coefficients.
[0123] Step S550: Use the deflection coefficient corresponding to the target sub-control area as the deflection coefficient to be deflected by the virtual lens.
[0124] Step S560: In response to the end of the sliding operation, control the virtual camera to deflect according to the deflection coefficient and the range of action, and display the image of the virtual scene captured by the deflected virtual camera through the graphical user interface; wherein, the deflection coefficient is directly proportional to the magnitude of the virtual camera deflection.
[0125] It should be noted that steps S510 to S560 are the same as... Figure 2 For the specific implementation details of steps S510 to S560, please refer to the examples shown. Figure 2 The steps and their embodiments shown are not repeated here.
[0126] It is evident that implementation Figure 5 The method shown can respond to a sliding operation on a touch area in the controller, determine the deflection coefficient based on the position of the sliding operation, and control the screen deflection according to the deflection coefficient and the range of action to display the virtual scene captured by the virtual camera after the deflection, so as to meet the diverse needs of users when rotating the screen. For example, when the screen deflection needs to be slower, the touch area with a lower deflection coefficient can be triggered, and when the screen deflection needs to be faster, the touch area with a higher deflection coefficient can be triggered.
[0127] Further, please refer to Figure 6 , Figure 6The diagram schematically illustrates a structural block diagram of a screen control device according to one embodiment of this application. The device can provide a graphical user interface (GUI), which includes images of a virtual scene captured by a virtual camera. The virtual scene includes virtual objects controlled by the device. Figure 6 As shown, the screen control device 600 may specifically include:
[0128] The touch area determination unit 601 is used to respond to a sliding operation on the touch area in the controller and determine the position and range of the sliding operation in the touch area. The controller is communicatively connected to the terminal device.
[0129] The deflection coefficient determination unit 602 is used to determine the deflection coefficient of the virtual lens to be deflected based on the position of action.
[0130] The image deflection control unit 603 is used to control the deflection of the virtual lens according to the deflection coefficient and the range of action, and to display the image of the virtual scene captured by the deflected virtual lens through a graphical user interface.
[0131] It is evident that implementation Figure 6 The device shown can respond to a sliding operation on a touch area in the controller, determine the deflection coefficient based on the position of the sliding operation, and control the screen deflection according to the deflection coefficient and the range of action to display the virtual scene captured by the virtual camera after the deflection, so as to meet the diverse needs of users when rotating the screen. For example, when the screen deflection needs to be slower, the touch area with a lower deflection coefficient can be triggered, and when the screen deflection needs to be faster, the touch area with a higher deflection coefficient can be triggered.
[0132] In one exemplary embodiment of this application, the virtual scene includes a virtual object controlled by a terminal device, and the virtual object holds a virtual weapon;
[0133] Before the touch area determination unit 601 responds to a sliding operation on a touch area in the controller and determines the position and range of the sliding operation within the touch area, the device further includes:
[0134] The status determination unit is used to determine whether the virtual weapon has entered the aiming state.
[0135] As can be seen, implementing this optional embodiment can achieve precise control over the aiming of virtual weapons in the aiming state, that is, it can achieve effects such as fast and slow movement of the crosshair, which is beneficial to improving the shooting accuracy in the game.
[0136] In one exemplary embodiment of this application, the apparatus further includes:
[0137] The area division unit is used to divide the touch area into multiple sub-control areas in response to the virtual weapon entering the aiming state.
[0138] As can be seen, implementing this optional embodiment can improve the controllability of each touch area.
[0139] In one exemplary embodiment of this application, the touch area determination unit 601 determines the position of the sliding operation in the touch area, including:
[0140] Determine the starting touch point of the swipe operation within the touch area;
[0141] The touch position is defined as the location where the swipe operation is applied within the touch area.
[0142] As can be seen, implementing this optional embodiment can enable rapid detection of the action position, and can determine the action position in a timely manner when the initial touch point is detected, so as to improve the response speed of screen deflection.
[0143] In one exemplary embodiment of this application, the touch area determination unit 601 determines the position of the sliding operation in the touch area, including:
[0144] Determine the target sub-control area where the starting touch point of the sliding operation is located;
[0145] The target sub-control area is used as the location where the swipe operation is applied in the touch area.
[0146] As can be seen, by implementing this optional embodiment, the control accuracy of screen deflection can be improved through the provided sub-control area control scheme.
[0147] In one exemplary embodiment of this application, the deflection coefficient determining unit 602 determines the deflection coefficient of the virtual lens to be deflected based on the position of action, including:
[0148] Determine the deflection coefficient corresponding to the target sub-control area, where different sub-control areas correspond to different deflection coefficients;
[0149] The deflection coefficient corresponding to the target sub-control area is used as the deflection coefficient to be deflected by the virtual lens.
[0150] As can be seen, implementing this optional embodiment allows users to customize the deflection coefficient of the touch area according to their own needs, which is beneficial to improving the interactivity between the user and the device and providing a richer interactive experience.
[0151] In one exemplary embodiment of this application, the image deflection control unit 603 controls the virtual lens to deflect according to the deflection coefficient and the range of action, including:
[0152] In response to the end of the sliding operation, the virtual camera is deflected according to the deflection coefficient and the range of action.
[0153] The deflection coefficient is directly proportional to the magnitude of the virtual lens deflection.
[0154] As can be seen, by implementing this optional embodiment, an accurate deflection result can be determined based on the deflection coefficient and the effective range. Based on this, virtual lens deflection can be performed to achieve precise deflection of the image.
[0155] In an exemplary embodiment of this application, the zoning unit is further configured to divide the touch area into a first sub-control area, a second sub-control area, and a third sub-control area, wherein the first deflection coefficient corresponding to the first sub-control area is greater than the second deflection coefficient corresponding to the second sub-control area, and the second deflection coefficient is greater than the third deflection coefficient corresponding to the third sub-control area; the second sub-control area is located between the first sub-control area and the third sub-control area.
[0156] As can be seen, by implementing this optional embodiment, the increasing relationship of the deflection coefficients among the first sub-control area, the second sub-control area, and the third sub-control area can be improved by limiting the deflection coefficients of the first sub-control area, the second sub-control area, and the third sub-control area, thereby facilitating more precise screen deflection control.
[0157] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0158] Since the functional modules of the screen control device in the example embodiments of this application correspond to the steps of the example embodiments of the screen control method described above, for details not disclosed in the device embodiments of this application, please refer to the embodiments of the screen control method described above.
[0159] Please see Figure 7 , Figure 7 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0160] It should be noted that, Figure 7 The computer system 700 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0161] like Figure 7As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 702 or programs loaded from storage section 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for system operation. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0162] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0163] In particular, according to embodiments of this application, the processes described below with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 709, and / or installed from removable medium 711. When the computer program is executed by central processing unit (CPU) 701, it performs the various functions defined in the methods and apparatus of this application.
[0164] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0165] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0166] 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 application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that 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 consecutively indicated 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 a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0167] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0168] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0169] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A screen control method, characterized in that, The method includes providing a graphical user interface (GUI) via a terminal device, the GUI including images of a virtual scene captured by a virtual camera, the virtual scene including virtual objects controlled by the terminal device, the method comprising: In response to a sliding operation on a touch area in the controller, the position and range of the sliding operation in the touch area are determined, wherein the controller is communicatively connected to the terminal device, and the controller is an external independent touchpad that is separately connected to the terminal device; The deflection coefficient of the virtual lens to be deflected is determined according to the position of action, wherein when the controller includes multiple touch areas, different touch areas correspond to different deflection coefficients; determining the deflection coefficient of the virtual lens to be deflected according to the position of action includes: displaying multiple controls corresponding to different deflection coefficients; responding to a control selection operation, determining a target control from the multiple controls; and setting the deflection coefficient of the touch area as the target deflection coefficient corresponding to the target control; the deflection coefficient is directly proportional to the magnitude of the virtual lens deflection; The virtual camera is deflected according to the deflection coefficient and the range of action and direction of the sliding operation in the touch area, and the image of the virtual scene captured by the deflected virtual camera is displayed through the graphical user interface. Controlling the virtual lens to deflect according to the deflection coefficient and the range and direction of the sliding operation in the touch area includes: responding to the end of the sliding operation, controlling the virtual lens to deflect according to the deflection coefficient, the range and the sliding direction; wherein, the virtual lens deflection causes the deflection distance of the image to be determined by the product of the sliding distance corresponding to the sliding operation and the deflection coefficient.
2. The method according to claim 1, characterized in that, The virtual scene includes virtual objects controlled by the terminal device, and the virtual objects hold virtual weapons; The response is for a sliding operation on a touch area in the controller. Before determining the position and range of the sliding operation in the touch area, the method further includes: Confirm that the virtual weapon has entered the aiming state.
3. The method according to claim 2, characterized in that, The method further includes: In response to the virtual weapon entering the aiming state, the touch area is divided into multiple sub-control areas.
4. The method according to claim 1, characterized in that, Determining the position of the sliding operation within the touch area includes: Determine the starting touch point of the sliding operation within the touch area; The touch position is determined as the position where the sliding operation is performed in the touch area.
5. The method according to claim 3, characterized in that, Determining the position of the sliding operation within the touch area includes: Determine the target sub-control area where the starting touch point of the sliding operation is located; The target sub-control area is used as the position where the sliding operation is applied in the touch area.
6. The method according to claim 5, characterized in that, Determining the deflection coefficient of the virtual lens to be deflected based on the position of action includes: Determine the deflection coefficient corresponding to the target sub-control region, wherein different sub-control regions correspond to different deflection coefficients; The deflection coefficient corresponding to the target sub-control region is used as the deflection coefficient to be deflected by the virtual lens.
7. The method according to claim 1, characterized in that, The method further includes: The touch area is divided into a first sub-control area, a second sub-control area, and a third sub-control area. The first deflection coefficient corresponding to the first sub-control area is greater than the second deflection coefficient corresponding to the second sub-control area, and the second deflection coefficient is greater than the third deflection coefficient corresponding to the third sub-control area. The second sub-control area is located between the first sub-control area and the third sub-control area.
8. A screen control device, characterized in that, The device provides a graphical user interface, which includes images of a virtual scene captured by a virtual camera. The virtual scene includes virtual objects controlled by the device, including: A touch area determination unit is used to respond to a sliding operation on a touch area in the controller and determine the position and range of the sliding operation in the touch area. The controller is communicatively connected to the terminal device and is an external independent touchpad that is separately connected to the terminal device. A deflection coefficient determination unit is used to determine the deflection coefficient of the virtual lens to be deflected according to the action position, wherein when the controller includes multiple touch areas, different touch areas correspond to different deflection coefficients; determining the deflection coefficient of the virtual lens to be deflected according to the action position includes: displaying multiple controls corresponding to different deflection coefficients, responding to a control selection operation, determining a target control from the multiple controls, and setting the deflection coefficient of the touch area as the target deflection coefficient corresponding to the target control; A picture deflection control unit is used to control the virtual lens to deflect according to the deflection coefficient and the range of action and direction of the sliding operation in the touch area, and to display the image of the virtual scene captured by the deflected virtual lens through the graphical user interface; The image deflection control unit is specifically used to respond to the end of the sliding operation and control the virtual lens to deflect according to the deflection coefficient, the range of action, and the sliding direction; wherein, the virtual lens deflection causes the deflection distance of the image to be determined by the product of the sliding distance corresponding to the sliding operation and the deflection coefficient.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-7.
10. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the method of any one of claims 1-7 by executing the executable instructions.
Citation Information
Patent Citations
Display picture adjusting method and device, storage medium and electronic equipment
CN113996060A