Method and apparatus for realizing graphic rendering in computer

A graphics rendering and computer technology, applied in computing, 3D image processing, image data processing, etc., can solve problems such as burden, increased game loading burden, and stiff graphics effects, etc., to achieve low cost, light burden, and good effect Effect

CN107633548AActive Publication Date: 2018-01-26深圳墨麟科技股份有限公司
3 Cites 3 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2018-01-26

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a method and apparatus for realizing graphic rendering in a computer. The method includes following steps: determining a mode of applying highlight generated by a light sourcein a current scene to an object; setting a plurality of groups of corresponding first parameter values and second parameter values, and obtaining an exposure curve of the light source in a diffusionrange on a material, wherein the first parameters represent the diffusion range of the highlight on the material, and the second parameters represent the light intensity finally represented on the material, of the highlight ; calculating highlight attenuation intensity parameters according to the exposure curve; and putting the highlight attenuation intensity parameters into related items of a double-direction reflection distribution function to realize rendering. The invention also relates to an apparatus for realizing the method. According to the method and apparatus for realizing graphic rendering in the computer, the beneficial effects are that the cost is low, the burden is light, and the effect is good.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of graphics processing, and more specifically, to a method and device for realizing graphics rendering in a computer. Background technique

[0002] In the real world, any non-self-illuminating object can be perceived by human eyes only because it reflects light. Computer rendering actually simulates the interaction between light and objects. However, the interaction between light and objects is a very complex process, and the current technical level cannot achieve such complex calculations within the range of interactive frame rates. Therefore, in real-time graphics rendering, approximate algorithms are generally used, and a simplified mathematical model describing the interaction between light and objects is used to approximate the real-world situation as much as possible. Among them, the mathematical model of highlights is particularly important for the performance of object texture. Whether an object is ...

Examples

Embodiment Construction

[0037] Embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0038] Such as figure 1 As shown, in a method and device embodiment for realizing graphics rendering in a computer of the present invention, the method includes the following steps:

[0039] Step S11 determines the way to apply the highlight generated by the light source to the object in the scene: In this embodiment, a rendering process based on the Clementian highlight algorithm is taken as an example to illustrate the rendering method in this embodiment and the traditional rendering method There is a difference, specifically in how highlights are handled. That is to say, a variant of the Clementine highlight algorithm is provided in this embodiment, which can obtain sufficiently rich and delicate visual effects while saving computing resources and storage space. Generally speaking, in this embodiment, two sets of four-dimensional vectors are used to...