Virtual model control method and device, storage medium and electronic equipment
By responding to user operations in the graphical user interface, establishing a spatial coordinate system and adjusting the parameters of the virtual model, the problems of low alignment efficiency and poor operation flexibility in the prior art are solved, and efficient alignment operations of multiple virtual models are achieved.
Patent Information
- Application Number
- CN202510653099.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2025-07-01
AI Technical Summary
The prior art is inefficient and has poor user operation flexibility when aligning and fitting irregular virtual models, especially in alignment operations of multiple virtual models.
By providing a graphical user interface on the terminal device, a spatial coordinate system is established in response to the user's touch operation on the virtual model plane, and the virtual model is adjusted according to the adjusted coordinate system parameters to achieve the fitting and alignment of multiple virtual models.
The efficiency of fitting and aligning of multiple virtual models is improved, the flexibility of users' operations is enhanced, and the user's need to adjust and observe whether the fit is done multiple times.
Smart Images

Figure CN120227635A_ABST
Abstract
Description
Background Art
[0002] In some games, for example, in games with a UGC (User-Generated-Content) editor, aligning a virtual model with the rest of the virtual models in the game scene is a common operation. For example, keeping a virtual model parallel to the rest of the virtual models.
[0003] Currently, each virtual model in the game scene corresponds to a standard spatial coordinate system. Players control its displacement and rotation by adjusting the xyz coordinate values of the virtual model to align and fit its plane with the planes of other virtual models. However, for irregular virtual models, such as the alignment and fitting of two inclined planes, the above method requires players to adjust multiple times and observe whether they are aligned, resulting in low efficiency and poor flexibility of user operations. Summary of the Invention
[0004] The present disclosure provides a control method for virtual models, a control device for virtual models, a computer storage medium, and an electronic device, thereby improving the efficiency of aligning and fitting multiple virtual models and the flexibility of user operations.
[0005] In a first aspect, an embodiment of the present disclosure provides a control method for virtual models. The method provides a graphical user interface through a terminal device. The graphical user interface at least includes a partial virtual scene and multiple virtual models located in the virtual scene, and includes: responding to a first touch operation acting on a first model plane in a first virtual model, creating a spatial coordinate system based on the first model plane; responding to a second touch operation acting on a second model plane in a second virtual model, and displaying coordinate system parameters of the second model plane in the spatial coordinate system in the graphical user interface; where the first virtual model is any one of the multiple virtual models, and the second virtual model is any other virtual model except the first virtual model among the multiple virtual models; responding to an adjustment operation for the coordinate system parameters, and adjusting the second virtual model according to the adjusted coordinate system parameters to control the second model plane of the second virtual model to reach a target state with the first model plane of the first virtual model.
[0006] Second aspect, an embodiment of the present disclosure provides a control device for a virtual model. The device provides a graphical user interface through a terminal device. The graphical user interface at least includes a partial virtual scene and multiple virtual models located in the virtual scene, including: a coordinate system creation module, configured to respond to a first touch operation acting on a first model plane in a first virtual model, and create a three-dimensional space coordinate system based on the first model plane; a parameter display module, configured to respond to a second touch operation acting on a second model plane in a second virtual model, and display coordinate system parameters of the second model plane in the space coordinate system in the graphical user interface; wherein, the first virtual model is any one of the multiple virtual models, and the second virtual model is any other virtual model among the multiple virtual models except the first virtual model; a model control module, configured to respond to an adjustment operation for the coordinate system parameters, and adjust the second virtual model according to the adjusted coordinate system parameters, so as to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state.
[0007] Third aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the above control method for a virtual model.
[0008] Fourth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein, the processor is configured to execute the above control method for a virtual model by executing the executable instructions.
[0009] Fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the above control method for a virtual model.
[0010] The technical solution of the present disclosure has the following beneficial effects:
[0011] For the above control method for a virtual model, by responding to a first touch operation acting on a first model plane in a first virtual model, a space coordinate system is created based on the first model plane; by responding to a second touch operation acting on a second model plane in a second virtual model, coordinate system parameters of the second model plane in the space coordinate system are displayed in the graphical user interface; wherein, the first virtual model is any one of the multiple virtual models, and the second virtual model is any other virtual model among the multiple virtual models except the first virtual model; by responding to an adjustment operation for the coordinate system parameters, the second virtual model is adjusted according to the adjusted coordinate system parameters, so as to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state.
[0012] When it is necessary to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach the target state, a space coordinate system is established based on the first model plane of the first virtual model, and then the model planes of other virtual models are controlled to adjust coordinate system parameters such as position and rotation angle in this space coordinate system. On the one hand, this method can assist players in flexibly selecting the fitting and alignment operations of multiple virtual models in different plane dimensions, thus solving the technical problem in the prior art that only supports controlling the displacement and rotation of virtual models by using the standard coordinate system angle created with the center point of the virtual model as the coordinate origin, resulting in poor user operation flexibility. On the other hand, by adjusting coordinate system parameters such as position and rotation angle of the model planes of other virtual models in the space coordinate system of this virtual model, the quick fitting and alignment of multiple virtual models can be achieved, and users do not need to adjust multiple times and observe whether they are fitted, thereby improving the efficiency of controlling the fitting and alignment of multiple virtual models in a virtual scene.
[0013] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings
[0014] The drawings herein are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
[0015] Figure 1 Schematically showing the architecture diagram of a control system for a virtual model in this exemplary embodiment;
[0016] Figure 2 Schematically showing the flowchart of a control method for a virtual model in this exemplary embodiment;
[0017] Figure 3 Schematically showing a schematic diagram of a virtual scene containing multiple virtual models in this exemplary embodiment;
[0018] Figure 4 Schematically showing a schematic diagram of determining the first virtual model and selecting the first model plane in this exemplary embodiment;
[0019] Figure 5 Schematically showing a schematic diagram of creating a space coordinate system in this exemplary embodiment;
[0020] Figure 6 Schematically showing a schematic diagram of determining the second virtual model and selecting the second model plane in this exemplary embodiment;
[0021] Figure 7A A schematic diagram showing the parameters of the coordinate axes in this exemplary embodiment;
[0022] Figure 7B A schematic diagram showing the display of a first state adjustment control and a second state adjustment control in this exemplary embodiment;
[0023] Figure 8 A schematic diagram showing the structure of a control device for a virtual model in this exemplary embodiment;
[0024] Figure 9 A schematic diagram showing the structure of an electronic device in this exemplary embodiment. Detailed implementation manners
[0025] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring the various aspects of the present disclosure.
[0026] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures denote the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0027] The flowcharts shown in the accompanying drawings are only exemplary illustrations and do not necessarily include all the steps. For example, some steps can be further decomposed, while some steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation.
[0028] In some games, for example, in games with a UGC (User-Generated-Content) editor, aligning a virtual model with the remaining virtual models in the game scene is a common operation. For example, keeping a virtual model parallel to or in planar contact with the remaining virtual models, or reducing the gap between them.
[0029] Currently, taking three-dimensional space as an example, the editor creates a three-dimensional space coordinate system with the center point of the virtual model as the coordinate origin. Players can achieve the aligned placement of the virtual model by manipulating the movement control for moving the position of the virtual model and the rotation control for adjusting the placement angle of the virtual model set in the game interface. For example, the movement control and the rotation control are displayed in the form of a left and right double turntable, and players can manipulate the movement or rotation of the virtual model by sliding the turntable. However, the above method requires a high level of manipulation skills from players for fine-tuning the controls and has low accuracy. Moreover, for irregular virtual models, such as the alignment of two inclined planes, or for achieving the alignment of more than two virtual models, players need to perform multiple operations, resulting in low efficiency in controlling the virtual model. In addition, players can only perform displacement and rotation on the whole of the virtual model, and it is difficult for users to flexibly control multiple virtual models more precisely. No effective solution has been proposed for the above problems.
[0030] In view of the above problems, an exemplary embodiment of the present disclosure proposes a method for controlling a virtual model. When it is necessary to control the second model plane of the second virtual model to reach a target state with the first model plane of the first virtual model, a space coordinate system is established based on the first model plane of the first virtual model, and then the model planes of other virtual models are controlled to adjust coordinate system parameters such as position and rotation angle in this space coordinate system. On the one hand, this method can assist players in flexibly selecting to achieve the fitting and alignment operations of multiple virtual models in different plane dimensions, thereby solving the technical problem of poor user operation flexibility in the prior art, where only the standard coordinate system angle created with the center point of the virtual model as the coordinate origin is supported to control the displacement and rotation of the virtual model. On the other hand, by adjusting coordinate system parameters such as position and rotation angle of the model planes of other virtual models in the space coordinate system of this virtual model, the rapid fitting and alignment of multiple virtual models can be achieved, and users do not need to repeatedly adjust and observe whether they are fitted, thus improving the efficiency of controlling the fitting and alignment of multiple virtual models in the virtual scene.
[0031] An embodiment of the present disclosure proposes a method and apparatus for controlling a virtual model, which can be applied to Figure 1 the system architecture of the exemplary application environment shown.
[0032] As Figure 1As shown, the system architecture 100 may include a terminal device 101 and a server 102.
[0033] Among them, the terminal device 101 may be, for example, any device involved in virtual model control such as a mobile phone, a tablet computer (PAD), a laptop computer, a desktop computer, a smart TV, a smart vehicle-mounted device, a smart wearable device, a smart TV, and an aircraft. The terminal device may be installed with a game application or other applications that support virtual model control. It should be noted that the applications involved in the embodiments of the present disclosure may be software clients, or may also be clients such as web pages and applets. And the server 202 is the server corresponding to the software or web page, applet, etc., without limiting the specific type of the client. And taking the game application scenario as an example, the terminal device 101 includes a display screen and a processor. The display screen is used to present the game interface and receive operations generated by the player on the game interface. The game interface may include a part of the virtual game scene, and the virtual game scene is a virtual world where virtual characters carry out activities. The processor is used to run the game, generate the game interface, respond to operations, and control the display of the game screen on the display screen. When the player operates the game interface through the display screen, the game interface may control the content on the terminal locally in response to the received operation instruction, or may also control the content of the peer server in response to the received operation instruction.
[0034] The server 102 may be the background server of the game application, used to provide corresponding background services for it, such as collecting game data, matching corresponding game resources for multiple players, etc. It may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, i.e., Content Delivery Network (CDN), and big data and artificial intelligence platforms, but is not limited thereto.
[0035] In an alternative embodiment, when the control method of the virtual model in the game runs on the terminal device, the terminal device stores a game application program and a game virtual scene. The terminal device interacts with the player through a graphical player interface. The way the terminal device provides the graphical player interface to the player may include various methods. For example, it may be rendered and displayed on the display screen of the terminal device, or the graphical player interface may be presented through holographic projection.
[0036] In an optional embodiment, when the control method of the virtual model in the game runs on the server, the method can be implemented and executed based on a cloud game system. The cloud game system refers to a game mode based on cloud computing. The cloud game system includes a server and a client device. The running entity of the game application and the entity presenting the game screen are separated. The storage and running of the game video display method in the game are completed on the server. The game screen presentation is completed on the client. The client is mainly used for receiving and sending game data and presenting the game interface. For example, the client can be a display device with data transmission function near the player side, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, etc. However, the terminal device for processing game data is the server in the cloud. When playing the game, the player operates the client to send instructions to the server. The server controls the running of the game according to the instructions, encodes and compresses data such as the game screen, returns it to the client through the network, and finally, the client decodes and outputs the game screen.
[0037] It should be noted that in the embodiments of the present disclosure, the execution entity of the control method of the virtual model can be the terminal device 101 or the server 102. Among them, the terminal device can be a local terminal device or the client device in the aforementioned cloud game. The embodiments of the present application do not limit the type of the execution entity. When the editing method of the virtual scene provided by the embodiments of the present disclosure is executed independently by the server 202 or the terminal device 201, the above application scenario may also include only a single device of the server 202 or the terminal device 201, or it can also be considered that the server 202 and the terminal device 201 are the same device. Of course, in actual application, when the editing method of the virtual scene provided by the embodiments of the present disclosure is jointly executed by the server 202 and the terminal device 201, the server 202 and the terminal device 201 can also be the same device, that is, the server 202 and the terminal device 201 can be different functional modules of the same device, or virtual devices virtualized by the same physical device.
[0038] In the embodiments of the present disclosure, the terminal device 101 and the server 102 can be directly or indirectly communicatively connected through one or more networks 103. The network 103 can be a wired network or a wireless network. For example, the wireless network can be a mobile cellular network or a Wireless-Fidelity (WIFI) network. Of course, it can also be other possible networks, and the embodiments of the present application do not limit this.
[0039] It should be noted that Figure 1The schematic diagram of the game system shown is merely an example. The game applications described in the embodiments of this application are used to more clearly illustrate the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those of ordinary skill in the art will know that with the evolution of the game system and the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are equally applicable to similar technical problems.
[0040] It should be noted that all manipulation instructions that appear in the subsequent detailed introduction of the method for controlling a virtual model provided by the embodiments of this application can be regarded as manipulation instructions implemented by the player through media such as fingers, a mouse, a keyboard, or a stylus. Which medium to use specifically can be determined according to the type of terminal device. For example, when the terminal device is a touch-screen device such as a mobile phone, a tablet computer, or a game console, the player can operate on the touch screen through any suitable object or accessory such as a finger or a stylus. For example, the operation can be a sliding operation such as swiping up, down, left, or right, a long-press operation, a click operation, a double-click operation, etc., but is not limited thereto. When the terminal device is a non-touch-screen terminal device such as a desktop computer or a laptop computer, the player can operate through external devices such as a mouse or a keyboard, but is not limited thereto.
[0041] The technical solutions of this application will be described in detail below through specific embodiments. It should be noted that these several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0042] See Figure 2 , Figure 2 A flowchart of a method for controlling a virtual model in an exemplary embodiment is schematically shown. It should be noted that the steps shown can be executed in a logical order different from that shown in the flowchart of this method. The method for controlling a virtual model provided by the embodiments of this disclosure may include the following steps S201 - step S203:
[0043] Step S201, in response to a first touch operation on a first model plane in a first virtual model, create a spatial coordinate system based on the first model plane.
[0044] Step S202, in response to a second touch operation on a second model plane in a second virtual model, display the coordinate system parameters of the second model plane in the spatial coordinate system in the graphical user interface; wherein, the first virtual model is any one of a plurality of virtual models, and the second virtual model is any other one of the plurality of virtual models except the first virtual model.
[0045] Step S203: In response to an adjustment operation for coordinate system parameters, adjust the second virtual model according to the adjusted coordinate system parameters, so as to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state.
[0046] In the technical solution described above Figure 2 When it is necessary to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state, a spatial coordinate system is established with the first model plane of the first virtual model as a reference, and then the model planes of other virtual models are controlled to adjust coordinate system parameters such as position and rotation angle in this spatial coordinate system. On the one hand, this method can assist players in flexibly selecting the fitting and alignment operations of multiple virtual models in different plane dimensions, thus solving the technical problem in the prior art that there is only support for controlling the displacement and rotation of virtual models by using the standard coordinate system angle created with the center point of the virtual model as the coordinate origin, resulting in poor user operation flexibility. On the other hand, by adjusting coordinate system parameters such as position and rotation angle of the model planes of other virtual models in the spatial coordinate system of this virtual model, the quick fitting and alignment of multiple virtual models can be achieved, and users do not need to adjust multiple times and observe whether they are fitted, thereby improving the efficiency of controlling the fitting and alignment of multiple virtual models in a virtual scene.
[0047] The following will elaborate on the specific implementation manners of each step in the Figure 2 illustrated embodiment in detail:
[0048] In step S201, in response to a first touch operation on the first model plane in the first virtual model, create a spatial coordinate system based on the first model plane.
[0049] Among them, the virtual scene contains at least two or more virtual models, and the shapes of the multiple virtual models can be the same or different. The first virtual model can be any virtual model in the virtual scene, and each virtual model and each element in the virtual scene can be regarded as a virtual model. The virtual model can be a model with a regular shape, such as a cube, a cuboid, a cone, a cylinder, etc.; the virtual model can also be a model with an irregular shape. The virtual model can be a single model or a combination of multiple models. The embodiments of the present disclosure do not impose any special restrictions on this.
[0050] The above virtual scenario is a scenario where the user controls a virtual model to complete a specific logic. Taking a game scenario as an example, the virtual scenario may include any one or more of the following elements: game environment elements, game virtual model elements, game prop elements, etc. The game environment elements may include elements such as virtual sky, virtual land, virtual ocean, virtual city, etc. For example, games in which players can freely place virtual models may include: games with hide-and-seek gameplay, scene construction games / UGC games, etc. In UGC games, players can freely build a virtual game scene by placing different virtual models in the game. For example, in a virtual scenario of urban construction, adding building models, virtual character models, lane models, etc., sometimes it is necessary to perform fitting and alignment operations on multiple virtual models. In a game with hide-and-seek gameplay, players can control the virtual model after transformation to hide it better in the virtual scenario, and sometimes it is necessary to align it with some other virtual models in the virtual scenario.
[0051] Among them, the first virtual model includes multiple model planes. Taking a cube model as an example, it includes 6 model planes, and the user can select one model plane from them. The first touch operation can be a sliding operation such as swiping up, down, left, or right, a long-press operation, a click operation, a double-click operation, etc. The spatial coordinate system can be a three-dimensional coordinate system (i.e., the x, y, z-axis coordinate system), or a coordinate system of a higher dimension. The embodiments of the present disclosure do not make any special restrictions on this.
[0052] Exemplarily, taking the first touch operation as a click operation and a three-dimensional space as an example, when the terminal device detects a click operation acting on the first model plane in the first virtual model, a three-dimensional space coordinate system is established based on the first model plane.
[0053] To facilitate user operation, the user operation can be visualized. In an optional embodiment of the present disclosure, in response to the first touch operation acting on the first model plane in the first virtual model, the first model plane in the first virtual model is displayed in a differentiated manner;
[0054] Among them, the differentiated display includes one or a combination of the following ways:
[0055] Display color;
[0056] Display state;
[0057] Filling pattern.
[0058] Among them, the display state may include one or more of the following: highlighted / non-highlighted display state, shaded / unshaded state, with reflection / without reflection display state, edge softening / without edge softening display state.
[0059] For example, each model plane in the first virtual model is displayed in black. When the terminal device responds to a first touch operation on the first model plane in the first virtual model, the first model plane can be displayed in red, and the remaining unselected model planes remain displayed in black. Or, each model plane in the first virtual model is displayed in a non-highlighted state. When the terminal device responds to a first touch operation on the first model plane in the first virtual model, the first model plane can be displayed in a highlighted state, and the remaining unselected model planes remain displayed in a non-highlighted state. In addition to the above embodiments, it can also be a combination of various differentiated display states. For example, each model plane in the first virtual model is displayed in black and in a non-highlighted state. When the terminal device responds to a first touch operation on the first model plane in the first virtual model, the first model plane can be displayed in red and updated to a highlighted state.
[0060] Through the above embodiments, the user's operations are visualized so that the user can clearly understand the currently selected model plane, thereby avoiding misoperations.
[0061] Combined with the above examples, next, taking a three-dimensional space as an example and combining Figures 3 to 5 an exemplary illustration of the entire process of the above embodiments will be given.
[0062] Figure 3 A schematic diagram showing a virtual scene including multiple virtual models in this exemplary embodiment is schematically shown; referring to Figure 3 as shown, the virtual scene 301 includes three virtual models, namely virtual model A, virtual model B, and virtual model C. Moreover, the model shapes of the above virtual model A, virtual model B, and virtual model C are all different, and each virtual model includes multiple model planes. From Figure 3 the multiple model planes of the multiple virtual models shown, the model plane can be a plane conforming to a regular figure, such as the rectangular plane in virtual model C, or it can be an inclined plane such as in virtual model A, or it can be a curved surface as shown in virtual model B. The embodiments of the present disclosure do not impose any special restrictions on this.
[0063] To facilitate the editing operations on the multiple virtual models included in the above virtual scene 301, a plurality of editable controls for implementing different editing functions are provided on the graphical user interface. As Figure 3Settings control, save control, undo control, restore control, co-construction control, teaching control, log control, etc. located in the upper left area of the graphical user interface, more controls, multi-selection control, copy control, trial play control located in the left area of the graphical user interface; up and down control controls, hidden interface call-out control, etc. located in the right area of the graphical user interface. Taking the co-construction control as an example, in response to a touch operation on the co-construction control, the terminal device can enable multiple users to perform operations such as editing and adjusting the virtual models A, B, and C in the virtual scene 301 at the same time.
[0064] Figure 4 Schematically showing a schematic diagram of determining a first virtual model and selecting a first model plane in this exemplary embodiment; based on the above Figure 3 On the basis of the three virtual models shown, assume that the user selects virtual model C as the first virtual model, and the user selects the model plane 401 of virtual model C as the first model plane through a touch operation as shown in Figure 3 shown.
[0065] In an optional embodiment, in order to facilitate the user to determine whether the model plane of virtual model C is selected and whether the selected model plane is the first model plane that the user wants to select, the selected model plane 401 can be distinguished from the other model planes of virtual model C and the model planes of virtual models A and B. For example, as shown in Figure 4 shown, the selected model plane 401 in virtual model C is updated to a style filled with a specific pattern, and the other unselected model planes need to maintain the original style without pattern filling.
[0066] Figure 5 Schematically showing a schematic diagram of creating a spatial coordinate system in this exemplary embodiment; after the selected model plane 401 is selected, a spatial coordinate system can be created based on this model plane 401 as a reference. Specifically, referring to Figure 4 shown, one vertex of the model plane 401 is used as the coordinate origin, the sides where the model plane 401 is located are used as the x-axis and y-axis, and the axis perpendicular to the model plane 401 is used as the z-axis to create the xyz axes of the three-dimensional space. Figure 5 shown.
[0067] It can be understood that the plane where the model plane 401 is located can also be used as the x-axis and z-axis. Correspondingly, the axis perpendicular to the model plane 401 is used as the y-axis, or the plane where the model plane 401 is located is used as the z-axis and y-axis, and the axis perpendicular to the model plane 401 is used as the x-axis.
[0068] Furthermore, in an optional embodiment, an adjustment trigger control is also provided in the graphical user interface. After performing the aboveFigure 2 Before any of the steps shown, in response to a third touch operation on the adjustment trigger control, the terminal device controls the graphical user interface to enter the virtual model adjustment mode to create a spatial coordinate system in the virtual model adjustment mode.
[0069] Among them, the third touch operation may be the same as or different from the first touch operation. For example, both the third touch operation and the first touch operation may be click operations. The adjustment trigger control may be configured in the lower-level interface of the setting control in the graphical user interface shown. For example, the user triggers the setting control to display the adjustment trigger control in the popped-up interface. The adjustment trigger control may also be directly configured on the graphical user interface shown Figure 3 (not shown in Figure 3 ), and the embodiments of the present disclosure do not impose any special restrictions on this. Figure 3
[0070] Exemplarily, a graphical user interface may also provide an adjustment trigger control so that the user can control the graphical user interface to enter the virtual model adjustment mode through a click operation on the adjustment trigger control. Further, in the virtual model adjustment mode, multiple virtual model placement adjustment operations can be performed. Otherwise, that is, if the click operation on the adjustment trigger control is not performed, only the player needs to add a new virtual model and perform operations such as moving the virtual model by dragging and adjusting the size of the virtual model. The embodiments of the present disclosure do not impose any special restrictions on this.
[0071] Through the above embodiments, the user can freely choose whether to start the virtual model adjustment mode, improving the flexibility of user operations and thus meeting different operation requirements of the user.
[0072] Continuing to refer to step S202, in response to a second touch operation on the second model plane in the second virtual model, the coordinate system parameters of the second model plane in the spatial coordinate system are displayed in the graphical user interface; where the first virtual model is any one of the multiple virtual models, and the second virtual model is any one of the other virtual models except the first virtual model among the multiple virtual models.
[0073] Among them, the second virtual model is any one of the other virtual models except the first virtual model among the multiple virtual models. The second touch operation may be the same as the first touch operation. For example, both the first touch operation and the second touch operation are click operations, or the second touch operation may be different from the first touch operation. For example, the first touch operation is a click operation and the second touch operation is a slide operation.
[0074] In an optional embodiment of the present disclosure, when the terminal device responds to a second touch operation on the second model plane in the second virtual model, the second model plane in the second virtual model is displayed in a differentiated manner.
[0075] Among them, the way to differentially display the second model plane in the second virtual model may be the same as or different from the way to differentially display the first model plane of the first virtual model. The embodiments of the present disclosure do not impose any special restrictions on this.
[0076] Exemplarily, when the terminal device responds to a second touch operation on the second model plane in the second virtual model, the coordinate system parameters of the second model plane in the space coordinate system can be displayed in the graphical user interface.
[0077] In an alternative embodiment, the coordinate system parameters include one or more of the following combinations:
[0078] The coordinate parameter values of each spatial coordinate axis in the space coordinate system;
[0079] The rotation angle values around each spatial coordinate axis.
[0080] Exemplarily, taking the three-dimensional space coordinate system composed of the xyz coordinate axes as an example, the coordinate parameter values of each spatial coordinate axis are the x-axis coordinate parameter value, the y-axis coordinate parameter value, and the z-axis coordinate parameter value. And the rotation angle values around each spatial coordinate axis can be: the rotation angle value around the x-axis, the rotation angle value around the y-axis, and the rotation angle value around the z-axis.
[0081] It can be understood that taking the rotation angle value around the x-axis as an example, if the clockwise rotation around the x-axis is set as the positive rotation angle value, then the counterclockwise rotation around the x-axis is the negative rotation angle value.
[0082] Combined with the above examples, the following will be combined with Figures 6 to 7A to give an exemplary illustration of the whole process of the above embodiment.
[0083] Figure 6 Schematically shows a schematic diagram of determining a second virtual model and selecting a second model plane in this exemplary embodiment; referring to Figure 6 as shown, when the terminal device responds to a click operation on the second model plane (i.e., model plane 601) in the second virtual model (i.e., virtual model A), the selected model plane 601 in virtual model A is differentially displayed in a pattern filling manner.
[0084] Figure 7A Schematically shows a schematic diagram of displaying axis parameters in this exemplary embodiment; on the basis of Figure 6 , referring to Figure 7A, after selecting the model plane 601, a sub-interface 701 containing multiple coordinate system parameters is displayed in the graphical user interface. The multiple axis parameters included in this sub-interface 701 are the coordinate system parameters of the model plane 601 under the three-dimensional space coordinate system constructed for the model plane 401 of the virtual model C. This process realizes the adjustment operation of the model plane 601 of the virtual model A on the plane coordinate system of the model plane 401 of the virtual model C.
[0085] Continue to refer to Figure 7A , the coordinate system parameters of the model plane 601 under the three-dimensional space coordinate system constructed for the model plane 401 of the virtual model C are displayed in the graphical user interface, such as including the x-axis coordinate value, y-axis coordinate value, z-axis coordinate value, angle x parameter, angle y parameter, and angle z parameter. Among them, the angle x parameter, angle y parameter, and angle z parameter respectively represent the angle value of rotation around the x-axis, the angle value of rotation around the y-axis, and the angle value of rotation around the z-axis. In addition, in the sub-interface 701 as shown in Figure 7A , each coordinate system parameter corresponds to an adjustment identifier and a parameter value display identifier. The user can increase or decrease the parameter value by the adjustment identifier according to a preset numerical interval (such as 1), and can also directly input the pre-modified parameter value through the parameter value display identifier.
[0086] In step S203, in response to the adjustment operation for the coordinate system parameters, the second virtual model is adjusted according to the adjusted coordinate system parameters to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach the target state.
[0087] In an optional embodiment of the present disclosure, the target state includes one of the first state and the second state.
[0088] Among them, the first state is that the second model plane of the second virtual model is parallel and aligned with the first model plane of the first virtual model; the second state is that the second model plane of the second virtual model is in contact with the first model plane of the first virtual model.
[0089] Exemplarily, in response to the adjustment operation for the coordinate system parameters, the second virtual model is adjusted according to the adjusted coordinate system parameters to control the second model plane of the second virtual model and the first model plane of the first virtual model to be placed in parallel. At this time, there is a certain gap between the second model plane and the first model plane, and the second model plane and the first model plane are relatively parallelly displayed.
[0090] In response to the adjustment operation for the coordinate system parameters, the second virtual model is adjusted according to the adjusted coordinate system parameters to control the second model plane of the second virtual model and the first model plane of the first virtual model to be placed in contact. For example Figure 7AAs shown, the second virtual model (i.e., virtual model A) can be adjusted by adjusting the coordinate parameter values of the model plane 601 so that the model plane 601 fits the model plane 401 in the first virtual model (i.e., virtual model C).
[0091] It can be understood that for the model plane 601 of the virtual model A, since it is an inclined plane, when controlling it to fit the model plane 401 in the first virtual model (i.e., virtual model C), it is only necessary to control one or more points to fit the model plane 401, which can be specifically determined according to actual needs.
[0092] Through the above embodiments, players can flexibly adjust the coordinate system parameters of the second model plane displayed in the graphical user interface in the space coordinate system, so as to achieve different placement effects and improve the flexibility and diversity of user operations.
[0093] In an alternative embodiment of the present disclosure, in response to a second touch operation acting on the second model plane in the second virtual model, a first state adjustment control and / or a second state adjustment control are displayed in the graphical user interface; in response to a third touch operation acting on the first state adjustment control, the second virtual model is adjusted according to the first coordinate system parameters matching the first state to control the second model plane of the second virtual model to reach the first state with the first model plane of the first virtual model; in response to a fourth touch operation acting on the second state adjustment control, the second virtual model is adjusted according to the second coordinate system parameters matching the second state to control the second model plane of the second virtual model to reach the second state with the first model plane of the first virtual model.
[0094] Based on the above embodiments, the first state adjustment control and / or the second state adjustment control can be directly displayed in the graphical user interface. By triggering the first state adjustment control, the second virtual model can be quickly adjusted according to the first coordinate system parameters matching the first state, so that the second model plane of the second virtual model is parallel and aligned with the first model plane of the first virtual model. By triggering the second state adjustment control, the second virtual model can be quickly adjusted according to the second coordinate system parameters matching the second state, so that the second model plane of the second virtual model fits with the first model plane of the first virtual model.
[0095] Next, taking the case where both the first state adjustment control and the second state adjustment control are displayed in the graphical user interface as an example, in combination with Figure 7B an exemplary illustration will be given.
[0096] Figure 7B Schematically shows a display diagram of a first state adjustment control and a second state adjustment control in this exemplary embodiment; referring to Figure 7B as shown, it can also be inFigure 7A In the sub - interface 701 shown, an alignment control 702 and a fitting control 703 are provided. Thus, by triggering the alignment control 702, the second virtual model (i.e., virtual model A) can be quickly adjusted according to the first coordinate system parameters matching the parallel alignment state, so that the model plane 601 of virtual model A is parallel - aligned with the model plane 401 of virtual model C. In addition, the above - mentioned first coordinate system parameters can be synchronously updated to the corresponding coordinate system parameters in the sub - interface 701. Similarly, by triggering the fitting control 703, the second virtual model (i.e., virtual model A) can be quickly adjusted according to the second coordinate system parameters matching the fitting state, so that the model plane 601 of virtual model A fits with the model plane 401 of virtual model C. In addition, the above - mentioned second coordinate system parameters can be synchronously updated to the corresponding coordinate system parameters in the sub - interface 701.
[0097] Through the above - mentioned embodiments, multiple virtual models can be quickly adjusted according to specific states without the player manually adjusting the coordinate system parameters, improving the efficiency and accuracy of virtual model control.
[0098] In any of the above - mentioned embodiments, the first model plane and the second model plane can each be one of a plane, an inclined plane, and a curved surface.
[0099] Through the above - mentioned embodiments, the placement of multiple virtual models with regular planes in the target state can be achieved, and the placement of multiple virtual models with irregular planes in the target state can also be achieved, improving the adaptability and flexibility of virtual model control.
[0100] To implement the above - mentioned virtual model control method, in an embodiment of the present disclosure, a virtual model control device is provided. Figure 8 A schematic structural diagram of the virtual model control device is schematically shown.
[0101] Among them, the virtual model control device 800 provides a graphical user interface through a terminal device. The graphical user interface at least includes a partial virtual scene and multiple virtual models located in the virtual scene, and it may include: a coordinate system creation module 801, a coordinate system creation module 801, and a model control module 803.
[0102] The coordinate system creation module 801 is configured to respond to a first touch operation on a first model plane in a first virtual model and create a three-dimensional space coordinate system based on the first model plane; the parameter display module 802 is configured to respond to a second touch operation on a second model plane in a second virtual model and display the coordinate system parameters of the second model plane in the space coordinate system in a graphical user interface; wherein, the first virtual model is any one of a plurality of virtual models, and the second virtual model is any one of the other virtual models except the first virtual model among the plurality of virtual models; the model control module 803 is configured to respond to an adjustment operation for the coordinate system parameters and adjust the second virtual model according to the adjusted coordinate system parameters to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state.
[0103] In an optional embodiment, the device further includes a differential display module, and the differential display module is configured to respond to a first touch operation on a first model plane in a first virtual model and differentially display the first model plane in the first virtual model; or, respond to a second touch operation on a second model plane in a second virtual model and differentially display the second model plane in the second virtual model.
[0104] In an optional embodiment, the coordinate system parameters at least include one or more of the following combinations:
[0105] The coordinate parameter values of each spatial coordinate axis of the space coordinate system;
[0106] The rotation angle values around each spatial coordinate axis.
[0107] In an optional embodiment, the target state includes one of a first state and a second state. The first state is that the second model plane of the second virtual model is parallel and aligned with the first model plane of the first virtual model; the second state is that the second model plane of the second virtual model is in contact with the first model plane of the first virtual model.
[0108] In an alternative embodiment, the device further includes a control display module, which is configured to display a first state adjustment control and / or a second state adjustment control in a graphical user interface in response to a second touch operation on a second model plane in the second virtual model; the model control module 803 is specifically configured to adjust the second virtual model according to first coordinate system parameters matching the first state in response to a third touch operation on the first state adjustment control, so as to control the second model plane of the second virtual model to reach a first state with the first model plane of the first virtual model; the model control module 803 is specifically configured to adjust the second virtual model according to second coordinate system parameters matching the second state in response to a fourth touch operation on the second state adjustment control, so as to control the second model plane of the second virtual model to reach a second state with the first model plane of the first virtual model.
[0109] In an alternative embodiment, the graphical user interface includes an adjustment trigger control, and the device further includes a mode adjustment module, which is configured to control the graphical user interface to enter a virtual model adjustment mode in response to a third touch operation on the adjustment trigger control, so as to create a spatial coordinate system in the virtual model adjustment mode.
[0110] In an alternative embodiment, the first model plane and the second model plane are one of a plane, an inclined plane, and a curved surface.
[0111] The control device 800 for a virtual model provided by an embodiment of the present disclosure can execute the technical solution of the control method for a virtual model in any of the above embodiments. The implementation principle and beneficial effects are similar to those of the control method for a virtual model. For details, reference can be made to the implementation principle and beneficial effects of the control method for a virtual model, which will not be elaborated herein.
[0112] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, on which a program product capable of implementing the above method of this specification is stored. In some possible implementation manners, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of this specification.
[0113] A program product for implementing the above method according to an embodiment of the present invention may be a portable compact disc read-only memory (CD-ROM) and includes 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 that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
[0114] The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The 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 of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0115] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal may take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device.
[0116] The program code contained on the readable medium may be transmitted by any suitable medium, including but not limited to wireless, wired, optical fiber, radio frequency (RF), etc., or any suitable combination of the above.
[0117] The program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone 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 the case of a remote computing device, the remote computing device can be connected to the user's computing device through 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., by connecting through the Internet using an Internet service provider).
[0118] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0119] Those skilled in the art can understand that various aspects of the present invention can be implemented as a system, a method, or a program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuits", "modules", or "systems" here.
[0120] The following refers to Figure 9 to describe the electronic device 900 according to this embodiment of the present invention. Figure 9 The electronic device 900 shown is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.
[0121] As Figure 9 shown, the electronic device 900 is presented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: the above-mentioned at least one processing unit 910, the above-mentioned at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
[0122] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 910, so that the processing unit 910 executes the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification. For example, the processing unit 910 can execute steps S201 to S203 as Figure 2 shown.
[0123] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory (RAM) 9201 and / or a cache storage unit 9202, and may further include a read-only memory (ROM) 9203.
[0124] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205. Such program modules 9205 include, but are not limited to: an 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.
[0125] The bus 930 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.
[0126] The electronic device 900 may also communicate with one or more external devices 1000 (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be carried out through an input / output (I / O) interface 950. Moreover, the electronic device 900 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 960. As shown in the figure, the network adapter 960 communicates with other modules of the electronic device 900 through the bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, redundant arrays of independent disks (RAID) systems, tape drives, and data backup storage systems, etc.
[0127] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0128] In addition, the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present invention, rather than for restrictive purposes. It is easily understood that the processes shown in the above-mentioned drawings do not indicate or limit the chronological order of these processes. Additionally, it is also easily understood that these processes can be executed, for example, synchronously or asynchronously in multiple modules.
[0129] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more of the above-described modules or units 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.
[0130] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.
[0131] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only defined by the appended claims.
Claims
1. A control method for a virtual model, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface at least includes a portion of a virtual scene and a plurality of virtual models located in the virtual scene, and the method includes: In response to a first touch operation on a first model plane in a first virtual model, creating a spatial coordinate system based on the first model plane; In response to a second touch operation on a second model plane in a second virtual model, displaying coordinate system parameters of the second model plane in the spatial coordinate system in the graphical user interface; wherein the first virtual model is any virtual model among the plurality of virtual models, and the second virtual model is any virtual model other than the first virtual model among the plurality of virtual models; In response to the adjustment operation on the coordinate system parameters, the second virtual model is adjusted according to the adjusted coordinate system parameters to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state.
2. The method according to claim 1, characterized in that The method further comprises: In response to a first touch operation on a first model plane in the first virtual model, displaying the first model plane in the first virtual model in a differentiated manner; Or, in response to a second touch operation on a second model plane in a second virtual model, the second model plane in the second virtual model is displayed in a differentiated manner.
3. The method according to claim 1, characterized in that The coordinate system parameters include at least one or more of the following combinations: Coordinate parameter values of each spatial coordinate axis in the spatial coordinate system; The rotation angle values around each triad axis.
4. The method according to claim 1, characterized in that: The target state includes one of a first state and a second state, the first state is that the second model plane of the second virtual model is parallelly aligned with the first model plane of the first virtual model; the second state is that the second model plane of the second virtual model is fitted with the first model plane of the first virtual model.
5. The method according to claim 4, characterized in that The method further comprises: In response to a second touch operation on a second model plane in the second virtual model, displaying a first state adjustment control and / or a second state adjustment control in the graphical user interface; In response to a third touch operation on the first state adjustment control, adjusting the second virtual model according to first coordinate system parameters matching the first state, so as to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach the first state; In response to a fourth touch operation acting on the second state adjustment control, the second virtual model is adjusted according to second coordinate system parameters matching the second state to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach the second state.
6. The method according to claim 1, characterized in that The graphical user interface includes an adjustment trigger control, and before creating a spatial coordinate system based on the first model plane, the method further includes: In response to a third touch operation on the adjustment trigger control, the graphical user interface is controlled to enter a virtual model adjustment mode, so as to create the space coordinate system in the virtual model adjustment mode.
7. The method according to claim 1, characterized in that The first model plane and the second model plane are one of a plane, an inclined plane, and a curved surface.
8. A control device for a virtual model, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface at least includes a portion of a virtual scene and a plurality of virtual models located in the virtual scene, and the apparatus comprises: A coordinate system creation module, configured to respond to a first touch operation on a first model plane in a first virtual model and create a three-dimensional space coordinate system based on the first model plane; a parameter display module, configured to respond to a second touch operation on a second model plane in a second virtual model, and display coordinate system parameters of the second model plane in the spatial coordinate system in the graphical user interface; wherein the first virtual model is any virtual model among the plurality of virtual models, and the second virtual model is any virtual model other than the first virtual model among the plurality of virtual models; The model control module is used to adjust the second virtual model according to the adjusted coordinate system parameters in response to the adjustment operation on the coordinate system parameters, so as to control the second model plane of the second virtual model and the first model plane of the first virtual model to reach a target state.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the virtual model according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the virtual model control method according to any one of claims 1 to 7 by executing the executable instructions.