Three-dimensional scene management method, device, equipment and storage medium
By using the DAG graph structure in 3D scene management, the problem of redundant data in the traditional tree structure is solved, and content reuse of the same scene and efficient rendering performance are achieved.
Patent Information
- Application Number
- CN202111590450.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-23
AI Technical Summary
When managing three-dimensional scenes using a traditional tree structure, if the same scene exists in the scene, new sub-nodes need to be created, resulting in the problem of a lot of redundant data in the entire tree structure.
The directed acyclic graph (DAG) structure is used to manage the three-dimensional scene. By obtaining the information and attribute information of the target three-dimensional scene, the DAG graph is initialized, and new nodes are created when the scene information does not match, and the attribute information of the upper node is reused when matching. Reduce the creation of redundant nodes.
Three-dimensional scenes are organized through the structure of the DAG graph to achieve reuse of the same scene content, reduce redundant data in hierarchical structures, improve rendering performance, and support dynamic modification of efficient data content.
Smart Images

Figure CN114254163B
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of computer technology, and in particular to a three-dimensional scene management method, device, equipment and storage medium. [Background technology]
[0002] At present, hierarchical structures are mainly used to manage three-dimensional scenes. For example, quadtree or octree structures are used to manage community buildings.
[0003] The traditional way of managing three-dimensional scenes is mainly through tree structures, specifically including: dividing the main scene of the three-dimensional scene based on the tree structure; obtaining the sub-scene corresponding to each leaf node of the tree structure, each sub-scene corresponding to each leaf node stores a management object, and each leaf node stores an index identifier of the sub-scene corresponding to it; searching for the corresponding sub-scene based on the index identifier stored in each leaf node, and managing the sub-scene.
[0004] However, the traditional tree structure method of managing three-dimensional scenes cannot reuse the same nodes. If the same scene exists in the scene, a new child node needs to be created and added to the tree structure. Therefore, it will cause the problem of more redundant data in the entire tree structure. [Summary of the invention]
[0005] The present application provides a 3D scene management method, device, equipment and storage medium, which can solve the problem that if there are identical scenes in the scene, a new sub-node needs to be created and added to the tree structure, which will result in a lot of redundant data in the entire tree structure. The present application provides the following technical solutions:
[0006] In a first aspect, a three-dimensional scene management method is provided, the method comprising:
[0007] Obtain target scene information and target attribute information of the sub-scene to be managed in the target three-dimensional scene;
[0008] Acquire a current DAG graph corresponding to the target three-dimensional scene, wherein the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene;
[0009] In the case where the target scene information does not match the scene information in each node in the last layer of the current DAG graph, creating a new node in the last layer of the current DAG graph, and storing the target scene information in the new node;
[0010] When the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scenario to be managed, the upper node is used as the upper node of the new node to reuse the upper node to store the target attribute information, thereby obtaining a first updated DAG graph;
[0011] When the target scene information matches the scene information in the target node of the last layer in the current DAG graph, a new parent node of the target node is created in the upper layer of the target node, and the target attribute information is stored in the new parent node to reuse the target node to store the scene information, thereby obtaining a second updated DAG graph.
[0012] Optionally, after the DAG graph corresponding to the target three-dimensional scene is created, the method further includes:
[0013] For the last layer node in the DAG graph corresponding to the sub-scene to be rendered, read the to-be-used attribute information of the sub-scene to be rendered from the upper layer node of the last layer node;
[0014] Reading the scene information to be used of the sub-scene to be rendered from the last layer node;
[0015] The sub-scene to be rendered is rendered using the attribute information to be used and the scene information to be used.
[0016] Optionally, the using the to-be-used attribute information and the to-be-used scene information to render the to-be-rendered sub-scene includes:
[0017] A display range of a display page based on the sub-scene to be rendered;
[0018] Determine the scene information to be used within the display range according to the attribute information;
[0019] Rendering the scene information to be used within the display range.
[0020] Optionally, the method comprises:
[0021] When the target scene information changes, the target scene information is updated in the last layer node to which the target scene information belongs to obtain updated target scene information;
[0022] The upper layer node of the last layer node to which the target scene information belongs is marked, and the mark is used to indicate that the last layer node to which the target scene information belongs is updated.
[0023] Optionally, after marking the upper layer node of the last layer node to which the target scene information belongs, the method further includes:
[0024] When rendering using the updated target scene information, determining whether the mark exists in the upper-layer node of the last-layer node to which the updated target scene information belongs;
[0025] In the case where the mark exists, the attribute information in each level of nodes is updated upward step by step according to the mark to obtain updated attribute information;
[0026] Read the updated target scene information from the last layer node to which the target scene information belongs;
[0027] Reading updated attribute information from an upper-layer node of the last-layer node to which the target scene information belongs;
[0028] The sub-scene corresponding to the updated target scene information is rendered using the updated attribute information and the updated target scene information.
[0029] Optionally, after the DAG graph corresponding to the target three-dimensional scene is created, the method further includes:
[0030] Based on the rendering requirements of the target three-dimensional scene, the nodes in the DAG graph are accessed using a visitor pattern to render the target three-dimensional scene; the visitor pattern refers to a pattern that pre-encapsulates access operations on the DAG graph.
[0031] Optionally, the attribute information includes at least one of the following: position information, bounding box, texture information and lighting information.
[0032] In a second aspect, a three-dimensional scene management device is provided, the device comprising:
[0033] An information acquisition module, used to acquire target scene information and target attribute information of a sub-scene to be managed in a target three-dimensional scene;
[0034] A DAG graph acquisition module, used to acquire a current DAG graph corresponding to the target three-dimensional scene, wherein the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene;
[0035] A node creation module, configured to create a new node in the last layer of the current DAG graph and store the target scene information in the new node when the target scene information does not match the scene information in each node in the last layer of the current DAG graph;
[0036] An information multiplexing module, configured to, when the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scenario to be managed, use the upper node as the upper node of the new node to multiplex the upper node to store the target attribute information, and obtain a first updated DAG graph;
[0037] An information storage module is used to create a new parent node of the target node in the upper layer of the target node when the target scene information matches the scene information in the target node of the last layer in the current DAG graph, and store the target attribute information in the new parent node, so as to reuse the target node to store the scene information and obtain a second updated DAG graph.
[0038] In a third aspect, an electronic device is provided, comprising a processor and a memory; a program is stored in the memory, and the program is loaded and executed by the processor to implement the three-dimensional scene management method described in the first aspect.
[0039] In a fourth aspect, a computer-readable storage medium is provided, wherein a program is stored in the storage medium, and when the program is executed by a processor, it is used to implement the three-dimensional scene management method as described in the first aspect.
[0040] The beneficial effects of the present application are: by obtaining the target scene information and target attribute information of the sub-scene to be managed in the target three-dimensional scene; obtaining the current DAG graph corresponding to the target three-dimensional scene, the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene; when the target scene information does not match the scene information in each node of the last layer in the current DAG graph, a new node is created in the last layer of the current DAG graph, and the target scene information is stored in the new node; when the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scene to be managed, the upper node is used as the upper node of the new node to reuse the upper node to store the target attribute information, and the first updated DAG graph is obtained; when the target scene information matches the scene information in the target node of the last layer in the current DAG graph, a new parent node of the target node is created in the upper layer of the target node, and the target attribute information is stored in the new parent node, and the target node is reused to store the scene information, and the second updated DAG graph is obtained. It can solve the problem that if there are the same scenes in the scene, it is necessary to create a new child node and add the corresponding structure, which will cause more redundant data in the entire hierarchical structure. By using the structure of the DAG graph to organize the three-dimensional scene, the child nodes of the DAG graph can be connected to multiple parent nodes, so the content of the same scene can be reused, thereby reducing the child nodes of the structure and avoiding a lot of redundant data in the hierarchical structure.
[0041] In addition, based on the tag information of the node, when actually rendering part of the scene, the tag information can be detected, and based on the tag information, it can be determined whether to update, so that efficient dynamic modification of data content can be achieved, thereby improving the performance of the rendering process.
[0042] In addition, since the scene information is accessed using the access mode, any scene information can be operated without modifying the structure of the DAG graph.
Brief Description of the Drawings
[0043] Figure 1 This is a flow chart of a three-dimensional scene management method provided by an embodiment of the present application;
[0044] Figure 2 is an example structure diagram of a three-dimensional scene management method provided by an embodiment of the present application;
[0045] Figure 3 is a culling flow chart of a three-dimensional scene management method provided by another embodiment of the present application;
[0046] Figure 4 is a block diagram of a three-dimensional scene management device provided by an embodiment of the present application;
[0047] Figure 5 It is a structural diagram of an electronic device of a three-dimensional scene management method provided by an embodiment of the present application. [Specific implementation method]
[0048] The technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0050] In the application, unless otherwise specified, directional words such as "up, down, top, bottom" are usually used with reference to the directions shown in the drawings, or with reference to the components themselves in the vertical, perpendicular or gravity directions; similarly, for ease of understanding and description, "inside and outside" refer to the inside and outside relative to the outline of each component itself, but the above directional words are not used to limit the present application.
[0051] The following is a detailed introduction to the three-dimensional scene management method provided by this application.
[0052] This embodiment provides a three-dimensional scene management method, such as Figure 1 As shown, the method includes at least the following steps:
[0053] Step 101: Obtain target scene information and target attribute information of a sub-scene to be managed in a target three-dimensional scene.
[0054] Step 102, obtaining a current DAG graph corresponding to the target three-dimensional scene, wherein the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene.
[0055] The first-level node is the root node of the DAG graph, and the root node is used to indicate the attributes of the target three-dimensional scene and store the content of the target three-dimensional scene.
[0056] Illustratively, if the target three-dimensional scene is a cell, the root node stores the overall target three-dimensional scene content of the cell.
[0057] Step 103, when the target scene information does not match the scene information in each node of the last layer of the current DAG graph, a new node is created in the last layer of the current DAG graph, and the target scene information is stored in the new node.
[0058] Step 104, when the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scenario to be managed, the upper node is used as the upper node of the new node to reuse the target attribute information stored in the upper node to obtain the first updated DAG graph.
[0059] Step 105, when the target scene information matches the scene information in the target node of the last layer of the current DAG graph, a new parent node of the target node is created in the upper layer of the target node, and the target attribute information is stored in the new parent node to reuse the target node to store the scene information, thereby obtaining a second updated DAG graph.
[0060] Optionally, after the DAG graph corresponding to the target three-dimensional scene is created, the step of rendering the scene information includes:
[0061] Step 1: For the last layer node in the DAG graph corresponding to the sub-scene to be rendered, read the to-be-used attribute information of the sub-scene to be rendered from the upper layer node of the last layer node.
[0062] The attribute information includes but is not limited to at least one of the following: position information, bounding box, texture information and lighting information.
[0063] Step 2: Read the scene information to be used of the sub-scene to be rendered from the last layer node.
[0064] Among them, the display range of the display page is based on the sub-scene to be rendered.
[0065] Specifically, the display range of the display page is determined based on the display range of the camera during rendering.
[0066] Accordingly, the scene information to be used within the display range is determined according to the attribute information.
[0067] Step 3: Render the sub-scene to be rendered using the attribute information to be used and the scene information to be used.
[0068] Optionally, when the target scene information changes, the target scene information is updated in the last layer node to which the target scene information belongs to obtain updated target scene information.
[0069] Optionally, the change in the target scene information refers to a change in an attribute of the target scene information, including coloring the target scene information, moving the target scene information, etc. This embodiment does not limit the content of the change in the target scene information.
[0070] The upper layer node of the last layer node to which the target scene information belongs is marked, and the mark is used to indicate that the last layer node to which the target scene information belongs is updated.
[0071] Optionally, after marking the upper node of the last layer node to which the target scene information belongs, when rendering using the updated target scene information, it is determined whether the upper node of the last layer node to which the updated target scene information belongs has a mark.
[0072] In the case where there is a mark, the attribute information in each level of nodes is updated upward step by step according to the mark to obtain updated attribute information.
[0073] The updated target scene information is read from the last layer node to which the target scene information belongs.
[0074] The updated attribute information is read from the upper layer node of the last layer node to which the target scene information belongs.
[0075] The sub-scene corresponding to the updated target scene information is rendered using the updated attribute information and the updated target scene information.
[0076] In this embodiment, based on the rendering requirement of the target three-dimensional scene, the visitor pattern is used to access the nodes in the DAG graph to render the target three-dimensional scene.
[0077] The visitor pattern refers to a pattern for pre-encapsulating access operations to a DAG graph.
[0078] In this embodiment, the visitor pattern is used to visit the nodes, which can avoid modifying the structure of the DAG graph and can operate and process any node.
[0079] Optionally, in order to improve the performance of traversing nodes, the storage structure of the DAG graph nodes adopts an array structure.
[0080] In this embodiment, the DAG graph has one and only one root node, that is, one and only one first-level node. The DAG graph may have one or more child nodes, wherein a child node may contain one or more child nodes, and a child node may contain one or more parent nodes.
[0081] In summary, the three-dimensional scene management method provided by this embodiment obtains the target scene information and target attribute information of the sub-scene to be managed in the target three-dimensional scene; obtains the current DAG graph corresponding to the target three-dimensional scene, and the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene; when the target scene information does not match the scene information in each node of the last layer in the current DAG graph, a new node is created in the last layer of the current DAG graph, and the target scene information is stored in the new node; when the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scene to be managed, the upper node is used as the upper node of the new node to reuse the upper node to store the target attribute information, and the first updated DAG graph is obtained; when the target scene information matches the scene information in the target node of the last layer in the current DAG graph, a new parent node of the target node is created in the upper layer of the target node, and the target attribute information is stored in the new parent node, and the target node is reused to store the scene information, and the second updated DAG graph is obtained. It can solve the problem that if the same scene exists in the scene, a new child node needs to be created and the corresponding structure needs to be added, which will cause a lot of redundant data in the entire hierarchical structure. By using the structure of the DAG graph to organize the three-dimensional scene, the child nodes of the DAG graph can be connected to multiple parent nodes, so the content of the same scene can be reused, thereby reducing the child nodes of the structure and avoiding a lot of redundant data in the hierarchical structure.
[0082] In addition, based on the tag information of the node, when actually rendering part of the scene, the tag information can be detected, and based on the tag information, it can be determined whether to update, so that efficient dynamic modification of data content can be achieved, thereby improving the performance of the rendering process.
[0083] In addition, since the scene information is accessed using the access mode, any scene information can be operated without modifying the structure of the DAG graph.
[0084] In order to more clearly understand the three-dimensional scene management method provided by the present application, this embodiment uses another example to illustrate the method. Figure 2 As shown, it is a DAG graph constructed based on the cell as the first-level node in the three-dimensional scene management method.
[0085] Specifically, the scene information corresponding to the DAG graph is that there are two two-story buildings in the community, namely Building A and Building B.
[0086] The cell is the first-level node of the DAG graph, and is used to indicate that the target three-dimensional scene is a cell.
[0087] Among them, when the floor attribute information of Building A and Building B in the community are the same, the floor scene information of the lowest layer node can be reused.
[0088] Among them, if the floor is rendered, it is only rendered once in the DAG graph, and four floors are actually rendered to achieve the effect of node reuse.
[0089] In order to more clearly understand the three-dimensional scene management method provided by the present application, this embodiment gives an example to illustrate the method. Figure 3 As shown, it is a flow chart of a method for eliminating scene information in a three-dimensional scene management method.
[0090] Step 301, start the elimination operation;
[0091] Step 302, using the accessor to access from the root node;
[0092] Step 303, check whether the bounding box of the node has an update mark;
[0093] Step 304, determine whether the node needs to be updated, if it needs to be updated, go to step 305, if not, go to step 306;
[0094] Step 305, traverse to the bottom-level node and perform reverse update on the bounding box with the update mark;
[0095] Step 306, calculating the bounding box to be removed according to the information at the top of the stack;
[0096] Step 307, using a linear algebra algorithm to save the plane's culling bit flag and put it into a stack, using the stack to save the relationship between multiple planes of the father node's view cone;
[0097] Step 308, pop the stack;
[0098] Step 309, access the next node;
[0099] Step 310, end the elimination.
[0100] Figure 44 is a block diagram of a three-dimensional scene management device provided by an embodiment of the present application. The device includes at least the following modules: an information acquisition module 410, a DAG graph acquisition module 420, a node creation module 430, an information reuse module 440 and an information storage module 450.
[0101] An information acquisition module 410 is used to acquire target scene information and target attribute information of a sub-scene to be managed in a target three-dimensional scene;
[0102] A DAG graph acquisition module 420 is used to acquire a current DAG graph corresponding to a target three-dimensional scene. The current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene;
[0103] A node creation module 430, for creating a new node in the last layer of the current DAG graph and storing the target scene information in the new node when the target scene information does not match the scene information in each node in the last layer of the current DAG graph;
[0104] The information reuse module 440 is used to use the upper node as the upper node of the new node to reuse the target attribute information stored in the upper node to obtain a first updated DAG graph when the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scenario to be managed;
[0105] The information storage module 450 is used to create a new parent node of the target node in the upper layer of the target node when the target scene information matches the scene information in the target node of the last layer in the current DAG graph, and store the target attribute information in the new parent node to reuse the target node to store the scene information, thereby obtaining a second updated DAG graph.
[0106] It should be noted that: the three-dimensional scene management device provided in the above embodiment only uses the division of the above functional modules as an example when performing three-dimensional scene management. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the three-dimensional scene management device is divided into different functional modules to complete all or part of the functions described above. In addition, the three-dimensional scene management device provided in the above embodiment and the three-dimensional scene management method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0107] This embodiment provides an electronic device, such as Figure 5 As shown, the electronic device at least includes a processor 501 and a memory 502 .
[0108] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0109] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one instruction, which is used to be executed by the processor 501 to implement the three-dimensional scene management method provided in the method embodiment of the present application.
[0110] In some embodiments, the electronic device may further optionally include: a peripheral device interface and at least one peripheral device. The processor 501, the memory 502 and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Schematically, the peripheral devices include but are not limited to: a radio frequency circuit, a touch display screen, an audio circuit, and a power supply.
[0111] Of course, the electronic device may also include fewer or more components, which is not limited in this embodiment.
[0112] Optionally, the present application also provides a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the three-dimensional scene management method of the above method embodiment.
[0113] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0114] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A three-dimensional scene management method, characterized in that: The method comprises: Obtain target scene information and target attribute information of the sub-scene to be managed in the target three-dimensional scene; Acquire a current DAG graph corresponding to the target three-dimensional scene, wherein the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene; In the case where the target scene information does not match the scene information in each node in the last layer of the current DAG graph, creating a new node in the last layer of the current DAG graph, and storing the target scene information in the new node; When the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scenario to be managed, the upper node is used as the upper node of the new node to reuse the upper node to store the target attribute information, thereby obtaining a first updated DAG graph; In the case where the target scene information matches the scene information in the target node of the last layer in the current DAG graph, a new parent node of the target node is created in the upper layer of the target node, and the target attribute information is stored in the new parent node, so as to reuse the target node to store the scene information, and obtain a second updated DAG graph; When the target scene information changes, updating the target scene information in the last layer node to which the target scene information belongs to obtain the updated target scene information; Marking an upper-layer node of the last-layer node to which the target scene information belongs, wherein the mark is used to indicate that there is an update to the last-layer node to which the target scene information belongs; After marking the upper layer node of the last layer node to which the target scene information belongs, the method further includes: When rendering using the updated target scene information, determining whether the mark exists in the upper-layer node of the last-layer node to which the updated target scene information belongs; In the case where the mark exists, the attribute information in each level of nodes is updated upward step by step according to the mark to obtain updated attribute information; Read the updated target scene information from the last layer node to which the target scene information belongs; Reading updated attribute information from an upper-layer node of the last-layer node to which the target scene information belongs; The sub-scene corresponding to the updated target scene information is rendered using the updated attribute information and the updated target scene information.
2. The method according to claim 1, characterized in that After the DAG graph corresponding to the target three-dimensional scene is created, the method further includes: For the last layer node in the DAG graph corresponding to the sub-scene to be rendered, read the to-be-used attribute information of the sub-scene to be rendered from the upper layer node of the last layer node; Reading the scene information to be used of the sub-scene to be rendered from the last layer node; The sub-scene to be rendered is rendered using the attribute information to be used and the scene information to be used.
3. The method according to claim 2, characterized in that The using the to-be-used attribute information and the to-be-used scene information to render the to-be-rendered sub-scene includes: A display range of a display page based on the sub-scene to be rendered; Determine the scene information to be used within the display range according to the attribute information; Rendering the scene information to be used within the display range.
4. The method according to any one of claims 1 to 3, characterized in that: After the DAG graph corresponding to the target three-dimensional scene is created, the method further includes: Based on the rendering requirements of the target three-dimensional scene, the nodes in the DAG graph are accessed using a visitor pattern to render the target three-dimensional scene; the visitor pattern refers to a pattern that pre-encapsulates access operations on the DAG graph.
5. The method according to any one of claims 1 to 3, characterized in that: The attribute information includes at least one of the following: position information, bounding box, texture information and lighting information.
6. A three-dimensional scene management device, characterized in that: The device comprises: An information acquisition module, used to acquire target scene information and target attribute information of a sub-scene to be managed in a target three-dimensional scene; A DAG graph acquisition module, used to acquire a current DAG graph corresponding to the target three-dimensional scene, wherein the current DAG graph is initialized to have a first-level node, and the first-level node is used to indicate the target three-dimensional scene; A node creation module, configured to create a new node in the last layer of the current DAG graph and store the target scene information in the new node when the target scene information does not match the scene information in each node in the last layer of the current DAG graph; An information multiplexing module, configured to, when the attribute information stored in the upper node of the last layer node is the same as the target attribute information of the sub-scenario to be managed, use the upper node as the upper node of the new node to multiplex the upper node to store the target attribute information, and obtain a first updated DAG graph; An information storage module, configured to create a new parent node of the target node in an upper layer of the target node when the target scene information matches the scene information in the target node of the last layer in the current DAG graph, and store the target attribute information in the new parent node, so as to reuse the target node to store the scene information, and obtain a second updated DAG graph; When the target scene information changes, updating the target scene information in the last layer node to which the target scene information belongs to obtain the updated target scene information; Marking an upper-layer node of the last-layer node to which the target scene information belongs, wherein the mark is used to indicate that there is an update to the last-layer node to which the target scene information belongs; After marking the upper layer node of the last layer node to which the target scene information belongs, the method further includes: When rendering using the updated target scene information, determining whether the mark exists in the upper-layer node of the last-layer node to which the updated target scene information belongs; In the case where the mark exists, the attribute information in each level of nodes is updated upward step by step according to the mark to obtain updated attribute information; Read the updated target scene information from the last layer node to which the target scene information belongs; Reading updated attribute information from an upper-layer node of the last-layer node to which the target scene information belongs; The sub-scene corresponding to the updated target scene information is rendered using the updated attribute information and the updated target scene information.
7. An electronic device, characterized in that: The device includes a processor and a memory; a program is stored in the memory, and the program is loaded and executed by the processor to implement the three-dimensional scene management method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The storage medium stores a program, and when the program is executed by the processor, it is used to implement the three-dimensional scene management method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Three-dimensional scene construction method and system
CN104599315A
Three-dimensional game engine scene pattern design method and system
CN107248190A
Three-dimensional scene rendering method, device and equipment and readable storage medium
CN110580734A
Method and Device for Clicking and Selecting Object in Three-Dimensional Virtual Reality Scene
US20150135128A1
