CN114529648A - Model display method, device, apparatus, electronic device and storage medium - Google Patents

Model display method, device, apparatus, electronic device and storage medium Download PDF

Info

Publication number
CN114529648A
CN114529648A CN202210153040.4A CN202210153040A CN114529648A CN 114529648 A CN114529648 A CN 114529648A CN 202210153040 A CN202210153040 A CN 202210153040A CN 114529648 A CN114529648 A CN 114529648A
Authority
CN
China
Prior art keywords
model
node
information
dimensional
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210153040.4A
Other languages
Chinese (zh)
Inventor
范涛
周玉杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sensetime Technology Development Co Ltd
Original Assignee
Beijing Sensetime Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sensetime Technology Development Co Ltd filed Critical Beijing Sensetime Technology Development Co Ltd
Priority to CN202210153040.4A priority Critical patent/CN114529648A/en
Publication of CN114529648A publication Critical patent/CN114529648A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/005Tree description, e.g. octree, quadtree

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure provides a model display method, equipment, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring octree information corresponding to each three-dimensional model in a target scene; wherein the octree information includes a plurality of nodes; the three-dimensional region represented by each node comprises a local model on the three-dimensional model; the fineness of the local model included by the node is positively correlated with the node depth of the node; the local model with high fineness comprises the number of vertexes, and the number of vertexes is larger than that of the local model with low fineness; determining area information of a visual area of a virtual camera based on current shooting parameter information of the virtual camera for shooting a three-dimensional model in the target scene; and determining a target local model included in at least one node positioned in the visualization region based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene.

Description

模型展示方法、设备、装置、电子设备及存储介质Model display method, device, device, electronic device and storage medium

技术领域technical field

本公开涉及三维模型技术领域,具体而言,涉及一种模型展示方法、设备、装置、电子设备及存储介质。The present disclosure relates to the technical field of three-dimensional models, and in particular, to a model display method, device, device, electronic device, and storage medium.

背景技术Background technique

随着技术的发展,越来越多的场景中需要渲染三维模型;比如,增强现实(Augmented Reality,AR)、虚拟现实(Virtual Reality,VR)、数字孪生项目等。其中,可以生成每个三维模型对应的模型文件,并将各个三维模型的模型文件存储到内存中,使得设备利用从内存中获取的模型文件,对三维模型进行渲染展示。With the development of technology, more and more scenes need to render 3D models; for example, Augmented Reality (AR), Virtual Reality (VR), digital twin projects, etc. Among them, a model file corresponding to each 3D model can be generated, and the model file of each 3D model can be stored in the memory, so that the device uses the model file obtained from the memory to render and display the 3D model.

一般的,可以使用三维重建算法生成三维模型对应的模型文件,而三维重建算法生成的模型文件的数据容量较大,若场景中需要渲染的三维模型较多,且进行渲染展示的设备的内存容量较小时,将各个三维模型的模型文件加载到内存中,会造成内存容量较小的设备无法渲染展示各个三维模型,为各个三维模型的渲染展示带来不便。Generally, the 3D reconstruction algorithm can be used to generate the model file corresponding to the 3D model, and the model file generated by the 3D reconstruction algorithm has a large data capacity. When the size is small, loading the model files of each 3D model into the memory will cause devices with small memory capacity to be unable to render and display each 3D model, which brings inconvenience to the rendering and display of each 3D model.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本公开至少提供一种模型展示方法、设备、装置、电子设备及存储介质。In view of this, the present disclosure provides at least a model display method, device, apparatus, electronic device, and storage medium.

第一方面,本公开提供了一种模型展示方法,包括:In a first aspect, the present disclosure provides a model display method, including:

获取目标场景中包括的每个三维模型对应的八叉树信息;其中,所述八叉树信息包括多个节点;每个所述节点表征的三维区域包括所述三维模型上的局部模型;所述节点包括的局部模型的精细程度、与所述节点的节点深度正相关;精细程度高的局部模型包括的顶点数量、大于精细程度低的局部模型包括的顶点数量;Acquire octree information corresponding to each 3D model included in the target scene; wherein, the octree information includes multiple nodes; the 3D region represented by each node includes a local model on the 3D model; The fineness of the local model included in the node is positively correlated with the node depth of the node; the number of vertices included in the local model with high fineness is greater than the number of vertices included in the local model with low finesse;

基于用于拍摄所述目标场景中三维模型的虚拟相机当前的拍摄参数信息,确定所述虚拟相机的可视化区域的区域信息;Determine the area information of the visualization area of the virtual camera based on the current shooting parameter information of the virtual camera used for shooting the three-dimensional model in the target scene;

基于所述目标场景包括的各个三维模型分别对应的八叉树信息和所述区域信息,确定位于所述可视化区域内的至少一个节点所包括的目标局部模型。Based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene, a target local model included in at least one node located in the visualization region is determined.

上述方法中,通过获取目标场景中包括的每个三维模型对应的八叉树信息;其中,八叉树信息包括多个节点,每个节点表征的三维区域包括三维模型上的局部模型;即将三维模型划分为多个局部模型,每个局部模型对应八叉树中的一个节点。在基于虚拟相机当前的拍摄参数信息,确定虚拟相机的可视化区域的区域信息之后,基于虚拟相机当前的可视化区域的区域信息和各个三维模型的八叉树信息,能够较高效和较精准的确定位于可视化区域内的目标局部模型,实现了对各个三维模型的精细化渲染展示,提高了三维模型的展示灵活性。In the above method, the octree information corresponding to each three-dimensional model included in the target scene is obtained; wherein, the octree information includes a plurality of nodes, and the three-dimensional area represented by each node includes a local model on the three-dimensional model; The model is divided into multiple partial models, and each partial model corresponds to a node in the octree. After determining the area information of the visualized area of the virtual camera based on the current shooting parameter information of the virtual camera, based on the area information of the current visualized area of the virtual camera and the octree information of each 3D model, it is possible to more efficiently and accurately determine the location of the visual area. The target local model in the visualization area realizes the refined rendering display of each 3D model, and improves the display flexibility of the 3D model.

一种可能的实施方式中,所述获取目标场景中包括的每个三维模型对应的八叉树信息,包括:In a possible implementation manner, the obtaining octree information corresponding to each three-dimensional model included in the target scene includes:

获取目标场景中包括的每个三维模型的模型信息;Obtain model information of each 3D model included in the target scene;

基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的八叉树信息。Based on the model information corresponding to each of the three-dimensional models, octree information corresponding to the three-dimensional models is generated.

这里,通过利用获取到的目标场景中包括的每个三维模型的模型信息,能够较精准的生成三维模型对应的八叉树信息,为后续确定目标局部模型提供数据支持,实现对目标场景中各个三维模型的精细化展示。Here, by using the obtained model information of each 3D model included in the target scene, the octree information corresponding to the 3D model can be generated more accurately, which can provide data support for the subsequent determination of the target local model, and realize the detection of each 3D model in the target scene. Refinement display of 3D models.

一种可能的实施方式中,所述基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的八叉树信息,包括:In a possible implementation manner, generating the octree information corresponding to the three-dimensional model based on the model information corresponding to each of the three-dimensional models includes:

基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的初始八叉树信息;其中,所述初始八叉树信息中每个节点表征的三维区域包括所述三维模型对应的原始局部模型;所述原始局部模型中包括多个顶点、以及由顶点之间的连接关系构成的多个网格;Based on the model information corresponding to each of the three-dimensional models, initial octree information corresponding to the three-dimensional model is generated; wherein, the three-dimensional region represented by each node in the initial octree information includes the corresponding three-dimensional model. The original local model; the original local model includes a plurality of vertices and a plurality of meshes formed by the connection relationship between the vertices;

针对所述初始八叉树信息中每个节点,确定所述节点对应的原始局部模型中的待删除顶点,以及基于所述原始局部模型包括的多个顶点中除所述待删除顶点外的其他顶点,生成所述节点对应的局部模型;For each node in the initial octree information, determine the vertex to be deleted in the original local model corresponding to the node, and determine the vertex to be deleted based on the multiple vertices included in the original local model except the vertex to be deleted vertex, generate the local model corresponding to the node;

基于各个节点对应的局部模型的局部模型信息,生成所述三维模型对应的八叉树信息。Based on the local model information of the local model corresponding to each node, the octree information corresponding to the three-dimensional model is generated.

本公开实施例中,针对生成的初始八叉树信息中的每个节点,确定节点对应的原始局部模型中的待删除顶点,并基于原始局部模型包括的多个顶点中除待删除顶点外的其他顶点,生成节点对应的局部模型,其中,顶点删除后的局部模型的模型精度、低于未删除的原始局部模型,降低了节点对应的模型的模型精度,再基于各个节点对应的局部模型的局部模型信息,能够较精准的生成三维模型对应的八叉树信息,以便后续能够利用三维模型对应的八叉树信息,较准确的确定位于视化区域内目标局部模型,实现了三维模型的精细化展示。In the embodiment of the present disclosure, for each node in the generated initial octree information, the vertex to be deleted in the original local model corresponding to the node is determined, and the vertex to be deleted is determined based on the multiple vertices included in the original local model except the vertex to be deleted. For other vertices, the local model corresponding to the node is generated. The model accuracy of the local model after vertex deletion is lower than the original local model that was not deleted, which reduces the model accuracy of the model corresponding to the node. The local model information can more accurately generate the octree information corresponding to the 3D model, so that the octree information corresponding to the 3D model can be used to more accurately determine the local model of the target located in the visualization area, and the detailed 3D model can be realized. display.

一种可能的实施方式中,所述基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的初始八叉树信息,包括:In a possible implementation manner, generating initial octree information corresponding to the three-dimensional model based on the model information corresponding to each of the three-dimensional models, including:

将所述三维模型作为目标模型,基于所述目标模型的模型信息,按照设置的划分方式,将所述目标模型对应的三维区域划分为八个子三维区域;其中,所述三维模型的所述三维区域对应的节点为根节点,所述根节点的节点信息包括所述三维模型的模型信息;以及每个子三维区域对应一个子节点;每个子节点的节点信息包括:位于所述节点对应的子三维区域内的原始局部模型的模型信息、或者预设信息;Taking the three-dimensional model as the target model, based on the model information of the target model, according to the set division method, the three-dimensional area corresponding to the target model is divided into eight sub-three-dimensional areas; wherein, the three-dimensional area of the three-dimensional model The node corresponding to the area is a root node, and the node information of the root node includes the model information of the three-dimensional model; and each sub-three-dimensional area corresponds to a child node; the node information of each child node includes: located in the sub-three-dimensional corresponding to the node Model information or preset information of the original local model in the area;

在存在满足预设条件的子节点时,将满足所述预设条件的子节点中包括的原始局部模型作为目标模型,返回至基于所述目标模型的模型信息,按照设置的划分方式,将所述目标模型对应的三维区域划分为八个子三维区域的步骤,直至划分后得到的子节点均不满足预设条件;其中,满足预设条件的子节点包括:节点深度小于设置的深度阈值的子节点,和/或,节点信息包括的模型信息中顶点数量大于设置的数量阈值的子节点;When there is a child node that satisfies the preset condition, the original local model included in the child node that satisfies the preset condition is used as the target model, and the model information based on the target model is returned. The step of dividing the three-dimensional region corresponding to the target model into eight sub-three-dimensional regions, until the sub-nodes obtained after the division do not meet the preset conditions; wherein, the sub-nodes that meet the preset conditions include: nodes whose depth is less than the set depth threshold. Nodes, and/or, child nodes whose number of vertices in the model information included in the node information is greater than the set number threshold;

基于生成的所述根节点的节点信息、和各个子节点的节点信息,生成所述三维模型对应的初始八叉树信息。Based on the generated node information of the root node and the node information of each child node, initial octree information corresponding to the three-dimensional model is generated.

这里,通过将三维模型作为目标模型,基于目标模型的模型信息,按照设置的划分方式,将目标模型对应的三维区域划分为八个子三维区域;并设置预设条件,在确定存在满足预设条件的子节点时,将子节点进行划分,直至划分后得到的子节点均不满足预设条件,得到了根节点的节点信息和各个子节点的节点信息。进而基于根节点的节点信息和各个子节点的节点信息,较准确的生成三维模型对应的初始八叉树信息。Here, by taking the 3D model as the target model, based on the model information of the target model, according to the set division method, the 3D region corresponding to the target model is divided into eight sub-3D regions; When the sub-nodes are divided into sub-nodes, the sub-nodes are divided until none of the sub-nodes obtained after division meet the preset conditions, and the node information of the root node and the node information of each sub-node are obtained. Furthermore, based on the node information of the root node and the node information of each child node, the initial octree information corresponding to the three-dimensional model is more accurately generated.

一种可能的实施方式中,所述确定所述节点对应的原始局部模型中的待删除顶点,包括:In a possible implementation manner, the determining of the vertex to be deleted in the original local model corresponding to the node includes:

基于所述节点包括的原始局部模型的模型信息,确定所述模型信息指示的多个网格分别对应的法线之间的法线相似度;Based on the model information of the original local model included in the node, determine the normal similarity between the normals corresponding to the multiple meshes indicated by the model information;

基于所述多个网格分别对应的法线之间的法线相似度,确定所述节点对应的原始局部模型中的待删除顶点。The vertex to be deleted in the original local model corresponding to the node is determined based on the normal similarity between the normals corresponding to the multiple meshes respectively.

这里,通过基于节点对应的原始局部模型的模型信息,确定模型信息指示的多个网格分别对应的法线之间的法线相似度;再基于多个网格分别对应的法线之间的法线相似度,较简便的从原始局部模型的多个顶点中确定待删除顶点;然后基于多个顶点中除待删除顶点外的其他顶点,生成节点对应的局部模型,实现对原始局部模型的简化,提升三维模型简化的效率。Here, based on the model information of the original local model corresponding to the node, the normal similarity between the normals corresponding to the multiple grids indicated by the model information is determined; The normal similarity can easily determine the vertices to be deleted from the multiple vertices of the original local model; then based on the other vertices in the multiple vertices except the vertices to be deleted, the local model corresponding to the node is generated to realize the original local model. Simplify, improve the efficiency of 3D model simplification.

一种可能的实施方式中,所述基于所述多个网格分别对应的法线之间的法线相似度,确定所述节点对应的原始局部模型中的待删除顶点,包括:In a possible implementation manner, determining the vertex to be deleted in the original local model corresponding to the node based on the normal similarity between the normals corresponding to the multiple meshes, including:

遍历所述原始局部模型的各个顶点,针对遍历到的顶点,确定包括所述遍历到的顶点的目标网格;Traversing the vertices of the original local model, and determining the target mesh including the traversed vertices for the traversed vertices;

将所述目标网格对应的法线之间的法线相似度、与所述节点对应的法线相似度阈值进行比对;其中,所述节点对应的法线相似度阈值与所述节点对应的节点深度正相关;Compare the normal similarity between the normals corresponding to the target grid and the normal similarity threshold corresponding to the node; wherein, the normal similarity threshold corresponding to the node corresponds to the node The node depth of is positively correlated;

响应于所述法线相似度大于或者等于所述法线相似度阈值,将所述遍历到的顶点确定为待删除顶点。In response to the normal similarity being greater than or equal to the normal similarity threshold, the traversed vertex is determined as a vertex to be deleted.

这样,通过数值可控的法线相似度阈值来限制顶点删除的边界,使得对原始局部模型的简化的精细度可控,在保障了简化后的局部模型的精度的同时,提高了模型简化的效率。In this way, the boundary of vertex deletion is limited by a numerically controllable normal similarity threshold, so that the fineness of the simplification of the original local model is controllable, while the accuracy of the simplified local model is guaranteed, and the simplification of the model is improved at the same time. efficiency.

一种可能的实施方式中,所述基于所述目标场景包括的各个三维模型分别对应的八叉树信息和所述区域信息,确定位于所述可视化区域内的至少一个节点所包括的目标局部模型,包括:In a possible implementation manner, the target local model included in at least one node located in the visualization region is determined based on the octree information and the region information corresponding to each three-dimensional model included in the target scene. ,include:

基于所述区域信息、所述目标场景中包括的每个三维模型的展示位姿和模型尺寸,确定位于所述可视化区域内的至少一个目标三维模型;determining at least one target three-dimensional model located in the visualization area based on the area information, the displayed pose and model size of each three-dimensional model included in the target scene;

基于所述目标三维模型对应的八叉树信息、和所述区域信息,确定所述可视化区域内的至少一个节点所包括的目标局部模型。Based on the octree information corresponding to the target three-dimensional model and the area information, a target local model included in at least one node in the visualization area is determined.

本公开实施例中,基于区域信息、目标场景中包括的每个三维模型的展示位姿和模型尺寸,确定位于可视化区域内的至少一个目标三维模型;再根据目标三维模型对应的八叉树信息和区域信息,较精准的确定可视化区域内的至少一个节点所包括的目标局部模型,且目标局部模型的确定过程较简便、效率较高。In the embodiment of the present disclosure, at least one target 3D model located in the visualization area is determined based on the area information, the displayed pose and model size of each 3D model included in the target scene; and then according to the octree information corresponding to the target 3D model and area information, the target local model included in at least one node in the visualization area can be more accurately determined, and the determination process of the target local model is relatively simple and efficient.

一种可能的实施方式中,所述基于所述目标三维模型对应的八叉树信息、和所述区域信息,确定所述可视化区域内的至少一个节点所包括的目标局部模型,包括:In a possible implementation manner, the determining, based on the octree information corresponding to the target three-dimensional model and the area information, determines the target local model included in at least one node in the visualization area, including:

将所述目标三维模型对应的所述八叉树信息中的根节点作为待处理节点,确定所述待处理节点对应的三维区域是否完全位于所述区域信息指示的可视化区域;Taking the root node in the octree information corresponding to the target three-dimensional model as the node to be processed, it is determined whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area indicated by the area information;

在所述待处理节点对应的三维区域部分位于所述可视化区域的情况下,将与所述待处理节点相连的每个子节点作为待处理节点,返回至确定所述待处理节点对应的三维区域是否完全位于所述区域信息指示的可视化区域的步骤,直至待处理节点对应的三维区域完全位于所述可视化区域;In the case that the three-dimensional area corresponding to the node to be processed is partially located in the visualization area, take each child node connected to the node to be processed as a node to be processed, and return to determining whether the three-dimensional area corresponding to the node to be processed is not The step of being completely located in the visualization area indicated by the area information, until the three-dimensional area corresponding to the node to be processed is completely located in the visualization area;

在所述待处理节点对应的三维区域完全位于所述可视化区域的情况下,将所述待处理节点所包括的局部模型,确定为位于所述可视化区域内的节点所包括的目标局部模型。When the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, the local model included in the node to be processed is determined as the target local model included in the node located in the visualization area.

上述方式中,通过判断待处理节点对应的三维区域是否完全位于可视化区域内,在待处理节点对应的三维区域完全位于可视化区域时,将待处理节点所包括的局部模型,确定为目标局部模型,提高了目标局部模型的准确度和效率。In the above manner, by judging whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, when the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, the local model included in the node to be processed is determined as the target local model, Improves the accuracy and efficiency of the target local model.

第二方面,本公开提供了一种模型展示设备,包括:中央处理器CPU和图形处理器GPU;In a second aspect, the present disclosure provides a model display device, including: a central processing unit (CPU) and a graphics processing unit (GPU);

所述CPU,用于存储目标场景中包括的各个三维模型对应的八叉树信息,并在确定了至少一个节点所包括的目标局部模型之后,将所述节点包括的目标局部模型的模型信息传输至所述GPU;其中,所述至少一个节点所包括的目标局部模型为利用第一方面或任一实施方法所述的模型展示方法确定的;The CPU is configured to store octree information corresponding to each three-dimensional model included in the target scene, and after determining the target local model included in at least one node, transmit the model information of the target local model included in the node to the GPU; wherein, the target local model included in the at least one node is determined by using the model display method described in the first aspect or any implementation method;

所述GPU,用于将接收到的所述节点包括的目标局部模型的模型信息存储至内部存储器中;并通过读取所述内部存储器中所述模型信息,在虚拟相机的拍摄画面中,对所述目标局部模型进行渲染展示。The GPU is configured to store the received model information of the target local model included in the node in the internal memory; and by reading the model information in the internal memory, in the shooting picture of the virtual camera, The target local model is rendered and displayed.

这里,通过利用第一方面或任一实施方式所述的模型展示方法,较精准的确定了目标局部模型之后,可以将目标局部模型的模型信息发送给GPU,无需向GPU发送其他局部模型的模型信息,减少了信息传输量,缓解了将无需渲染的其他局部模型的模型信息发送给GPU时造成带宽资源的消耗,提高了带宽资源的利用率。同时,将目标局部模型的模型信息加载至内部存储器(内存),无需将其他局部模型的模型信息加载至内存中,减少了内存的开销,提高了内存的利用率。Here, by using the model display method described in the first aspect or any one of the embodiments, after the target local model is more accurately determined, the model information of the target local model can be sent to the GPU, and there is no need to send the models of other local models to the GPU. information, reducing the amount of information transmission, alleviating the consumption of bandwidth resources when sending model information of other local models that do not need to be rendered to the GPU, and improving the utilization of bandwidth resources. At the same time, the model information of the target local model is loaded into the internal memory (memory), and there is no need to load the model information of other local models into the memory, which reduces memory overhead and improves memory utilization.

一种可能的实施方式中,所述CPU,还用于在目标局部模型更新之后,将更新后的目标局部模型的模型信息发送给所述GPU;In a possible implementation manner, the CPU is further configured to send the updated model information of the target local model to the GPU after the target local model is updated;

所述GPU,还用于将所述内部存储器中与所述更新后的目标局部模型不匹配的模型信息删除;以及,将所述更新后的目标局部模型中,未存储的目标局部模型的模型信息存储至所述内部存储器中。The GPU is also used to delete the model information that does not match the updated target partial model in the internal memory; and, in the updated target partial model, the model of the unstored target partial model Information is stored in the internal memory.

上述实施方式中,在目标局部模型更新后,可以将更新的目标局部模型的模型信息加载至内存,将内存中与更新后的目标局部模型不匹配的模型信息删除,以保障内存中加载的是当前需要渲染展示的目标局部模型的模型信息,避免内存资源的浪费。In the above embodiment, after the target local model is updated, the model information of the updated target local model can be loaded into the memory, and the model information in the memory that does not match the updated target local model is deleted, so as to ensure that what is loaded in the memory is correct. Currently, the model information of the target local model needs to be rendered and displayed to avoid the waste of memory resources.

以下装置、电子设备等的效果描述参见上述方法的说明,这里不再赘述。For descriptions of the effects of the following apparatuses, electronic devices, etc., reference may be made to the descriptions of the above-mentioned methods, which will not be repeated here.

第三方面,本公开提供了一种模型展示装置,包括:In a third aspect, the present disclosure provides a model display device, comprising:

获取模块,用于获取目标场景中包括的每个三维模型对应的八叉树信息;其中,所述八叉树信息包括多个节点;每个所述节点表征的三维区域包括所述三维模型上的局部模型;所述节点包括的局部模型的精细程度、与所述节点的节点深度正相关;精细程度高的局部模型包括的顶点数量、大于精细程度低的局部模型包括的顶点数量;The acquisition module is used for acquiring octree information corresponding to each three-dimensional model included in the target scene; wherein, the octree information includes a plurality of nodes; the three-dimensional area represented by each node includes the information on the three-dimensional model. The fineness of the local model included in the node is positively correlated with the node depth of the node; the number of vertices included in the local model with high fineness is greater than the number of vertices included in the local model with low fineness;

第一确定模块,用于基于用于拍摄所述目标场景中三维模型的虚拟相机当前的拍摄参数信息,确定所述虚拟相机的可视化区域的区域信息;a first determining module, configured to determine the area information of the visualized area of the virtual camera based on the current shooting parameter information of the virtual camera used for shooting the three-dimensional model in the target scene;

第二确定模块,用于基于所述目标场景包括的各个三维模型分别对应的八叉树信息和所述区域信息,确定位于所述可视化区域内的至少一个节点所包括的目标局部模型。The second determination module is configured to determine, based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene, a target local model included in at least one node located in the visualization region.

第四方面,本公开提供一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如上述第一方面或任一实施方式所述的模型展示方法的步骤。In a fourth aspect, the present disclosure provides an electronic device, comprising: a processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device runs, the processor communicates with the The memories communicate with each other through a bus, and when the machine-readable instructions are executed by the processor, the steps of the model presentation method according to the first aspect or any one of the implementation manners are executed.

第五方面,本公开提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上述第一方面或任一实施方式所述的模型展示方法的步骤。In a fifth aspect, the present disclosure provides a computer-readable storage medium on which a computer program is stored, and when the computer program is run by a processor, executes the model described in the first aspect or any one of the embodiments above. Show the steps of the method.

为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the accompanying drawings required in the embodiments will be briefly introduced below.

图1示出了本公开实施例所提供的一种模型展示方法的流程示意图;FIG. 1 shows a schematic flowchart of a model display method provided by an embodiment of the present disclosure;

图2示出了本公开实施例所提供的一种模型展示方法中,目标模型对应的三维区域、子三维区域和八叉树的示意图;2 shows a schematic diagram of a three-dimensional region, a sub-three-dimensional region, and an octree corresponding to a target model in a model display method provided by an embodiment of the present disclosure;

图3示出了本公开实施例所提供的一种模型展示方法中,原始局部模型的示意图;FIG. 3 shows a schematic diagram of an original local model in a model display method provided by an embodiment of the present disclosure;

图4示出了本公开实施例所提供的模型展示方法中,一种子三维区域和可视化区域的示意图;FIG. 4 shows a schematic diagram of a sub-3D area and a visualization area in the model display method provided by an embodiment of the present disclosure;

图5示出了本公开实施例所提供的模型展示方法中,另一种子三维区域和可视化区域的示意图;5 shows a schematic diagram of another sub-three-dimensional area and a visualization area in the model display method provided by an embodiment of the present disclosure;

图6示出了本公开实施例所提供的模型展示方法中,另一种子三维区域和可视化区域的示意图;6 shows a schematic diagram of another sub-three-dimensional area and a visualization area in the model display method provided by an embodiment of the present disclosure;

图7示出了本公开实施例所提供的一种模型展示设备的架构示意图。FIG. 7 shows a schematic structural diagram of a model display device provided by an embodiment of the present disclosure.

图8示出了本公开实施例所提供的一种模型展示装置的架构示意图。FIG. 8 shows a schematic structural diagram of a model display apparatus provided by an embodiment of the present disclosure.

图9示出了本公开实施例所提供的一种电子设备的结构示意图。FIG. 9 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述。To make the purposes, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present disclosure.

针对每个三维模型,可以使用三维重建算法生成该三维模型对应的模型文件,而三维重建算法生成的三维模型的模型文件的数据容量较大,若场景中需要渲染的三维模型较多,且进行渲染展示的设备的内存容量较小时,将各个三维模型的模型文件加载到内存中,会造成内存容量较小的设备无法渲染展示各个三维模型,为各个三维模型的渲染展示带来不便。For each 3D model, a 3D reconstruction algorithm can be used to generate a model file corresponding to the 3D model, and the model file of the 3D model generated by the 3D reconstruction algorithm has a large data capacity. When the memory capacity of the device for rendering display is small, loading the model files of each 3D model into the memory will cause the device with small memory capacity to be unable to render and display each 3D model, which brings inconvenience to the rendering and display of each 3D model.

一般的,针对每个三维模型,可以构建多种精度的模型,比如高精度模型、中精度模型、低精度模型等;其中,针对同一模型,模型的精度越高,构建该三维模型所需的三角面片越多。进而,可以根据三维模型与用于拍摄三维模型的虚拟相机之间的距离,选择不同精度的三维模型进行渲染。比如,在三维模型距离较远时,可以选择低精度的该三维模型进行渲染展示,在三维模型距离较近时,可以选择高精度的该三维模型进行渲染展示。但是,通过构建多种精度的三维模型的方式进行渲染展示,使得三维模型的构建较为繁琐,且在三维模型渲染展示时,需要将多种精度的三维模型的模型文件加载到内存中,增大了内存开销。Generally, for each 3D model, models of various precisions can be constructed, such as high-precision model, medium-precision model, low-precision model, etc.; among them, for the same model, the higher the accuracy of the model, the higher the accuracy required to construct the 3D model. More triangles. Furthermore, three-dimensional models with different precisions can be selected for rendering according to the distance between the three-dimensional model and the virtual camera used to photograph the three-dimensional model. For example, when the three-dimensional model is far away, a low-precision three-dimensional model can be selected for rendering display, and when the three-dimensional model is relatively close, a high-precision three-dimensional model can be selected for rendering display. However, by constructing 3D models with various precisions for rendering and display, the construction of 3D models is cumbersome, and when the 3D model is rendered and displayed, the model files of the 3D models with various precisions need to be loaded into the memory, increasing the size of the 3D model. memory overhead.

为了缓解上述问题,本公开实施例提供了一种模型展示方法、设备、装置、电子设备及存储介质。To alleviate the above problems, embodiments of the present disclosure provide a model display method, device, apparatus, electronic device, and storage medium.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

为便于对本公开实施例进行理解,首先对本公开实施例所公开的一种模型展示方法进行详细介绍。本公开实施例所提供的模型展示方法的执行主体一般为具有一定计算能力的计算机设备,该计算机设备例如包括:终端设备或服务器;服务器比如可以为本地服务器、云端服务器等。终端设备比如可以为手机、平板、增强现实(Augmented Reality,AR)眼镜、个人数字助理(Personal Digital Assistant,PDA)等设备。在一些可能的实现方式中,该模型展示方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。In order to facilitate the understanding of the embodiments of the present disclosure, a model display method disclosed by the embodiments of the present disclosure is first introduced in detail. The execution body of the model display method provided by the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example, a terminal device or a server; the server may be, for example, a local server, a cloud server, or the like. The terminal device may be, for example, a mobile phone, a tablet, augmented reality (Augmented Reality, AR) glasses, a personal digital assistant (Personal Digital Assistant, PDA) and other devices. In some possible implementations, the model presentation method may be implemented by a processor invoking computer-readable instructions stored in a memory.

参见图1所示,为本公开实施例所提供的模型展示方法的流程示意图,该方法包括:S101-S103,其中:Referring to FIG. 1, which is a schematic flowchart of a model display method provided by an embodiment of the present disclosure, the method includes: S101-S103, wherein:

S101,获取目标场景中包括的每个三维模型对应的八叉树信息;其中,八叉树信息包括多个节点;每个节点表征的三维区域包括三维模型上的局部模型;节点包括的局部模型的精细程度、与节点的节点深度正相关;精细程度高的局部模型包括的顶点数量、大于精细程度低的局部模型包括的顶点数量;S101, obtain octree information corresponding to each three-dimensional model included in the target scene; wherein, the octree information includes a plurality of nodes; the three-dimensional region represented by each node includes a local model on the three-dimensional model; the local model included in the node The fineness of the node is positively correlated with the node depth of the node; the number of vertices included in the local model with high fineness is greater than the number of vertices included in the local model with low fineness;

S102,基于用于拍摄目标场景中三维模型的虚拟相机当前的拍摄参数信息,确定虚拟相机的可视化区域的区域信息;S102, based on the current shooting parameter information of the virtual camera used for shooting the three-dimensional model in the target scene, determine the area information of the visualization area of the virtual camera;

S103,基于目标场景包括的各个三维模型分别对应的八叉树信息和区域信息,确定位于可视化区域内的至少一个节点所包括的目标局部模型。S103: Determine a target local model included in at least one node located in the visualization region based on the octree information and region information respectively corresponding to each three-dimensional model included in the target scene.

上述方法中,通过获取目标场景中包括的每个三维模型对应的八叉树信息;其中,八叉树信息包括多个节点,每个节点表征的三维区域包括三维模型上的局部模型;即将三维模型划分为多个局部模型,每个局部模型对应八叉树中的一个节点。在基于虚拟相机当前的拍摄参数信息,确定虚拟相机的可视化区域的区域信息之后,基于虚拟相机当前的可视化区域的区域信息和各个三维模型的八叉树信息,能够较高效和较精准的确定位于可视化区域内的目标局部模型,实现了对各个三维模型的精细化渲染展示,提高了三维模型的展示灵活性。In the above method, the octree information corresponding to each three-dimensional model included in the target scene is obtained; wherein, the octree information includes a plurality of nodes, and the three-dimensional area represented by each node includes a local model on the three-dimensional model; The model is divided into multiple partial models, and each partial model corresponds to a node in the octree. After determining the area information of the visual area of the virtual camera based on the current shooting parameter information of the virtual camera, based on the area information of the current visual area of the virtual camera and the octree information of each 3D model, it is possible to more efficiently and accurately determine the location of the visual area. The target local model in the visualization area realizes the refined rendering display of each 3D model, and improves the display flexibility of the 3D model.

下述对S101-S103进行具体说明。S101-S103 will be specifically described below.

针对S101:For S101:

三维模型可以包括目标场景中真实物体对应的模型。比如,目标场景可以是学校场景、商场场景、办公场景等,三维模型可以包括学校场景中包括的教学楼、及教学楼内的课桌、椅子等真实物体的模型。或者,三维模型还可以包括构建的虚拟对象,比如,三维模型可以包括构建的虚拟教导员、虚拟动物等。The three-dimensional model may include models corresponding to real objects in the target scene. For example, the target scene may be a school scene, a shopping mall scene, an office scene, etc., and the three-dimensional model may include a teaching building included in the school scene, and models of real objects such as desks and chairs in the teaching building. Alternatively, the three-dimensional model may also include constructed virtual objects, for example, the three-dimensional model may include constructed virtual trainers, virtual animals, and the like.

每个三维模型对应的八叉树信息中包括多个节点,每个节点对应一个三维区域,该三维区域内包括该三维模型上的局部模型。其中,节点包括的局部模型的精细程度、与节点的节点深度正相关,即节点深度越大,节点表征的三维区域包括的局部模型的精细程度越高。其中,针对同一局部模型,精细程度高的局部模型包括的顶点数量、大于精细程度低的局部模型包括的顶点数量;也即精细程度高的局部模型包括的三角面片、大于精细程度低的局部模型包括的三角面片,该三角面片是由多个顶点、和顶点之间的连接关系构成的。The octree information corresponding to each three-dimensional model includes a plurality of nodes, each node corresponds to a three-dimensional area, and the three-dimensional area includes a local model on the three-dimensional model. The fineness of the local model included in the node is positively correlated with the node depth of the node, that is, the greater the node depth, the higher the fineness of the local model included in the three-dimensional region represented by the node. Among them, for the same local model, the number of vertices included in a local model with a high degree of detail is greater than the number of vertices included in a local model with a low degree of refinement; The triangular patch included in the model is composed of a plurality of vertices and the connection relationship between the vertices.

实施时,可以利用三维重建算法生成目标场景中的每个三维模型对应的模型文件,该三维模型可以为高精度模型。在构建得到目标场景中的各个三维模型之后,可以针对每个三维模型,确定该三维模型对应的八叉树信息。进而可以获取到各个三维模型分别对应的八叉树信息。During implementation, a three-dimensional reconstruction algorithm may be used to generate a model file corresponding to each three-dimensional model in the target scene, and the three-dimensional model may be a high-precision model. After each three-dimensional model in the target scene is constructed, the octree information corresponding to the three-dimensional model can be determined for each three-dimensional model. Further, the octree information corresponding to each three-dimensional model can be obtained.

一种可能的实施方式中,获取目标场景中包括的每个三维模型对应的八叉树信息,可以包括:In a possible implementation manner, acquiring the octree information corresponding to each 3D model included in the target scene may include:

步骤A1,获取目标场景中包括的每个三维模型的模型信息;Step A1, obtaining model information of each three-dimensional model included in the target scene;

步骤A2,基于每个三维模型对应的模型信息,生成三维模型对应的八叉树信息。Step A2, based on the model information corresponding to each three-dimensional model, generate octree information corresponding to the three-dimensional model.

一般的,三维模型可以包括:多个网格;其中,多个网格中的任一网格,与至少一个其他网格之间具有共用的顶点。多个网格之间相互连接,构成了三维模型。其中,每个网格是一个三角面片。Generally, a three-dimensional model may include: a plurality of meshes; wherein any mesh of the multiple meshes has a common vertex with at least one other mesh. Multiple meshes are connected to each other to form a 3D model. where each mesh is a triangular patch.

实施时,可以先获取目标场景中包括的各个三维模型的模型信息,该模型信息包括多个顶点的顶点坐标、以及顶点之间的连接边信息。During implementation, model information of each three-dimensional model included in the target scene may be acquired first, where the model information includes vertex coordinates of multiple vertices and information on connection edges between vertices.

再可以针对每个三模模型,基于该三维模型对应的模型信息,生成三维模型对应的八叉树信息。比如可以将三维模型作为目标模型,基于目标模型的模型信息,按照设置的切分方向,将目标模型划分为八个局部模型,得到每个局部模型的模型信息;再将每个局部模型作为目标模型,返回至按照设置的切分方向,将目标模型划分为八个局部模型的步骤,直至划分的次数等于设置的次数阈值,和/或,直至划分后的局部模型的体积小于或等于设置的体积阈值等。根据划分后得到的各个局部模型的模型信息,生成三维模型对应的八叉树信息。或者,对划分后得到的至少一个局部模型进行顶点删除处理,得到删除处理后的局部模型的模型信息;并根据删除处理后的局部模型的模型信息、和/或未删除顶点的局部模型的模型信息,生成三维模型对应的八叉树信息。Then, for each three-mode model, based on the model information corresponding to the three-dimensional model, the octree information corresponding to the three-dimensional model can be generated. For example, the 3D model can be used as the target model, and based on the model information of the target model, the target model can be divided into eight local models according to the set segmentation direction, and the model information of each local model can be obtained; then each local model can be used as the target. model, return to the step of dividing the target model into eight local models according to the set dividing direction, until the number of divisions is equal to the set number of times threshold, and/or, until the volume of the divided local models is less than or equal to the set volume threshold, etc. According to the model information of each partial model obtained after division, the octree information corresponding to the three-dimensional model is generated. Or, perform vertex deletion processing on at least one local model obtained after the division, and obtain model information of the deleted local model; information to generate the octree information corresponding to the 3D model.

这里,通过利用获取到的目标场景中包括的每个三维模型的模型信息,能够较精准的生成三维模型对应的八叉树信息,为后续确定目标局部模型提供数据支持,实现对目标场景中各个三维模型的精细化展示。Here, by using the obtained model information of each 3D model included in the target scene, the octree information corresponding to the 3D model can be generated more accurately, which can provide data support for the subsequent determination of the target local model, and realize the detection of each 3D model in the target scene. Refinement display of 3D models.

一种可能的实施方式中,在步骤A2中,基于每个三维模型对应的模型信息,生成三维模型对应的八叉树信息,可以包括:In a possible implementation manner, in step A2, based on the model information corresponding to each three-dimensional model, the octree information corresponding to the three-dimensional model is generated, which may include:

步骤A21,基于每个三维模型对应的模型信息,生成三维模型对应的初始八叉树信息。其中,初始八叉树信息中每个节点表征的三维区域包括三维模型对应的原始局部模型;原始局部模型中包括多个顶点、以及由顶点之间的连接关系构成的多个网格。Step A21, based on the model information corresponding to each three-dimensional model, generate initial octree information corresponding to the three-dimensional model. Wherein, the three-dimensional region represented by each node in the initial octree information includes the original local model corresponding to the three-dimensional model; the original local model includes multiple vertices and multiple meshes formed by connection relationships between the vertices.

步骤A22,针对初始八叉树信息中每个节点,确定节点对应的原始局部模型中的待删除顶点,以及基于原始局部模型包括的多个顶点中除待删除顶点外的其他顶点,生成节点对应的局部模型。Step A22, for each node in the initial octree information, determine the vertex to be deleted in the original local model corresponding to the node, and based on the other vertices except the vertex to be deleted in the multiple vertices included in the original local model, generate the corresponding vertex of the node. the local model.

步骤A23,基于各个节点对应的局部模型的局部模型信息,生成三维模型对应的八叉树信息。Step A23: Generate octree information corresponding to the three-dimensional model based on the local model information of the local model corresponding to each node.

本公开实施例中,针对生成的初始八叉树信息中的每个节点,确定节点对应的原始局部模型中的待删除顶点,并基于原始局部模型包括的多个顶点中除待删除顶点外的其他顶点,生成节点对应的局部模型,其中,顶点删除后的局部模型的模型精度、低于未删除的原始局部模型,降低了节点对应的模型的模型精度,再基于各个节点对应的局部模型的局部模型信息,能够较精准的生成三维模型对应的八叉树信息,以便后续能够利用三维模型对应的八叉树信息,较准确的确定位于视化区域内目标局部模型,实现了三维模型的精细化展示。In the embodiment of the present disclosure, for each node in the generated initial octree information, the vertex to be deleted in the original local model corresponding to the node is determined, and the vertex to be deleted is determined based on the multiple vertices included in the original local model except the vertex to be deleted. For other vertices, the local model corresponding to the node is generated. The model accuracy of the local model after vertex deletion is lower than the original local model that was not deleted, which reduces the model accuracy of the model corresponding to the node. The local model information can more accurately generate the octree information corresponding to the 3D model, so that the octree information corresponding to the 3D model can be used to more accurately determine the local model of the target located in the visualization area, and the detailed 3D model can be realized. display.

在步骤A21中,在获取到三维模型的模型信息之后,可以基于该三维模型对应的模型信息,生成该三维模型对应的初始八叉树信息;其中,初始八叉树信息包括多个节点,每个节点表征的三维区域包括三维模型对应的原始局部模型,该原始局部模型为顶点未删除的模型。即初始八叉树信息中各个节点对应的原始局部模型的模型精度相同。In step A21, after acquiring the model information of the three-dimensional model, initial octree information corresponding to the three-dimensional model may be generated based on the model information corresponding to the three-dimensional model; wherein the initial octree information includes a plurality of nodes, and each The three-dimensional region represented by each node includes an original local model corresponding to the three-dimensional model, and the original local model is a model with vertices not deleted. That is, the model accuracy of the original local model corresponding to each node in the initial octree information is the same.

比如可以将三维模型按照设置的切分方向进行划分,得到多个原始局部模型、和原始局部模型的模型信息。再根据多个原始局部模型的模型信息,生成三维模型对应的八叉树信息。For example, the three-dimensional model can be divided according to the set segmentation direction, and a plurality of original partial models and model information of the original partial models can be obtained. Then, according to the model information of the multiple original local models, the octree information corresponding to the three-dimensional model is generated.

一种可能的实施方式中,步骤A21中,基于每个三维模型对应的模型信息,生成三维模型对应的初始八叉树信息,包括:In a possible implementation, in step A21, based on the model information corresponding to each three-dimensional model, the initial octree information corresponding to the three-dimensional model is generated, including:

步骤A211,将三维模型作为目标模型,基于目标模型的模型信息,按照设置的划分方式,将目标模型对应的三维区域划分为八个子三维区域。Step A211, taking the three-dimensional model as the target model, and dividing the three-dimensional area corresponding to the target model into eight sub-three-dimensional areas based on the model information of the target model and according to the set division method.

其中,三维模型的三维区域对应的节点为根节点,根节点的节点信息包括三维模型的模型信息;以及每个子三维区域对应一个子节点;每个子节点的节点信息包括:位于节点对应的子三维区域内的原始局部模型的模型信息、或者预设信息。Wherein, the node corresponding to the three-dimensional area of the three-dimensional model is the root node, and the node information of the root node includes the model information of the three-dimensional model; and each sub-three-dimensional area corresponds to a child node; the node information of each child node includes: Model information or preset information of the original local model in the area.

步骤A212,在存在满足预设条件的子节点时,将满足预设条件的子节点中包括的原始局部模型作为目标模型,返回至基于目标模型的模型信息,按照设置的划分方式,将目标模型对应的三维区域划分为八个子三维区域的步骤,直至划分后得到的子节点均不满足预设条件。Step A212, when there is a child node that satisfies the preset condition, take the original local model included in the child node that satisfies the preset condition as the target model, return to the model information based on the target model, and divide the target model according to the set division method. The step of dividing the corresponding three-dimensional region into eight sub-three-dimensional regions, until none of the sub-nodes obtained after the division meet the preset conditions.

其中,满足预设条件的子节点包括:节点深度小于设置的深度阈值的子节点,和/或,节点信息包括的模型信息中顶点数量大于设置的数量阈值的子节点。The child nodes satisfying the preset conditions include: child nodes whose node depth is less than a set depth threshold, and/or child nodes whose number of vertices in the model information included in the node information is greater than the set number threshold.

步骤A213,基于生成的根节点的节点信息、和各个子节点的节点信息,生成三维模型对应的初始八叉树信息。Step A213, based on the generated node information of the root node and the node information of each child node, generate initial octree information corresponding to the three-dimensional model.

将三维模型作为目标模型,基于目标模型的模型信息,按照设置的划分方式,将目标模型对应的三维区域划分为八个子三维区域。目标模型对应的三维区域可以为包围该目标模型的三维检测框所处的三维区域。或者,目标模型对应的三维区域也可以为该目标模型的轮廓所处的三维区域。The 3D model is taken as the target model, and based on the model information of the target model, the 3D region corresponding to the target model is divided into eight sub-3D regions according to the set division method. The three-dimensional area corresponding to the target model may be a three-dimensional area where a three-dimensional detection frame surrounding the target model is located. Alternatively, the three-dimensional region corresponding to the target model may also be the three-dimensional region where the contour of the target model is located.

划分方式可以包括多个切割方向,比如可以包括水平方向、竖直方向和垂直方向,且水平方向、竖直方向和垂直方向中任意两个方向之间相互垂直。其中,设置的切割方向可以参见图2所示。The division manner may include multiple cutting directions, for example, may include a horizontal direction, a vertical direction, and a vertical direction, and any two of the horizontal direction, the vertical direction, and the vertical direction are perpendicular to each other. Wherein, the set cutting direction can be referred to as shown in FIG. 2 .

参见图2所示,将三维模型作为目标模型,沿着划分方式指示的多个切割方向,将目标模型对应的三维区域(即目标模型的三维检测框所处的三维区域)划分为8个子三维区域。其中,将三维模型的三维区域对应的节点为根节点,根节点的节点信息包括三维模型的模型信息,即图2上右侧的八叉树中节点1为根节点。以及每个子三维区域对应一个子节点,即子节点2、子节点3、……、子节点9;每个子节点的节点信息包括:位于节点对应的子三维区域内的原始局部模型的模型信息、或者预设信息。在节点对应的子三维区域内不存在原始局部模型时,可以将该节点的节点信息设置为预设信息,预设信息比如可以为0等。Referring to Figure 2, the three-dimensional model is used as the target model, and the three-dimensional area corresponding to the target model (that is, the three-dimensional area where the three-dimensional detection frame of the target model is located) is divided into 8 sub-three-dimensional areas along the multiple cutting directions indicated by the division method. area. Wherein, the node corresponding to the three-dimensional area of the three-dimensional model is the root node, and the node information of the root node includes the model information of the three-dimensional model, that is, node 1 in the octree on the right side of FIG. 2 is the root node. And each child three-dimensional area corresponds to a child node, namely child node 2, child node 3, ..., child node 9; the node information of each child node includes: the model information of the original local model located in the child three-dimensional area corresponding to the node, or preset information. When the original local model does not exist in the sub-three-dimensional region corresponding to the node, the node information of the node may be set as preset information, and the preset information may be, for example, 0 or the like.

在得到多个子节点之后,针对每个子节点,判断该子节点是否满足预设条件,若满足预设条件,则将该子节点中包括的原始局部模型作为目标模型,返回至基于目标模型的模型信息,按照设置的划分方式,将目标模型对应的三维区域划分为八个子三维区域的步骤。比如,若确定图2中的子节点4满足预设条件,则将子节点4中包括的原始局部模型作为目标模型,返回至步骤A211。若确定图2中的子节点2不满足预设条件,则不进行后续的处理,即该子节点2无需进行切分处理。After obtaining multiple sub-nodes, for each sub-node, determine whether the sub-node satisfies the preset condition. If the preset condition is met, the original local model included in the sub-node is used as the target model, and the model based on the target model is returned to the information, according to the set division method, the step of dividing the three-dimensional area corresponding to the target model into eight sub-three-dimensional areas. For example, if it is determined that the child node 4 in FIG. 2 satisfies the preset condition, the original local model included in the child node 4 is used as the target model, and the process returns to step A211. If it is determined that the child node 2 in FIG. 2 does not meet the preset condition, no subsequent processing is performed, that is, the child node 2 does not need to be segmented.

其中,预设条件可以包括节点深度小于设置的深度阈值,和/或,节点信息包括的模型信息中顶点数量大于设置的数量阈值。比如,在子节点的节点深度小于设置的深度阈值,和/或,子节点的节点信息包括的模型信息中顶点数量大于设置的数量阈值。子节点的节点深度、与子节点在八叉树中所处的层数相关,比如,如图2中,根节点1的节点深度可以为0、子节点2至子节点9的节点深度可以为1、子节点10至子节点25的节点深度可以为2。The preset condition may include that the node depth is less than a set depth threshold, and/or the number of vertices in the model information included in the node information is greater than the set number threshold. For example, the node depth of the child node is less than the set depth threshold, and/or the number of vertices in the model information included in the node information of the child node is greater than the set number threshold. The node depth of the child node is related to the layer number of the child node in the octree. For example, as shown in Figure 2, the node depth of the root node 1 can be 0, and the node depth of the child node 2 to the child node 9 can be 1. The node depth of child node 10 to child node 25 may be 2.

深度阈值、数量阈值可以根据实际情况进行设置,比如,深度阈值可以为4、5、6等,数量阈值可以为5、8等。The depth threshold and the quantity threshold can be set according to the actual situation. For example, the depth threshold can be 4, 5, 6, etc., and the quantity threshold can be 5, 8, etc.

实施时,若该子节点的节点信息包括预设信息时,则确定该子节点不满足预设条件,不会对该子节点对应的子三维区域进行划分。若该子节点的节点信息包括位于该子节点对应的子三维区域内的原始局部模型的模型信息时,判断该子节点是否满足预设条件,并在该子节点满足预设条件的情况下,将该子节点中包括的原始局部模型作为目标模型,对该目标模型对应的三维区域进行划分,直至划分后得到的子节点均不满足预设条件,得到了根节点、根节点的节点信息、和多个子节点、每个子节点的节点信息。During implementation, if the node information of the child node includes preset information, it is determined that the child node does not meet the preset condition, and the child three-dimensional region corresponding to the child node will not be divided. If the node information of the sub-node includes the model information of the original local model located in the sub-3D region corresponding to the sub-node, it is judged whether the sub-node satisfies the preset condition, and if the sub-node satisfies the preset condition, The original local model included in the sub-node is used as the target model, and the three-dimensional area corresponding to the target model is divided until the sub-nodes obtained after division do not meet the preset conditions, and the root node, the node information of the root node, and multiple child nodes, node information for each child node.

进而基于根节点的节点信息和各个子节点的节点信息,生成三维模型对应的初始八叉树信息。参见图2右侧展示的八叉树,其中,该八叉树中每个圆形代表一个节点。Then, based on the node information of the root node and the node information of each child node, initial octree information corresponding to the three-dimensional model is generated. See the octree shown on the right side of Figure 2, where each circle in the octree represents a node.

这里,通过将三维模型作为目标模型,基于目标模型的模型信息,按照设置的划分方式,将目标模型对应的三维区域划分为八个子三维区域;并设置预设条件,在确定存在满足预设条件的子节点时,将子节点进行划分,直至划分后得到的子节点均不满足预设条件,得到了根节点的节点信息和各个子节点的节点信息。进而基于根节点的节点信息和各个子节点的节点信息,较准确的生成三维模型对应的初始八叉树信息。Here, by taking the 3D model as the target model, based on the model information of the target model, according to the set division method, the 3D region corresponding to the target model is divided into eight sub-3D regions; When the sub-nodes are divided into sub-nodes, the sub-nodes are divided until none of the sub-nodes obtained after division meet the preset conditions, and the node information of the root node and the node information of each sub-node are obtained. Furthermore, based on the node information of the root node and the node information of each child node, the initial octree information corresponding to the three-dimensional model is more accurately generated.

在步骤A22中,针对初始八叉树信息中的每个节点,可以确定该节点对应的原始局部模型中的待删除顶点;比如,可以根据原始局部模型上具有同一顶点的任意两个网格之间的法线相似度,从原始局部模型包括的多个顶点中确定待删除顶点。In step A22, for each node in the initial octree information, the vertex to be deleted in the original local model corresponding to the node can be determined; The normal similarity between them is determined, and the vertex to be deleted is determined from the multiple vertices included in the original local model.

再基于原始局部模型包括的多个顶点中除待删除顶点外的其他顶点,生成节点对应的局部模型。比如,可以利用三角剖分算法,对原始局部模型包括的多个顶点中除待删除顶点外的其他顶点进行三角剖分处理,生成新的网格;根据新的网格和其他顶点,得到该节点对应的局部模型。Then, a local model corresponding to the node is generated based on other vertices except the vertex to be deleted among the multiple vertices included in the original local model. For example, a triangulation algorithm can be used to triangulate other vertices except the vertex to be deleted among the vertices included in the original local model to generate a new mesh; according to the new mesh and other vertices, the The local model corresponding to the node.

实施时,三角剖分算法例如包括下述步骤:步骤1,求出简单多边形的凹凸顶点。步骤2,对三角形按照内角的最小值进行排序并除去其中最大的构造三角形网格;修改多边形的顶点链表重新计算多边形的凹凸性;重复此过程,直到边界顶点链表为空时结束。步骤3,在局部范围内,按照最大-最小准则,得到Delaunay三角网,即得到除待删除顶点外的其他顶点构成的至少一个网格。During implementation, the triangulation algorithm includes, for example, the following steps: Step 1: Find the concave and convex vertices of a simple polygon. Step 2, sort the triangles according to the minimum value of the interior angle and remove the largest one to construct the triangle mesh; modify the vertex list of the polygon to recalculate the convexity of the polygon; repeat this process until the boundary vertex list is empty. Step 3, in the local scope, according to the maximum-minimum criterion, obtain the Delaunay triangulation, that is, obtain at least one mesh composed of other vertices except the vertices to be deleted.

一种可能的实施方式中,在步骤A22中,确定节点对应的原始局部模型中的待删除顶点,包括:In a possible implementation, in step A22, determining the vertex to be deleted in the original local model corresponding to the node, including:

步骤A221,基于节点包括的原始局部模型的模型信息,确定模型信息指示的多个网格分别对应的法线之间的法线相似度。Step A221: Based on the model information of the original local model included in the node, determine the normal similarity between the normals corresponding to the multiple meshes indicated by the model information.

步骤A222,基于多个网格分别对应的法线之间的法线相似度,确定节点对应的原始局部模型中的待删除顶点。Step A222: Determine the vertex to be deleted in the original local model corresponding to the node based on the normal similarity between the normals corresponding to the multiple meshes respectively.

实施时,针对初始八叉树信息中的每个节点,基于该节点包括的原始局部模型的模型信息,确定该原始局部模型包括的多个网格,并确定每个网格对应的面的法线;比如可以根据构成该网格的三个顶点的坐标信息,确定该网格对应的面的法向量,将该法向量作为该网格对应的法线。再确定原始局部模型包括的多个网格中,具有同一顶点的两个网格的法线之间的法线相似度。比如,可以根据两个网格的法向量,确定法线之间的距离;并将该距离,确定为两个网格的法线之间的法线相似度。During implementation, for each node in the initial octree information, based on the model information of the original local model included in the node, determine a plurality of meshes included in the original partial model, and determine the method of the surface corresponding to each mesh. For example, the normal vector of the face corresponding to the grid can be determined according to the coordinate information of the three vertices constituting the grid, and the normal vector can be used as the normal corresponding to the grid. Then, among the multiple meshes included in the original local model, the normal similarity between the normals of two meshes with the same vertex is determined. For example, the distance between the normals may be determined according to the normal vectors of the two grids; and the distance may be determined as the normal similarity between the normals of the two grids.

再基于多个网络分别对应的法线之间的法线相似度,确定该节点对应的原始局部模型中的待删除顶点。比如,可以将具有一个共同顶点的两个网格对应的法线之间的法线相似度、与该节点对应的法线相似度阈值进行比对,若两个网格对应的法线之间的法线相似度、大于该节点对应的法线相似度阈值,则将两个网格之间共用的顶点作为待删除顶点。其中,节点对应的法线相似度阈值可以根据实际情况进行设置。Then, based on the normal similarity between the normals corresponding to the multiple networks, the vertex to be deleted in the original local model corresponding to the node is determined. For example, the normal similarity between the normals corresponding to two grids with a common vertex and the normal similarity threshold corresponding to the node can be compared. If the normal similarity is greater than the normal similarity threshold corresponding to the node, the vertex shared between the two meshes is used as the vertex to be deleted. Among them, the normal similarity threshold corresponding to the node can be set according to the actual situation.

这里,通过基于节点对应的原始局部模型的模型信息,确定模型信息指示的多个网格分别对应的法线之间的法线相似度;再基于多个网格分别对应的法线之间的法线相似度,较简便的从原始局部模型的多个顶点中确定待删除顶点;然后基于多个顶点中除待删除顶点外的其他顶点,生成节点对应的局部模型,实现对原始局部模型的简化,提升三维模型简化的效率。Here, based on the model information of the original local model corresponding to the node, the normal similarity between the normals corresponding to the multiple grids indicated by the model information is determined; The normal similarity can easily determine the vertices to be deleted from the multiple vertices of the original local model; then based on the other vertices in the multiple vertices except the vertices to be deleted, the local model corresponding to the node is generated to realize the original local model. Simplify, improve the efficiency of 3D model simplification.

一种可能的实施方式中,在步骤A222中,基于多个网格分别对应的法线之间的法线相似度,确定节点对应的原始局部模型中的待删除顶点,包括:In a possible implementation manner, in step A222, the vertex to be deleted in the original local model corresponding to the node is determined based on the normal similarity between the normals corresponding to the multiple grids, including:

步骤一、遍历原始局部模型的各个顶点,针对遍历到的顶点,确定包括遍历到的顶点的目标网格。Step 1: Traverse each vertex of the original local model, and determine a target mesh including the traversed vertex for the traversed vertex.

步骤二、将目标网格对应的法线之间的法线相似度、与节点对应的法线相似度阈值进行比对;其中,节点对应的法线相似度阈值与节点对应的节点深度正相关。Step 2: Compare the normal similarity between the normals corresponding to the target grid and the normal similarity threshold corresponding to the node; wherein, the normal similarity threshold corresponding to the node is positively correlated with the node depth corresponding to the node .

步骤三、响应于法线相似度大于或者等于法线相似度阈值,将遍历到的顶点确定为待删除顶点。Step 3: In response to the normal similarity being greater than or equal to the normal similarity threshold, determine the traversed vertex as the vertex to be deleted.

实施时,需要遍历的顶点,可以是原始局部模型中的所有顶点,也可以是部分顶点。例如只对原始局部模型表征的某个侧面进行简化,则将该侧面中的顶点作为需要遍历的顶点。在遍历原始局部模型的各个顶点时,可以根据遍历到的顶点所在的位置确定该顶点对应的目标网格,即确定包括该顶点的目标网络。During implementation, the vertices that need to be traversed can be all vertices in the original local model, or some vertices. For example, only a certain side represented by the original local model is simplified, and the vertices in the side are regarded as vertices to be traversed. When traversing each vertex of the original local model, the target mesh corresponding to the vertex can be determined according to the position of the traversed vertex, that is, the target mesh including the vertex can be determined.

如图3所示的原始局部模型的示例中,该原始局部模型包括14个顶点,即a1~a14为遍历到的顶点,以及还包括a1~a14之间的连接关系构成的网格。In the example of the original local model shown in FIG. 3 , the original local model includes 14 vertices, that is, a1 to a14 are traversed vertices, and also includes a mesh formed by the connection relationship between a1 to a14.

假设当前遍历的顶点为a4,则能够确定所有与a4具有连接关系的顶点包括:a1、a2、a3、a5、a6,对应的目标网格包括:(a4,a1,a2)、(a4,a2,a6)、(a4,a6,a5)、(a4,a5,a3)、(a4,a3,a1)。Assuming that the current traversed vertex is a4, it can be determined that all vertices that have a connection relationship with a4 include: a1, a2, a3, a5, a6, and the corresponding target meshes include: (a4, a1, a2), (a4, a2 , a6), (a4, a6, a5), (a4, a5, a3), (a4, a3, a1).

假设当前遍历到的顶点为a9,则能够确定与a9具有关联关系的顶点包括:a5、a10、a13、a8,对应的目标网格包括:M1(a9,a5,a10)、M2(a9,a10,a13)、M3(a9,a13,a8)、M4(a9,a8,a5)。Assuming that the currently traversed vertex is a9, it can be determined that the vertices associated with a9 include: a5, a10, a13, a8, and the corresponding target meshes include: M1 (a9, a5, a10), M2 (a9, a10) , a13), M3 (a9, a13, a8), M4 (a9, a8, a5).

在确定了目标网格之后,可以通过计算法向量之间距离的方式,确定目标网格对应的法线之间的法线相似度,该距离例如包括:欧式距离、曼哈顿距离、夹角余弦、汉明距离、切比雪夫距离等中至少一种,具体可以根据实际情况进行确定。After the target grid is determined, the normal similarity between the normals corresponding to the target grid can be determined by calculating the distance between the normal vectors. The distance includes, for example: Euclidean distance, Manhattan distance, included angle cosine, At least one of the Hamming distance, the Chebyshev distance, etc., can be determined according to the actual situation.

在确定了目标网格之间法线的法线相似度后,可以将目标网格对应的法线之间的法线相似度、与节点对应的法线相似度阈值进行比对;响应于法线相似度大于或者等于法线相似度阈值,将遍历到的顶点确定为待删除顶点。其中,节点对应的法线相似度阈值与节点对应的节点深度正相关。即节点对应的节点深度越大,则节点对应的法线相似度阈值越大。After the normal similarity of the normals between the target grids is determined, the normal similarity between the normals corresponding to the target grids and the normal similarity threshold corresponding to the node can be compared; If the line similarity is greater than or equal to the normal similarity threshold, the traversed vertex is determined as the vertex to be deleted. Among them, the normal similarity threshold corresponding to the node is positively correlated with the node depth corresponding to the node. That is, the greater the node depth corresponding to the node, the greater the normal similarity threshold corresponding to the node.

一般的,针对同一个三维模型,法线相似度阈值越大,确定的该三维模型上的待删除顶点的数量越少,对该三维模型的简化越小,简化后的三维模型的精度较大;相反,法线相似度阈值越小,确定的该三维模型上的待删除顶点的数量越多,对该三维模型的简化越大,简化后的三维模型的精度较小。通过为节点深度不同的节点,设置不同的法线相似度阈值,使得节点深度不同的节点对应的原始局部模型的精度不同,实现对目标场景中各个三维模型的精细化展示。Generally, for the same 3D model, the larger the normal similarity threshold is, the smaller the number of vertices to be deleted on the 3D model is determined, the smaller the simplification of the 3D model, and the greater the accuracy of the simplified 3D model. ; On the contrary, the smaller the normal similarity threshold, the more determined the number of vertices to be deleted on the 3D model, the greater the simplification of the 3D model, and the smaller the accuracy of the simplified 3D model. By setting different normal similarity thresholds for nodes with different node depths, the accuracy of the original local models corresponding to nodes with different node depths is different, and a refined display of each 3D model in the target scene is achieved.

比如,在三维模型距离虚拟相机较近时,则确定展示该三维模型上节点深度较大的节点所对应的目标局部模型,该目标局部模型的精度较高,即该情况下展示的是精度较高的目标局部模型;在三维模型距离虚拟相机较远时,则确定展示该三维模型上节点深度较小的节点所对应的目标局部模型,该目标局部模型的精度较低,即该情况下展示的是精度较低的目标局部模型,实现了三维模型的精细化展示。For example, when the 3D model is closer to the virtual camera, it is determined to display the target local model corresponding to the node with a larger node depth on the 3D model. High target local model; when the 3D model is far from the virtual camera, the target local model corresponding to the node with a smaller node depth on the 3D model is determined to be displayed. The accuracy of the target local model is low, that is, the display in this case It is the target local model with lower accuracy, which realizes the refined display of the 3D model.

比如,在图2中,节点1的深度为0,则节点1对应的法线相似度阈值比如可以为0.6;节点2至节点9的深度均为1,那么节点2至节点9对应的法线相似度阈值相同,比如可以为0.8;节点10至节点25的深度均为2,则节点10至节点25对应的法线相似度阈值相同,比如可以为0.9。For example, in Figure 2, the depth of node 1 is 0, then the normal similarity threshold corresponding to node 1 can be, for example, 0.6; the depths of nodes 2 to 9 are all 1, then the normals corresponding to nodes 2 to 9 The similarity thresholds are the same, for example, may be 0.8; the depths of nodes 10 to 25 are all 2, then the normal similarity thresholds corresponding to nodes 10 to 25 are the same, for example, may be 0.9.

示例性的,结合图3继续说明,针对当前遍历到的顶点为a9,该顶点a9对应的目标网络包括M1、M2、M3、M4,则可以得到M1和M2,M1和M3,M1和M4,M2和M3,M2和M4,M3和M4,共6个目标网格对分别对应的法线相似度,若M1和M2,M1和M3,M1和M4,M2和M3,M2和M4,M3和M4分别对应的法线相似度均大于或等于节点对应的法线相似度阈值,则表征M1、M2、M3和M4能够被合并到同一平面,同时也不会对目标局部模型所表征的结构造成接受范围外的影响,因此可以将遍历到的顶点a9作为待删除顶点。Exemplarily, continue to explain in conjunction with Fig. 3, for the vertex currently traversed to a9, the target network corresponding to the vertex a9 includes M1, M2, M3, M4, then M1 and M2, M1 and M3, M1 and M4 can be obtained, M2 and M3, M2 and M4, M3 and M4, a total of 6 target grid pairs corresponding to the normal similarity respectively, if M1 and M2, M1 and M3, M1 and M4, M2 and M3, M2 and M4, M3 and The normal similarity corresponding to M4 is greater than or equal to the normal similarity threshold corresponding to the node, which means that M1, M2, M3 and M4 can be merged into the same plane, and it will not cause any damage to the structure represented by the target local model. Influence outside the range is accepted, so the traversed vertex a9 can be used as the vertex to be deleted.

若上述6个目标网格对中,任一目标网格对所对应的法线相似度小于节点对应的法线相似度阈值,则表征若将a9删除,将M1、M2、M3和M4合并到同一平面,会对三维模型所表征的结构造成较大的影响,因此不能将顶点a9删除,也即不能将其作为待删除顶点。If among the above 6 target grid pairs, the normal similarity corresponding to any target grid pair is less than the normal similarity threshold corresponding to the node, it means that if a9 is deleted, M1, M2, M3 and M4 are merged into The same plane will have a greater impact on the structure represented by the three-dimensional model, so the vertex a9 cannot be deleted, that is, it cannot be used as the vertex to be deleted.

遍历原始局部模型中的所有顶点,将能够从原始局部模型中删除的顶点作为待删除顶点。Traverse all vertices in the original local model, and take the vertices that can be deleted from the original local model as the vertices to be deleted.

这样,通过数值可控的法线相似度阈值来限制顶点删除的边界,使得对原始局部模型的简化的精细度可控,在保障了简化后的局部模型的精度的同时,提高了模型简化的效率。In this way, the boundary of vertex deletion is limited by a numerically controllable normal similarity threshold, so that the fineness of the simplification of the original local model is controllable, while the accuracy of the simplified local model is guaranteed, and the simplification of the model is improved at the same time. efficiency.

在步骤A23中,在得到各个节点对应的局部模型的局部模型信息之后,可以根据各个节点对应的局部模型的局部模型信息,生成三维模型对应的八叉树信息。In step A23, after obtaining the local model information of the local model corresponding to each node, the octree information corresponding to the three-dimensional model may be generated according to the local model information of the local model corresponding to each node.

针对S102:For S102:

这里,虚拟相机可以为渲染引擎中包括的用于对三维模型进行拍摄的虚拟相机。虚拟相机的当前的拍摄参数信息可以包括虚拟相机的当前位姿、虚拟相机的可视角度范围、虚拟相机的可视距离等。其中,可视角度范围和可视距离可以根据实际情况进行设置。比如,可视角度范围可以与人眼视度相匹配,可视距离可以为50米等。Here, the virtual camera may be a virtual camera included in the rendering engine for photographing the three-dimensional model. The current shooting parameter information of the virtual camera may include the current pose of the virtual camera, the viewing angle range of the virtual camera, the viewing distance of the virtual camera, and the like. Among them, the visible angle range and the visible distance can be set according to the actual situation. For example, the viewing angle range can be matched with the visual degree of human eyes, and the viewing distance can be 50 meters.

实施时,可以根据虚拟相机的可视角度范围、虚拟相机的可视距离,确定在虚拟相机的当前位姿下,虚拟相机对应的当前的可视化区域、和可视化区域的区域信息。During implementation, the current visual area corresponding to the virtual camera and the area information of the visual area under the current pose of the virtual camera may be determined according to the visual angle range of the virtual camera and the visual distance of the virtual camera.

针对S103:For S103:

实施时,可以先基于虚拟相机的可视化区域的区域信息,确定目标场景中位于可视化区域内的三维模型;再基于位于可视化区域内的三维模型对应的八叉树信息,确定位于可视化区域内的至少一个节点所包括的目标局部模型。比如可以将八叉树信息包括的每个节点表征的三维区域、与可视化区域进行比较,确定位于可视化区域内的至少一个节点所包括的目标局部模型。During implementation, the three-dimensional model in the target scene located in the visualization area can be determined based on the area information of the visualization area of the virtual camera; then based on the octree information corresponding to the three-dimensional model located in the visualization area, at least The target local model contained in a node. For example, the three-dimensional region represented by each node included in the octree information may be compared with the visualization region to determine the target local model included in at least one node located in the visualization region.

一种可能的实施方式中,基于目标场景包括的各个三维模型分别对应的八叉树信息和区域信息,确定位于可视化区域内的至少一个节点所包括的目标局部模型,包括:In a possible implementation manner, the target local model included in at least one node located in the visualization area is determined based on the octree information and area information corresponding to each three-dimensional model included in the target scene, including:

步骤B1,基于区域信息、目标场景中包括的每个三维模型的展示位姿和模型尺寸,确定位于可视化区域内的至少一个目标三维模型。Step B1: Determine at least one target three-dimensional model located in the visualization area based on the area information, the displayed pose and model size of each three-dimensional model included in the target scene.

步骤B2,基于目标三维模型对应的八叉树信息、和区域信息,确定可视化区域内的至少一个节点所包括的目标局部模型。Step B2, based on the octree information and the area information corresponding to the target three-dimensional model, determine the target local model included in at least one node in the visualization area.

实施时,基于区域信息、目标场景中包括的每个三维模型的展示位姿和模型尺寸,确定位于可视化区域内的至少一个目标三维模型。比如,可以根据每个三维模型的展示位姿和模型尺寸,确定该三维模型在目标场景中所处的空间区域;再判断该三维模型对应的空间区域是否与可视化区域重叠,若重叠,则该三维模型属于目标三维模型;若不重叠,则该三维模型不属于目标三维模型。During implementation, at least one target three-dimensional model located in the visualization area is determined based on the area information, the displayed pose and model size of each three-dimensional model included in the target scene. For example, according to the displayed pose and model size of each 3D model, determine the spatial area where the 3D model is located in the target scene; and then determine whether the spatial area corresponding to the 3D model overlaps with the visualization area. The 3D model belongs to the target 3D model; if it does not overlap, the 3D model does not belong to the target 3D model.

再基于目标三维模型对应的八叉树信息和区域信息,确定位于可视化区域内的至少一个节点所包括的目标局部模型。比如,可以将八叉树信息包括的每个节点表征的三维区域、与当前的可视化区域进行比较,根据比较结果,确定位于当前的可视化区域内的至少一个节点所包括的目标局部模型。比如,若比较结果指示当前的可视化区域完全包围节点的三维区域,则该节点所包括的局部模型属于目标局部模型。Then, based on the octree information and the area information corresponding to the target three-dimensional model, the target local model included in at least one node located in the visualization area is determined. For example, the three-dimensional region represented by each node included in the octree information can be compared with the current visualization region, and according to the comparison result, the target local model included in at least one node located in the current visualization region can be determined. For example, if the comparison result indicates that the current visualization area completely surrounds the three-dimensional area of the node, the local model included in the node belongs to the target local model.

本公开实施例中,基于区域信息、目标场景中包括的每个三维模型的展示位姿和模型尺寸,确定位于可视化区域内的至少一个目标三维模型;再根据目标三维模型对应的八叉树信息和区域信息,较精准的确定可视化区域内的至少一个节点所包括的目标局部模型,且目标局部模型的确定过程较简便、效率较高。In the embodiment of the present disclosure, at least one target 3D model located in the visualization area is determined based on the area information, the displayed pose and model size of each 3D model included in the target scene; and then according to the octree information corresponding to the target 3D model and area information, the target local model included in at least one node in the visualization area can be more accurately determined, and the determination process of the target local model is relatively simple and efficient.

一种可能的实施方式中,在步骤B2中,基于目标三维模型对应的八叉树信息、和区域信息,确定可视化区域内的至少一个节点所包括的目标局部模型,包括:In a possible implementation, in step B2, based on the octree information and the area information corresponding to the target three-dimensional model, determine the target local model included in at least one node in the visualization area, including:

步骤B21,将目标三维模型对应的八叉树信息中的根节点作为待处理节点,确定待处理节点对应的三维区域是否完全位于区域信息指示的可视化区域;Step B21, taking the root node in the octree information corresponding to the target three-dimensional model as the node to be processed, and determining whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area indicated by the area information;

步骤B22,在待处理节点对应的三维区域部分位于可视化区域的情况下,将与待处理节点相连的每个子节点作为待处理节点,返回至确定待处理节点对应的三维区域是否完全位于区域信息指示的可视化区域的步骤,直至待处理节点对应的三维区域完全位于所述可视化区域;Step B22, in the case that the three-dimensional area corresponding to the node to be processed is partially located in the visualization area, use each child node connected to the node to be processed as the node to be processed, and return to determine whether the three-dimensional area corresponding to the node to be processed is completely located in the area information indication The step of visualizing the area until the three-dimensional area corresponding to the node to be processed is completely located in the visual area;

步骤B23,在待处理节点对应的三维区域完全位于可视化区域的情况下,将待处理节点所包括的局部模型,确定为位于可视化区域内的节点所包括的目标局部模型。Step B23, in the case that the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, determine the local model included in the node to be processed as the target local model included in the node located in the visualization area.

将目标三维模型对应的八叉树信息中的根节点作为待处理节点,确定待处理节点对应的三维区域是否完全位于区域信息指示的可视化区域。若待处理节点对应的三维区域部分位于可视化区域,则执行步骤B22;若待处理节点对应的三维区域完全位于可视化区域,则执行步骤B23;若待处理节点对应的三维区域完全不位于可视化区域,则确定该待处理节点所包括的局部模型不属于目标局部模型。The root node in the octree information corresponding to the target three-dimensional model is used as the node to be processed, and it is determined whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area indicated by the area information. If the three-dimensional area corresponding to the node to be processed is partially located in the visualization area, then go to step B22; if the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, go to step B23; if the three-dimensional area corresponding to the node to be processed is not located in the visualization area at all, Then it is determined that the local model included in the node to be processed does not belong to the target local model.

实施时,从目标三维模型对应的八叉树信息中的根节点开始遍历,若根节点对应的三维区域部分位于可视化区域,则遍历与根节点相连的子节点,即将与根节点相连的每个子节点作为待处理节点,确定待处理节点对应的三维区域是否完全位于可视化区域。During implementation, start traversing from the root node in the octree information corresponding to the target 3D model. If the 3D area corresponding to the root node is partially located in the visualization area, then traverse the child nodes connected to the root node, that is, each child node connected to the root node. The node is used as the node to be processed, and it is determined whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area.

在待处理节点对应的三维区域部分位于可视化区域时,将与待处理节点相连的每个子节点作为待处理节点,返回至确定待处理节点对应的三维区域是否完全位于区域信息指示的可视化区域的步骤,直至待处理节点对应的三维区域完全位于可视化区域。参见图4所示,待处理节点对应的三维区域部分位于可视化区域的示意图。When the three-dimensional area corresponding to the node to be processed is partially located in the visualization area, take each child node connected to the node to be processed as the node to be processed, and return to the step of determining whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area indicated by the area information , until the three-dimensional area corresponding to the node to be processed is completely located in the visualization area. Referring to FIG. 4 , it is a schematic diagram that the three-dimensional area corresponding to the node to be processed is partially located in the visualization area.

在待处理节点对应的三维区域完全位于可视化区域的情况下,将待处理节点所包括的局部模型,确定为目标局部模型。参见图5所示,待处理节点对应的三维区域完全位于可视化区域的示意图。When the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, the local model included in the node to be processed is determined as the target local model. Referring to FIG. 5 , it is a schematic diagram that the three-dimensional area corresponding to the node to be processed is completely located in the visualization area.

在节点对应的三维区域完全不位于可视化区域的情况下,确定节点包括的局部模型不属于目标局部模型,不进行渲染展示。参见图6所示,节点对应的三维区域完全不位于可视化区域的示意图。When the three-dimensional area corresponding to the node is not located in the visualization area at all, it is determined that the local model included in the node does not belong to the target local model, and rendering display is not performed. Referring to Fig. 6, a schematic diagram showing that the three-dimensional area corresponding to the node is not located in the visualization area at all.

上述方式中,通过判断待处理节点对应的三维区域是否完全位于可视化区域内,在待处理节点对应的三维区域完全位于可视化区域时,将待处理节点所包括的局部模型,确定为目标局部模型,提高了目标局部模型的准确度和效率。In the above method, by judging whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, when the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, the local model included in the node to be processed is determined as the target local model, Improves the accuracy and efficiency of the target local model.

本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.

基于相同的构思,本公开实施例还提供了一种模型展示设备,参见图7所示,为本公开实施例提供的模型展示设备的架构示意图,包括中央处理器(central processingunit,CPU)701、图形处理器(graphics processing unit,GPU)702,具体的:Based on the same concept, an embodiment of the present disclosure also provides a model display device. Referring to FIG. 7 , a schematic diagram of the architecture of the model display device provided by the embodiment of the present disclosure includes a central processing unit (CPU) 701, A graphics processor (graphics processing unit, GPU) 702, specifically:

所述CPU701,用于存储目标场景中包括的各个三维模型对应的八叉树信息,并在确定了至少一个节点所包括的目标局部模型之后,将所述节点包括的目标局部模型的模型信息传输至所述GPU;其中,所述至少一个节点所包括的目标局部模型为利用上述实施方式所述的模型展示方法确定的。The CPU 701 is used to store the octree information corresponding to each three-dimensional model included in the target scene, and after determining the target local model included in at least one node, transmit the model information of the target local model included in the node. to the GPU; wherein, the target local model included in the at least one node is determined by using the model display method described in the above embodiment.

所述GPU702,用于将接收到的所述节点包括的目标局部模型的模型信息存储至内部存储器中;并通过读取所述内部存储器中所述模型信息,在虚拟相机的拍摄画面中,对所述目标局部模型进行渲染展示。The GPU 702 is configured to store the received model information of the target local model included in the node into the internal memory; and by reading the model information in the internal memory, in the shooting picture of the virtual camera, the The target local model is rendered and displayed.

实施时,可以在构建了各个三维模型之后,根据目标场景中各个三维模型的模型信息,确定每个三维模型对应的八叉树信息;并将各个三维模型对应的八叉树信息存储至CPU中。以及,可以按照上述实施方式,确定待渲染展示的目标局部模型。将目标局部模型的模型信息传输至相连的GPU。其中,目标局部模型的确定过程可参考上述对S101至S103的具体描述,此处不在赘述。During implementation, after constructing each 3D model, according to the model information of each 3D model in the target scene, determine the octree information corresponding to each 3D model; and store the octree information corresponding to each 3D model in the CPU . And, the target local model to be rendered and displayed can be determined according to the above-mentioned implementation manner. Transfer the model information of the target local model to the connected GPU. For the determination process of the target local model, reference may be made to the specific descriptions of S101 to S103 above, which will not be repeated here.

GPU将接收到的目标局部模型的模型信息存储至内部存储器(内存),并通过读取内存中的模型信息,在虚拟相机的拍摄画面中,对目标局部模型进行渲染展示。The GPU stores the received model information of the target local model in the internal memory (memory), and by reading the model information in the memory, renders and displays the target local model in the shooting screen of the virtual camera.

这里,通过利用第一方面或任一实施方式所述的模型展示方法,较精准的确定了目标局部模型之后,可以将目标局部模型的模型信息发送给GPU,无需向GPU发送其他局部模型的模型信息,减少了信息传输量,缓解了将无需渲染的其他局部模型的模型信息发送给GPU时造成带宽资源的消耗,提高了带宽资源的利用率。同时,将目标局部模型的模型信息加载至内部存储器(内存),无需将其他局部模型的模型信息加载至内存中,减少了内存的开销,提高了内存的利用率。Here, by using the model display method described in the first aspect or any one of the embodiments, after the target local model is more accurately determined, the model information of the target local model can be sent to the GPU, and there is no need to send the models of other local models to the GPU. information, reducing the amount of information transmission, alleviating the consumption of bandwidth resources when sending model information of other local models that do not need to be rendered to the GPU, and improving the utilization of bandwidth resources. At the same time, the model information of the target local model is loaded into the internal memory (memory), and there is no need to load the model information of other local models into the memory, which reduces memory overhead and improves memory utilization.

一种可选实施方式中,所述CPU,还用于在目标局部模型更新之后,将更新后的目标局部模型的模型信息发送给所述GPU;In an optional implementation manner, the CPU is further configured to send the updated model information of the target local model to the GPU after the target local model is updated;

所述GPU,还用于将所述内部存储器中与所述更新后的目标局部模型不匹配的模型信息删除;以及,将所述更新后的目标局部模型中,未存储的目标局部模型的模型信息存储至所述内部存储器中。The GPU is also used to delete the model information that does not match the updated target partial model in the internal memory; and, in the updated target partial model, the model of the unstored target partial model Information is stored in the internal memory.

在虚拟相机的当前位姿发生改变时,虚拟相机的当前的拍摄参数信息发生改变,虚拟相机对应的可视化区域发生了改变,故确定的目标局部模型会发生改变。可以利用上述S101-S03的过程重新确定目标局部模型。When the current pose of the virtual camera changes, the current shooting parameter information of the virtual camera changes, and the visualization area corresponding to the virtual camera changes, so the determined local model of the target will change. The target local model can be re-determined using the processes of S101-S03 described above.

在基于八叉树信息和虚拟相机对应的更新后的当前的拍摄参数信息,从目标场景区域内的各个三维模型中确定更新后的目标局部模型之后,CPU可以将更新后的目标局部模型的模型信息发送给GPU。GPU可以将内存中与更新后的目标局部模型不匹配的模型信息删除;以及,将更新后的目标局部模型中,未存储的目标局部模型的模型信息存储至内存,使得内存中存储的为需要渲染展示的目标局部模型的模型信息,缓解内存资源的消耗,提高内存资源的利用率。After determining the updated target local model from each 3D model in the target scene area based on the octree information and the updated current shooting parameter information corresponding to the virtual camera, the CPU can convert the updated target local model to the model Information is sent to the GPU. The GPU can delete the model information in the memory that does not match the updated target local model; and, in the updated target local model, the model information of the unstored target local model is stored in the memory, so that what is stored in the memory is required Rendering and displaying the model information of the target local model, alleviating the consumption of memory resources and improving the utilization of memory resources.

上述实施方式中,在目标局部模型更新后,可以将更新的目标局部模型的模型信息加载至内存,将内存中与更新后的目标局部模型不匹配的模型信息删除,以保障内存中加载的是当前需要渲染展示的目标局部模型的模型信息,避免内存资源的浪费。In the above embodiment, after the target local model is updated, the model information of the updated target local model can be loaded into the memory, and the model information in the memory that does not match the updated target local model is deleted, so as to ensure that what is loaded in the memory is correct. Currently, the model information of the target local model needs to be rendered and displayed to avoid the waste of memory resources.

基于相同的构思,本公开实施例还提供了一种模型展示装置,参见图8所示,为本公开实施例提供的模型展示装置的架构示意图,包括获取模块801、第一确定模块802、第二确定模块803,具体的:Based on the same concept, an embodiment of the present disclosure also provides a model display device. Referring to FIG. 8 , a schematic diagram of the architecture of the model display device provided by the embodiment of the present disclosure includes an acquisition module 801 , a first determination module 802 , a first The second determination module 803, specifically:

获取模块801,用于获取目标场景中包括的每个三维模型对应的八叉树信息;其中,所述八叉树信息包括多个节点;每个所述节点表征的三维区域包括所述三维模型上的局部模型;所述节点包括的局部模型的精细程度、与所述节点的节点深度正相关;精细程度高的局部模型包括的顶点数量、大于精细程度低的局部模型包括的顶点数量;The obtaining module 801 is configured to obtain octree information corresponding to each 3D model included in the target scene; wherein, the octree information includes a plurality of nodes; the 3D region represented by each node includes the 3D model The fineness of the local model included in the node is positively correlated with the node depth of the node; the number of vertices included in the local model with high fineness is greater than the number of vertices included in the local model with low fineness;

第一确定模块802,用于基于用于拍摄所述目标场景中三维模型的虚拟相机当前的拍摄参数信息,确定所述虚拟相机的可视化区域的区域信息;a first determination module 802, configured to determine the area information of the visualized area of the virtual camera based on the current shooting parameter information of the virtual camera used for shooting the three-dimensional model in the target scene;

第二确定模块803,用于基于所述目标场景包括的各个三维模型分别对应的八叉树信息和所述区域信息,确定位于所述可视化区域内的至少一个节点所包括的目标局部模型。The second determining module 803 is configured to determine, based on the octree information and the region information corresponding to each three-dimensional model included in the target scene, a target local model included in at least one node located in the visualization region.

一种可能的实施方式中,所述装置还包括:第一生成模块804,所述第一生成模块804,用于根据下述步骤生成目标场景中包括的每个三维模型对应的八叉树信息:In a possible implementation manner, the apparatus further includes: a first generation module 804, the first generation module 804 is configured to generate octree information corresponding to each three-dimensional model included in the target scene according to the following steps: :

获取目标场景中包括的每个三维模型的模型信息;Obtain model information of each 3D model included in the target scene;

基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的八叉树信息。Based on the model information corresponding to each of the three-dimensional models, octree information corresponding to the three-dimensional models is generated.

一种可能的实施方式中,所述第一生成模块804,在基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的八叉树信息时,用于:In a possible implementation manner, the first generation module 804, when generating the octree information corresponding to the three-dimensional model based on the model information corresponding to each of the three-dimensional models, is used for:

基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的初始八叉树信息;其中,所述初始八叉树信息中每个节点表征的三维区域包括所述三维模型对应的原始局部模型;所述原始局部模型中包括多个顶点、以及由顶点之间的连接关系构成的多个网格;Based on the model information corresponding to each of the three-dimensional models, initial octree information corresponding to the three-dimensional model is generated; wherein, the three-dimensional region represented by each node in the initial octree information includes the corresponding three-dimensional model. The original local model; the original local model includes a plurality of vertices and a plurality of meshes formed by the connection relationship between the vertices;

针对所述初始八叉树信息中每个节点,确定所述节点对应的原始局部模型中的待删除顶点,以及基于所述原始局部模型包括的多个顶点中除所述待删除顶点外的其他顶点,生成所述节点对应的局部模型;For each node in the initial octree information, determine the vertex to be deleted in the original local model corresponding to the node, and determine the vertex to be deleted based on the multiple vertices included in the original local model except the vertex to be deleted vertex, generate the local model corresponding to the node;

基于各个节点对应的局部模型的局部模型信息,生成所述三维模型对应的八叉树信息。Based on the local model information of the local model corresponding to each node, the octree information corresponding to the three-dimensional model is generated.

一种可能的实施方式中,所述装置还包括:第二生成模块805,所述第二生成装置,在基于每个所述三维模型对应的所述模型信息,生成所述三维模型对应的初始八叉树信息时,用于:In a possible implementation manner, the device further includes: a second generation module 805, the second generation device generates an initial value corresponding to the three-dimensional model based on the model information corresponding to each of the three-dimensional models. When octree information is used, it is used to:

将所述三维模型作为目标模型,基于所述目标模型的模型信息,按照设置的划分方式,将所述目标模型对应的三维区域划分为八个子三维区域;其中,所述三维模型的所述三维区域对应的节点为根节点,所述根节点的节点信息包括所述三维模型的模型信息;以及每个子三维区域对应一个子节点;每个子节点的节点信息包括:位于所述节点对应的子三维区域内的原始局部模型的模型信息、或者预设信息;Taking the three-dimensional model as the target model, based on the model information of the target model, according to the set division method, the three-dimensional area corresponding to the target model is divided into eight sub-three-dimensional areas; wherein, the three-dimensional area of the three-dimensional model The node corresponding to the area is a root node, and the node information of the root node includes the model information of the three-dimensional model; and each sub-three-dimensional area corresponds to a child node; the node information of each child node includes: located in the sub-three-dimensional corresponding to the node Model information or preset information of the original local model in the area;

在存在满足预设条件的子节点时,将满足所述预设条件的子节点中包括的原始局部模型作为目标模型,返回至基于所述目标模型的模型信息,按照设置的划分方式,将所述目标模型对应的三维区域划分为八个子三维区域的步骤,直至划分后得到的子节点均不满足预设条件;其中,满足预设条件的子节点包括:节点深度小于设置的深度阈值的子节点,和/或,节点信息包括的模型信息中顶点数量大于设置的数量阈值的子节点;When there is a child node that satisfies the preset condition, the original local model included in the child node that satisfies the preset condition is used as the target model, and the model information based on the target model is returned. The step of dividing the three-dimensional region corresponding to the target model into eight sub-three-dimensional regions, until the sub-nodes obtained after the division do not meet the preset conditions; wherein, the sub-nodes that meet the preset conditions include: nodes whose depth is less than the set depth threshold. Nodes, and/or, child nodes whose number of vertices in the model information included in the node information is greater than the set number threshold;

基于生成的所述根节点的节点信息、和各个子节点的节点信息,生成所述三维模型对应的初始八叉树信息。Based on the generated node information of the root node and the node information of each child node, initial octree information corresponding to the three-dimensional model is generated.

一种可能的实施方式中,所述装置还包括:第三确定模块806,所述第三确定模块806,用于确定所述节点对应的原始局部模型中的待删除顶点:In a possible implementation manner, the apparatus further includes: a third determination module 806, the third determination module 806 is configured to determine the vertex to be deleted in the original local model corresponding to the node:

基于所述节点包括的原始局部模型的模型信息,确定所述模型信息指示的多个网格分别对应的法线之间的法线相似度;Based on the model information of the original local model included in the node, determine the normal similarity between the normals corresponding to the multiple meshes indicated by the model information;

基于所述多个网格分别对应的法线之间的法线相似度,确定所述节点对应的原始局部模型中的待删除顶点。The vertex to be deleted in the original local model corresponding to the node is determined based on the normal similarity between the normals corresponding to the multiple meshes respectively.

一种可能的实施方式中,所述第三确定模块806,在基于所述多个网格分别对应的法线之间的法线相似度,确定所述节点对应的原始局部模型中的待删除顶点时,用于:In a possible implementation manner, the third determining module 806 determines, based on the normal similarity between the normals corresponding to the multiple grids, the to-be-deleted items in the original local model corresponding to the node. When vertices are used:

遍历所述原始局部模型的各个顶点,针对遍历到的顶点,确定包括所述遍历到的顶点的目标网格;Traversing the vertices of the original local model, and determining the target mesh including the traversed vertices for the traversed vertices;

将所述目标网格对应的法线之间的法线相似度、与所述节点对应的法线相似度阈值进行比对;其中,所述节点对应的法线相似度阈值与所述节点对应的节点深度正相关;Compare the normal similarity between the normals corresponding to the target grid and the normal similarity threshold corresponding to the node; wherein, the normal similarity threshold corresponding to the node corresponds to the node The node depth of is positively correlated;

响应于所述法线相似度大于或者等于所述法线相似度阈值,将所述遍历到的顶点确定为待删除顶点。In response to the normal similarity being greater than or equal to the normal similarity threshold, the traversed vertex is determined as a vertex to be deleted.

一种可能的实施方式中,所述第一确定模块802,在基于所述目标场景包括的各个三维模型分别对应的八叉树信息和所述区域信息,确定位于所述可视化区域内的至少一个节点所包括的目标局部模型时,用于:In a possible implementation manner, the first determining module 802 determines at least one octree located in the visualization area based on the octree information and the area information corresponding to each three-dimensional model included in the target scene. When the target local model is included in the node, it is used to:

基于所述区域信息、所述目标场景中包括的每个三维模型的展示位姿和模型尺寸,确定位于所述可视化区域内的至少一个目标三维模型;determining at least one target three-dimensional model located in the visualization area based on the area information, the displayed pose and model size of each three-dimensional model included in the target scene;

基于所述目标三维模型对应的八叉树信息、和所述区域信息,确定所述可视化区域内的至少一个节点所包括的目标局部模型。Based on the octree information corresponding to the target three-dimensional model and the area information, a target local model included in at least one node in the visualization area is determined.

一种可能的实施方式中,所述第二确定模块803,在基于所述目标三维模型对应的八叉树信息、和所述区域信息,确定所述可视化区域内的至少一个节点所包括的目标局部模型时,用于:In a possible implementation manner, the second determining module 803 determines the target included in at least one node in the visualization area based on the octree information corresponding to the target three-dimensional model and the area information. When a local model is used:

将所述目标三维模型对应的所述八叉树信息中的根节点作为待处理节点,确定所述待处理节点对应的三维区域是否完全位于所述区域信息指示的可视化区域;Taking the root node in the octree information corresponding to the target three-dimensional model as the node to be processed, it is determined whether the three-dimensional area corresponding to the node to be processed is completely located in the visualization area indicated by the area information;

在所述待处理节点对应的三维区域部分位于所述可视化区域的情况下,将与所述待处理节点相连的每个子节点作为待处理节点,返回至确定所述待处理节点对应的三维区域是否完全位于所述区域信息指示的可视化区域的步骤,直至待处理节点对应的三维区域完全位于所述可视化区域;In the case that the three-dimensional area corresponding to the node to be processed is partially located in the visualization area, take each child node connected to the node to be processed as a node to be processed, and return to determining whether the three-dimensional area corresponding to the node to be processed is not The step of being completely located in the visualization area indicated by the area information, until the three-dimensional area corresponding to the node to be processed is completely located in the visualization area;

在所述待处理节点对应的三维区域完全位于所述可视化区域的情况下,将所述待处理节点所包括的局部模型,确定为位于所述可视化区域内的节点所包括的目标局部模型。When the three-dimensional area corresponding to the node to be processed is completely located in the visualization area, the local model included in the node to be processed is determined as the target local model included in the node located in the visualization area.

在一些实施例中,本公开实施例提供的装置具有的功能或包含的模板可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or templates included in the apparatus provided by the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments. For specific implementation, reference may be made to the above method embodiments. For brevity, here No longer.

基于同一技术构思,本公开实施例还提供了一种电子设备。参照图9所示,为本公开实施例提供的电子设备的结构示意图,包括处理器901、存储器902、和总线903。其中,存储器902用于存储执行指令,包括内存9021和外部存储器9022;这里的内存9021也称内存储器,用于暂时存放处理器901中的运算数据,以及与硬盘等外部存储器9022交换的数据,处理器901通过内存9021与外部存储器9022进行数据交换,当电子设备900运行时,处理器901与存储器902之间通过总线903通信,使得处理器901在执行以下指令:Based on the same technical concept, an embodiment of the present disclosure also provides an electronic device. Referring to FIG. 9 , a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure includes a processor 901 , a memory 902 , and a bus 903 . Among them, the memory 902 is used to store the execution instructions, including the memory 9021 and the external memory 9022; the memory 9021 here is also called the internal memory, and is used to temporarily store the operation data in the processor 901 and the data exchanged with the external memory 9022 such as the hard disk, The processor 901 exchanges data with the external memory 9022 through the memory 9021. When the electronic device 900 is running, the processor 901 communicates with the memory 902 through the bus 903, so that the processor 901 executes the following instructions:

获取目标场景中包括的每个三维模型对应的八叉树信息;其中,所述八叉树信息包括多个节点;每个所述节点表征的三维区域包括所述三维模型上的局部模型;所述节点包括的局部模型的精细程度、与所述节点的节点深度正相关;精细程度高的局部模型包括的顶点数量、大于精细程度低的局部模型包括的顶点数量;Acquire octree information corresponding to each 3D model included in the target scene; wherein, the octree information includes multiple nodes; the 3D region represented by each node includes a local model on the 3D model; The fineness of the local model included in the node is positively correlated with the node depth of the node; the number of vertices included in the local model with high fineness is greater than the number of vertices included in the local model with low finesse;

基于用于拍摄所述目标场景中三维模型的虚拟相机当前的拍摄参数信息,确定所述虚拟相机的可视化区域的区域信息;Determine the area information of the visualization area of the virtual camera based on the current shooting parameter information of the virtual camera used for shooting the three-dimensional model in the target scene;

基于所述目标场景包括的各个三维模型分别对应的八叉树信息和所述区域信息,确定位于所述可视化区域内的至少一个节点所包括的目标局部模型。Based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene, a target local model included in at least one node located in the visualization region is determined.

其中,处理器901的具体处理流程可以参照上述方法实施例的记载,这里不再赘述。For the specific processing flow of the processor 901, reference may be made to the records of the foregoing method embodiments, which will not be repeated here.

此外,本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的模型展示方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。In addition, an embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the model display method described in the above method embodiments are executed. . Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.

本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中所述的模型展示方法的步骤,具体可参见上述方法实施例,在此不再赘述。Embodiments of the present disclosure further provide a computer program product, where the computer program product carries program codes, and the instructions included in the program codes can be used to execute the steps of the model display method described in the foregoing method embodiments. For details, please refer to the foregoing method. The embodiments are not repeated here.

其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Wherein, the above-mentioned computer program product can be specifically implemented by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. Wait.

本公开涉及增强现实领域,通过获取现实环境中的目标对象的图像信息,进而借助各类视觉相关算法实现对目标对象的相关特征、状态及属性进行检测或识别处理,从而得到与具体应用匹配的虚拟与现实相结合的AR效果。示例性的,目标对象可涉及与人体相关的脸部、肢体、手势、动作等,或者与物体相关的标识物、标志物,或者与场馆或场所相关的沙盘、展示区域或展示物品等。视觉相关算法可涉及视觉定位、SLAM、三维重建、图像注册、背景分割、对象的关键点提取及跟踪、对象的位姿或深度检测等。具体应用不仅可以涉及跟真实场景或物品相关的导览、导航、讲解、重建、虚拟效果叠加展示等交互场景,还可以涉及与人相关的特效处理,比如妆容美化、肢体美化、特效展示、虚拟模型展示等交互场景。可通过卷积神经网络,实现对目标对象的相关特征、状态及属性进行检测或识别处理。上述卷积神经网络是基于深度学习框架进行模型训练而得到的网络模型。The present disclosure relates to the field of augmented reality. By acquiring image information of a target object in a real environment, various visual correlation algorithms are used to detect or identify the relevant features, states, and attributes of the target object, so as to obtain an image matching the specific application. AR effect that combines virtual and reality. Exemplarily, the target object may involve faces, limbs, gestures, movements, etc. related to the human body, or objects, markers, or sandboxes, display areas, or display items related to venues or venues. Vision-related algorithms may involve visual localization, SLAM, 3D reconstruction, image registration, background segmentation, object keypoint extraction and tracking, object pose or depth detection, etc. The specific application can not only involve interactive scenes such as navigation, navigation, explanation, reconstruction, and virtual effect overlay display related to real scenes or items, but also special effects processing related to people, such as makeup beautification, body beautification, special effects display, virtual Model display and other interactive scenarios. The relevant features, states and attributes of the target object can be detected or recognized through the convolutional neural network. The above convolutional neural network is a network model obtained by model training based on a deep learning framework.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on this understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that make contributions to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.

以上仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical scope of the present disclosure can easily think of changes or substitutions, which should be covered within the scope of the present disclosure. within the scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (13)

1. A method of model display, comprising:
acquiring octree information corresponding to each three-dimensional model included in a target scene; wherein the octree information comprises a plurality of nodes; each three-dimensional region characterized by a node comprises a local model on the three-dimensional model; the fineness of a local model included by the node is positively correlated with the node depth of the node; the local model with high fineness comprises the number of vertexes, and the number of vertexes is larger than that of the local model with low fineness;
determining area information of a visual area of a virtual camera based on current shooting parameter information of the virtual camera for shooting a three-dimensional model in the target scene;
and determining a target local model included in at least one node positioned in the visualization region based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene.
2. The method according to claim 1, wherein the obtaining octree information corresponding to each three-dimensional model included in the target scene comprises:
obtaining model information of each three-dimensional model included in a target scene;
and generating octree information corresponding to the three-dimensional models based on the model information corresponding to each three-dimensional model.
3. The method of claim 2, wherein generating octree information corresponding to each of the three-dimensional models based on the model information corresponding to the three-dimensional model comprises:
generating initial octree information corresponding to the three-dimensional models based on the model information corresponding to each three-dimensional model; wherein, the three-dimensional region represented by each node in the initial octree information comprises an original local model corresponding to the three-dimensional model; the original local model comprises a plurality of vertexes and a plurality of meshes formed by the connection relations among the vertexes;
determining a vertex to be deleted in an original local model corresponding to each node in the initial octree information, and generating a local model corresponding to the node based on other vertexes except the vertex to be deleted in a plurality of vertexes included in the original local model;
and generating octree information corresponding to the three-dimensional model based on the local model information of the local model corresponding to each node.
4. The method of claim 3, wherein generating initial octree information corresponding to each of the three-dimensional models based on the model information corresponding to the three-dimensional model comprises:
taking the three-dimensional model as a target model, and dividing a three-dimensional area corresponding to the target model into eight sub three-dimensional areas according to a set dividing mode on the basis of model information of the target model; the node corresponding to the three-dimensional region of the three-dimensional model is a root node, and the node information of the root node comprises model information of the three-dimensional model; each sub three-dimensional area corresponds to one sub node; the node information of each child node includes: model information or preset information of the original local model located in the sub-three-dimensional region corresponding to the node;
when the child nodes meeting the preset conditions exist, the original local model included in the child nodes meeting the preset conditions is used as a target model, model information based on the target model is returned, and the three-dimensional region corresponding to the target model is divided into eight sub three-dimensional regions according to the set dividing mode until the divided child nodes do not meet the preset conditions; wherein, the child node satisfying the preset condition includes: the node depth is smaller than the child nodes of the set depth threshold value, and/or the number of vertexes in the model information included in the node information is larger than the child nodes of the set number threshold value;
and generating initial octree information corresponding to the three-dimensional model based on the generated node information of the root node and the node information of each child node.
5. The method according to claim 3 or 4, wherein the determining the vertex to be deleted in the original local model corresponding to the node comprises:
determining normal similarity between normals respectively corresponding to a plurality of grids indicated by the model information based on the model information of the original local model included by the node;
and determining the vertexes to be deleted in the original local model corresponding to the nodes based on the normal similarity among the normals respectively corresponding to the grids.
6. The method according to claim 5, wherein the determining vertices to be deleted in the original local model corresponding to the nodes based on the normal similarity between the normals corresponding to the meshes respectively comprises:
traversing each vertex of the original local model, and determining a target mesh comprising the traversed vertex aiming at the traversed vertex;
comparing the normal similarity between the normals corresponding to the target grid with a normal similarity threshold corresponding to the node; wherein the normal similarity threshold corresponding to the node is positively correlated with the node depth corresponding to the node;
and determining the traversed vertex as a vertex to be deleted in response to the normal similarity being greater than or equal to the normal similarity threshold.
7. The method according to any one of claims 1 to 6, wherein the determining a target local model included in at least one node located in the visualization region based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene comprises:
determining at least one target three-dimensional model located within the visualization area based on the area information, the display pose and the model size of each three-dimensional model included in the target scene;
and determining a target local model included by at least one node in the visualization region based on the octree information corresponding to the target three-dimensional model and the region information.
8. The method according to claim 7, wherein the determining the target local model included in the at least one node in the visualization region based on the octree information corresponding to the target three-dimensional model and the region information comprises:
taking a root node in the octree information corresponding to the target three-dimensional model as a node to be processed, and determining whether a three-dimensional region corresponding to the node to be processed is completely located in a visual region indicated by the region information;
under the condition that the three-dimensional region corresponding to the node to be processed is partially located in the visualization region, taking each sub-node connected with the node to be processed as the node to be processed, and returning to the step of determining whether the three-dimensional region corresponding to the node to be processed is completely located in the visualization region indicated by the region information until the three-dimensional region corresponding to the node to be processed is completely located in the visualization region;
and under the condition that the three-dimensional region corresponding to the node to be processed is completely positioned in the visualization region, determining the local model included by the node to be processed as a target local model included by the node positioned in the visualization region.
9. A model display apparatus, comprising: a central processing unit CPU and a graphic processing unit GPU;
the CPU is used for storing octree information corresponding to each three-dimensional model included in a target scene, and transmitting model information of a target local model included by at least one node to the GPU after determining the target local model included by the node; wherein, the target local model included in the at least one node is determined by using the model display method of any one of claims 1 to 8;
the GPU is used for storing the received model information of the target local model included by the node into an internal memory; and rendering and displaying the target local model in a shooting picture of a virtual camera by reading the model information in the internal memory.
10. The apparatus of claim 9, wherein the CPU is further configured to send, after the target local model is updated, model information of the updated target local model to the GPU;
the GPU is also used for deleting the model information which is not matched with the updated target local model in the internal memory; and storing the model information of the target local model which is not stored in the updated target local model into the internal memory.
11. A model display apparatus, comprising:
the acquisition module is used for acquiring octree information corresponding to each three-dimensional model in a target scene; wherein the octree information comprises a plurality of nodes; each three-dimensional region characterized by a node comprises a local model on the three-dimensional model; the fineness of a local model included by the node is positively correlated with the node depth of the node; the local model with high fineness comprises the number of vertexes, and the number of vertexes is larger than that of the local model with low fineness;
the first determination module is used for determining the area information of a visual area of a virtual camera based on the current shooting parameter information of the virtual camera used for shooting the three-dimensional model in the target scene;
and the second determining module is used for determining a target local model included in at least one node located in the visualization region based on the octree information and the region information respectively corresponding to each three-dimensional model included in the target scene.
12. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the model exhibition method according to any one of claims 1 to 8.
13. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the model exhibition method according to one of the claims 1 to 8.
CN202210153040.4A 2022-02-18 2022-02-18 Model display method, device, apparatus, electronic device and storage medium Pending CN114529648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210153040.4A CN114529648A (en) 2022-02-18 2022-02-18 Model display method, device, apparatus, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210153040.4A CN114529648A (en) 2022-02-18 2022-02-18 Model display method, device, apparatus, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN114529648A true CN114529648A (en) 2022-05-24

Family

ID=81623706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210153040.4A Pending CN114529648A (en) 2022-02-18 2022-02-18 Model display method, device, apparatus, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114529648A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116049924A (en) * 2023-03-07 2023-05-02 武汉益模科技股份有限公司 Three-dimensional part difference analysis algorithm based on Cuda
CN118379437A (en) * 2024-06-21 2024-07-23 杭州群核信息技术有限公司 Model processing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003054804A2 (en) * 2001-12-21 2003-07-03 Vrcontext S.A./N.V. Virtual reality files for complex environments
US20030227455A1 (en) * 2002-06-04 2003-12-11 Lake Adam T. Grid-based loose octree for spatial partitioning
US20070182734A1 (en) * 2006-02-08 2007-08-09 3-D-V-U Israel (2000) Ltd. Adaptive Quadtree-based Scalable Surface Rendering
US20170039759A1 (en) * 2014-04-17 2017-02-09 3D Slash Three dimensional modeling
CN110910505A (en) * 2019-11-29 2020-03-24 西安建筑科技大学 Accelerated rendering method of scene model
CN112473127A (en) * 2020-11-24 2021-03-12 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for large-scale same object rendering
CN114529647A (en) * 2022-02-18 2022-05-24 北京市商汤科技开发有限公司 Object rendering method, device and apparatus, electronic device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003054804A2 (en) * 2001-12-21 2003-07-03 Vrcontext S.A./N.V. Virtual reality files for complex environments
US20030227455A1 (en) * 2002-06-04 2003-12-11 Lake Adam T. Grid-based loose octree for spatial partitioning
US20070182734A1 (en) * 2006-02-08 2007-08-09 3-D-V-U Israel (2000) Ltd. Adaptive Quadtree-based Scalable Surface Rendering
US20170039759A1 (en) * 2014-04-17 2017-02-09 3D Slash Three dimensional modeling
CN110910505A (en) * 2019-11-29 2020-03-24 西安建筑科技大学 Accelerated rendering method of scene model
CN112473127A (en) * 2020-11-24 2021-03-12 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for large-scale same object rendering
CN114529647A (en) * 2022-02-18 2022-05-24 北京市商汤科技开发有限公司 Object rendering method, device and apparatus, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭雪峰;孙红胜;岳春生;: "一种基于视点的大规模三维地形实时渲染算法", 太赫兹科学与电子信息学报, no. 01, 25 February 2015 (2015-02-25), pages 1 - 3 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116049924A (en) * 2023-03-07 2023-05-02 武汉益模科技股份有限公司 Three-dimensional part difference analysis algorithm based on Cuda
CN118379437A (en) * 2024-06-21 2024-07-23 杭州群核信息技术有限公司 Model processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110889890B (en) Image processing method and device, processor, electronic equipment and storage medium
US11928779B2 (en) Multi-resolution voxel meshing
WO2020093307A1 (en) Method and device for simplifying three-dimensional mesh model
CN112927363A (en) Voxel map construction method and device, computer readable medium and electronic equipment
CN103942832B (en) A kind of indoor scene real-time reconstruction method based on online structural analysis
CN113160420A (en) Three-dimensional point cloud reconstruction method and device, electronic equipment and storage medium
CN113313832B (en) Semantic generation method and device of three-dimensional model, storage medium and electronic equipment
WO2023024441A1 (en) Model reconstruction method and related apparatus, and electronic device and storage medium
WO2025092176A1 (en) Reconstruction method and apparatus for three-dimensional entity model, device, medium and program product
CN114529648A (en) Model display method, device, apparatus, electronic device and storage medium
CN113643414A (en) Three-dimensional image generation method and device, electronic equipment and storage medium
CN114529647A (en) Object rendering method, device and apparatus, electronic device and storage medium
US20240203030A1 (en) 3d model rendering method and apparatus, electronic device, and storage medium
CN114708374A (en) Virtual image generation method, device, electronic device and storage medium
CN111402429B (en) Scale reduction and three-dimensional reconstruction method, system, storage medium and equipment
CN114820980A (en) Three-dimensional reconstruction method and device, electronic equipment and readable storage medium
US20240212282A1 (en) Image rendering method and apparatus, device, and medium
WO2019042028A1 (en) All-around spherical light field rendering method
WO2024188110A1 (en) Method and device for generating three-dimensional urban texture model on basis of composite data
US20230260218A1 (en) Method and apparatus for presenting object annotation information, electronic device, and storage medium
WO2024032165A1 (en) 3d model generating method and system, and electronic device
CN112465692A (en) Image processing method, device, equipment and storage medium
US11615574B2 (en) System and method for rendering 6 degree-of-freedom virtual reality
TW202312100A (en) Grid generation method, electronic device and computer-readable storage medium
CN115761123A (en) Three-dimensional model processing method and device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination