Method and apparatus for storing visibility data of three-dimensional model, device, and storage medium
Abstract
The present disclosure provides a method for processing visibility data of a three-dimensional model performed by a computer device. The method includes: obtaining original values of visibility data of a plurality of sampling points of the three-dimensional model; determining visibility data of a plurality of vertexes of the three-dimensional model based on a first error function measuring differences between recovery values of the visibility data of the sampling points from interpolation of the visibility data of the vertexes of the three-dimensional model and the original values of the visibility data of the sampling points and change rates of the recovery values of the visibility data of the sampling points; and storing the visibility data of each vertex of the three-dimensional model. This method reduces the space for storing the visibility data, relieves the pressure of storing the visibility data, and improves the efficiency of rendering the three-dimensional model.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method for processing visibility data of a three-dimensional model, performed by a computer device, comprising: obtaining original values of visibility data of a plurality of sampling points of the three-dimensional model, wherein the three-dimensional model is formed by a plurality of surface slices, each surface slice having a polygon formed by a set of vertexes with sampling points on the surface slice surrounded by the set of vertexes; determining visibility data of a plurality of vertexes of the three-dimensional model based on (i) a first error function measuring differences between recovery values of the visibility data of the sampling points on a surface slice of the three-dimensional model from interpolation of the visibility data of the vertexes of the surface slice of the three-dimensional model and the original values of the visibility data of the sampling points on the surface slice of the three-dimensional model and (ii) change rates of the recovery values of the visibi
- Claim 2Depends on #1
The method according to claim 1, wherein a quantity of the vertexes of the three-dimensional model is smaller than a quantity of the sampling points of the three-dimensional model.
- Claim 3Depends on #1
The method according to claim 1, wherein the determining visibility data of a plurality of vertexes of the three-dimensional model comprises: constructing the first error function based on the recovery values and the original values of the visibility data of the sampling points, a value of the first error function being positively correlated with the differences between the recovery values and the original values of the visibility data of the sampling points, and the value of the first error function being positively correlated with the change rate of the recovery values of the visibility data of the sampling point; and determining the visibility data of the vertexes of the three-dimensional model via minimizing the value of the first error function.
- Claim 4Depends on #3
The method according to claim 3, wherein the constructing the first error function based on the recovery values and the original values of the visibility data of the sampling points comprises: constructing a first sub-function based on the differences between the recovery values and the original values of the visibility data of the sampling points; constructing a second sub-function based on differences between the change rates of the recovery values of the visibility data of the sampling points corresponding to at least a set of adjacent surface slices on the three-dimensional model; and constructing the first error function based on the first sub-function and the second sub-function.
- Claim 5Depends on #1
The method according to claim 1, wherein the obtaining original values of visibility data of a plurality of sampling points of the three-dimensional model comprises: obtaining initial visibility data of a target sampling point of the three-dimensional model, the initial visibility data of the target sampling point comprising: intersection data of the target sampling point used as an origin in a plurality of directions; determining a target vertebra used for fitting the initial visibility data of the target sampling point; and determining an original value of the visibility data of the target sampling point based on the target vertebra, the visibility data of the target sampling point comprising a central axis direction, an opening angle, and a scaling value of the target vertebra, and the scaling value representing a brightness of a visible region of the target sampling point.
- Claim 6Depends on #1
The method according to claim 1, wherein the method further comprises: obtaining visibility data of each vertex of a target surface slice on the three-dimensional model; determining visibility data of a gravity center point of the target surface slice according to the visibility data of each vertex of the target surface slice; and performing interpolation according to the visibility data of each vertex of the target surface slice and the visibility data of the gravity center point of the target surface slice, to obtain the recovery value of the visibility data of each sampling point within the target surface slice.
- Claim 7Independent Claim
A computer device, comprising a processor and a memory, the memory storing a computer program, and the computer program being loaded and executed by the processor and causing the computer device to implement a method for processing visibility data of a three-dimensional model including: obtaining original values of visibility data of a plurality of sampling points of the three-dimensional model, wherein the three-dimensional model is formed by a plurality of surface slices, each surface slice having a polygon formed by a set of vertexes with sampling points on the surface slice surrounded by the set of vertexes; determining visibility data of a plurality of vertexes of the three-dimensional model based on (i) a first error function measuring differences between recovery values of the visibility data of the sampling points on a surface slice of the three-dimensional model from interpolation of the visibility data of the vertexes of the surface slice of the three-dimensional model and th
- Claim 8Depends on #7
The computer device according to claim 7, wherein a quantity of the vertexes of the three-dimensional model is smaller than a quantity of the sampling points of the three-dimensional model.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation application of PCT Patent Application No. PCT/CN2022/127985, entitled “ METHOD AND APPARATUS FOR STORING VISIBILITY DATA OF THREE-DIMENSIONAL MODEL, DEVICE, AND STORAGE MEDIUM ” filed on Oct. 27, 2022, which claims priority to (i) Chinese Patent Application No. 202111374336.0, entitled “ METHOD AND APPARATUS FOR STORING VISIBILITY DATA OF THREE-DIMENSIONAL MODEL, DEVICE, AND STORAGE MEDIUM ” , filed on Nov. 19, 2021 and (ii) Chinese Patent Application No. 202111624049.0, entitled “ METHOD AND APPARATUS FOR STORING VISIBILITY DATA OF THREE-DIMENSIONAL MODEL, DEVICE, AND STORAGE MEDIUM ” , filed on Dec. 28, 2021, all of which are incorporated herein by reference in its entirety. FIELD OF THE TECHNOLOGY Embodiments of this application relate to the field of computer and Internet technologies, and in particular, to a method and apparatus for processing visibility data of a three-dimensional model, a device, and a storage medium. BACKGROUND OF THE DISCLOSURE When the three-dimensional model is rendered, the computer device needs to calculate the visibility data of each point on the three-dimensional model and store the visibility data for use during model rendering. In the related art, when calculating the visibility data of any point on the three-dimensional model, the computer device takes the point as a sphere center to launch multiple (for example, 720) rays and obtains intersection data of each ray depending on whether each ray intersects with an environmental object and an intersection distance, and the visibility data of the point includes the intersection data of each ray launched from the point. However, in the above related art, because the visibility data of only one point on the three-dimensional model includes the intersection data of a large number of rays, the data volume of the visibility data of the three-dimensional model is too large. This is not conducive to storage and calcula
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
Non-Patent Literature (10)
- Y. Ohtake, A. Belyaev and H. P. Seidel,
- “
- A multi-scale approach to 3D scattered data interpolation with compactly supported basis functions,
- ”
- 2003 Shape Modeling International., Seoul, Korea (South), 2003, pp. 153-161, doi: 10.1109/SMI.2003.1199611. (Year: 2003).
- Alexa, M., Rusinkiewicz, S., Nehab, D.,
- &
- Shilane, P. (Jun. 2004). Stratified point sampling of 3D models. In Proc. Eurographics Symp. on Point-Based Graphics (pp. 49-56). (Year: 2004).
- Zhang, Eugene, and Greg Turk.
- “