Interaction method, device and equipment of game model, and storage medium
Patent Information
- Application Number
- CN202311371392.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2026-09-11
- Estimated Expiration
- 2043-10-20
AI Technical Summary
[0003]本申请公开解决解决现有的场景编辑过程中,移动参照物模型效率低下的技术问题
[0014] This application provides a graphical user interface (GUI) via a terminal device, which includes a model editing control. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and a target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
Smart Images

Figure CN117618888B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game interaction, and more particularly to an interaction method, device, equipment, and storage medium for a game model. Background Technology
[0002] Existing UGC track editors typically require a character or vehicle model as a reference point to create the entire track scene from a fixed perspective. Using a reference point allows users to better determine the width of the road, the angle of curves, and the position and size of other track elements. When starting track creation, users can choose an appropriate reference model, such as a standard-sized race car or a character model with standard human proportions. The editor then determines the overall size and proportion of the track based on the size and proportion of this reference point. Moving the reference point to the top of a component usually requires frequent manipulation of the movement controls to ensure the character / vehicle model in the center of the screen is accurately moved to the top of the target component. This method is time-consuming, increasing with the distance from the object, leading to inefficiency, long lead times, and susceptibility to visual errors requiring frequent adjustments. Summary of the Invention
[0003] This application discloses a solution to the technical problem of low efficiency in moving reference models during existing scene editing processes.
[0004] The first aspect of this application provides a method for interacting with a game model, which provides a graphical user interface through a terminal device, and provides a model editing control in the graphical user interface; the interaction method includes:
[0005] In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined.
[0006] In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position;
[0007] Move the reference model to the target position, and adjust the display view of the model to be edited in the graphical user interface according to the target position of the reference model.
[0008] A second aspect of this application provides an interactive device for a game model, which provides a graphical user interface via a terminal device, and the graphical user interface provides a model editing control; the interaction method includes:
[0009] A model determination module is used to determine the reference model and the model to be edited in the target game in response to a first trigger operation on the model editing control.
[0010] The target position determination module is used to respond to a second trigger operation on the model to be edited, obtain the editing position of the model to be edited, and determine the target position of the reference model based on the editing position;
[0011] The position movement module is used to move the reference model to the target position and adjust the display perspective of the model to be edited in the graphical user interface according to the target position of the reference model.
[0012] A third aspect of this application provides an interactive device for a game model, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a circuit; the at least one processor invokes the instructions in the memory to cause the interactive device for the game model to perform the steps of the above-described interactive method for the game model.
[0013] A fourth aspect of this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the above-described interactive method of the game model.
[0014] This application provides a graphical user interface (GUI) via a terminal device, which includes a model editing control. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and a target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
[0015] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The objectives and other advantages of this application are realized and obtained through the structures particularly pointed out in the description, claims and drawings.
[0016] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0017] Figure 1This is a schematic diagram of one embodiment of the interaction method of the game model in this application;
[0018] Figure 2 This is a schematic diagram of another embodiment of the interaction method of the game model in this application;
[0019] Figure 3 This is a schematic diagram of another embodiment of the interaction method of the game model in this application;
[0020] Figure 4 This is a schematic diagram of one embodiment of the interactive device for the game model in this application.
[0021] Figure 5 This is a schematic diagram of another embodiment of the interactive device for the game model in this application;
[0022] Figure 6 This is a schematic diagram of one embodiment of the interactive device for the game model in this application. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] The terms "comprising" and "having," and any variations thereof, used in the embodiments of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or devices.
[0025] In existing technologies, a character or vehicle model is typically used as a reference point to create the entire track scene from a fixed perspective. Using a reference point allows users to better determine the width of the road, the angle of curves, and the position and size of other track elements. When users begin creating a track, they can choose an appropriate reference model, such as a standard-sized race car or a character model with standard human proportions. The editor will then determine the size and proportion of the entire track based on the size and proportion of this reference point. Moving the reference point to the top of a component usually requires frequent manipulation of the movement controls to ensure that the character / vehicle model in the center of the screen is accurately moved to the top of the target component. This method is time-consuming, increasing with the distance from the object, leading to inefficiency and long lead times. Furthermore, it is prone to visual errors, requiring frequent adjustments.
[0026] Based on the above, the present invention provides an interaction method, apparatus, device and storage medium for game models, which can be applied to interactive control or game model interaction scenarios.
[0027] In one embodiment of this disclosure, the game model interaction method can run on a local terminal device or a server. When the game model interaction method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0028] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the game model's interaction methods are completed on the cloud gaming server. The client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the user operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0029] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the user through a graphical user interface (GUI), i.e., conventionally downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the user in various ways, such as rendering it on the terminal's display screen or providing it to the user through holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the screen. The user can operate on the interface using input devices such as a touchscreen, mouse, keyboard, or gamepad.
[0030] In one possible implementation, embodiments of the present invention provide an interactive method for a game model, which provides a graphical user interface through a terminal device. The terminal device can be a local terminal device (e.g., a mobile terminal, a computer, a game console, etc.) or a client device in a cloud interactive system.
[0031] To facilitate understanding of this embodiment, a detailed description of an interaction method for a game model disclosed in this embodiment of the invention will be provided first, such as... Figure 1 As shown, the interaction method of this game model provides a graphical user interface through a terminal device, and the graphical user interface provides a model editing control. This method includes the following steps:
[0032] 101. In response to the first trigger operation on the model editing control, determine the reference model and the model to be edited in the target game;
[0033] In this embodiment, the graphical user interface provides a model editing control element. Users can enter the model editing mode by clicking this control, which displays relevant editing tools and interface elements, allowing users to edit, adjust, and optimize the models in the target game. Simultaneously, the system provides a wealth of editing options and functions according to user needs, such as scaling, rotation, translation, copying, pasting, deleting, and merging operations, to meet different user editing requirements.
[0034] Specifically, after a user triggers the model editing controls for the first time, the system determines the reference model and the model to be edited in the target game based on this action. Specifically, the system analyzes the user's actions, identifies the model the user wants to edit, and sets it as the model to be edited. Simultaneously, the system determines other models that need to be referenced and sets them as reference models to facilitate the user's editing operations. The system identifies the reference model and the model to be edited by recognizing the user's clicks and matching them with models in the target game. For example, suppose a user wants to edit a car model in the target game. In this scenario, the reference model could be other surrounding cars or other relevant reference objects to help the user better adjust the car model's size, orientation, or position. Next, the system will set the user-selected car model as the model to be edited so that the user can modify it. The user can use the editing tools and options provided in the graphical interface, such as dragging the handle to adjust the car's size, rotating the car model to change its orientation, or moving the car to adapt to specific scene requirements. Alternatively, in a racing game, the track model can be set as the model to be edited, and the user can use editing tools and options to modify and adjust it. For example, users can change the shape and curves of the track, add or remove obstacles or decorations, or adjust the track's width and height. These editing operations directly affect the track design and gameplay experience. Using car models as reference models provides guidance and direction for users when editing the track. Users can adjust the track size and layout appropriately based on the car models' dimensions and characteristics, ensuring that curves and turns accommodate the car models' size and power requirements. The car models can also serve as a reference, helping users determine whether obstacles on the track will cause collisions or other impacts to the cars.
[0035] 102. In response to the second trigger operation on the model to be edited, obtain the editing position of the model to be edited, and determine the target position of the reference model based on the editing position;
[0036] In this embodiment, when a user needs to edit the model to be edited, or when the user wants to further adjust the track after completing the first editing operation on the track model, the model to be edited is generally larger in size, while the reference model is generally smaller. Therefore, the position of the reference model may be far from the current editing position of the model to be edited. In this case, a second trigger operation can be performed. The system will obtain the editing position of the model to be edited, that is, the coordinates or position information of the track model specified by the second trigger operation where model editing is required. Based on the editing position, the system will determine the target position of the reference model (car model). The target position refers to the ideal position of the reference model when the model to be edited is being edited. The system may use different algorithms or rules to calculate the offset or offset direction of the reference model relative to the editing position, depending on the different editing positions, to ensure that the reference model and the model to be edited always maintain a reasonable relative position. Taking the track model as the model to be edited and the car model as the reference model as an example, if the user clicks the second trigger operation at a specific position on the track model, the system will take that position as the editing position. The system then calculates the target offset of the reference model relative to the location to be edited, determining the correct position of the car model after track editing. Through automatic calculation and adjustment, the reference model correctly corresponds to the track model, ensuring game continuity and playability.
[0037] 103. Move the reference model to the target position, and adjust the display view of the model to be edited in the graphical user interface according to the target position of the reference model.
[0038] In this embodiment, once the system determines the target position of the reference model, it moves the model to that position. By calculating the offset or direction of the reference model relative to the model to be edited, the system can accurately determine the correct location of the reference model. Simultaneously, to ensure the user can better observe and edit the model in the graphical user interface, the system adjusts the display perspective accordingly. Based on the target position of the reference model, the system automatically adjusts the display parameters of the graphical user interface, allowing the user to observe and edit the model from the optimal perspective. For example, if the reference model is moved to a position in front of the model to be edited, the system automatically sets the graphical user interface perspective to follow the reference model's viewpoint. This allows the user to observe and edit the model from the reference model's perspective, enabling better adjustment of the track's position or shape.
[0039] In this embodiment, a graphical user interface (GUI) is provided through a terminal device, and a model editing control is provided within the GUI. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
[0040] Please see Figure 2 Another embodiment of the interaction method for the game model in this disclosure includes:
[0041] 201. In response to the first trigger operation on the model editing control, determine the reference model and the model to be edited in the target game;
[0042] In this embodiment, step 201 is similar to step 101 in the first embodiment, and will not be described again here.
[0043] 202. In response to a second triggering operation on the model to be edited, determine the target component from multiple model components of the model to be edited;
[0044] In this embodiment, when the user performs a second trigger operation, the system traverses multiple model components of the model to be edited (e.g., a racetrack model) to determine the target component the user wishes to further edit. The model to be edited typically consists of multiple components or parts, each potentially representing a different part or attribute of the model. By analyzing the user's actions and input, the system quickly identifies and locates multiple components of the model to be edited. The system may determine the user's editing intent based on their operation method, click location, or other instructions, and select the corresponding target component from the list of components of the model to be edited. For example, if the user clicks on a specific part of the racetrack model, the system may determine that the user wishes to edit the shape or height of that part. The system will determine the target component based on the component where the click location is located and prioritize it for this editing operation. By identifying the target component, the system can more accurately understand the user's editing intent and apply the corresponding editing operations to specific model components. This allows the user to perform targeted editing of different parts of the racetrack model, achieving refined model adjustments.
[0045] Furthermore, the step of determining the target component from multiple model components of the model to be edited in response to a second trigger operation on the model to be edited includes: determining the touch position of the second trigger operation in response to the second trigger operation on the model to be edited, and performing a spatial search from the touch position to determine a spatial search range; determining whether there is more than one model component within the spatial search range; if so, enlarging the display view of the model to be edited in the graphical user interface according to the touch position, so that the display view only displays the model components within the spatial search range; and determining the target component from the model components within the spatial search range in response to a third trigger operation on the model components within the spatial search range.
[0046] Specifically, when a user performs a second trigger operation, the system captures the touch location and uses this location to perform a spatial search to determine the area of interest for the user. The system may use the coordinate information around the touch location to calculate a spatial search area that may include the model components the user might want to edit. Then, the system analyzes this spatial search area to determine if multiple model components exist within it. If multiple model components are present within the spatial search area, the system further processes the user's action. The system zooms in on the display view of the model to be edited on the graphical user interface based on the touch location, allowing the user to more clearly observe and select the model components within the spatial search area. By zooming in, only the model components within the spatial search area are displayed in the graphical user interface, while other parts may be temporarily hidden or minimized. This allows the user to more easily focus on further operations within the spatial search area. Finally, when the user performs a third trigger operation, the system responds and identifies the target component specified by the user among the model components within the spatial search area. Based on the user's specific actions and instructions, the system accurately identifies and selects the target component from the model components within the spatial search area to meet the user's editing needs.
[0047] Furthermore, the component position is the center point of the top surface of the target component. The step of using the component position of the target component of the model to be edited as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position, includes: using the center point of the top surface of the target component of the model to be edited as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position.
[0048] Specifically, in this embodiment, the center point of the top surface of the target component is used as the editing position of the model to be edited. By analyzing the target component, the system can determine the position of its center point. The center point is usually located above the target component and is the center of gravity of the component in three-dimensional space. The system uses calculation methods or algorithms to accurately locate the center point of the top surface of the target component.
[0049] Furthermore, before using the center point of the top surface of the target component of the model to be edited as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position, the method further includes: obtaining the coordinate information of the target component, and generating the bounding box of the target component based on the coordinate information; determining the top plane of the target component based on the bounding box, and obtaining the planar shape and plane vertices of the top plane; determining the corresponding center point algorithm based on the planar shape, and calculating the center point of the top surface of the target component based on the center point algorithm and the plane vertices.
[0050] Specifically, after obtaining the coordinate information of the target component, the system generates a bounding box for the target component based on the coordinate information. The bounding box is a rectangular or cubic frame whose edges are closely connected to the outer edges of the target component. This bounding box can be used to determine the size, position, and shape of the target component. Next, the system determines the top plane of the target component based on the bounding box and obtains the plane's shape and vertices. The top plane typically refers to the upper surface of the target component, which is the main area for user editing and transformation operations. The system uses the bounding box information to find the plane closest to the top and extracts its plane shape and vertex information. A corresponding center point algorithm is determined based on the plane shape, and the center point algorithm and the plane vertices are used to calculate the top center point of the target component. By analyzing the plane shape, the system can determine a suitable center point algorithm for that shape. This algorithm can be used to calculate the center point or centroid position of the plane shape. Then, the system uses the obtained plane vertex information and center point algorithm to calculate the top center point of the target component.
[0051] 203. Use the component position of the target component of the model to be edited as the editing position of the model to be edited, and determine the target position of the reference model based on the editing position;
[0052] In this embodiment, the target position of the reference model is a position that coincides with or matches the position of the target component. For example, the target position of the reference model is above the position of the target component. This embodiment does not limit the scope of the reference model.
[0053] 204. Move the reference model to the target position, and adjust the display view of the model to be edited in the graphical user interface according to the target position of the reference model.
[0054] In this embodiment, step 204 is similar to step 103 in the first embodiment, and will not be described again here.
[0055] In this embodiment, a graphical user interface (GUI) is provided through a terminal device, and a model editing control is provided within the GUI. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
[0056] Please see Figure 3 Another embodiment of the interaction method for the game model in this disclosure includes:
[0057] 301. In response to the first trigger operation on the model editing control, the virtual object is identified as the reference model, and the game scene is identified as the model to be edited;
[0058] 302. In response to the second trigger operation on the model to be edited, obtain the editing position of the model to be edited, and determine the target position of the reference model based on the editing position;
[0059] In this embodiment, steps 301-302 are similar to steps 101-102 in the first embodiment, and will not be described again here.
[0060] 303. In response to the fourth trigger operation of the displacement button, move the reference model to the target position, and adjust the display view of the model to be edited in the graphical user interface according to the target position of the reference model;
[0061] In this embodiment, a displacement button is provided in the graphical user interface. Through this button, the user can indicate whether the reference model needs to be moved to the target position, thus avoiding frequent movement of the reference model due to accidental touch.
[0062] 304. In response to an editing operation on the model to be edited, perform model editing on the model to be edited based on the target position of the reference model.
[0063] In this embodiment, in response to an editing operation on the model to be edited, the system edits the model to be edited based on the target position of the reference model. Editing operations can include moving, rotating, scaling, etc., to achieve the user's desired effect by modifying the model to be edited. Based on the target position of the reference model, the system can determine the editing operations required for the model to be edited. For example, if the target position of the reference model is next to the model to be edited, the system can translate or rotate the model to be edited to a position adjacent to the reference model. If the target position of the reference model is above the model to be edited, the system can scale or adjust the height of the model to align it with the reference model. By editing the model to be edited, the system allows users to personalize, beautify, or optimize the model. Users can perform various operations on the model to be edited according to their needs, making it conform to their creative ideas or requirements.
[0064] In this embodiment, a graphical user interface (GUI) is provided through a terminal device, and a model editing control is provided within the GUI. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display perspective of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
[0065] The interaction method of the game model in the embodiments of this disclosure has been described above. The interaction device of the game model in the embodiments of this disclosure is described below. The interaction device of the game model provides a graphical user interface through a terminal device, and the graphical user interface provides a model editing control. (See also...) Figure 4 One embodiment of the interactive device for the game model in this disclosure includes:
[0066] The model determination module 401 is used to determine the reference model and the model to be edited in the target game in response to a first trigger operation on the model editing control;
[0067] The target position determination module 402 is used to respond to a second trigger operation on the model to be edited, obtain the editing position of the model to be edited, and determine the target position of the reference model based on the editing position;
[0068] The position movement module 403 is used to move the reference model to the target position and adjust the display perspective of the model to be edited in the graphical user interface according to the target position of the reference model.
[0069] In this embodiment, a graphical user interface (GUI) is provided through a terminal device, and a model editing control is provided within the GUI. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
[0070] Please see Figure 5 Another embodiment of the interactive device for the game model in this disclosure includes:
[0071] The model determination module 401 is used to determine the reference model and the model to be edited in the target game in response to a first trigger operation on the model editing control;
[0072] The target position determination module 402 is used to respond to a second trigger operation on the model to be edited, obtain the editing position of the model to be edited, and determine the target position of the reference model based on the editing position;
[0073] The position movement module 403 is used to move the reference model to the target position and adjust the display perspective of the model to be edited in the graphical user interface according to the target position of the reference model.
[0074] In one feasible implementation, the target game includes a virtual object and the game scene in which the virtual object is located;
[0075] The model determination module 401 is specifically used for:
[0076] In response to a first trigger operation on the model editing control, the virtual object is identified as the reference model, and the game scene is identified as the model to be edited.
[0077] In one feasible implementation, the model to be edited includes multiple model components, and the target location determination module 402 includes:
[0078] The component determination unit 4021 is configured to determine a target component from a plurality of model components of the model to be edited in response to a second triggering operation for the model to be edited;
[0079] The position determination unit 4022 is used to take the component position of the target component of the model to be edited as the editing position of the model to be edited, and determine the target position of the reference model based on the editing position.
[0080] In one feasible implementation, the component determining unit 4021 is specifically used for:
[0081] In response to a second trigger operation on the model to be edited, the touch position of the second trigger operation is determined, and a spatial search is performed from the touch position to determine the spatial search range;
[0082] Determine whether there exists more than one model component within the spatial search range;
[0083] If so, the display view of the model to be edited in the graphical user interface is magnified according to the touch position, so that the display view only shows the model components within the spatial search range;
[0084] In response to a third triggering operation for model components within the spatial search range, a target component is determined from the model components within the spatial search range.
[0085] In one feasible implementation, the component position is the center point of the top surface of the target component, and the position determination unit 4022 is specifically used for:
[0086] The center point of the top surface of the target component of the model to be edited is taken as the editing position of the model to be edited, and the target position of the reference model is determined according to the editing position.
[0087] In one feasible implementation, the target location determination module 402 further includes a center point determination unit 4023, which is specifically used for:
[0088] Obtain the coordinate information of the target component, and generate the bounding box of the target component based on the coordinate information;
[0089] The top plane of the target component is determined based on the bounding box, and the planar shape and vertices of the top plane are obtained;
[0090] The corresponding center point algorithm is determined based on the plane shape, and the top center point of the target component is calculated based on the center point algorithm and the plane vertex.
[0091] In one feasible implementation, a displacement button is provided in the graphical user interface; the position movement module 403 is specifically used for:
[0092] In response to a fourth trigger operation on the displacement button, the reference model is moved to the target position, and the display view of the model to be edited in the graphical user interface is adjusted according to the target position of the reference model.
[0093] In one feasible implementation, the interactive device of the game model further includes an editing module 404, which is specifically used for:
[0094] In response to an editing operation on the model to be edited, the model to be edited is edited according to the target position of the reference model.
[0095] In this embodiment, a graphical user interface (GUI) is provided through a terminal device, and a model editing control is provided within the GUI. In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display perspective of the model to be edited on the GUI is adjusted based on the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thereby saving time, improving the efficiency of track creation, and eliminating visual errors that may occur during manual operations, thus improving the accuracy of editing.
[0096] above Figure 4 and Figure 5 The interactive device of the game model in the embodiments of this disclosure is described in detail from the perspective of modular functional entities. The interactive device of the game model in the embodiments of this disclosure is described in detail from the perspective of hardware processing.
[0097] Figure 6This is a schematic diagram of the structure of an interactive device for a game model provided in this embodiment. The interactive device 600 for the game model can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 610 (e.g., one or more processors) and a memory 620, and one or more storage media 630 (e.g., one or more mass storage devices) for storing application programs 633 or data 632. The memory 620 and storage media 630 may be temporary or persistent storage. The program stored in the storage media 630 may include one or more modules (not shown in the diagram), each module may include a series of instruction operations on the interactive device 600 for the game model. Furthermore, the processor 610 may be configured to communicate with the storage media 630 and execute a series of instruction operations in the storage media 630 on the interactive device 600 for the game model to achieve the following steps:
[0098] A graphical user interface (GUI) is provided on the terminal device, which includes a model editing control. In response to a first trigger operation on the model editing control, a reference model and the model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited in the GUI is adjusted according to the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thus saving time, improving the efficiency of track creation, and eliminating visual errors that may occur in manual operations, thereby improving the accuracy of editing.
[0099] Optionally, the target game includes virtual objects and the game scene in which the virtual objects are located; in response to the first trigger operation on the model editing control, determining the reference model and the model to be edited in the target game includes: in response to the first trigger operation on the model editing control, determining the virtual object as the reference model and the game scene as the model to be edited.
[0100] By separating the reference model and the model to be edited, the above method allows users to edit the game scene more accurately. The reference model serves as the standard and benchmark for editing, helping users quickly locate and adjust the model to be edited, thereby achieving more precise editing results.
[0101] Optionally, the model to be edited includes multiple model components. In response to the second trigger operation on the model to be edited, obtaining the editing position of the model to be edited and determining the target position of the reference model based on the editing position includes: in response to the second trigger operation on the model to be edited, determining the target component from the multiple model components of the model to be edited; using the component position of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position.
[0102] By identifying the target component and the editing location, the above method allows users to edit the model more accurately. Users can focus their editing operations on the location of the target component, making fine adjustments and modifications to achieve precise editing of that component.
[0103] Optionally, the process of determining the target component from multiple model components of the model to be edited in response to a second trigger operation on the model to be edited includes: determining the touch position of the second trigger operation in response to the second trigger operation on the model to be edited, and performing a spatial search from the touch position to determine the spatial search range; determining whether there is more than one model component within the spatial search range; if so, enlarging the display view of the model to be edited in the graphical user interface according to the touch position, so that the display view only shows the model components within the spatial search range; and determining the target component from the model components within the spatial search range in response to a third trigger operation on the model components within the spatial search range.
[0104] The above method, by searching for model components within a spatial search area and responding to a third-triggered operation targeting those components, further identifies the target component. This avoids a broad search of the entire model, instead focusing on more accurately locating the target component within a pre-selected area. This precise location helps users find and edit the specific components they need more quickly.
[0105] Optionally, the above component position is the center point of the top surface of the target component. Taking the component position of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position includes: taking the center point of the top surface of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position.
[0106] The above method, by using the center point of the top surface of the target component as the editing location, enables precise positioning of the model to be edited. This helps ensure that the editing operation targets the specific location the user wants to modify, improving the accuracy and precision of the editing.
[0107] Optionally, before using the center point of the top surface of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position, the method further includes: obtaining the coordinate information of the target component, and generating the bounding box of the target component based on the coordinate information; determining the top plane of the target component based on the bounding box, and obtaining the planar shape and plane vertices of the top plane; determining the corresponding center point algorithm based on the planar shape, and calculating the center point of the top surface of the target component based on the center point algorithm and the plane vertices.
[0108] The method described above determines the corresponding center point algorithm based on the planar shape and calculates the top center point of the target component by combining the planar vertices. This makes the calculated center point more accurate and reliable, providing a more precise reference point for subsequent editing operations.
[0109] Optionally, a displacement button is provided in the graphical user interface; the above-mentioned moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model includes: in response to a fourth trigger operation on the displacement button, moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model.
[0110] The above method provides a displacement button through a graphical user interface, which can distinguish whether the position of the reference model needs to be moved, thus avoiding accidental touches.
[0111] Optionally, after moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model, the method further includes: in response to the editing operation on the model to be edited, performing model editing on the model to be edited according to the target position of the reference model.
[0112] The above method, by using the target position of the reference model as a reference, allows for more accurate editing and adjustments to the model. This helps ensure a high degree of precision in editing operations, enabling users to modify and improve the model more finely.
[0113] The interactive device 600 of the game model may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input / output interfaces 660, and / or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 6 The interactive device structure of the game model shown does not constitute a limitation on the interactive device of the game model provided in this disclosure. It may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0114] This disclosure also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the following steps:
[0115] A graphical user interface (GUI) is provided on the terminal device, which includes a model editing control. In response to a first trigger operation on the model editing control, a reference model and the model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position. The reference model is moved to the target position, and the display view of the model to be edited in the GUI is adjusted according to the target position of the reference model. This method automatically determines the target position of the reference model, reducing the number of manual operations, thus saving time, improving the efficiency of track creation, and eliminating visual errors that may occur in manual operations, thereby improving the accuracy of editing.
[0116] Optionally, the target game includes virtual objects and the game scene in which the virtual objects are located; in response to the first trigger operation on the model editing control, determining the reference model and the model to be edited in the target game includes: in response to the first trigger operation on the model editing control, determining the virtual object as the reference model and the game scene as the model to be edited.
[0117] By separating the reference model and the model to be edited, the above method allows users to edit the game scene more accurately. The reference model serves as the standard and benchmark for editing, helping users quickly locate and adjust the model to be edited, thereby achieving more precise editing results.
[0118] Optionally, the model to be edited includes multiple model components. In response to the second trigger operation on the model to be edited, obtaining the editing position of the model to be edited and determining the target position of the reference model based on the editing position includes: in response to the second trigger operation on the model to be edited, determining the target component from the multiple model components of the model to be edited; using the component position of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position.
[0119] By identifying the target component and the editing location, the above method allows users to edit the model more accurately. Users can focus their editing operations on the location of the target component, making fine adjustments and modifications to achieve precise editing of that component.
[0120] Optionally, the process of determining the target component from multiple model components of the model to be edited in response to a second trigger operation on the model to be edited includes: determining the touch position of the second trigger operation in response to the second trigger operation on the model to be edited, and performing a spatial search from the touch position to determine the spatial search range; determining whether there is more than one model component within the spatial search range; if so, enlarging the display view of the model to be edited in the graphical user interface according to the touch position, so that the display view only shows the model components within the spatial search range; and determining the target component from the model components within the spatial search range in response to a third trigger operation on the model components within the spatial search range.
[0121] The above method, by searching for model components within a spatial search area and responding to a third-triggered operation targeting those components, further identifies the target component. This avoids a broad search of the entire model, instead focusing on more accurately locating the target component within a pre-selected area. This precise location helps users find and edit the specific components they need more quickly.
[0122] Optionally, the above component position is the center point of the top surface of the target component. Taking the component position of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position includes: taking the center point of the top surface of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position.
[0123] The above method, by using the center point of the top surface of the target component as the editing location, enables precise positioning of the model to be edited. This helps ensure that the editing operation targets the specific location the user wants to modify, improving the accuracy and precision of the editing.
[0124] Optionally, before using the center point of the top surface of the target component as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position, the method further includes: obtaining the coordinate information of the target component, and generating the bounding box of the target component based on the coordinate information; determining the top plane of the target component based on the bounding box, and obtaining the planar shape and plane vertices of the top plane; determining the corresponding center point algorithm based on the planar shape, and calculating the center point of the top surface of the target component based on the center point algorithm and the plane vertices.
[0125] The method described above determines the corresponding center point algorithm based on the planar shape and calculates the top center point of the target component by combining the planar vertices. This makes the calculated center point more accurate and reliable, providing a more precise reference point for subsequent editing operations.
[0126] Optionally, a displacement button is provided in the graphical user interface; the above-mentioned moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model includes: in response to a fourth trigger operation on the displacement button, moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model.
[0127] The above method provides a displacement button through a graphical user interface, which can distinguish whether the position of the reference model needs to be moved, thus avoiding accidental touches.
[0128] Optionally, after moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model, the method further includes: in response to the editing operation on the model to be edited, performing model editing on the model to be edited according to the target position of the reference model.
[0129] The above method, by using the target position of the reference model as a reference, allows for more accurate editing and adjustments to the model. This helps ensure a high degree of precision in editing operations, enabling users to modify and improve the model more finely.
[0130] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system, device, or unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0131] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0132] The above-described embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit it. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure.
Claims
1. An interaction method for a game model, characterized in that, A graphical user interface is provided through a terminal device, and a model editing control is provided in the graphical user interface; the interaction method includes: In response to a first trigger operation on the model editing control, a reference model and a model to be edited in the target game are determined. In response to a second trigger operation on the model to be edited, the editing position of the model to be edited is obtained, and the target position of the reference model is determined based on the editing position; Move the reference model to the target position, and adjust the display view of the model to be edited in the graphical user interface according to the target position of the reference model.
2. The interaction method according to claim 1, characterized in that, The target game includes virtual objects and the game scene in which the virtual objects are located; The step of determining the reference model and the model to be edited in the target game in response to a first trigger operation on the model editing control includes: In response to a first trigger operation on the model editing control, the virtual object is identified as the reference model, and the game scene is identified as the model to be edited.
3. The interaction method according to claim 1, characterized in that, The model to be edited includes multiple model components. The step of obtaining the editing position of the model to be edited in response to a second trigger operation on the model to be edited, and determining the target position of the reference model based on the editing position, includes: In response to a second triggering operation on the model to be edited, a target component is determined from a plurality of model components of the model to be edited; The component position of the target component of the model to be edited is used as the editing position of the model to be edited, and the target position of the reference model is determined based on the editing position.
4. The interaction method according to claim 3, characterized in that, The step of determining the target component from a plurality of model components of the model to be edited in response to a second triggering operation on the model to be edited includes: In response to a second trigger operation on the model to be edited, the touch position of the second trigger operation is determined, and a spatial search is performed from the touch position to determine the spatial search range; Determine whether there is more than one model component within the spatial search range; If so, the display view of the model to be edited in the graphical user interface is magnified according to the touch position, so that the display view only displays the model components within the spatial search range; In response to a third triggering operation for model components within the spatial search range, a target component is determined from the model components within the spatial search range.
5. The interaction method according to claim 3, characterized in that, The component position is the center point of the top surface of the target component. The step of using the component position of the target component of the model to be edited as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position, includes: The center point of the top surface of the target component of the model to be edited is taken as the editing position of the model to be edited, and the target position of the reference model is determined according to the editing position.
6. The interaction method according to claim 5, characterized in that, Before determining the center point of the top surface of the target component of the model to be edited as the editing position of the model to be edited, and determining the target position of the reference model based on the editing position, the method further includes: Obtain the coordinate information of the target component, and generate the bounding box of the target component based on the coordinate information; The top plane of the target component is determined based on the bounding box, and the planar shape and vertices of the top plane are obtained; The corresponding center point algorithm is determined based on the plane shape, and the top center point of the target component is calculated based on the center point algorithm and the plane vertex.
7. The interaction method according to claim 1, characterized in that, The graphical user interface provides a displacement button; moving the reference model to the target position and adjusting the display perspective of the model to be edited in the graphical user interface according to the target position of the reference model includes: In response to a fourth trigger operation on the displacement button, the reference model is moved to the target position, and the display view of the model to be edited in the graphical user interface is adjusted according to the target position of the reference model.
8. The interaction method according to claim 1, characterized in that, After moving the reference model to the target position and adjusting the display view of the model to be edited in the graphical user interface according to the target position of the reference model, the method further includes: In response to an editing operation on the model to be edited, the model to be edited is edited according to the target position of the reference model.
9. An interactive device for a game model, characterized in that, A graphical user interface is provided through a terminal device, and a model editing control is provided in the graphical user interface; the interactive device of the game model includes: A model determination module is used to determine the reference model and the model to be edited in the target game in response to a first trigger operation on the model editing control. The target position determination module is used to respond to a second trigger operation on the model to be edited, obtain the editing position of the model to be edited, and determine the target position of the reference model based on the editing position; The position movement module is used to move the reference model to the target position and adjust the display perspective of the model to be edited in the graphical user interface according to the target position of the reference model.
10. An interactive device for a game model, characterized in that, The interactive device of the game model includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the interactive device of the game model to execute the interactive method of the game model as described in any one of claims 1-8.
11. A computer-readable storage medium storing instructions thereon, characterized in that, When the instruction is executed by the processor, it implements the interaction method of the game model as described in any one of claims 1-8.
Citation Information
Patent Citations
Construction method and device of virtual resource collection building, storage medium and terminal
CN109758768A
Game lens editing method, electronic equipment and storage medium
CN111494948A