Scene generation method and device

Through a scene generation method, by receiving scene generation requests and determining scene templates, physical components are generated, and the problem of inefficient three-dimensional scene generation in the prior art is solved, and efficient design and rapid production are achieved.

CN120012345APending Publication Date: 2025-05-16SHANG FEI ZHI NENG JI SHU YOU XIAN GONG SI

Patent Information

Application Number
CN202411811938.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the three-dimensional scene generation efficiency is inefficient, and it is difficult to quickly iterate the design scheme and simulate the production state in real time, and it cannot meet the needs of rapid iteration, efficient collaboration and intelligent decision-making.

Method used

Provide a scene generation method, by receiving scene generation requests, determining the corresponding scene template, and generating entity components in the template to obtain the target scene. This method includes receiving scene generation requests, determining scene templates, generating entity components and adjusting component locations, and supporting component binding and scene updates.

Benefits of technology

It improves design efficiency, reduces production costs, realizes rapid production and efficient management of industrial scenarios, and meets the diversified needs of different users and projects in various situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012345A_ABST
    Figure CN120012345A_ABST
Patent Text Reader

Abstract

The invention provides a scene generation method and device, and the method comprises the steps: receiving a scene generation request which comprises a scene selection instruction and a component generation instruction; determining a corresponding scene template according to the scene selection instruction; and in response to the component generation instruction, generating a corresponding entity component in the scene template to obtain a target scene. According to the method, the scene generation request is received to quickly respond and automatically drive scene generation, so that the design efficiency is improved, the production cost is reduced, the most coincident basic scene is further selected from the rich and diversified scene template library according to the scene selection instruction, the scene content is deeply customized through the component generation instruction, and the user experience is improved. Therefore, diversified requirements of different users and different projects in various situations are met, and rapid production and efficient management of industrial scenes are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual simulation technology, and in particular to a scene generation method and device. Background Art

[0002] In the manufacturing industry, in areas such as industrial plants and production lines, the design, planning, verification and optimization mainly rely on two-dimensional drawings and drawing tools for plane layout and simple three-dimensional modeling.

[0003] However, although these tools provide basic geometric information and meet design needs to a certain extent, due to the limited expression of two-dimensional design drawings, they cannot intuitively display key information such as the three-dimensional spatial layout, equipment configuration, logistics path, and personnel flow of the factory, making it difficult to fully understand and evaluate the actual effect of the design plan; at the same time, when dealing with complex three-dimensional scene editing, these tools have shortcomings such as cumbersome operation, low editing efficiency, difficulty in quickly iterating design plans, and inability to simulate the operation of the factory under different production conditions in real time. In addition, with the continuous advancement of manufacturing technology and the increasing complexity of production needs, traditional two-dimensional design methods can no longer meet the needs of rapid iteration, efficient collaboration, and intelligent decision-making. Summary of the invention

[0004] The present invention provides a scene generation method and device, which are used to solve the defect of low efficiency of three-dimensional scene generation in the prior art, improve design efficiency and reduce production cost.

[0005] The present invention provides a scene generation method, comprising: receiving a scene generation request, the scene generation request comprising a scene selection instruction and a component generation instruction; determining a corresponding scene template according to the scene selection instruction; responding to the component generation instruction, generating a corresponding entity component in the scene template, and obtaining a target scene.

[0006] According to a scene generation method provided by the present invention, in response to a component generation instruction, a corresponding entity component is generated in a scene template, and before a target scene is obtained, the method includes: receiving a component selection request; based on the component selection request, determining the entity component to be generated, and based on the entity component to be generated, selecting the corresponding three-dimensional entity model from a model list; wherein the model list is first created based on the three-dimensional entity model corresponding to the entity component.

[0007] According to a scene generation method provided by the present invention, in response to a component generation instruction, a corresponding entity component is generated in a scene template to obtain a target scene, including: parsing the component generation instruction to obtain the model position of the entity component to be generated; according to the model position, loading the corresponding three-dimensional entity model selected from the model list into the scene template to generate the corresponding entity component in the scene template to obtain the target scene.

[0008] According to a scene generation method provided by the present invention, after obtaining a target scene, the method includes: receiving a component adjustment request, the component adjustment request includes a component adjustment instruction and a position adjustment instruction; responding to the component adjustment instruction, determining an entity component to be adjusted in the target scene; responding to the position adjustment instruction, adjusting the position of the entity component to be adjusted.

[0009] According to a scene generation method provided by the present invention, after obtaining the target scene, it also includes: receiving a component binding request, the component binding request includes a component binding instruction, an entity selection instruction and an entity binding instruction; responding to the component binding instruction, determining the entity component to be bound in the target scene, and displaying a list of entity assets of the entity component to be bound; wherein the list of entity assets is first created based on the entity assets of the corresponding scene; responding to the entity selection instruction, determining the entity to be bound in the list of entity assets; responding to the entity binding instruction, binding the entity to be bound and the entity component to be bound.

[0010] According to a scene generation method provided by the present invention, after obtaining the target scene, it also includes: receiving a scene update request, the scene update request includes a scene update instruction and a component update instruction; responding to the scene update instruction, determining the target scene to be updated; responding to the component update instruction, updating the corresponding entity component in the target scene to be updated, and the update includes at least one of component replacement and position update.

[0011] According to a scene generation method provided by the present invention, before determining the corresponding scene template according to the scene selection instruction, the method includes: receiving a scene creation request, the scene creation request includes a scene creation instruction and a scene generation instruction; responding to the scene creation instruction to generate a scene to be created; parsing the scene generation instruction to obtain a viewing angle and a coordinate origin; aligning the coordinate origin with the coordinate system of the scene to be created to obtain an initial scene; and determining the scene area of ​​the initial scene according to the viewing angle to obtain a scene template.

[0012] The present invention also provides a scene generation device, including: a request receiving module, receiving a scene generation request, the scene generation request including a scene selection instruction and a component generation instruction; a scene determination module, determining a corresponding scene template according to the scene selection instruction; a scene generation module, responding to the component generation instruction, generating a corresponding entity component in the scene template to obtain a target scene.

[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, any of the scene generation methods described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the scene generation method described in any one of the above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the scene generation method described in any one of the above is implemented.

[0016] The scene generation method and device provided by the present invention receive scene generation requests to quickly respond and automatically drive scene generation, so as to improve design efficiency and reduce production costs, and further select the most suitable basic scene from a rich and diverse scene template library according to the scene selection instructions, and deeply customize the scene content through component generation instructions, so as to meet the diverse needs of different users and different projects in various situations, and realize the rapid production and efficient management of industrial scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is one of the flow charts of the scene generation method provided by the present invention; Figure 2 This is the second flow chart of the scene generation method provided by the present invention; Figure 3 It is a structural schematic diagram of the scene generation device provided by the present invention; Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] Figure 1 is a flow chart of the scene generation method provided by the present invention, such as Figure 1 As shown, the method includes: S11, receiving a scene generation request, where the scene generation request includes a scene selection instruction and a component generation instruction; S12, determining a corresponding scene template according to the scene selection instruction; S13, responding to the component generation instruction, generating the corresponding entity component in the scene template to obtain the target scene.

[0021] It should be noted that the step numbers "S1N" in this manual do not represent the order of the scene generation method. Figure 2 The scene generation method of the present invention is described.

[0022] Step S11, receiving a scene generation request, the scene generation request includes a scene selection instruction and a component generation instruction.

[0023] In an alternative embodiment, reference Figure 2 Before determining the corresponding scene template according to the scene selection instruction, it includes: receiving a scene creation request, the scene creation request includes a scene creation instruction and a scene generation instruction; responding to the scene creation instruction to generate a scene to be created; parsing the scene generation instruction to obtain a viewing angle and a coordinate origin; aligning the coordinate origin with the coordinate system of the scene to be created to obtain an initial scene; determining the scene area of ​​the initial scene according to the viewing angle to obtain a scene template.

[0024] It should be noted that by aligning the coordinate origin with the coordinate system of the scene to be created, the starting point of the scene to be created is set to the specified coordinate origin. When the corresponding components are subsequently generated in the scene, this point is used as a reference to achieve accurate positioning and unified standardization of the component layout in the scene space.

[0025] In addition, after obtaining the scene template, it includes: saving the scene template; determining whether the scene template is saved successfully, if successful, ending; otherwise, receiving the scene creation request again to re-acquire the scene template based on the above method, which will not be repeated here.

[0026] In addition, when saving the scene template, it includes: generating a template name; and storing the template name as a parameter of the scene template.

[0027] Furthermore, when saving the scene template, it also includes: generating a scene tag; and storing the scene tag as a parameter of the scene template.

[0028] In addition, after the scene template is saved, it includes: generating a scene creation statement. Accordingly, determining whether the scene template is saved successfully includes: determining whether there is a scene creation statement, if there is, the scene template is saved successfully.

[0029] Step S12: determining a corresponding scene template according to the scene selection instruction.

[0030] In this embodiment, the corresponding scene template is determined according to the scene selection instruction, including: parsing the scene selection instruction to obtain a scene identifier; searching a database or repository for storing scene templates according to the scene identifier to obtain the scene template; or parsing the scene selection instruction to obtain scene key features; performing a preliminary screening of the database or repository for storing scene templates according to the scene key features to obtain screening results; based on the screening results, performing similarity matching between the screened scene templates and the scene key features, and scoring the degree of matching; sorting the screened scene templates according to the scoring results, and selecting the scene template with the highest score according to the sorted list to obtain the scene template corresponding to the scene selection instruction.

[0031] It should be noted that the scene identifier can be a scene name obtained based on the creation of the corresponding scene template or a scene unique identifier assigned or specified based on a preset identifier assignment rule. The preset identifier assignment rule can be a randomly assigned character or an identifier assignment rule specified based on design requirements. No further limitation is made here. In addition, the scene key features can be read based on the scene selection instruction. For example, the scene selection instruction is to select the night scene of industrial scene A. Accordingly, common key features include industrial scene A and night scene. This is only an example and will not be further described.

[0032] Further, after determining the corresponding scene template, it includes: checking whether the resources required by the scene template are complete, and loading the scene template based on the completeness. It should be added that the resources can be model files, script files, etc., which are not further limited here according to the specific scene missing. In addition, if the required resources do exist, they can be obtained from the backup storage location or the network resource library to successfully load the corresponding scene.

[0033] In an optional embodiment, before determining the corresponding scene template according to the scene selection instruction, it includes: determining whether the corresponding scene template exists, if so, determining the corresponding scene template according to the scene selection instruction, otherwise, creating a new corresponding scene template.

[0034] In an optional embodiment, in response to a component generation instruction, a corresponding entity component is generated in a scene template, and before a target scene is obtained, it includes: receiving a component selection request; based on the component selection request, determining the entity component to be generated, and based on the entity component to be generated, selecting a corresponding three-dimensional entity model from a model list; wherein the model list is first created based on the three-dimensional entity model corresponding to the entity component.

[0035] It should be noted that the model list can be a DataTable table, so that after determining the scene template, based on the components to be generated, the three-dimensional entity model of the entity component to be generated can be quickly found from the DataTable table to quickly load the three-dimensional entity model into the corresponding scene template.

[0036] Step S13, responding to the component generation instruction, generating the corresponding entity component in the scene template to obtain the target scene.

[0037] In this embodiment, in response to a component generation instruction, a corresponding entity component is generated in a scene template to obtain a target scene, including: parsing the component generation instruction to obtain the model position of the entity component to be generated; according to the model position, loading the corresponding three-dimensional entity model selected from the model list into the scene template to generate the corresponding entity component in the scene template to obtain the target scene.

[0038] It should be noted that the model position can be a randomly selected position based on user needs or within a certain range of the position to be placed of the entity component relative to the scene template. By initially placing the entity component in the scene template, and based on this preliminary presented scene, further examining the relationship between the various entity components and the overall effect, and then gradually improving the scene layout through subsequent fine-tuning, the actual effect of the design solution can be more intuitively understood and evaluated, which enhances the user experience and greatly enhances the autonomy and exploratory nature of scene construction.

[0039] Specifically, after obtaining the target scene, it includes: receiving a component adjustment request, the component adjustment request includes a component adjustment instruction and a position adjustment instruction; responding to the component adjustment instruction, determining the entity component to be adjusted in the target scene; responding to the position adjustment instruction, adjusting the position of the entity component to be adjusted.

[0040] It should be noted that by receiving component adjustment requests and responding to them, the position of the entity component can be further refined, and the entity component can be accurately embedded into the predetermined spatial structure of the scene template, ensuring that the layout of each entity component in the scene meets the pre-designed logic and aesthetic requirements, and effectively maintaining the overall spatial order of the scene; at the same time, by responding to position adjustment instructions, the target scene can be flexibly adapted according to user needs, so that the target scene is no longer a fixed pattern, so as to flexibly respond to the needs of scene optimization or modification, greatly reducing the cost and complexity of scene updates.

[0041] In another optional embodiment, the DataTable table includes a three-dimensional entity model of at least one entity, as well as a three-dimensional entity model identifier and an entity position, and responds to a component generation instruction to generate a corresponding entity component in a scene template to obtain a target scene, including: responding to a component generation instruction, loading a corresponding three-dimensional entity model selected from a model list to a corresponding entity position to generate a corresponding entity component in a scene template to obtain a target scene. It is worth noting that after obtaining the target scene, a component adjustment request may also be received and responded to to further adjust the entity component position, as described above, which will not be repeated here.

[0042] In an optional embodiment, after obtaining the target scene, it further includes: saving the target scene and generating a scene editing statement. Correspondingly, after saving the target scene, it includes: determining whether there is a scene editing statement, if not, reselecting the corresponding three-dimensional entity model from the model list and loading it into the corresponding scene template; otherwise, determining whether to continue editing the current scene template, if so, continuing to reselect the corresponding three-dimensional entity model from the model list and loading it into the corresponding scene template, otherwise, ending.

[0043] Furthermore, after saving the target scene, the method includes: associating the scene editing statement with the scene creating statement.

[0044] In an optional embodiment, after obtaining the target scene, it also includes: receiving a component binding request, the component binding request includes a component binding instruction, an entity selection instruction and an entity binding instruction; responding to the component binding instruction, determining the entity component to be bound in the target scene, and displaying the entity asset list of the entity component to be bound; wherein the entity asset list is previously created based on the entity assets of the corresponding scene; responding to the entity selection instruction, determining the entity to be bound in the entity asset list; responding to the entity binding instruction, binding the entity to be bound and the entity component to be bound. It should be noted that by receiving the component binding request and responding, the corresponding entity object can be directly selected and bound from the entity asset list, thereby simplifying the binding process and improving work efficiency. In addition, when responding to the entity selection instruction, if more than one entity to be bound is determined, batch binding of multiple entity objects can be achieved when responding to the entity binding instruction, further improving work efficiency.

[0045] Furthermore, responding to the entity selection instruction and determining the entity to be bound in the entity asset list includes: parsing the entity selection instruction to obtain the entity category and the entity asset number; based on the entity category, accessing the entity asset list to obtain a preliminary access result; based on the entity asset number, further filtering the preliminary access result to obtain the entity to be bound; or, parsing the entity selection instruction to obtain the entity asset number; based on the entity asset number, searching the entity asset list to obtain the entity to be bound.

[0046] In an optional embodiment, after responding to the entity binding instruction and binding the entity to be bound and the entity component to be bound, it also includes: saving the corresponding target scene and generating a scene binding statement. Correspondingly, after saving the corresponding target scene, it includes: determining whether there is a scene binding statement, if not, re-receiving and responding to the component binding request; otherwise, determining whether to continue editing the entity component in the current target scene, if so, continue to receive and respond to the component binding request, otherwise, end.

[0047] Furthermore, after saving the corresponding target scene, the method includes: associating the scene binding statement with the scene editing statement. Accordingly, after associating the scene binding statement with the scene editing statement, the method includes: calling the association statement to obtain the corresponding scene, the scene includes an entity list and a model list, the model list includes the three-dimensional entity model in the scene, and the entity list includes the name, location, room, department and affiliation of the three-dimensional entity model in the scene, so as to quickly view and manage the entity objects in the scene, easily manage and maintain the entity objects in the industrial scene, and improve management efficiency.

[0048] In an optional embodiment, after obtaining the target scene, it also includes: receiving a scene update request, the scene update request includes a scene update instruction and a component update instruction; responding to the scene update instruction, determining the target scene to be updated; responding to the component update instruction, updating the corresponding entity component in the target scene to be updated, the update includes at least one of component replacement and position update. It should be added that after determining the target scene to be updated, the corresponding scene can be obtained based on the associated statement of calling the target scene to be updated.

[0049] Furthermore, in response to the component update instruction, the corresponding entity component in the target scene to be updated is updated, including: parsing the component update instruction to obtain the entity component to be replaced, the replacement entity component and the position of the replacement entity component; according to the entity component to be replaced and the replacement entity component, using the replacement entity component to replace the entity component, and adjusting the position of the replaced entity component according to the position of the replacement entity component.

[0050] In an optional embodiment, a component update instruction includes a component update sub-instruction, a component selection sub-instruction and a component update sub-instruction. In response to the component update instruction, a corresponding entity component in a target scene to be updated is updated, including: in response to the component update sub-instruction, a replacement component list of the entity component to be replaced is displayed; wherein the replacement component list includes at least one style of replacement entity components; in response to the component selection sub-instruction, a replacement entity component in the replacement component list is determined to replace the entity component to be replaced; in response to the component update sub-instruction, the entity component to be replaced is replaced with the replacement entity component.

[0051] Furthermore, in response to the component update sub-instruction, the entity component to be replaced is replaced with the replacement entity component, and the position of the replaced component can also be adjusted. For details, please refer to the above-mentioned method of receiving and responding to component adjustment requests, which will not be repeated here.

[0052] To summarize, the embodiments of the present invention receive scene generation requests to quickly respond to and automatically drive scene generation, so as to improve design efficiency and reduce production costs, and further select the most suitable basic scene from a rich and diverse scene template library according to the scene selection instructions, and deeply customize the scene content through component generation instructions, so as to meet the diverse needs of different users and different projects in various situations, and realize the rapid production and efficient management of industrial scenes.

[0053] The scene generation device provided by the present invention is described below. The scene generation device described below and the scene generation method described above can be referenced to each other.

[0054] Figure 3 A schematic structural diagram of a scene generation device is shown, the device comprising: A request receiving module 31 receives a scene generation request, where the scene generation request includes a scene selection instruction and a component generation instruction; A scene determination module 32 determines a corresponding scene template according to the scene selection instruction; The scene generation module 33 responds to the component generation instruction, generates the corresponding entity component in the scene template, and obtains the target scene.

[0055] In an optional embodiment, the device also includes a scene creation module, which is used to receive a scene creation request before determining the corresponding scene template according to the scene selection instruction, the scene creation request including a scene creation instruction and a scene generation instruction; respond to the scene creation instruction to generate a scene to be created; parse the scene generation instruction to obtain a viewing angle and a coordinate origin; align the coordinate origin with the coordinate system of the scene to be created to obtain an initial scene; determine the scene area of ​​the initial scene according to the viewing angle to obtain a scene template.

[0056] In addition, the device also includes: a template saving module, which saves the scene template after obtaining the scene template; a first judgment module, which determines whether the scene template is saved successfully, and ends if successful; otherwise, the scene creation module is reused to receive the scene creation request to re-acquire the scene template based on the above method, which will not be repeated here.

[0057] In addition, when saving a scene template, the template saving module is also used to: generate a template name; and store the template name as a parameter of the scene template.

[0058] Furthermore, when saving the scene template, the template saving module is also used to: generate a scene tag; and store the scene tag as a parameter of the scene template.

[0059] In addition, the device further comprises: a first sentence generating module, which generates a scene creation sentence after saving the scene template. Accordingly, the first judging module is used to: determine whether there is a scene creation sentence, and if so, the scene template is saved successfully.

[0060] The scene determination module 32 includes: a first instruction parsing unit, which parses the scene selection instruction to obtain a scene identifier; a template search unit, which searches a database or repository for storing scene templates according to the scene identifier to obtain a scene template; or, a first instruction parsing unit, which parses the scene selection instruction to obtain a scene key feature; a first screening unit, which performs a preliminary screening of the database or repository for storing scene templates according to the scene key feature to obtain a screening result; a matching unit, which performs similarity matching between the screened scene templates and the scene key feature based on the screening result, and scores the degree of matching; a selection unit, which sorts the screened scene templates according to the scoring result, and selects the scene template with the highest score according to the sorted list to obtain the scene template corresponding to the scene selection instruction.

[0061] Furthermore, the scene determination module 32 further includes: a template loading unit, which checks whether the resources required by the scene template are complete after determining the corresponding scene template, and loads the scene template based on the completeness.

[0062] In an optional embodiment, the device includes: a template judgment module, which determines whether a corresponding scene template exists before determining the corresponding scene template according to the scene selection instruction. If so, it determines the corresponding scene template according to the scene selection instruction; otherwise, it creates a new corresponding scene template.

[0063] In an optional embodiment, the device also includes a component selection module, which is used to receive a component selection request before generating a corresponding entity component in a scene template in response to a component generation instruction and obtaining a target scene; based on the component selection request, determine the entity component to be generated, and based on the entity component to be generated, select the corresponding three-dimensional entity model from a model list; wherein the model list is first created based on the three-dimensional entity model corresponding to the entity component.

[0064] The scene generation module 33 includes: a second instruction parsing unit, which parses the component generation instruction to obtain the model position of the entity component to be generated; a scene generation unit, which loads the corresponding three-dimensional entity model selected from the model list into the scene template according to the model position, so as to generate the corresponding entity component in the scene template and obtain the target scene.

[0065] Furthermore, the scene generation module 33 includes: an adjustment request receiving unit, which receives a component adjustment request after obtaining the target scene, and the component adjustment request includes a component adjustment instruction and a position adjustment instruction; an adjustment component determination unit, which responds to the component adjustment instruction and determines the entity component to be adjusted in the target scene; and a component adjustment unit, which responds to the position adjustment instruction and adjusts the position of the entity component to be adjusted.

[0066] In another optional embodiment, the model list is a DataTable table, which includes a three-dimensional entity model of at least one entity, a three-dimensional entity model identifier and an entity position. The scene generation module 33 includes: a scene generation unit, which responds to a component generation instruction and loads the corresponding three-dimensional entity model selected from the model list to the corresponding entity position to generate a corresponding entity component in the scene template to obtain a target scene. It is worth noting that after obtaining the target scene, a component adjustment request can also be received and responded to further adjust the entity component position. For details, please refer to the above description, which will not be repeated here.

[0067] In an optional embodiment, the device further includes: a second statement generation module, which saves the target scene and generates a scene editing statement after obtaining the target scene. Correspondingly, the device further includes: a second judgment module, which determines whether there is a scene editing statement after saving the target scene, and if not, reselects the corresponding three-dimensional entity model from the model list and loads it into the corresponding scene template; otherwise, determines whether to continue editing the current scene template, and if so, continues to reselect the corresponding three-dimensional entity model from the model list and loads it into the corresponding scene template, otherwise, ends.

[0068] Furthermore, the device also includes: a first associating module, which associates the scene editing statement with the scene creating statement after saving the target scene.

[0069] In an optional embodiment, the device further includes a component binding module, which is used to receive a component binding request after obtaining the target scene, the component binding request including a component binding instruction, an entity selection instruction and an entity binding instruction; respond to the component binding instruction, determine the entity component to be bound in the target scene, and display a list of entity assets of the entity component to be bound; wherein the list of entity assets is previously created based on the entity assets of the corresponding scene; respond to the entity selection instruction, determine the entity to be bound in the entity asset list; respond to the entity binding instruction, bind the entity to be bound and the entity component to be bound.

[0070] Furthermore, the component binding module includes: a third instruction parsing unit, which parses the entity selection instruction to obtain the entity category and the entity asset number; an asset access unit, which accesses the entity asset list based on the entity category to obtain a preliminary access result; a result screening unit, which further screens the preliminary access result based on the entity asset number to obtain the entity to be bound; or, the third instruction parsing unit, which parses the entity selection instruction to obtain the entity asset number; and an asset search unit, which searches the entity asset list based on the entity asset number to obtain the entity to be bound.

[0071] In an optional embodiment, the device further includes: a third statement generation module, which, in response to the entity binding instruction, binds the entity to be bound and the entity component to be bound, saves the corresponding target scene and generates a scene binding statement. Correspondingly, the device further includes: a third judgment module, which, after saving the corresponding target scene, determines whether there is a scene binding statement, and if not, re-receives and responds to the component binding request; otherwise, determines whether to continue editing the entity component in the current target scene, and if so, continues to receive and respond to the component binding request, otherwise, ends.

[0072] Furthermore, the device also includes: a second association module, which associates the scene binding statement with the scene editing statement after saving the corresponding target scene. Correspondingly, the device also includes: a scene calling module, which calls the association statement after associating the scene binding statement with the scene editing statement to obtain the corresponding scene, the scene includes an entity list and a model list, the model list includes the three-dimensional entity model in the scene, and the entity list includes the name, location, room, department and affiliation of the three-dimensional entity model in the scene, so as to quickly view and manage the entity objects in the scene, easily manage and maintain the entity objects in the industrial scene, and improve management efficiency.

[0073] In an optional embodiment, the device also includes a scene update module, which is used to receive a scene update request after obtaining the target scene, the scene update request including a scene update instruction and a component update instruction; respond to the scene update instruction to determine the target scene to be updated; respond to the component update instruction to update the corresponding entity component in the target scene to be updated, and the update includes at least one of component replacement and position update.

[0074] Furthermore, the scene update module includes: a fourth instruction parsing unit, which parses the component update instruction to obtain the entity component to be replaced, the replacement entity component and the position of the replacement entity component; an update unit, which replaces the entity component to be replaced with the replacement entity component according to the entity component to be replaced and the replacement entity component, and adjusts the position of the replaced entity component according to the position of the replacement entity component.

[0075] In an optional embodiment, the component update instruction includes a component update sub-instruction, a component selection sub-instruction and a component update sub-instruction, and the update unit is used to: respond to the component update sub-instruction, display a replacement component list of the entity component to be replaced; wherein the replacement component list includes at least one style of replacement entity components; respond to the component selection sub-instruction, determine the replacement entity component in the replacement component list for replacing the entity component to be replaced; respond to the component update sub-instruction, replace the entity component to be replaced with the replacement entity component.

[0076] Furthermore, in response to the component update sub-instruction, the entity component to be replaced is replaced with the replacement entity component, and the position of the replaced component can also be adjusted. For details, please refer to the above-mentioned method of receiving and responding to component adjustment requests, which will not be repeated here.

[0077] To summarize, the embodiment of the present invention receives scene generation requests through a request receiving module to quickly respond and automatically drive scene generation, so as to improve design efficiency and reduce production costs, and further selects the most suitable basic scene from a rich and diverse scene template library according to scene selection instructions through a scene determination module, and deeply customizes the scene content through a scene generation module in response to component generation instructions, thereby meeting the diverse needs of different users and different projects in various scenarios, and realizing rapid production and efficient management of industrial scenes.

[0078] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the scene generation method, which includes: receiving a scene generation request, the scene generation request includes a scene selection instruction and a component generation instruction; determining a corresponding scene template according to the scene selection instruction; and generating a corresponding entity component in the scene template in response to the component generation instruction to obtain a target scene.

[0079] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0080] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the scene generation method provided by the above methods, and the method includes: receiving a scene generation request, the scene generation request includes a scene selection instruction and a component generation instruction; determining a corresponding scene template according to the scene selection instruction; responding to the component generation instruction, generating a corresponding entity component in the scene template to obtain a target scene.

[0081] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the scene generation method provided by the above-mentioned methods, the method comprising: receiving a scene generation request, the scene generation request comprising a scene selection instruction and a component generation instruction; determining a corresponding scene template according to the scene selection instruction; and generating a corresponding entity component in the scene template in response to the component generation instruction to obtain a target scene.

[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0084] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A scene generation method, characterized in that: include: Receiving a scene generation request, wherein the scene generation request includes a scene selection instruction and a component generation instruction; Determine a corresponding scene template according to the scene selection instruction; In response to the component generation instruction, a corresponding entity component is generated in the scene template to obtain a target scene.

2. The scene generation method according to claim 1, characterized in that: In response to the component generation instruction, generating a corresponding entity component in the scene template, before obtaining the target scene, includes: receiving a component selection request; Based on the component selection request, determine the entity component to be generated, and based on the entity component to be generated, select the corresponding three-dimensional entity model from the model list; wherein the model list is previously created based on the three-dimensional entity model corresponding to the entity component.

3. The scene generation method according to claim 2, characterized in that: In response to the component generation instruction, a corresponding entity component is generated in the scene template to obtain a target scene, including: Parsing the component generation instruction to obtain the model location of the entity component to be generated; According to the model position, the corresponding three-dimensional entity model selected from the model list is loaded into the scene template to generate a corresponding entity component in the scene template to obtain a target scene.

4. The scene generation method according to claim 3, characterized in that: After obtaining the target scene, the following steps are included: receiving a component adjustment request, wherein the component adjustment request includes a component adjustment instruction and a position adjustment instruction; In response to the component adjustment instruction, determining the entity component to be adjusted in the target scene; In response to the position adjustment instruction, the position of the entity component to be adjusted is adjusted.

5. The scene generation method according to claim 3, characterized in that: After obtaining the target scene, the method further includes: receiving a component binding request, wherein the component binding request includes a component binding instruction, an entity selection instruction, and an entity binding instruction; In response to the component binding instruction, determine the entity component to be bound in the target scene, and display the entity asset list of the entity component to be bound; wherein the entity asset list is previously created based on the entity assets of the corresponding scene; In response to the entity selection instruction, determining an entity to be bound in the entity asset list; In response to the entity binding instruction, the to-be-bound entity and the to-be-bound entity component are bound.

6. The scene generation method according to claim 1, characterized in that: After obtaining the target scene, the method further includes: receiving a scene update request, wherein the scene update request includes a scene update instruction and a component update instruction; In response to the scene update instruction, determine a target scene to be updated; In response to the component update instruction, the corresponding entity component in the target scene to be updated is updated, and the update includes at least one of component replacement and position update.

7. The scene generation method according to claim 1, characterized in that: Before determining the corresponding scene template according to the scene selection instruction, the method includes: Receiving a scene creation request, wherein the scene creation request includes a scene creation instruction and a scene generation instruction; In response to the scene creation instruction, a scene to be created is generated; Parsing the scene generation instruction to obtain the viewing angle and the coordinate origin; Aligning the coordinate origin with the coordinate system of the scene to be created to obtain an initial scene; According to the viewing angle, a scene area of ​​the initial scene is determined to obtain a scene template.

8. A scene generation device, characterized in that: include: A request receiving module receives a scene generation request, wherein the scene generation request includes a scene selection instruction and a component generation instruction; A scene determination module determines a corresponding scene template according to the scene selection instruction; The scene generation module responds to the component generation instruction and generates corresponding entity components in the scene template to obtain the target scene.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the scene generation method according to any one of claims 1 to 7 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the scene generation method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Element placement method, device and equipment of three-dimensional scene editor, and storage medium

    CN111739171A

  • Unreal Engine-based digital twinborn real-time weather scene construction method and system

    CN114820964A

  • Surgical robot self-sensing navigation method, system and equipment based on virtual reality

    CN116687564A

  • Three-dimensional visual asset management method and device

    CN117973732A

  • Scene generation method and device, electronic equipment and storage medium

    CN118196289A

Cited By

  • Game scene generation method and device, electronic equipment, storage medium and program product

    CN121446106A