Texture control methods, devices, storage media and electronic devices
By stopping the movement of the target texture outside the field of view of the virtual camera and binding it to a reference model, and controlling the rotation of the reference model to keep the texture within the field of view, the problem of poor user operation intuitiveness is solved, and the intuitiveness and efficiency of texture position adjustment are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-02-15
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, users are prone to cognitive errors when adjusting the position of textures on the surface of virtual models, resulting in poor intuitiveness of operation.
By responding to the movement of the target texture, if the target texture moves outside the virtual camera's field of view, the movement operation is stopped and the position is bound to the reference model. The reference model is then rotated until the target texture re-enters the field of view, keeping the texture within the field of view.
It improves the intuitiveness and efficiency of users' operations in adjusting the position of textures on the model surface, and ensures consistency between player operations and texture movement direction.
Smart Images

Figure CN116173502B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer graphics technology, and more particularly to a texture control method, texture control device, computer storage medium, and electronic device. Background Technology
[0002] To make 3D game scenes more realistic, texture maps are usually added to the surface of virtual models. When the texture map is not positioned correctly on the virtual model, the user can move the texture map on the surface of the virtual model by moving the joystick to adjust its position.
[0003] Currently, the movement of texture maps on the surface of a virtual model is typically controlled by a virtual camera positioned at a fixed location. Specifically, when the 2D texture is on the front of the virtual model, it moves in the same direction as the user controls the joystick; when the 2D texture is on the back of the virtual model, it moves in the opposite direction to the user controls the joystick.
[0004] However, the above methods are prone to causing cognitive errors in users, resulting in poor intuitiveness of user operations. Summary of the Invention
[0005] This disclosure provides a texture control method, texture control device, computer storage medium, and electronic device, thereby improving the intuitiveness of users' operations for adjusting the position of textures on model surfaces.
[0006] In a first aspect, one embodiment of this disclosure provides a texture control method, which provides a graphical user interface through a terminal device. The graphical user interface displays a portion of a virtual scene located within the field of view of a virtual camera, and a reference model located within the virtual scene. At least a portion of the surface of the reference model is within the field of view of the virtual camera, and the surface of the reference model within the field of view of the virtual camera contains at least one target texture. The method includes: responding to a first movement operation on the target texture, controlling the target texture to move relative to the reference model; if the target texture moves outside the field of view of the virtual camera, stopping the response to the first movement operation and binding the target texture to the reference model, wherein the binding ensures that the position of the target texture relative to the reference model remains unchanged; and controlling the reference model to rotate until the bound target texture moves back into the field of view of the virtual camera.
[0007] Secondly, one embodiment of this disclosure provides a texture control device that provides a graphical user interface through a terminal device. The graphical user interface displays a portion of a virtual scene within the field of view of a virtual camera, and a reference model within the virtual scene. At least a portion of the surface of the reference model is within the field of view of the virtual camera, and the surface of the reference model within the field of view of the virtual camera contains at least one target texture. The texture control device includes: a movement control module for responding to a first movement operation and controlling the target texture to move relative to the reference model; a position binding module for stopping the response to the first movement operation and binding the target texture to the reference model if the target texture moves outside the field of view of the virtual camera, wherein the position binding keeps the position of the target texture relative to the reference model unchanged; and a rotation control module for controlling the reference model to rotate until the position-bound target texture moves back into the field of view of the virtual camera.
[0008] Thirdly, one embodiment of this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described texture control method.
[0009] Fourthly, one embodiment of this disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-described texture control method by executing the executable instructions.
[0010] The technical solution disclosed herein has the following beneficial effects:
[0011] The aforementioned texture control method controls the movement of the target texture relative to a reference model in response to a first movement operation on the target texture. If the target texture moves outside the virtual camera's field of view, the method stops responding to the first movement operation and binds the target texture to the reference model, where the position binding keeps the target texture's position relative to the reference model unchanged. The reference model is then rotated until the position-bound target texture moves back into the virtual camera's field of view. On one hand, when the target texture is within the virtual camera's field of view, the player can control its movement relative to the reference model through a first movement operation. When the target texture moves outside the virtual camera's field of view, the method stops responding to the first movement operation and binds the target texture to the reference model, allowing the reference model to rotate automatically and move the target texture back into the virtual camera's field of view, thus ensuring the target texture... Figure 1The target texture remains constantly within the virtual camera's field of view, ensuring it's always displayed in the graphical user interface. Players can always clearly see the target texture, facilitating further adjustments to its position. Furthermore, the player's movement of the target texture always aligns with its direction of movement. This solves the technical problem in existing technologies where the player's movement of the target texture is inversely related to its direction, leading to poor user intuitiveness. This significantly improves the intuitiveness of adjusting the model's surface texture position. Additionally, automatically rotating the reference model when the target texture is outside the virtual camera's field of view further simplifies user operations and increases the efficiency of adjusting the model's surface texture position.
[0012] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0014] Figure 1 This illustration schematically shows a texture position adjustment diagram in this exemplary embodiment;
[0015] Figure 2 This schematic diagram illustrates the system architecture of a texture position adjustment system according to this exemplary embodiment.
[0016] Figure 3 This schematically illustrates a flowchart of a texture control method in this exemplary embodiment;
[0017] Figure 4 This schematically illustrates a method for determining a characteristic angle of a target texture relative to the optical axis of a virtual camera in this exemplary embodiment.
[0018] Figure 5 This schematically illustrates a method for determining the rotation vector of a reference model based on a characteristic included angle in this exemplary embodiment.
[0019] Figure 6 This schematically illustrates another example of determining the rotation vector of a reference model based on a feature angle in this exemplary embodiment.
[0020] Figure 7 This schematic diagram illustrates a two-hand control operation in this exemplary embodiment.
[0021] Figure 8 A flowchart illustrating another texture control method in this exemplary embodiment is shown schematically.
[0022] Figure 9 This schematic diagram illustrates the content of the screen within the field of view of a virtual camera controlled by a second operation control in this exemplary embodiment.
[0023] Figure 10 This schematic diagram illustrates a method for controlling the rotation of a reference model based on a first operation control in this exemplary embodiment.
[0024] Figure 11 This schematic diagram illustrates the structure of a texture control device in this exemplary embodiment.
[0025] Figure 12 This schematic diagram illustrates another mapping control device structure in this exemplary embodiment;
[0026] Figure 13 The schematic diagram illustrates the structure of an electronic device in this exemplary embodiment. Detailed Implementation
[0027] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, 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 disclosure more comprehensive and complete, and to fully convey the concept of 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 embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more 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 disclosure.
[0028] Furthermore, the accompanying drawings are merely illustrative of this disclosure 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 may 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.
[0029] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0030] The texture control method provided by the exemplary embodiments of this disclosure can be applied to application scenarios that adjust texture positions, especially those involving adjusting the position of textures located on the surface of virtual models. For example, in the gaming field, to make virtual objects in a 3D game scene more realistic, texture maps are typically added to the surface of virtual models. When the position of the texture map on the virtual model is unreasonable, the texture map can be moved using controls (e.g., a joystick) to adjust its position on the virtual model surface.
[0031] Currently, users typically move textures directly on the surface of a virtual model in three-dimensional space by using a joystick. Figure 1 This illustration schematically shows a texture position adjustment diagram in this exemplary embodiment. Figure 1 Taking a sphere as an example of a virtual model, it can be understood that a virtual model can be of any shape, such as a single cylinder, cone, cube, or other regular model or a combination thereof; it can also be a virtual model with an irregular shape.
[0032] like Figure 1 As shown, the graphical user interface currently captured and displayed by the virtual camera includes a sphere model 101, a texture 102 on the surface of the sphere model 101, and operation controls 103. The user can control the texture 102 to move in a set direction using the operation controls 103. For example, as... Figure 1 (a) When the user controls the operation control 103 to move to the right, the corresponding texture 102 moves to the right on the first surface of the sphere model 101. At this time, the direction of texture movement is the same as the direction of the user controlling the movement joystick. The first surface is the surface of the sphere model 101 captured by a virtual camera with a fixed position, that is, the first surface is the model surface of the reference model located within the field of view of the current virtual camera.
[0033] like Figure 1 As shown in (b), when the user-controlled texture 102 moves to the boundary position of the sphere model 101, it will continue to move to the right until it reaches the boundary position of the sphere model 101. Figure 1 (c) shows the second surface of the sphere model 101, where the second surface is axially symmetrical to the first surface and is located outside the field of view of the virtual camera. At this time, when the user control operation control 103 continues to move to the right, the direction of texture movement is opposite to the direction of the user control movement joystick.
[0034] The above process makes it easy for users to have a cognitive error about the direction of operation when performing operations to adjust the position of the texture, thus affecting the intuitiveness of the user's operation.
[0035] This exemplary embodiment addresses the aforementioned problems and proposes a texture control method. This method responds to a first movement operation on a target texture, controlling the target texture to move relative to a reference model. If the target texture moves outside the virtual camera's field of view, the response to the first movement operation ceases, and the target texture is positionally bound to the reference model, where the position binding ensures the target texture's position relative to the reference model remains unchanged. The reference model is then rotated until the position-bound target texture moves back into the virtual camera's field of view. This process consistently keeps the target texture within the virtual camera's field of view, maintaining consistency between the user's control operation and the texture movement direction, thereby improving the intuitiveness of adjusting the model surface texture's position. Simultaneously, automatically rotating the reference model based on the relative position of the target texture and the reference model improves visibility and facilitates the user's texture position adjustment operations.
[0036] Figure 2 This is a schematic diagram illustrating an application scenario of a texture control method provided by an exemplary embodiment of this disclosure. For example... Figure 2 As shown in the illustration, this application scenario includes a terminal device 200, and the texture control method can be integrated into the system of the terminal device 200. In the above example application scenario, the terminal device 200 can be, for example, a personal computer, a server, a PDA, a laptop computer, or any other computing device with network connectivity.
[0037] The terminal device 200 includes a texture position adjustment unit 201 and an image display device 202. The image display device 202 can be a display screen integrated with the terminal device 200, such as the display screen of a laptop computer; or it can be an external display screen connected to the terminal device 200, such as a desktop computer, which includes a server and an external display device.
[0038] The image display device 202 can display a graphical user interface captured by a virtual camera. The graphical user interface includes at least a reference model. The position of the virtual camera is fixed, and at least part of the surface of the reference model is within the field of view of the virtual camera. The surface of the reference model contains at least a target texture, and the position of the target texture relative to the reference model is fixed.
[0039] It should be understood that, in Figure 2 In the application scenario shown, the texture position adjustment unit 201 and the image display device 202 can be connected by wired or wireless means, and the specific connection method is not limited in this disclosure.
[0040] The following example illustrates the application of the texture control method to the aforementioned terminal device 200. The terminal device 200 provides a graphical user interface (GUI), which displays a portion of the virtual scene within the virtual camera's field of view, and a reference model within the virtual scene. At least a portion of the surface of the reference model is within the virtual camera's field of view, and the surface of the reference model within the virtual camera's field of view contains at least one target texture.
[0041] Figure 3 A flowchart illustrating a texture control method in this exemplary embodiment is shown schematically. See also: Figure 3 The texture control method provided in this embodiment includes the following steps S301-S303:
[0042] Step S301: Respond to the first movement operation for the target texture and control the target texture to move relative to the reference model.
[0043] Step S302: If the target texture moves outside the field of view of the virtual camera, stop responding to the first movement operation and bind the target texture to the reference model in position, wherein the position binding makes the position of the target texture relative to the reference model unchanged.
[0044] Step S303: Control the reference model to rotate until the target texture after position binding moves into the field of view of the virtual camera.
[0045] In some embodiments of this disclosure, the technical solutions involve controlling the target texture to move relative to a reference model in response to a first movement operation on the target texture. If the target texture moves outside the virtual camera's field of view, the first movement operation is stopped, and the target texture is positionally bound to the reference model, where the position binding keeps the target texture's position relative to the reference model unchanged. The reference model is then rotated until the position-bound target texture moves back into the virtual camera's field of view. On one hand, this method allows the player to control the target texture's movement relative to the reference model when it is within the virtual camera's field of view. When the target texture moves outside the virtual camera's field of view, stopping the first movement operation and binding the target texture to the reference model allows for automatic rotation of the reference model, moving the target texture back into the virtual camera's field of view, thus ensuring the target texture... Figure 1The target texture remains constantly within the virtual camera's field of view, ensuring it's always displayed in the graphical user interface. Players can always clearly see the target texture, facilitating further adjustments to its position. Furthermore, the player's movement of the target texture always aligns with its direction of movement. This solves the technical problem in existing technologies where the player's movement of the target texture is inversely related to its direction, leading to poor user intuitiveness. This significantly improves the intuitiveness of adjusting the model's surface texture position. Additionally, automatically rotating the reference model when the target texture is outside the virtual camera's field of view further simplifies user operations and increases the efficiency of adjusting the model's surface texture position.
[0046] The specific process of the texture control method in the exemplary embodiments of this disclosure will be further described below.
[0047] In step S301, in response to the first movement operation for the target texture, the target texture is controlled to move relative to the reference model.
[0048] In one example embodiment of this disclosure, the virtual camera is used to capture images and display them in a graphical user interface, that is, the content of the image currently viewed by the user is the field of view of the virtual camera; the target texture can be located at any position on the surface of the reference model.
[0049] For example, the graphical user interface captured by the virtual camera can be any surface of the reference model. The user can also control the virtual camera's lens to rotate omnidirectionally around the reference model using a joystick control to select a surface of the reference model as the surface displayed in the graphical user interface. When the user rotates the lens using the joystick control, the target texture may or may not be displayed within the virtual camera's field of view; this embodiment does not impose any limitations on this.
[0050] For example, such as Figure 1 As shown in (a), the relative position of the target texture and the reference model is not bound. The player can use the control 103 (e.g., a joystick) to control the movement of the target texture on the surface of the reference model. When the player slides the control 103 left or right (first movement operation), the target texture moves left or right on the surface of the reference model accordingly; or when the player slides the control 103 up or down (first movement operation), the target texture moves up or down on the surface of the reference model accordingly.
[0051] In step S302, if the target texture moves outside the field of view of the virtual camera, the response to the first movement operation is stopped and the target texture is bound to the reference model. The binding of the target texture makes the position of the target texture relative to the reference model unchanged.
[0052] For example, when the player controls the target texture to move to the right on the surface of the reference model until the target texture moves out of the virtual camera's field of view, the player stops moving to the right, and at this point the target texture is positioned and bound to the reference model.
[0053] In some example embodiments of this disclosure, after performing step S302 to bind the target texture to the reference model, the relative position of the target texture with respect to the virtual camera can also be determined; and a rotation vector relative to the reference model can be determined based on the relative position.
[0054] When determining the relative position of the target texture with respect to the virtual camera, the terminal device can detect the relative position of the target texture on the surface of the reference model in real time, using the position of the virtual camera as a reference. In an optional embodiment of this disclosure, the terminal device can determine the characteristic angle between the target texture and the optical axis of the virtual camera.
[0055] Figure 4 This schematically illustrates a method for determining a characteristic angle of a target texture relative to the optical axis of a virtual camera in this exemplary embodiment. Figure 4 As shown in (a). Figure 4 (a) A surface of a reference model and a target texture on that surface are captured by the current virtual camera. The reference model is illustrated using a virtual model composed of a sphere and a cylinder as an example. Of course, the reference model can be a virtual model of any shape, and this embodiment of the disclosure does not impose any restrictions on it.
[0056] To gain a clearer understanding of the feature angle between the target texture and the optical axis of the virtual camera, Figure 4 (a) shows the graphical user interface captured by the virtual camera, switched to a top-down view (top view). Figure 4 The image shown in (b) should be noted. Figure 4 The image shown in (b) does not change the content of the image seen by the user (i.e., the graphical user interface captured and displayed by the virtual camera); the content viewed by the user is the same as before. Figure 4 As shown in (a).
[0057] refer to Figure 4(b) From the top-view image, it can be seen that the virtual camera's field of view covers 1 / 4 of the sphere model's surface area, and the virtual camera's optical axis is the central dividing line or central dividing plane of the virtual camera. That is, by using the virtual camera's optical axis as a reference, the virtual camera's field of view is divided into two axially symmetrical regions. Therefore, the characteristic angle α between the target texture and the virtual camera's optical axis can be determined. Thus, the terminal device can determine the relative position of the target texture with respect to the virtual camera based on the characteristic angle α between the current position of the target texture and the virtual camera's optical axis.
[0058] According to some embodiments of this disclosure, when determining the relative position of the target texture with respect to the virtual camera, it is also possible to... Figure 4 As shown in (b), the feature angle β between the target texture and the optical axis of the virtual camera is determined, and the relative position of the target texture with respect to the virtual camera is determined based on the feature angle β.
[0059] Since the virtual space contains multiple virtual objects such as virtual cameras, reference models, and target textures on the surface of the reference models, in order to facilitate the description of the position and relationship of each virtual object, the terminal device can determine the relative position between each virtual object, thereby simplifying the calculation of determining the position of each virtual object.
[0060] In some example embodiments of this disclosure, a characteristic angle of the target texture relative to the optical axis of the virtual camera is determined; correspondingly, a rotation vector relative to a reference model is determined based on the relative position, including: determining the rotation vector relative to the reference model based on the characteristic angle.
[0061] The rotation vector can include the rotation angle and rotation direction of the reference model.
[0062] According to some embodiments of this disclosure, when the target texture is tangent to the boundary of the reference model surface within the field of view of the virtual camera, it can be determined that the target texture is outside the field of view of the virtual camera at the current moment.
[0063] For example, after determining the relative position of the target texture with respect to the optical axis of the virtual camera based on the feature angle between the target texture and the virtual camera's optical axis, a rotation vector relative to the reference model can be determined based on the feature angle. According to some embodiments of this disclosure, in Figure 4 Based on the top view of the graphical user interface shown in (b). Figure 5 This schematically illustrates a method for determining the rotation vector of a reference model based on a feature angle in this exemplary embodiment. (Reference) Figure 5 (a) The target texture is outside the field of view of the virtual camera, and the feature angle between the current target texture and the optical axis of the virtual camera is α. In this case, the terminal device can determine the rotation vector relative to the reference model based on the relative position as follows: Figure 5 (b) shows the direction of rotation, with a rotation angle of α.
[0064] According to other embodiments of this disclosure, when determining the rotation vector relative to the reference model based on the feature angle, it can also be done according to... Figure 6 The rotation vector is determined by the method.
[0065] Figure 6 This schematically illustrates another embodiment of determining the rotation vector of a reference model based on a feature angle. (Reference) Figure 6 (a) The target texture is outside the field of view of the virtual camera, and the feature angle between the current target texture and the optical axis of the virtual camera is α. In this case, the terminal device can determine the rotation vector relative to the reference model based on the relative position as follows: Figure 6 (b) shows the direction of rotation, with a rotation angle of (360°-α).
[0066] It should be understood that the direction of rotation and the angle of rotation are relative; they can be calculated according to... Figure 5 Rotate in the direction shown in (b) and at a rotation angle of α; alternatively, follow... Figure 6 (b) The direction and rotation angle shown are (360°-α) as the rotation vector for rotation; of course, rotation can also be performed in any direction and with the corresponding rotation angle, as long as the other target texture is within the field of view of the virtual camera so that the target texture is displayed in the graphical user interface. This disclosure does not impose any restrictions on this.
[0067] The process of determining the rotation vector for the reference model by using the characteristic angle between the target texture and the optical axis of the virtual camera can rotate the position of the target texture to the center of the virtual camera's field of view, making it easier for players to adjust the position of the target texture on the reference model in any direction and improving the intuitiveness of the user's operation.
[0068] In step S303, the reference model is rotated until the target texture after position binding moves into the field of view of the virtual camera.
[0069] For example, by binding the target texture to the reference model after the target texture has moved outside the field of view of the virtual camera, the target texture and the reference model can be rotated together to enter the field of view of the virtual camera.
[0070] In an exemplary embodiment of this disclosure, after the reference model is rotated until the position-bound target texture moves into the field of view of the virtual camera, the position binding between the target texture and the reference model can be released; and the first movement operation for the target texture continues to be responded to, controlling the target texture to move relative to the reference model.
[0071] For example, based on Figure 5 or Figure 6 The determined rotation vector controls the rotation of the target texture to within the virtual camera's field of view, such as... Figure 5 (b) or as Figure 6 (b) After positioning, the terminal device can continue to respond to the first movement operation for the target texture, and then continue to control the target texture to move relative to the surface of the reference texture.
[0072] For example: Figure 1 As shown in (a), the player can slide the movement control to the right. In response to this slide, the terminal device can control the target texture to move to the right relative to the reference model. When the target texture moves outside the virtual camera's field of view, the terminal device stops responding to the player's slide and binds the target texture to the reference model. Based on the rotation vector determined by the relative positions of the target texture and the reference model, the terminal device controls the target texture and reference model to rotate together back into the virtual camera's field of view. After the target texture is rotated back into the virtual camera's field of view, the terminal device can unbind the target texture from the reference model to continue responding to the player's slide, thus continuing to control the target texture to move to the right relative to the reference model.
[0073] Once the target texture has moved into the virtual camera's field of view, the position binding between the target texture and the reference model can be released, allowing the system to continue responding to the first movement operation on the target texture and controlling its movement relative to the reference model. This ensures that the target texture remains within the virtual camera's field of view, facilitating visual manipulation of the target texture by the player. Furthermore, the movement direction of the target texture aligns with the player's movement direction, enhancing the intuitiveness of the user's operation.
[0074] In some example embodiments of this disclosure, when performing the first movement operation on the target texture in response to the above-described response and controlling the target texture to move relative to the reference model, the movement vector corresponding to the first movement operation can be determined in response to the first movement operation on the first operation control; and the target texture can be controlled to move relative to the reference model according to the movement vector.
[0075] The graphical user interface includes a first operation control, which can be a joystick for controlling the movement of a target texture on the surface of a reference model in any direction. The movement vector can include the movement distance and direction of the target texture.
[0076] For example, after rotating the reference model until the target texture is within the field of view of the virtual camera, the user can control the target texture to move on the surface of the reference model through the first movement operation of the first operation control, and the parameters such as movement distance and movement direction correspond to the first movement operation.
[0077] For example, a user can control the target texture to move to the right on the surface of the reference model using a first control for moving to the right; or control the target texture to move to the left on the surface of the reference model using a first control for moving to the left, and so on.
[0078] It should be noted that when the user controls the target texture to move on the surface of the reference model through the first movement operation of the first operation control, the position binding between the target texture and the reference model is released, so that the user can control the movement of the target texture.
[0079] After the reference model is rotated according to the rotation vector until the target texture is within the field of view of the virtual camera, the position binding relationship between the target texture and the reference model is released, and the target texture is moved by controlling the first operation control. This achieves consistency between the user's operation direction and the texture movement direction, further improving the intuitiveness of the user's operation of adjusting the texture position.
[0080] While the target texture and reference model rotate simultaneously to keep the target texture within the virtual camera's field of view, the display angle of the target texture and reference model within the virtual camera's field of view can also be adjusted.
[0081] In an optional embodiment of this disclosure, the graphical user interface further includes a second operation control; after performing the steps of stopping the response to the first movement operation and binding the target texture to the reference model, the terminal device can respond to a second movement operation for the second operation control, determine a second movement vector corresponding to the second movement operation, and control the display angle of the reference model within the field of view of the virtual camera according to the second movement vector.
[0082] The second control could be a joystick, which is used to assist the user in controlling the viewpoint of the reference model within the virtual camera's field of view.
[0083] For example, since the reference model and the target texture are already positionally bound, when the display view of the reference model within the virtual camera's field of view is adjusted using the second operation control, the relative position of the reference model and the target texture is not changed; only the surface of the reference model displayed within the virtual camera's field of view is changed.
[0084] Figure 7 This schematic diagram illustrates a two-handed control operation in this exemplary embodiment; see reference. Figure 7This includes a reference model 701, a target texture 702, a first operation control 703 (e.g., the first operation control 703 can be a move control), and a second operation control 704 (e.g., the second operation control 704 can be a rotate control).
[0085] The following explanations will use the example of the first operation control 703 being a move control and the second operation control 704 being a rotation control.
[0086] like Figure 7 As shown in (a), the surface of the reference model 701 (spherical model) currently within the virtual camera's field of view is in a frontal view, and the target texture 702 is located at the center of this surface. The player can use the left-hand control to rotate the camera to adjust the virtual camera's field of view, allowing another surface of the reference model to be displayed within the field of view, such as... Figure 7 (b) is a top-down view of the reference model and target texture, adjusted using the rotation control. The specific display view is related to the operation parameters of the second movement operation performed by the player using the rotation control.
[0087] It should be understood that, in order to meet the user's operating habits during operation, the movement control is usually placed on the right side of the graphical user interface, and the rotation control is placed on the left side. Of course, the display positions of the movement and rotation controls are random, and this embodiment does not impose any special restrictions on them.
[0088] In one optional embodiment of this disclosure, when responding to a second movement operation on the second operation control, the terminal device disables the response to the first movement operation until the terminal device stops responding to the second movement operation on the second operation control.
[0089] For example, such as Figure 7 As shown in (c), when the player uses their right hand to control the target texture to move on the surface of the reference model via the first movement operation of the first operation control 703, the terminal device stops responding to the second movement operation of the second operation control 704. That is, even if the player performs the second movement operation via the second operation control 704, the display view of the virtual camera will not be switched. This is because the relative positions of the reference model and the target texture are not bound at this time. If the second movement operation is performed at the same time as the first movement operation to adjust the display view of the reference model, the relative positions of the reference model and the target texture will become mixed.
[0090] Correspondingly, when the player uses their left hand to control the display view within the virtual camera via the second movement operation of the second operation control 704, the terminal device stops responding to the first movement operation of the first operation control 703. That is, even if the player performs the first movement operation via the first operation control 703, the target texture will not move relative to the reference model. This is because the relative positions of the reference model and the target texture are already bound at this point.
[0091] This process allows players to visually view the relative position of the target texture and the reference model when the target texture is outside the virtual camera's field of view, thus making subsequent operations more intuitive.
[0092] In some example embodiments of this disclosure, after executing the above-described control of the display view of the target texture within the virtual camera's field of view based on the second movement vector, the method further includes locking the display view and stopping the response to the second movement operation; releasing the position binding between the target texture and the reference model in the display view; and responding to the first movement operation for the target texture to control the movement of the target texture relative to the reference model.
[0093] Locking the display view means locking the second operation control, preventing the terminal device from responding to the second movement operation on the second operation control.
[0094] For example, when the terminal device detects that the target texture is outside the field of view of the virtual camera, it stops responding to the first movement operation and binds the target texture to the reference model. At this point, it can respond to the second movement operation targeting the second operation control, thereby determining the display view of the reference model within the virtual camera based on the second movement vector of the second movement operation. After determining the display view, it can be locked and the response to the second movement operation can be stopped. At the same time, the position binding between the target texture and the reference model in the display view can be released, so that the player can adjust the position of the target texture using the first operation control.
[0095] When the second operation control is locked, according to some embodiments of the present disclosure, when the user performs a movement operation on the first operation control, the second operation control is displayed with a contrast lower than a preset contrast to indicate that the user cannot trigger the second operation control.
[0096] According to other embodiments of this disclosure, the graphical user interface corresponding to the current viewpoint can be locked when the terminal device responds to the user's adjustment operation on the second operation control. For a reference model in virtual space, the player can view the surface of the reference model from any viewpoint, such as: front view, side view, top view, etc. When the user adjusts the second operation control to display the front view of the reference model within the virtual camera's field of view, the front view of the reference model will always be displayed when rotating the reference model until the player makes the next adjustment to the virtual camera's display viewpoint.
[0097] It should be noted that any method can be used to prevent the first and second operation controls from being triggered simultaneously, and this disclosure does not impose any restrictions on this.
[0098] After the terminal device determines the display view in response to the adjustment operation of the second operation control, it locks the display view and stops responding to the second movement operation to ensure that the first operation control and the second operation control are not triggered at the same time. This ensures that the image within the current virtual camera's field of view will not change arbitrarily, thereby reducing the impact on user operation and improving the intuitiveness of user operation.
[0099] Furthermore, the exemplary embodiments of this disclosure also provide a texture control method. Figure 8 The flowchart schematically illustrates another texture control method in this exemplary embodiment; a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes a portion of the virtual scene within the field of view of the virtual camera, and a reference model within the virtual scene; wherein, at least a portion of the surface of the reference model is within the field of view of the virtual camera, and the surface of the reference model within the field of view of the virtual camera contains at least one target texture, see [link to documentation]. Figure 8 The texture control method provided in this embodiment includes the following steps S801-S802:
[0100] Step S801: In response to a third movement operation on the first operation control, determine the rotation vector corresponding to the third movement operation.
[0101] Step S802: Rotate the reference model according to the rotation vector to adjust the position of the target texture on the surface of the reference model; wherein, the target texture is located within the field of view of the virtual camera.
[0102] In some embodiments of this disclosure, the relative position of the target texture within the field of view of the virtual camera is determined; in response to a third movement operation of the first operation control, a rotation vector corresponding to the third movement operation is determined; and the reference model is rotated according to the rotation vector to adjust the position of the target texture on the surface of the reference model. This method ensures that the target texture is displayed within the field of view of the virtual camera, and the positions of the target texture and the reference model are relatively independent. Therefore, by keeping the texture position unchanged, the user can control the rotation of the reference model through the third movement operation of the first operation control, thereby adjusting the position of the target texture relative to the reference model. Since the target texture is always within the field of view of the virtual camera, the user's operation direction and the direction of movement of the target texture are always consistent, thus avoiding the technical problem of poor user operation intuitiveness caused by the inconsistency between the user's operation direction and the direction of texture movement in some technologies, thereby improving the intuitiveness of the user's operation on adjusting the position of the texture on the model surface.
[0103] The specific process of the texture control method in the exemplary embodiments of this disclosure will be further described below.
[0104] In step S801, in response to a third movement operation for the first operation control, a rotation vector corresponding to the third movement operation is determined.
[0105] The first control can be a joystick, used to control the rotation of the reference model in any direction. The rotation vector includes the rotation direction and rotation angle of the reference model.
[0106] Step S802: Rotate the reference model according to the rotation vector to adjust the position of the target texture on the surface of the reference model; wherein, the target texture is located within the field of view of the virtual camera.
[0107] For example, the target texture is within the virtual camera's field of view. This can be achieved through a second control (e.g., Figure 7 The fourth movement operation of the rotation control will adjust the reference model surface containing the target texture to the field of view of the virtual camera; it can also automatically adjust the target texture to be within the field of view of the virtual camera, and this embodiment does not impose any restrictions on this.
[0108] The following describes the process of adjusting the surface of the reference model containing the target texture into the field of view of the virtual camera using the fourth movement operation of the second operation control.
[0109] In an exemplary embodiment of this disclosure, in response to a fourth movement operation on the second operation control, the current view within the field of view of the virtual camera is switched to the target view.
[0110] The target image is in the same relative position as the reference model and the target texture in the current image. The target image is the surface of the reference model containing the target texture within the field of view of the virtual camera.
[0111] For example, the relative positions of the reference model and the target texture are the same in the target image and the current image. That is, when the fourth movement operation is performed through the second operation control, the positions of the reference model and the target texture can be bound so that the relative positions of the reference model and the target texture do not change when adjusting the image content within the field of view of the virtual camera.
[0112] Figure 9 This diagram schematically illustrates a method for controlling the content within the field of view of a virtual camera based on a second operation control in this exemplary embodiment. Using a sphere model as an example, Figure 9 (a) includes a second operation control 901, a sphere model 902 and a target texture 903, wherein longitude lines representing different longitudes are marked on the surface of the sphere model 902.
[0113] In response to a fourth movement operation on the second control, the terminal device can bind the position of the reference model to the target texture to adjust the displayed image within the virtual camera's field of view. For example... Figure 9 As shown in (b), when the user triggers the second operation control 901 to move to the right, the reference model and the target texture move to the right simultaneously.
[0114] The target texture is adjusted to the virtual camera's field of view using the second adjustment operation of the second control, allowing users to easily reposition the texture on the reference model's surface and improve the fit between the texture and the model. Simultaneously, manual adjustments via the second control enhance the human-computer interaction experience.
[0115] For example, when the reference model is rotated according to the rotation vector of the bass according to the second movement operation control of the first operation control, the relative position of the target texture and the virtual camera remains unchanged.
[0116] exist Figure 9 Based on (a), Figure 10 This illustration schematically depicts a method for controlling the rotation of a reference model based on a first operation control in this exemplary embodiment. Taking a sphere as an example, as... Figure 10 As shown, Figure 10 It includes a first operation control 904, a sphere model 902, and a target texture 903. The user can control the rotation of the sphere model 902 through the first operation control 904 so that the position of the target texture 903 relative to the sphere model 902 changes.
[0117] Since the user's goal is to control the movement of the target texture on the surface of the reference model, to ensure that the movement direction of the target texture is consistent with the user's operation direction, it can be done as follows: Figure 10 As shown, when the user's operation direction is opposite to the rotation direction of the reference model, the target texture moves in the same direction as the user's operation. For example, if the user's second movement operation on the first control is to move to the right, then the control sphere model will move as shown... Figure 10 Rotate in the direction shown; conversely, if the user's second movement operation on the first control is to move to the left, then control the sphere model as follows: Figure 10 Rotate counterclockwise in the opposite direction shown.
[0118] To implement the above-mentioned texture control method, one embodiment of this disclosure provides a texture control device. Figure 11 The schematic diagram illustrates the architecture of the texture control device.
[0119] The texture control device 1100 includes a movement control module 1101, a position binding module 1102, and a rotation control module 1103.
[0120] The movement control module 1101 is used to respond to the first movement operation and control the target texture to move relative to the reference model; the position binding module 1102 is used to stop responding to the first movement operation and bind the target texture to the reference model if the target texture moves outside the field of view of the virtual camera, wherein the position binding makes the position of the target texture relative to the reference model unchanged; the rotation control module 1103 is used to control the reference model to rotate until the position-bound target texture moves into the field of view of the virtual camera.
[0121] The texture control device 1100 provided in this embodiment can execute the technical solution of the texture control method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the texture control method. Please refer to the implementation principle and beneficial effects of the texture control method. It will not be repeated here.
[0122] Based on the aforementioned motion control module 1101, position binding module 1102, and rotation control module 1103, further reference can be made to... Figure 12 The texture control device may also include an information determination module 1104, a position unbinding module 1105, and a view control module 1106.
[0123] In some example embodiments of this disclosure, the information determination module 1104 is specifically used to determine the relative position of the target texture with respect to the virtual camera; determine the rotation vector for the reference model based on the relative position; correspondingly, the rotation control module 1103 is specifically used to control the reference model to rotate according to the rotation vector until the target texture is within the field of view of the virtual camera.
[0124] In some example embodiments of this disclosure, the information determination module 1104 is specifically used to determine the feature angle of the target texture relative to the optical axis of the virtual camera; and to determine the rotation vector for the reference model based on the feature angle.
[0125] In some example embodiments of this disclosure, the position unbinding module 1105 is used to unbind the position of the target texture from the reference model; the movement control module 1101 is specifically used to continue responding to the first movement operation for the target texture and control the target texture to move relative to the reference model.
[0126] In some example embodiments of this disclosure, the motion control module 1101 is specifically configured to, in response to a first motion operation on a first operation control, determine a first motion vector corresponding to the first motion operation; and control the target texture to move relative to a reference model according to the first motion vector.
[0127] In some example embodiments of this disclosure, the information determination module 1104 is specifically used to respond to a second movement operation for the second operation control and determine the second movement vector corresponding to the second movement operation; the view control module 1106 is specifically used to control the display view of the reference model within the field of view of the virtual camera according to the second movement vector.
[0128] In some example embodiments of this disclosure, the position unbinding module 1105 is specifically used to stop responding to the second movement operation; to unbind the position of the target texture from the reference model; and the movement control module 1101 is specifically used to respond to the first movement operation for the target texture and control the target texture to move relative to the reference model.
[0129] The texture control device 1200 provided in this embodiment can execute the technical solution of the texture control method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the texture control method. Please refer to the implementation principle and beneficial effects of the texture control method. It will not be repeated here.
[0130] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the present invention may also be implemented as a program product comprising program code that, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the present invention described in the "Exemplary Methods" section above.
[0131] According to embodiments of the present invention, a program product for implementing the above-described method may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0132] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may 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 (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, 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 devices, magnetic storage devices, or any suitable combination thereof.
[0133] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0134] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0135] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0136] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided.
[0137] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuits,” “modules,” or “systems.”
[0138] The following reference Figure 13 To describe an electronic device 1300 according to this embodiment of the present invention. Figure 13 The electronic device 1300 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0139] like Figure 13 As shown, the electronic device 1300 is manifested in the form of a general-purpose computing device. The components of the electronic device 1300 may include, but are not limited to: at least one processing unit 1310, at least one storage unit 1320, a bus 1330 connecting different system components (including storage unit 1320 and processing unit 1310), and a display unit 1340.
[0140] The storage unit stores program code, which can be executed by the processing unit 1310 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 1310 can perform actions such as... Figure 3 Steps S301 to S303 are shown in the diagram.
[0141] Storage unit 1320 may include readable media in the form of volatile storage units, such as random access memory (RAM) 13201 and / or cache memory 13202, and may further include read-only memory (ROM) 13203.
[0142] Storage unit 1320 may also include a program / utility 13204 having a set (at least one) of program modules 13205, such program modules 13205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0143] Bus 1330 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0144] Electronic device 1300 can also communicate with one or more external devices 1400 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1300, and / or any device that enables electronic device 1300 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1350. Furthermore, electronic device 1300 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1360. As shown, network adapter 1360 communicates with other modules of electronic device 1300 via bus 1330. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0145] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0146] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0147] 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 embodiments of this disclosure, 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.
[0148] Other embodiments of this disclosure 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 disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0149] It should be understood that this disclosure is not limited to the precise structures 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 disclosure is defined only by the appended claims.
Claims
1. A method of map control, the method comprising: A graphical user interface is provided through a terminal device. The content displayed by the graphical user interface includes a portion of a virtual scene within the field of view of a virtual camera, and a reference model within the virtual scene; wherein at least a portion of the surface of the reference model is within the field of view of the virtual camera, and the surface of the reference model within the field of view of the virtual camera contains at least one target texture; the method includes: In response to a first movement operation on the target texture, the target texture is controlled to move relative to the reference model; If the target texture moves outside the field of view of the virtual camera, then the first movement operation is stopped and the target texture is bound to the reference model, wherein the binding of the position makes the position of the target texture relative to the reference model unchanged; After binding the target texture to the reference model, the characteristic angle of the target texture relative to the optical axis of the virtual camera is determined, so as to determine the rotation vector relative to the reference model based on the characteristic angle; The reference model is rotated according to the rotation vector until the target texture after position binding moves into the field of view of the virtual camera.
2. The texture control method according to claim 1, characterized in that, After controlling the reference model to rotate until the position-bound target texture moves into the field of view of the virtual camera, the method further includes: Unbind the target texture from the reference model's position; Continue responding to the first movement operation for the target texture, controlling the target texture to move relative to the reference model.
3. The method according to claim 1, characterized in that, The graphical user interface includes a first operation control; the response to a first movement operation of the target texture, controlling the movement of the target texture relative to the reference model, includes: In response to a first movement operation on the first operation control, a first movement vector corresponding to the first movement operation is determined; The target texture is moved relative to the reference model according to the first movement vector.
4. The method according to claim 1, characterized in that, The graphical user interface includes a second operation control; after ceasing to respond to the first movement operation and binding the target texture to the reference model, the method further includes: In response to a second movement operation on the second operation control, determine a second movement vector corresponding to the second movement operation; The display angle of the target texture after position binding is controlled within the field of view of the virtual camera based on the second movement vector.
5. The method according to claim 4, characterized in that, After controlling the display view of the target texture after position binding according to the second movement vector within the field of view of the virtual camera, the method further includes: The display view is locked and the response to the second movement operation is stopped; Unbind the target texture from the reference model in the display view; In response to a first movement operation on the target texture, the target texture is controlled to move relative to the reference model.
6. A texture mapping control device, characterized in that, A graphical user interface is provided through a terminal device. The content displayed by the graphical user interface includes a portion of a virtual scene within the field of view of a virtual camera, and a reference model within the virtual scene; wherein at least a portion of the surface of the reference model is within the field of view of the virtual camera, and the surface of the reference model within the field of view of the virtual camera contains at least one target texture; the device includes: A movement control module is used to respond to a first movement operation and control the target texture to move relative to the reference model; The position binding module is configured to, if the target texture moves outside the field of view of the virtual camera, stop responding to the first movement operation and bind the target texture to a reference model, wherein the position binding ensures that the position of the target texture relative to the reference model remains unchanged. The information determination module is used to determine the feature angle of the target texture relative to the optical axis of the virtual camera after the target texture is bound to the reference model, and to determine the rotation vector for the reference model based on the feature angle. The rotation control module is used to control the rotation of the reference model according to the rotation vector until the target texture after position binding moves into the field of view of the virtual camera.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the texture control method according to any one of claims 1 to 5.
8. 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 texture control method according to any one of claims 1 to 5 by executing the executable instructions.