A model rendering method, device, equipment and storage medium

By forming multiple models into model groups and performing visibility analysis in units of model groups, the problem of low rendering performance in three-dimensional scenes is solved, and the calculation amount is reduced and the rendering performance is improved.

CN111968209BActive Publication Date: 2024-11-12BEIJING PIXEL SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010828698.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-17
Publication Date
2024-11-12
Estimated Expiration
2040-08-17

AI Technical Summary

Technical Problem

In a three-dimensional scene, when the device renders and displays objects in the scene, the calculation analysis of whether each model is visible is consumed, resulting in a large amount of computing and affecting the performance of scene rendering.

Method used

By forming multiple models into a model group and analyzing the visibility of the bounding box within the framing range in units of the model group, the number of bounding boxes participating in the calculation is reduced and the rendering performance is improved.

Benefits of technology

It effectively reduces the amount of computing, improves the performance of scene rendering, and ensures the correct rendering of objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111968209B_ABST
    Figure CN111968209B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a rendering method, device, equipment and storage medium for a model. The method includes: determining the current framing range of the virtual camera in a three-dimensional scene; determining the model group whose bounding boxes are visible within the framing range by analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, wherein each model group is composed of multiple models; and rendering the model group whose bounding boxes are visible within the framing range in the three-dimensional scene. Since multiple models are represented as a model group in advance, when performing visibility analysis, it is possible to analyze whether the bounding box of the model group is visible within the framing range in units of model groups, thereby reducing the number of bounding boxes involved in the calculation, effectively reducing the amount of calculation, and improving the performance of scene rendering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a rendering method, device, equipment and storage medium for a model. Background Art

[0002] In a 3D scene, each object in the scene is composed of corresponding models. For example, a tree in the scene is composed of three models: roots, trunks, and leaves. Another example is a house in the scene, which is composed of four models: roof, wall, door, and window.

[0003] When the device renders each object in the display scene, the device can calculate, in units of models, which bounding boxes of the models are visible within the viewing range of the virtual camera for each frame, and then render the models whose bounding boxes are visible.

[0004] However, if a calculation is performed to determine whether each model is visible, a large amount of resources will be consumed and the amount of calculation will be too large, thus affecting the performance of scene rendering. Summary of the invention

[0005] The present application aims to provide a model rendering method, device, equipment and storage medium, which are used to reduce the amount of calculation during visible analysis of the model and improve the performance of scene rendering.

[0006] In a first aspect, an embodiment of the present application provides a model rendering method, the method comprising: determining the current viewing range of a virtual camera in a three-dimensional scene; determining the model group whose bounding box is visible within the viewing range by analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, wherein each model group is composed of multiple models; and rendering the model group whose bounding box is visible within the viewing range in the three-dimensional scene.

[0007] In an embodiment of the present application, by pre-forming a plurality of models into a model group, when performing visibility analysis, it is possible to analyze whether the bounding box of the model group is visible within the viewing range on a model group basis, thereby reducing the number of bounding boxes involved in the calculation, effectively reducing the amount of computation, and improving the performance of scene rendering.

[0008] In combination with the first aspect, in a first possible implementation manner, the multiple models correspond to different parts of the same object in the three-dimensional scene.

[0009] In the embodiment of the present application, since the multiple models constituting the model group are parts of the same object, the represented model group still belongs to the same object, thereby ensuring that the object to be displayed can be correctly rendered when rendering is performed in units of the model group.

[0010] In combination with the first aspect, in a second possible implementation, before analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, the method also includes: generating a total bounding box that includes the bounding boxes of the preset multiple models, and the total bounding box is the bounding box of the model group represented by the multiple models.

[0011] In the embodiment of the present application, since the bounding box of the model group is a bounding box that encloses the preset bounding boxes of multiple models, the size of the bounding box of the model group can just match the size of the object, so as to ensure that the visual analysis of the bounding box of the model group can accurately reflect whether the object is visible, thereby ensuring that the object that needs to be displayed can be correctly rendered during rendering.

[0012] In combination with the second possible implementation of the first aspect, in a third possible implementation, after generating the total bounding box and before analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, the method also includes: responding to the user's position setting operation, and determining the position of the bounding box of the model group in the three-dimensional scene.

[0013] In the embodiment of the present application, since the user can set the position of the bounding box of the model group as a unit, it is possible to set the position of each part of the object in the three-dimensional scene at one time, which greatly reduces the workload when constructing the three-dimensional scene and improves work efficiency.

[0014] In combination with the first aspect, in a fourth possible implementation, a model group whose bounding box is visible within the viewing range is rendered in the three-dimensional scene, including: finding a node corresponding to the visible model group in a preset model tree; querying the content mounted under the node to determine all models constituting the visible model group; and rendering all the models in the three-dimensional scene.

[0015] In the embodiment of the present application, since the subordinate logic of the model group and the model is constructed in the form of a model tree, it is possible to quickly and accurately determine which models represent the visible model group by traversing the model tree.

[0016] In combination with the fourth possible implementation method of the first aspect, in a fifth possible implementation method, rendering all the models in the three-dimensional scene includes: rendering all the models based on the position of the visible model group in the three-dimensional scene, and based on the spatial position of each model among all the models and the model resources, wherein the visible model group occupies a certain space in the three-dimensional scene, and the spatial position is the position of the corresponding model in the certain space.

[0017] In the embodiment of the present application, since the spatial position of each model is the relative spatial position of the model in the model group, the spatial position of each model can more accurately represent its position in the three-dimensional scene, so each model can be rendered more accurately using the spatial position of each model.

[0018] In combination with the fourth possible implementation method of the first aspect, in a fifth possible implementation method, before analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, the method also includes: creating a node corresponding to each model group in the model tree; and mounting all models contained in each model group under the node corresponding to the model group.

[0019] In the embodiment of the present application, since the model tree has been created in advance by mounting all models contained in each model group to the node corresponding to the model group, there is no need to create the model tree when using it, which improves the efficiency of rendering.

[0020] In a second aspect, an embodiment of the present application provides a model rendering device, the device comprising: a viewing angle acquisition module, for determining the current viewing range of a virtual camera in a three-dimensional scene; a model rendering module, for determining the model group whose bounding box is visible within the viewing range by analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, wherein each model group is composed of multiple models; and rendering the model group whose bounding box is visible within the viewing range in the three-dimensional scene.

[0021] In combination with the second aspect, in a first possible implementation manner, the multiple models correspond to different parts of the same object in the three-dimensional scene.

[0022] In combination with the second aspect, in a second possible implementation method, the model rendering module is also used to: before analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, generate a total bounding box that includes the preset bounding boxes of the multiple models, and the total bounding box is the bounding box of the model group represented by the multiple models.

[0023] In combination with the second possible implementation method of the second aspect, in a third possible implementation method, after the model rendering module generates the total bounding box and before the model rendering module analyzes the positions of the bounding boxes of each preset model group in the three-dimensional scene, the model rendering module is also used to respond to the user's position setting operation to determine the position of the bounding box of the model group in the three-dimensional scene.

[0024] In combination with the second aspect, in a fourth possible implementation method, the model rendering module is used to find the node corresponding to the visible model group in a preset model tree; query the content mounted under the node to determine all models constituting the visible model group; and render all the models in the three-dimensional scene.

[0025] In combination with the fourth possible implementation method of the second aspect, in a fifth possible implementation method, the model rendering module is used to render all the models based on the position of the visible model group in the three-dimensional scene, and based on the spatial position of each model in all the models and the model resources, wherein the visible model group occupies a certain space in the three-dimensional scene, and the spatial position is the position of the corresponding model in the certain space.

[0026] In combination with the fourth possible implementation method of the second aspect, in a fifth possible implementation method, the model rendering module is also used to create a node corresponding to each model group in the model tree before the model rendering module analyzes the position of the bounding boxes of each preset model group in the three-dimensional scene; and mount all models contained in each model group under the node corresponding to the model group.

[0027] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a communication interface, a memory, and a processor connected to the communication interface and the memory; the memory is used to store programs; the processor is used to call and run the program to execute the model rendering method described in the first aspect or any possible implementation of the first aspect.

[0028] In a fourth aspect, an embodiment of the present application provides a non-volatile computer-readable storage medium storing a program code, which, when executed by a computer, executes a method for rendering a model as described in the first aspect or any possible implementation of the first aspect.

[0029] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1A flowchart of a model rendering method provided in an embodiment of the present application;

[0032] Figure 2 A first application scenario diagram of a model rendering method provided in an embodiment of the present application;

[0033] Figure 3 A second application scenario diagram of a model rendering method provided in an embodiment of the present application;

[0034] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application;

[0035] Figure 5 A structural block diagram of a model rendering device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application.

[0037] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0038] See also Figure 1 The embodiment of the present application provides a rendering method of a model. The rendering method of the model can be executed by an electronic device, and the electronic device can be a terminal or a server. The process of the rendering method of the model can include:

[0039] Step S100: determining the current viewing range of the virtual camera in the three-dimensional scene.

[0040] Step S200: by analyzing the positions of the bounding boxes of the preset model groups in the three-dimensional scene, the model groups whose bounding boxes are visible within the viewing range are determined, wherein each model group is composed of a plurality of models.

[0041] Step S300: Rendering a model group whose bounding box is visible within a viewing range in a three-dimensional scene.

[0042] In this embodiment, an object is an independent unit in a three-dimensional scene, such as a tree, a house, a bed, a table and chair, or a car in a three-dimensional scene. An object may include multiple parts, each of which may be represented by a model; for example, in a tree, each trunk is represented by a model, each branch is represented by a model, and each leaf is represented by a model; for another example, in a table and chair, the panel of the table and chair is represented by a model, and each supporting leg is represented by a model.

[0043] In other words, for an object in a three-dimensional scene, the multiple models correspond to different parts of the same object in the three-dimensional scene, and then the present application combines the multiple models into a model group to represent the various parts of the object as a whole through a model group.

[0044] Of course, the composition of the model group varies depending on the actual scenario. If multiple models that can represent all parts of an object are combined into a model group, the model group can fully represent the object; if multiple models that can only represent a part of an object are combined into a model group, the model group can only represent a part of the object as a whole.

[0045] The above process will be described in detail below in combination with specific scenarios.

[0046] Before executing step S100, it is necessary to use multiple models of the same object to pre-build a model group of the object. Since the electronic device has roughly the same construction method for each model group, this embodiment takes the construction of a model group of a certain object as an example for explanation, and the multiple models described below are all models that only constitute this model group.

[0047] It can be understood that since the visual analysis of whether each model is rendered by the electronic device is to analyze whether the bounding box of each model is visible in the viewfinder of the virtual camera, if the visual analysis of whether to render is to be performed in units of model groups, it is necessary to analyze whether the bounding box of the model group is visible in the viewfinder of the virtual camera. Therefore, the electronic device constructs the model group, that is, constructs the bounding box of the model group.

[0048] In this embodiment, since the bounding box of each model in the multiple models is preset, the electronic device can directly use the bounding boxes of the multiple models to construct the bounding box of the model group.

[0049] Specifically, the electronic device can determine the spatial area occupied by the bounding boxes of multiple models when the multiple models constitute the object. Based on the spatial area, the electronic device can generate a total bounding box that includes the preset bounding boxes of the multiple models. The total bounding box is the bounding box of the model group represented by the multiple models.

[0050] The following is an example to illustrate this.

[0051] Assumption: If Figure 2 As shown, tree A is composed of trunk A1, branch A2, and branch A3, so the bounding box of trunk A1 is A11, the bounding box of branch A2 is A21, and the bounding box of branch A3 is A31. Based on the space occupied by the bounding boxes A11, A21, and A31, the electronic device generates a total bounding box A100 that sets the bounding boxes A11, A21, and A31, and the total bounding box A100 is the bounding box of the model group A10 of tree A.

[0052] In this embodiment, after the bounding box of the model group is constructed, the electronic device can logically regard the model group as a whole. Therefore, the user can set the position of the model group in the three-dimensional scene based on the model group as a unit.

[0053] Exemplarily, the user can perform a position setting operation, such as dragging the model group or the bounding box of the model group to the position that the user needs to set in the three-dimensional scene by mouse control or touch. Correspondingly, the electronic device can respond to the user's position setting operation, on the one hand, setting the model group to the position set by the user in the three-dimensional scene, and on the other hand, determining the position of the bounding box of the model group in the three-dimensional scene and recording the position for subsequent visibility analysis and rendering, wherein the position of the bounding box of the model group in the three-dimensional scene is the world bounding box of the model group.

[0054] for example Figure 3 As shown, continuing to explain the above assumption, the user can drag the model group A10 from the position W1 along the direction indicated by the arrow to the position W2 in the three-dimensional scene, and set the model group A10 to the position W2.

[0055] It can be understood that after constructing the model group, the user can arrange the three-dimensional scene based on the model group instead of a single model, which greatly reduces the user's workload and improves the efficiency of scene setting.

[0056] In this embodiment, in order to ensure that when the electronic device performs visibility analysis based on a model group, the electronic device can accurately determine the multiple models constituting the model group to avoid rendering errors, in the process of constructing the model group, on the one hand, it is necessary to construct the parameters of each model based on the model group, and on the other hand, it is necessary to establish a corresponding relationship between the model group and the multiple models.

[0057] Specifically, since the model resources used when rendering each model have been set, there is no need to adjust the model resources of each model. However, since each model is located in the bounding box of the model group, the position of each model in the bounding box of the model group can be constructed so that each model can be positioned more accurately during rendering. Exemplarily, since the model group occupies a certain space in the three-dimensional scene, such as the bounding box of the model group occupies a cubic space in the three-dimensional scene, the electronic device calculates the position of each model in the space, such as calculating the coordinates, orientation, and scaling of each model.

[0058] In addition, after calculating the spatial position of each model, the electronic device can establish a correspondence between the model group and the multiple models. For example, the electronic device can establish a correspondence between the position of the bounding box of the model group and the spatial position of each model and the model resource for subsequent practical application.

[0059] In this embodiment, after the corresponding relationship is constructed, it can be considered that the creation process of the model group is completed. When all the model groups in the three-dimensional scene are created, the solution can be put into practical application.

[0060] In practical applications, in order to conveniently and quickly determine which models are included in each model group, during the program loading process, the electronic device constructs a model tree based on the corresponding relationship established above.

[0061] Specifically, the electronic device can create a node corresponding to each model group in the model tree, and the position of the bounding box of the model group can be recorded in the node. Then, the electronic device finds all the models contained in each model group based on the corresponding relationship of each model group. Finally, all the models contained in each model group are mounted under the node corresponding to the model group, so that the spatial position and model resources of each model in all the models can be recorded under the node.

[0062] After the model tree is constructed, the electronic device can execute step S100.

[0063] Step S100: determining the current viewing range of the virtual camera in the three-dimensional scene.

[0064] In practical applications, in order to display the three-dimensional scene, a virtual camera is provided in the three-dimensional scene, and the direction and / or position of the virtual camera in the three-dimensional scene are adjustable.

[0065] For the electronic device, in order to display the three-dimensional scene, the electronic device needs to render each frame captured by the virtual camera. Therefore, for each frame, the electronic device first determines the current viewing range of the virtual camera in the three-dimensional scene based on the orientation and / or position of the virtual camera. And within the definition of the viewing range, the electronic device can determine what content needs to be rendered for this frame, so the electronic device further executes step S200.

[0066] Step S200: by analyzing the positions of the bounding boxes of the preset model groups in the three-dimensional scene, the model groups whose bounding boxes are visible within the viewing range are determined, wherein each model group is composed of a plurality of models.

[0067] The electronic device can traverse and pre-build a model tree to obtain the position of each bounding box of each model group in the three-dimensional scene. In this way, the electronic device uses a preset algorithm to analyze and calculate the position relationship between the position of each bounding box of each model group in the three-dimensional scene and the position of the framing range, and can determine which model groups in each model group have bounding boxes visible in the framing range. Among them, as long as a part of the bounding box of a model group appears in the framing range, it is considered that the bounding box of the model group is visible in the framing range.

[0068] After determining the model group whose bounding box is visible within the viewing range, the electronic device may further perform step S300.

[0069] Step S300: Rendering a model group whose bounding box is visible within a viewing range in a three-dimensional scene.

[0070] Since the model tree has been constructed in advance, the electronic device can quickly find the information required for rendering the model group visible in the viewing range of the bounding box based on the structure of the model tree, thereby achieving rapid rendering of the scene.

[0071] Specifically, the electronic device can traverse the preset model tree, find the node corresponding to the visible model group in the model tree, and obtain the position of the bounding box of the visible model group from the node. Then, the electronic device can query the content mounted under the node corresponding to the visible model group, determine all the models that constitute the visible model group, and obtain the spatial position and model resources of each model in all the models. Finally, the electronic device can render all the models of the visible model group, that is, the electronic device can render all the models based on the position of the bounding box of the visible model group, and based on the spatial position and model resources of each model in all the models of the visible model group.

[0072] See also Figure 4 Based on the same inventive concept, an embodiment of the present application provides an electronic device 10, which may include a communication interface 11 connected to a network, one or more processors 12 for executing program instructions, a bus 13, and different forms of memory 14, such as a disk, ROM, or RAM, or any combination thereof. Exemplarily, the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof.

[0073] The memory 14 is used to store programs, and the processor 12 is used to call and run the programs in the memory 14 to execute the aforementioned object loading method.

[0074] See also Figure 5 Based on the same inventive concept, an embodiment of the present application provides a model rendering device 100, which can be applied to an electronic device. The model rendering device 100 may include:

[0075] The viewing angle acquisition module 110 is used to determine the current viewing range of the virtual camera in the three-dimensional scene;

[0076] The model rendering module 120 is used to determine the model groups whose bounding boxes are visible within the viewing range by analyzing the positions of the bounding boxes of each preset model group in the three-dimensional scene, wherein each model group is composed of multiple models; and render the model groups whose bounding boxes are visible within the viewing range in the three-dimensional scene.

[0077] It should be noted that, since technicians in the relevant field can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0078] Some embodiments of the present application also provide a computer-readable storage medium of a non-volatile program code executable by a computer. The storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. The computer-readable storage medium stores program code, and when the program code is run by a computer, the steps of the model rendering method of any of the above-mentioned embodiments are executed.

[0079] The program code product of the model rendering method provided in the embodiment of the present application includes a computer-readable storage medium storing the program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0080] In summary, by pre-representing multiple models as a model group, when performing visibility analysis, the bounding box of the model group can be used as a unit to analyze whether the bounding box of the model group is visible within the viewing range, thereby reducing the number of bounding boxes involved in the calculation, effectively reducing the amount of calculation, and improving the performance of scene rendering.

[0081] It should be noted that, since technicians in the relevant field can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0082] Some embodiments of the present application further provide a computer-readable storage medium of a non-volatile program code executable by a computer, wherein the computer-readable storage medium stores program code, and when the program code is executed by a computer, the steps of the method for monitoring an object of any of the above-mentioned embodiments are executed.

[0083] In detail, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the program code on the storage medium is run, it can execute the steps of the monitoring method of the object of any of the above-mentioned implementation modes, so as to reduce labor costs while avoiding the occurrence of abnormal behavior that cannot be effectively monitored due to negligence of staff.

[0084] The program code product of the data request method provided in the embodiment of the present application includes a computer-readable storage medium storing the program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0085] In summary, by pre-representing multiple models as a model group, when performing visibility analysis, the bounding box of the model group can be analyzed as a unit to see whether it is visible within the viewing range, thereby reducing the number of bounding boxes involved in the calculation, effectively reducing the amount of calculation, and improving the performance of scene rendering.

[0086] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A rendering method of a model, characterized in that: The method comprises: Determine the current viewing range of the virtual camera in the three-dimensional scene; By analyzing the positions of the bounding boxes of the preset model groups in the three-dimensional scene, the model groups whose bounding boxes are visible within the viewing range are determined, wherein each model group is composed of a plurality of models; Find the node corresponding to the visible model group in the preset model tree; Query the content mounted under the node to determine all models constituting the visible model group; Rendering all the models based on the position of the visible model group in the three-dimensional scene and based on the spatial position of each model in all the models and the model resource, wherein the spatial position is the position of the corresponding model in the space occupied by the visible model group in the three-dimensional scene; Before analyzing the positions of the bounding boxes of the preset model groups in the three-dimensional scene, the method further includes: Creating a node corresponding to each model group in the model tree; Mount all models contained in each model group to the node corresponding to the model group.

2. The rendering method of the model according to claim 1, characterized in that: The multiple models correspond to different parts of the same object in the three-dimensional scene.

3. The rendering method of the model according to claim 1, characterized in that: Before analyzing the positions of the bounding boxes of the preset model groups in the three-dimensional scene, the method further includes: A total bounding box is generated that includes the bounding boxes preset by the multiple models, and the total bounding box is the bounding box of the model group represented by the multiple models.

4. The rendering method of the model according to claim 3, characterized in that: After generating the total bounding box and before analyzing the positions of the bounding boxes of the preset model groups in the three-dimensional scene, the method further includes: In response to the user's position setting operation, the position of the bounding box of the model group in the three-dimensional scene is determined.

5. A rendering device for a model, characterized in that: The device comprises: A viewing angle acquisition module is used to determine the current viewing range of the virtual camera in the three-dimensional scene; A model rendering module, configured to determine a model group whose bounding box is visible within the viewing range by analyzing the position of each bounding box of each preset model group in the three-dimensional scene, wherein each model group is composed of a plurality of models; and render the model group whose bounding box is visible within the viewing range in the three-dimensional scene; The model rendering module is specifically used to find the node corresponding to the visible model group in the preset model tree; query the content mounted under the node to determine all models constituting the visible model group; Rendering all the models based on the position of the visible model group in the three-dimensional scene and based on the spatial position of each model in all the models and the model resource, wherein the spatial position is the position of the corresponding model in the space occupied by the visible model group in the three-dimensional scene; The model rendering module is also used to create a node corresponding to each model group in the model tree before analyzing the position of the bounding box of each preset model group in the three-dimensional scene; and mount all models contained in each model group under the node corresponding to the model group.

6. An electronic device, characterized in that: include: A communication interface, a memory, and a processor connected to the communication interface and the memory; The memory is used to store programs; The processor is used to call and run the program to execute the model rendering method as described in any one of claims 1-4.

7. A non-volatile computer-readable storage medium, characterized in that: A program code is stored, and when the program code is executed by a computer, the model rendering method as claimed in any one of claims 1 to 4 is executed.