Three-dimensional model online preview method and device
A 3D model and model technology, which is used in 3D modeling, network data browsing optimization, instruments, etc., can solve the problems of long transmission time of large models, unfavorable protection data of 3D models, and failure of 3D data to be loaded into browsers normally. Reduce display performance requirements, reduce data transfer, and improve user experience
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2019-08-20
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the technical field of three-dimensional scene display, in particular to a method and device for online preview of a three-dimensional model. Background technique
[0002] There are more and more demands for browser-based 3D scene display. In order to realize online display of 3D scenes, most display solutions use Webgl technology. Webgl technology provides OpenGL ES binding for Javascript, so that JavaScript can also call the browser's local graphics card resources for hardware 3D acceleration. When the user needs to preview a certain 3D model, the browser pulls the model from the cloud server to the local, calls the local computing resources to read the model, and renders it.
[0003] However, there are several problems in the existing technology: the real-time rendering of the browser must load the model locally, which destroys the security of the data; the mainstream PC-side browsers have restrictions on the data volume of...
Examples
specific Embodiment 1
[0043] Such as figure 1 As shown, the embodiment of the present invention provides an online preview method of a 3D model, including:
[0044] Pre-rendering step S101, locally pre-rendering pictures of multiple perspectives for the 3D model;
[0045] Online preview step S102, responding to the online preview of the 3D model.
[0046] Preferably, the pre-rendering step S101 may specifically be: pre-generate a unit sphere, and divide N*N sampling points along the latitude and longitude direction; scale the unit sphere and sampling points according to the actual model size to obtain the rendering perspective ; Pre-render images from multiple perspectives locally for the 3D model according to the obtained rendering perspective. The rendering perspective obtained by this method is the most sparsely distributed on the equator, and the closer to the poles, the denser it is.
[0047] The embodiment of the present invention does not limit the value of N, preferably, N=72. In practi...
specific Embodiment 2
[0063] like figure 2 As shown, the embodiment of the present invention provides a 3D model online preview device, including:
[0064] The pre-rendering module 201 is used to pre-render pictures of multiple perspectives for the 3D model locally;
[0065] The online preview module 202 is used for responding to the online preview of the 3D model.
[0066] Preferably, the pre-rendering module 201 can be used for:
[0067] Generate a unit sphere in advance, and divide N*N sampling points along the latitude and longitude direction;
[0068] According to the size of the model actually processed, scale the unit sphere and sampling points to obtain the rendering perspective;
[0069] According to the obtained rendering perspective, pre-render pictures of multiple perspectives for the 3D model locally.
[0070] Or, preferably, the pre-rendering module 201 can be used for:
[0071] Generate a unit sphere in advance, and set N equidistantly spaced sampling points in the direction of...