Unlock instant, AI-driven research and patent intelligence for your innovation.

Shader simplifying method and device and image rendering method based on surface signal fitting

A shader simplification and shader technology, applied in the field of graphics rendering

Active Publication Date: 2014-11-26
ZHEJIANG UNIV
View PDF2 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But the above methods only generate simplified pixel shaders
Instead of viewing pixel shader simplification as an overall optimization problem in the rendering pipeline

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
  • Shader simplifying method and device and image rendering method based on surface signal fitting
  • Shader simplifying method and device and image rendering method based on surface signal fitting

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0070] The present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0071] The pixel shader simplification method based on surface signal fitting in this embodiment includes:

[0072] Select several variables or expressions from the function of the original pixel shader as the fitting target, and generate a corresponding fitting device for each fitting target, and the fitting device is used to render the fitting target Fit the surface signal generated on the corresponding primitive in the model, and calculate the value of the fitting target on the corresponding primitive according to the fitting result;

[0073] Select a number of fitters to replace the corresponding variables or expressions in the original pixel shader to obtain a modified pixel shader.

[0074] A shader simplification method based on surface signal fitting. The original shader to be simplified includes the original vertex shader and the origin...

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 discloses a shader simplifying method and device and an image rendering method based on surface signal fitting. According to the shader simplifying method, based on the surface signal fitting, a fitter is generated through fitting and used for calculating values of vectors and expressions in an original pixel shader on corresponding pixels in a model to be rendered, the generated fitter is inserted into the original pixel shader to replace value calculation performed on the corresponding vectors or expressions, and therefore calculation of the original pixel shader is simplified to obtain a simplified shader. Compared with an original shader, in a pixel shader in the simplified shader, partial vectors or expressions are calculated by the adoption of the fitter, and a lot of calculation and even hundreds of instructions are possibly needed for original vector or expression code calculation. When the fitter is used for calculation, only finite times of multiplication and addition are needed so that the values can be obtained through calculation. In this way, the calculation amount of the pixel shader is reduced, rendering efficiency is greatly improved, and rendering time is shortened.

Description

technical field [0001] The invention relates to the technical field of graphics rendering, in particular to a shader simplification method and device based on surface signal fitting and a graphics rendering method. Background technique [0002] The main function of graphics rendering is to generate (render) a two-dimensional image on the screen according to a given model to be rendered. Among them, the shape and position of the scene object on the screen are determined by the geometry of the model to be rendered, the orientation and parameters of the camera. The appearance of the model to be rendered on the screen is determined by the material properties, light source properties, textures and the set lighting model of the model to be rendered. The entire process of graphics rendering is divided into a series of stages, and these stages are in a linear series relationship. The output of the previous stage is the input of the next stage. If the previous stage is not completed...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06T15/10
Inventor 王锐鲍虎军杨先津袁亚振
Owner ZHEJIANG UNIV