Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Webpage end 3D (three-dimensional) model implementation method based on Cook-Torrance algorithm

A model realization and 3D technology, applied in the field of web-side 3D model realization based on Cook-Torrance algorithm, can solve the problem of low realism of rendering effect, and achieve more realistic rendering effect and meticulous processing effect.

Inactive Publication Date: 2021-01-05
HUBEI UNIV FOR NATITIES
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the object of the present invention is to provide a method for implementing a 3D model on the webpage based on the Cook-Torrance algorithm, through which the existing lighting model on the webpage can only consider specular reflection or diffuse reflection components, resulting in a realistic rendering effect. low problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Webpage end 3D (three-dimensional) model implementation method based on Cook-Torrance algorithm
  • Webpage end 3D (three-dimensional) model implementation method based on Cook-Torrance algorithm
  • Webpage end 3D (three-dimensional) model implementation method based on Cook-Torrance algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] The following is further described in detail through specific implementation methods:

[0037] figure 1 The specific flowchart of the implementation method for the web-side 3D model based on the Cook-Torrance algorithm

[0038] A method for implementing a 3D model on a web page based on the Cook-Torrance algorithm, comprising the following steps:

[0039] A. Build a 3D model and generate a 3D model data file; the specific operation is: after building the required 3D model with 3D model design software, use 3Dmax software to export the model data file, including the 3D model data obj file and the surface material mtl file.

[0040] B. Load the 3D model data file to the website database; the specific implementation method is: use the three.js open source library to build the scene, and use the THREE.OBJMTLLoader() function to load the 3D model data obj file and the surface material mtl file.

[0041] C. If figure 2 As shown, according to the Cook-Torrance algorithm, w...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of webpage end 3D display, and particularly discloses a webpage end 3D model implementation method based on a Cook-Torrance algorithm. The method comprises the following steps: firstly, designing a 3D model on 3D model design software and generating a model file, specifically, generating the model file by using 3Dmax software, wherein the model file comprises a three-dimensional model data obj file and an mtl file of a surface material; secondly, loading a three-dimensional model data obj file and the mtl file of a surface material for the 3D model file by using a THREE.OBJMTLLoader ()function in a three.js open source library; thirdly, according to a Cook-Torrance 3D algorithm, compiling a vertex shader program and a fragment shader program, and importing a Shader customized by using a Shader() function in a three.js open source library into the shader program; and finally, rendering the 3D model by using the vertex shader and the fragment shader ofthe Cook-Torrance 3D illumination model, thereby solving the problem of low sense of reality of the rendering effect due to the fact that only specular reflection or diffuse reflection components areconsidered in the existing web page end illumination model.

Description

technical field [0001] The invention relates to the field of 3D display at the webpage, and specifically discloses a method for realizing a 3D model at the webpage based on the Cook-Torrance algorithm. Background technique [0002] The display of a 3D model on the web page requires three sets of data, namely the 3D data of the model, texture mapping data, and lighting model data. The texture here is not design textures such as fabrics and inkjet painting, but texture data that reflects the physical characteristics of the 3D model material, including its roughness, color under light, and so on. [0003] The illumination model is a mathematical model generated by combining the physical characteristics of the model. What we ultimately need is the reflected light data of the 3D model under a specific light source and processed by the illumination model. It generally includes three parts: ambient light, diffuse reflection, and specular reflection. The ratio of the three parts c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T17/00G06T15/50G06T15/20G06T15/00G06F16/957
CPCG06T15/005G06T15/205G06T15/506G06T17/00G06F16/957
Inventor 李军沈莹胡涛
Owner HUBEI UNIV FOR NATITIES
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products