Game model placement method and device, electronic equipment, medium and product

By detecting layout template operations in the graphical user interface and loading layout templates that include model tags and layout information, the problem of low efficiency in placing game models is solved, and batch and rapid placement of game models is achieved.

CN116196629BActive Publication Date: 2026-03-31SANDBOX NETWORK TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing technologies, the placement efficiency of game models is low, requiring users to manually select and place individual models, resulting in low efficiency in building game scenes.

Method used

By detecting the operation of the layout template in the graphical user interface, the layout template including multiple model tags and layout information is loaded, and the position and orientation of the target game model are determined based on the model tags, so as to realize the batch placement of game models.

Benefits of technology

It improves the efficiency of game model placement, eliminates the need for manual model selection, and enables fast and accurate model placement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116196629B_ABST
    Figure CN116196629B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of games, and discloses a game model placing method and device, electronic equipment, medium and product. The present application obtains a graphical user interface by executing a software application through a processor and rendering on a display, the graphical user interface at least includes a part of a game scene, including: adding a layout template selected by a first operation in the game scene when detecting the first operation for placing a pre-created layout template, the layout template including a plurality of model tags and layout information of the model tags; determining a target game model based on the model tags, and adding the target game model to the game scene according to the layout information; thereby accurately and quickly determining the game model through the model tags on the layout template, omitting the process of manually selecting the game model from a database, and realizing batch placing of the game model according to the layout information of the model tags, improving the efficiency of placing the game model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of game technology, and in particular to a method, apparatus, electronic device, medium, and product for placing game models. Background Technology

[0002] Game scenes are an important part of games.

[0003] Currently, game scenes are often constructed by manually placing pre-made models. For example, models of virtual objects such as tables, chairs, and beds are placed to create indoor scenes. However, this method of manually placing models requires users to first select the model and then place it in the appropriate position in the scene. Only one model can be placed at a time, which is inefficient. Summary of the Invention

[0004] In view of the above problems, the present invention is proposed to provide a method, apparatus, electronic device, medium and product for placing game models to overcome the above problems or at least partially solve the above problems.

[0005] To achieve the above objectives, the present invention provides a method for placing game models, wherein a processor executes a software application and renders it on a display to obtain a graphical user interface, wherein the graphical user interface includes at least a portion of the game scene, and the method includes:

[0006] When a first operation is detected that a pre-created layout template is placed for the game scene, the layout template selected by the first operation is added to the game scene. The layout template includes multiple model tags and layout information of the model tags.

[0007] Based on the model tags, the target game model is determined, and the target game model is loaded into the game scene according to the layout information.

[0008] Preferably, before the step of loading a layout template into the game scene when an operation for placing a layout template for the game scene is detected, the method further includes:

[0009] A preset blank template is displayed in the graphical user interface;

[0010] When a second operation is detected that a preset model label is placed on the blank template, the model label selected by the second operation is added to the blank template;

[0011] After placing multiple model labels on the blank template, the layout information of the model labels is determined based on the positions of the multiple model labels on the blank template;

[0012] A layout template is generated based on the multiple model tags and the layout information of the model tags.

[0013] Preferably, the step of determining the layout information of the model labels based on the positions of the plurality of model labels on the blank template includes:

[0014] The blank template is meshed to obtain mesh data;

[0015] Based on the grid data, determine the relative positional relationship of the model labels in the blank template;

[0016] Based on the relative positional relationship, the layout information of the model label is determined.

[0017] Preferably, after the step of adding the model label selected in the second operation to the blank template, the method further includes:

[0018] Based on the preset label placement relationship, determine the model labels that have a positional dependency with the model labels already added to the blank template, wherein the label placement relationship includes the positional dependency between multiple model labels;

[0019] For the model labels that exhibit location dependence, external recommendations are made.

[0020] When detecting the third operation of selecting a model label from the model labels with positional dependencies and adding it to the blank template, the model label selected by the third operation is added to the blank template.

[0021] Preferably, the step of adding the layout template selected by the first operation to the game scene when a first operation is detected for placing a pre-created layout template in the game scene includes:

[0022] When a fourth operation is detected that places a preset object in the game scene, a preset object is added to the game scene.

[0023] When a first operation is detected that a pre-created layout template is placed in the game scene, the layout template selected by the first operation is added to the game scene according to the position information of the preset object in the game scene.

[0024] Preferably, before the step of loading the layout template selected by the first operation in the game scene based on the position information of the preset object in the game scene, the method further includes:

[0025] Based on the size of the preset object, the layout template selected in the first operation is scaled so that the layout template selected in the first operation matches the size of the preset object.

[0026] Preferably, before scaling the layout template according to the size of the preset object, the method further includes:

[0027] When a stretching operation is detected on the preset object, the size of the preset object is adjusted in the game scene.

[0028] Preferably, the layout template includes grid data, and the method further includes:

[0029] When a scaling instruction is detected for a layout template in the game scene, the layout template is scaled, and during the scaling process, the relative positional relationship of the model labels is kept unchanged according to the grid data.

[0030] Preferably, the layout information includes the relative positional relationships of multiple model labels, and the step of loading the target game model into the game scene according to the layout information includes:

[0031] Based on the relative positional relationship and the position of the layout template in the game scene, the absolute position of the target game model in the game scene is determined;

[0032] Based on the absolute position, add the target game model to the game scene.

[0033] Furthermore, to achieve the above objectives, the present invention also provides a device for placing game models, which executes a software application through a processor and renders a graphical user interface on a display, wherein the graphical user interface includes at least a portion of the game scene, and the device includes:

[0034] The first loading module is used to add a layout template to the game scene when a placement layout template operation for the game scene is detected. The layout template includes multiple model tags and layout information of the model tags.

[0035] The second loading module is used to determine the target game model based on the model label and add the target game model to the game scene according to the layout information.

[0036] In addition, to achieve the above objectives, the present invention also provides an electronic device, the electronic device comprising: a memory, a processor, and a game model placement program stored in the memory and executable on the processor, wherein when the game model placement program is executed by the processor, it implements the steps of the game model placement method as described above.

[0037] Furthermore, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a program for placing game models, wherein when the program for placing game models is executed by a processor, it implements the steps of the game model placement method described above.

[0038] In addition, to achieve the above objectives, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the game model placement method as described above.

[0039] This invention proposes a method, apparatus, electronic device, medium, and product for placing game models. The invention uses a processor to execute software applications and render them on a display to obtain a graphical user interface (GUI). The GUI includes at least a portion of the game scene. The method involves: upon detecting a first operation that places a pre-created layout template for the game scene, adding the selected layout template to the game scene. The layout template includes multiple model tags and layout information for those tags. Based on the model tags, a target game model is determined, and the target game model is added to the game scene according to the layout information. This allows for accurate and rapid determination of game models through the model tags on the layout template, eliminating the need for manual selection of game models from a database, and enabling batch placement of game models based on the layout information of the model tags, thus improving the efficiency of model placement. Attached Figure Description

[0040] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention;

[0041] Figure 2 This is a flowchart illustrating the first embodiment of the game model placement method of the present invention;

[0042] Figure 3 This is a flowchart illustrating the second embodiment of the game model placement method of the present invention;

[0043] Figure 4 This is a schematic diagram of the first sub-process of the second embodiment of the game model placement method of the present invention;

[0044] Figure 5 This is a schematic diagram of the second sub-process of the second embodiment of the game model placement method of the present invention;

[0045] Figure 6 This is a flowchart illustrating the third embodiment of the game model placement method of the present invention;

[0046] Figure 7 This is a schematic diagram of the first process of the third embodiment of the game model placement method of the present invention;

[0047] Figure 8 This is a schematic diagram of the functional modules of the first embodiment of the device for placing game models according to the present invention.

[0048] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0049] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0050] like Figure 1 As shown, Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of the present invention.

[0051] The electronic device in this embodiment of the invention can be a mobile terminal or a server device.

[0052] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0053] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0054] like Figure 1 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a program for placing game models.

[0055] The operating system is a program that manages and controls electronic devices and software resources, and supports the operation of the network communication module, user interface module, game model placement program, and other programs or software; the network communication module is used to manage and control the network interface 1002; and the user interface module is used to manage and control the user interface 1003.

[0056] exist Figure 1 In the electronic device shown, the electronic device calls the program for placing game models stored in the memory 1005 through the processor 1001, and executes the operations in the various embodiments of the game model placement method described below.

[0057] Based on the above hardware structure, an embodiment of the method for placing game models according to the present invention is proposed.

[0058] This embodiment provides a method for placing game models. A processor executes a software application and renders it on a display to obtain a graphical user interface. The graphical user interface includes at least a portion of the game scene. (Refer to...) Figure 2 , Figure 2 This is a flowchart illustrating a first embodiment of the game model placement method of the present invention. The game model placement method may include:

[0059] Step S10: When a first operation is detected that a pre-created layout template is placed for the game scene, the layout template selected by the first operation is added to the game scene. The layout template includes multiple model tags and layout information of the model tags.

[0060] Layout templates are used to indicate the placement of game models within a game scene. Game models are 3D models used to construct game scenes, such as table models, chair models, bed / cabinet models, mechanical models, and weapon models. Layout templates can include multiple model tags and their layout information. Model tags are categorized labels created based on the game model's type.

[0061] Each model tag can be associated with a game model of the same category.

[0062] For example, indoor table game models (such as round tables, square tables, and desks) can be associated with the indoor table tag; bed game models such as bunk beds, wooden beds, and iron beds can be associated with the bed tag; chair game models such as wooden chairs and office chairs can be associated with the chair tag; and cup game models such as teacups, water cups, and wine glasses can be associated with the cup tag.

[0063] The layout template includes layout information tagged with model elements. This layout information may include, but is not limited to, the model's position, orientation, and scaling. For example, a bedroom layout template could include model tags for a table, chair, cabinet, bed, etc., along with the layout information for each model tag.

[0064] Multiple pre-created layout templates can be displayed in the graphical user interface, and when the first operation of placing a layout template in the game scene is detected, the layout template selected by the first operation can be added to the game scene.

[0065] As an example, when a drag-and-drop operation is detected, in which a layout template is selected and dragged and dropped into the game scene, the selected layout template can be added to the game scene.

[0066] Step S20: Based on the model label, determine the target game model, and load the target game model into the game scene according to the layout information.

[0067] After the layout template is loaded into the game scene, since each model tag is associated with a game model of the same category, the target game model can be determined based on the model tags on the layout template. Thus, the target game model can be added to the game scene based on the layout information on the layout template.

[0068] As an example, a game model can be randomly selected from the game models associated with the model label as the target game model.

[0069] This embodiment loads the selected layout template into the game scene when a first operation is detected that involves placing a pre-created layout template for the game scene. The layout template includes multiple model tags and layout information of the model tags. Based on the model tags, the target game model is determined and loaded into the game scene according to the layout information. Thus, the game model is accurately and quickly determined through the model tags on the layout template, eliminating the process of manually selecting game models from the database and realizing the batch placement of game models based on the layout information of the model tags, thereby improving the efficiency of game model placement.

[0070] Based on the first embodiment, a second embodiment of the method for placing game models according to the present invention is proposed, with reference to... Figure 4 In this embodiment, before step S10, the method may further include:

[0071] Step A10: Display a preset blank template in the graphical user interface.

[0072] The blank template can be a preset template for a game scene, which can be used to set model tags to generate a layout template. For example, a square blank template preset for an indoor scene, or a circular blank template set for a square.

[0073] Multiple blank templates can be preset, and when the user selects one, the selected blank template can be displayed in the graphical user interface.

[0074] Step A20: When a second operation is detected that a preset model label is placed on the blank template, the model label selected by the second operation is added to the blank template.

[0075] In this embodiment, multiple preset model labels can be displayed in the graphical user interface. When a second operation of placing preset model labels on a blank template is detected, the model label selected by the second operation can be determined and added to the blank template.

[0076] As an example, the second operation could be a drag-and-drop operation where the model label is selected and dragged and dropped into a blank template.

[0077] Furthermore, in one embodiment, reference is made to... Figure 4 After step A20, the following steps A21 to A23 may also be included:

[0078] Step A21: Based on the preset label placement relationship, determine the model labels that have a positional dependency with the model labels already added to the blank template, wherein the label placement relationship includes the positional dependency between multiple model labels.

[0079] The pre-defined label placement relationship refers to the positional dependency between multiple model labels. Positional dependency means that the placement of one model label depends on the placement of another model label.

[0080] In practical applications, the placement of game models is usually related to certain factors. For example, chairs are placed around a table, and cups are placed on top of the table.

[0081] In practice, the placement relationship between model labels can be constructed based on the placement relationship between different categories of game models through manual annotation or data mining.

[0082] Then, after adding the model labels selected in the second operation to the blank template, the model labels that have positional dependencies on the model labels that have been added to the blank template can be determined by using the label placement relationship.

[0083] As an example, the label placement relationship contains positional dependencies: desk label and chair label, trash can label, bookshelf label. If the model label already added to the blank template is the desk label, the label placement relationship can be used to determine that the model labels that are positionally dependent on the desk label include the chair label, trash can label, and bookshelf label.

[0084] Step A22: For the model labels that have location dependencies, make recommendations to external audiences.

[0085] After identifying model labels with location dependencies, these labels can be displayed in the graphical user interface and recommended to external users, allowing them to select one or more labels from the list.

[0086] Step A23: When detecting the third operation of selecting a model label from the model labels with positional dependencies and adding it to the blank template, the model label selected by the third operation is added to the blank template.

[0087] When a third operation is detected that selects a model label from the model labels that have positional dependencies and adds it to a blank template, one or more model labels selected by the third operation can be determined, and then the selected model labels can be added to the blank template.

[0088] As an example, the third operation could be a drag-and-drop operation where one or more model labels are selected and dragged and dropped into a blank template.

[0089] As another example, location-dependent model labels can include book, computer, pen holder, teacup, chair, trash can, and filing cabinet. When a drag-and-drop operation is detected to select a filing cabinet model label and place it on a blank template, the selected filing cabinet model label can be placed on the blank template.

[0090] In some embodiments, the placement of selected model labels on a blank template can be determined based on the positional dependencies between model labels in the label placement relationship, so that users do not need to spend too much time setting the position of model labels and improve the efficiency of placing model labels.

[0091] Step A30: After placing multiple model labels on the blank template, determine the layout information of the model labels based on their positions on the blank template.

[0092] Steps A20 to A23 can be repeated. After placing multiple model labels in the blank template, the layout information of each model label can be determined based on the position of each model label on the blank template.

[0093] Furthermore, in one embodiment, reference is made to... Figure 5 Step A30 may include sub-steps A31 to A33:

[0094] Sub-step A31: Mesh the blank template to obtain mesh data;

[0095] Sub-step A32: Based on the grid data, determine the relative positional relationship of the model labels in the blank template;

[0096] Sub-step A33: Based on the relative positional relationship, determine the layout information of the model label.

[0097] In this embodiment, the blank template can be gridded to obtain grid data. For example, the blank layout template can be divided into a 6×8 grid.

[0098] Then, based on the obtained grid data, the relative positions of each model label within the blank layout template can be determined. The relative position refers to the relative location of each model label on the blank layout template. Therefore, the layout information of the model labels can be determined based on this relative position.

[0099] Step A40: Generate a layout template based on the multiple model tags and the layout information of the model tags.

[0100] In this embodiment, a corresponding layout template can be generated based on multiple model tags on the blank template, the layout information of each model tag on the blank template, and the blank template itself, so that the generated layout template includes multiple model tags and the layout information of the model tags.

[0101] In this embodiment, a preset blank template is displayed in the graphical user interface. When a second operation of placing preset model labels on the blank template is detected, the model labels selected by the second operation are added to the blank template. After placing multiple model labels on the blank template, the layout information of the model labels is determined based on the positions of the multiple model labels on the blank template. A layout template is generated based on the multiple model labels and the layout information of the model labels. Thus, different types of layout templates are generated by placing model labels on the blank template, and game models are placed according to different types of layout templates to construct diversified game scenes and improve the diversity of game scenes.

[0102] Based on the first and second embodiments, a third embodiment of the game model placement method of the present invention is proposed. (Refer to...) Figure 6 In this embodiment, step S10 may include sub-steps S11 to S12:

[0103] Sub-step S11: When the fourth operation of placing a preset object in the game scene is detected, a preset object is added to the game scene.

[0104] The preset object is a virtual object that is used to indicate the position of the layout template in the game scene. It can be regarded as a component of the layout template. One preset object can correspond to one layout template or multiple layout templates.

[0105] As an example, the preset object can be a circular or quadrilateral object. For example, it could be a grid object. The size of the preset object can be stretched. The preset object can be placed in the game scene as a positioning point to determine the placement of the layout template within the game scene.

[0106] When the fourth operation of placing a preset object in the game scene is detected, the preset object selected by the fourth operation can be determined and added to the game scene.

[0107] As an example, the fourth operation could be a drag-and-drop operation where a preset object is selected and dragged and dropped into the game scene.

[0108] Sub-step S12: When a first operation is detected that a pre-created layout template is placed for the game scene, the layout template selected by the first operation is added to the game scene according to the position information of the preset object in the game scene.

[0109] In this embodiment, when a first operation is detected that a pre-created layout template is placed in the game scene, the layout template selected by the first operation can be determined, and then the layout template can be added to the position of the preset object in the game scene according to the position information of the preset object in the game scene.

[0110] In one embodiment, the center of the layout template can coincide with the center of a preset object to fix the layout template in the game scene.

[0111] Furthermore, in one embodiment, before sub-step S12, the following may also be included:

[0112] Step C10: Based on the size of the preset object, scale the layout template selected in the first operation so that the layout template selected in the first operation matches the size of the preset object.

[0113] In a specific implementation, before step S12, the layout template selected in the first operation can be scaled according to the size of the preset object to adjust the size of the layout template so that the adjusted layout template selected in the first operation matches the size of the preset object, that is, the size of the layout template is adapted to the area occupied by the preset object.

[0114] Furthermore, in one embodiment, before step C10, the method may further include: adjusting the size of the preset object in the game scene when a stretching operation is detected for the preset object.

[0115] In this embodiment, the preset object can support stretching operations in its length and width directions. When a stretching operation in the length or width direction of the preset object is detected, the size of the preset object can be adjusted in the game scene to modify the area occupied by the layout template in the game scene.

[0116] Furthermore, in one embodiment, the layout template may include grid data. The grid data can be generated by meshing a blank template during the layout template generation process, as detailed in sub-step A31 above, and will not be repeated here. The method may further include: scaling the layout template when a scaling instruction for the layout template in the game scene is detected, and during the scaling of the layout template, maintaining the relative positional relationship of the model labels unchanged according to the grid data.

[0117] In a specific implementation, step C10 scales the layout template selected in the first operation according to the size of the preset object, which can be achieved through a scaling command. Alternatively, the layout template can be scaled using a scaling command in response to a user's stretching operation.

[0118] In situations where possible, when a scaling instruction is detected for a layout template in the game scene, the layout template can be scaled based on the scaling instruction. During the scaling process, the relative positional relationship of the model labels can be kept unchanged by controlling the grid data, that is, the size of the grid changes proportionally during the scaling process.

[0119] As an example, before the layout template was scaled, the bed and table were 2 grids apart, and after the layout template was scaled, the bed and table were still 2 grids apart.

[0120] Furthermore, in one embodiment, reference is made to... Figure 7 The layout information may include the relative positional relationships of multiple model labels. The relative positional relationships are obtained from the mesh data during the process of generating the layout template. For details, please refer to sub-steps A31-A32 above, which will not be repeated here. Step S20 may include sub-steps S21-S22:

[0121] Sub-step S21: Based on the relative positional relationship and the position of the layout template in the game scene, determine the absolute position of the target game model in the game scene;

[0122] Sub-step S22: Load the target game model into the game scene according to the absolute position.

[0123] Absolute position refers to the target placement position of the game model in the game scene.

[0124] When the layout information includes the relative positions of multiple model labels, the absolute position of the target game model in the game scene can be determined based on the relative positions of the model labels and the position of the layout template in the game scene. Then, the target game model can be added to the game scene based on its absolute position.

[0125] In this embodiment, when a fourth operation is detected that places a preset object in the game scene, the preset object is loaded into the game scene; when a first operation is detected that places a pre-created layout template in the game scene, the layout template selected by the first operation is loaded into the game scene according to the position information of the preset object in the game scene; thereby, the layout template is placed in the game scene with the preset object as the anchor point, so as to quickly determine the placement position of the layout template in the game scene.

[0126] Based on the first, second, and third embodiments, a fourth embodiment of the method for placing game models according to the present invention is proposed. In this embodiment, after step S20, the method may further include:

[0127] Furthermore, after loading the target game model into the game scene, it also supports secondary adjustments to the game model already placed in the game scene, including but not limited to model reselection, orientation adjustment, and scaling.

[0128] For example: upon detecting an orientation adjustment operation for a game model in a game scene, determine the single or multiple game models corresponding to the orientation adjustment operation, and adjust the orientation of the single or multiple game models to the target orientation; wherein, the target orientation is the orientation corresponding to the orientation adjustment operation.

[0129] Specifically, it could be:

[0130] When an orientation adjustment operation is detected on a game model in the game scene, the game model whose orientation needs to be adjusted is identified, and a rotation control is displayed. This rotation control can be used to control the rotation of the game model whose orientation needs to be adjusted. The rotation control can include multiple preset rotation directions. For example, the rotation control can include a rotation direction around the x-axis, a rotation direction around the y-axis, and a rotation direction around the z-axis.

[0131] In response to the fifth operation applied to the rotation control, the game model whose orientation is to be adjusted is rotated according to the rotation direction selected by the fifth operation, so as to improve the flexibility and realism of the game scene.

[0132] Before rotating the game model whose orientation is to be adjusted according to the rotation direction selected in the fifth operation, the initial position and initial orientation of the game model whose orientation is to be adjusted can be saved so that after the orientation is adjusted, in response to the sixth operation acting on the game model whose orientation is to be adjusted, the game model whose orientation is to be adjusted can be controlled to return to the initial orientation and initial position.

[0133] In this embodiment, the method may further include:

[0134] In response to a reselection operation for a target game model already added to the game scene, other game models are determined based on the model tags targeted by the reselection operation, and the target game model is updated using the other game models.

[0135] In the specific implementation, when a reselection operation is detected for a target game model that has been added to the game scene, the model tag targeted by the reselection operation can be determined. Then, other game models other than the current target game model can be randomly selected from the game models associated with the model tag, the current target game model can be updated, and the model can be added to the game scene according to the layout information of the model tag.

[0136] After loading the above layout template into the game scene, each game model in the game scene supports model reselection and orientation adjustment, or model reselection and scaling, or model reselection, orientation adjustment, and scaling, thereby improving the flexibility of the game scene and enhancing its display effect.

[0137] This embodiment loads the layout template selected by the first operation into the game scene when a first operation is detected for placing a pre-created layout template for the game scene. The layout template includes multiple model tags and layout information of the model tags. Based on the model tags, the target game model is determined and loaded into the game scene according to the layout information. Thus, the layout template enables the batch placement of models, improving the efficiency of model placement.

[0138] The present invention also provides a device for placing game models. (See reference...) Figure 8 The device for placing game models according to the present invention may include:

[0139] The first loading module 10 is used to add the layout template selected by the first operation to the game scene when a first operation is detected for placing a pre-created layout template in the game scene. The layout template includes multiple model tags and layout information of the model tags.

[0140] The second loading module 20 is used to determine the target game model based on the model label, and add the target game model to the game scene according to the layout information.

[0141] Optionally, the device for placing the game model may further include:

[0142] The third module is used to display a preset blank template in the graphical user interface;

[0143] The fourth module is used to add the model label selected by the second operation to the blank template when a second operation of placing a preset model label on the blank template is detected.

[0144] The fifth module is used to determine the layout information of the model labels based on their positions on the blank template after multiple model labels are placed on the blank template.

[0145] The sixth module is used to generate a layout template based on the multiple model tags and the layout information of the model tags.

[0146] Optionally, the fifth module may further include:

[0147] A meshing unit is used to mesh the blank template to obtain mesh data;

[0148] The first determining unit is used to determine the relative positional relationship of the model labels in the blank template based on the grid data;

[0149] The second determining unit is used to determine the layout information of the model label based on the relative positional relationship.

[0150] Optionally, the fourth module may further include:

[0151] A dependency unit is used to determine, based on a preset label placement relationship, model labels that have a positional dependency with the game labels already added to the blank template, wherein the label placement relationship includes the positional dependency between multiple model labels;

[0152] The recommendation unit is used to make external recommendations for the model labels that have positional dependencies;

[0153] The selection unit is used to add the model label selected by the third operation to the blank template when detecting the third operation of selecting a model label from the model labels with positional dependencies and adding it to the blank template.

[0154] Optionally, the first loading module 10 may further include:

[0155] An adding unit is used to add a preset object to the game scene when a fourth operation of placing a preset object in the game scene is detected.

[0156] The position unit is used to load the layout template selected by the first operation into the game scene according to the position information of the preset object in the game scene when a first operation is detected for placing a pre-created layout template in the game scene.

[0157] Optionally, the first loading module 10 may further include:

[0158] The scaling unit is used to scale the layout template selected by the first operation according to the size of the preset object, so that the layout template selected by the first operation matches the size of the preset object.

[0159] Optionally, the first loading module 10 may further include:

[0160] A stretching unit is used to adjust the size of the preset object in the game scene when a stretching operation is detected for the preset object.

[0161] Optionally, the first loading module 10 may further include:

[0162] The control unit is configured to scale the layout template when a scaling instruction is detected for the layout template in the game scene, and to control the relative positional relationship of the model labels to remain unchanged during the scaling process of the layout template based on the grid data.

[0163] Optionally, the second loading module 20 may further include:

[0164] A relative unit is used to determine the absolute position of the target game model in the game scene based on the relative positional relationship and the position of the layout template in the game scene;

[0165] An absolute unit is used to load the target game model into the game scene based on the absolute position.

[0166] Optionally, the device for placing the game model may further include:

[0167] An orientation adjustment module is used to detect an orientation adjustment operation for a game model in a game scene, determine the single or multiple game models corresponding to the orientation adjustment operation, and adjust the orientation of the single or multiple game models to the target orientation; wherein, the target orientation is the orientation corresponding to the orientation adjustment operation.

[0168] The reselection module is used to respond to a reselection operation for a target game model that has been added to the game scene, determine other game models based on the model tags targeted by the reselection operation, and update the target game model using the other game models.

[0169] Furthermore, the present invention also provides a computer-readable storage medium storing a program for placing game models, wherein when the program for placing game models is executed by a processor, it implements the steps of the game model placement method described above.

[0170] The method implemented when the program for placing game models running on the processor is executed can be referred to in various embodiments of the game model placement method of the present invention, and will not be repeated here.

[0171] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0172] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0173] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause an electronic device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0174] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.

Claims

1. A method of game model placement, characterized by, The method comprises the following steps: displaying a preset blank template in the graphical user interface; adding the model tag selected by the second operation to the blank template when detecting the second operation of placing the preset model tag on the blank template; determining the model tag having a position dependency with the model tag added to the blank template according to a preset tag placement relationship, wherein the tag placement relationship comprises a placement position dependency between a plurality of model tags, and each model tag is associated with a game model of the same category; performing external-oriented recommendation for the model tag having the position dependency; adding the model tag selected by the third operation to the blank template when detecting the third operation of selecting the model tag from the model tag having the position dependency and adding the model tag to the blank template; determining the placement position of the selected model tag on the blank template based on the position dependency relationship between the model tags in the tag placement relationship when adding the model tag selected by the third operation to the blank template; determining layout information of the model tags according to positions of the model tags on the blank template after placing a plurality of model tags on the blank template; generating a layout template according to the plurality of model tags and the layout information of the model tags, comprising: performing gridization on the blank template to obtain grid data; determining a relative position relationship of the model tags in the blank template based on the grid data; and determining the layout information of the model tags based on the relative position relationship; adding the layout template selected by the first operation to the game scene when detecting the first operation of placing the pre-created layout template on the game scene, wherein the layout template comprises a plurality of model tags and layout information of the model tags; determining a target game model based on the model tags and adding the target game model to the game scene according to the layout information.

2. The method of claim 1, wherein, The step of adding the layout template selected by the first operation to the game scene when detecting the first operation of placing the pre-created layout template on the game scene comprises: adding a preset object to the game scene when detecting the fourth operation of placing the preset object on the game scene; adding the layout template selected by the first operation to the game scene according to position information of the preset object in the game scene when detecting the first operation of placing the pre-created layout template on the game scene.

3. The method of claim 2, wherein, The step of adding the layout template selected by the first operation to the game scene according to the position information of the preset object in the game scene before loading the layout template selected by the first operation to the game scene further comprises: scaling the layout template selected by the first operation according to a size of the preset object, so that the layout template selected by the first operation matches the size of the preset object.

4. The method of claim 3, wherein, The scaling the first operation selected layout template according to the size of the preset object further comprises: adjusting the size of the preset object in the game scene when detecting a stretching operation on the preset object.

5. The method of any one of claims 2-4, wherein, The layout template comprises grid data, and the method further comprises: scaling the layout template when detecting a scaling instruction on the layout template in the game scene, and keeping the relative position relationship of the model tags unchanged during the scaling of the layout template according to the grid data.

6. The method of any one of claims 1-4, wherein, The layout information comprises a relative position relationship of a plurality of model tags, and the step of loading the target game model into the game scene according to the layout information comprises: determining an absolute position of the target game model in the game scene based on the relative position relationship and a position of the layout template in the game scene; adding the target game model in the game scene according to the absolute position.

7. A device for placing game models, characterized in that, The processor executes a software application and renders a graphical user interface on the display, and the graphical user interface at least comprises a part of a game scene, and the device comprises: a third module configured to display a preset blank template in the graphical user interface; a fourth module configured to add a model tag selected by a second operation to the blank template when detecting that the second operation is performed to place a preset model tag on the blank template; The fourth module further comprises: a dependency unit configured to determine a model tag having a position dependency with a game tag that has been added to the blank template according to a preset tag placement relationship, wherein the tag placement relationship comprises a placement position dependency between a plurality of model tags, and each model tag is associated with a same type of game model; a recommendation unit configured to perform external-oriented recommendation on the model tag having the position dependency; a selection unit configured to add a model tag selected by a third operation to the blank template when detecting that the third operation is performed to select a model tag from the model tag having the position dependency and add the model tag to the blank template, and determine a placement position of the selected model tag on the blank template based on a position dependency relationship between the model tags in the tag placement relationship when adding the model tag selected by the third operation to the blank template; a fifth module configured to determine layout information of the model tags according to positions of the model tags on the blank template after the blank template places a plurality of model tags; a sixth module configured to generate a layout template according to the plurality of model tags and the layout information of the model tags, comprising: performing gridization on the blank template to obtain grid data; determining a relative position relationship of the model tags in the blank template based on the grid data; and determining the layout information of the model tags based on the relative position relationship. The first loading module is configured to add a layout template in the game scene when detecting a layout template operation for the game scene, the layout template comprising a plurality of model tags and layout information of the model tags. The second loading module is configured to determine a target game model based on the model tags, and add the target game model into the game scene according to the layout information.

8. An electronic device, comprising: The electronic device comprises a memory, a processor, and a program or instructions stored in the memory and executable on the processor, and the program or instructions are executed by the processor to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a program, and the program is executed by the processor to implement the steps of the method according to any one of claims 1 to 6.

10. A computer program product, characterised in that, The computer program is executed by the processor to implement the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent placement system of accessory for indoor design

    CN108563841A

  • Method and device for determining placement position of game model and electronic equipment

    CN108744520A