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

Cartoon style light and shadow rendering method and device, equipment and medium

A light and shadow and style technology, applied in the field of rendering, can solve the problem of lack of vividness in the picture, achieve controllable and beautiful light and shadow, and satisfy the effect of rendering

Active Publication Date: 2018-03-02
米哈游科技(上海)有限公司
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a cartoon-style light and shadow rendering method, device, equipment and medium, which solves the problem that the light and shadow in the existing game light and shadow rendering method will not change correspondingly with the change of the light direction, resulting in a lack of vividness of the picture

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
  • Cartoon style light and shadow rendering method and device, equipment and medium
  • Cartoon style light and shadow rendering method and device, equipment and medium
  • Cartoon style light and shadow rendering method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a flowchart of a cartoon-style light and shadow rendering method provided in Embodiment 1 of the present invention. The technical solution of this embodiment may be applicable to the case of rendering light and shadow in a cartoon style. The method can be executed by a cartoon-style light and shadow rendering device provided in an embodiment of the present invention. The device can be implemented in the form of software and / or hardware, and configured in a rendering engine for application. The rendering engine can be any smart phone with graphics card function Devices such as computers, tablets, mobile phones, smart cameras, etc. The method specifically includes the following operations:

[0047] S110. Calculate diffuse reflection intensity and specular intensity respectively.

[0048] Diffuse reflection is the result of the mixture of the basic color of the object and the ambient light, and it is the display effect of the basic color of the object on ...

Embodiment 2

[0071] figure 2 It is a flowchart of a cartoon-style light and shadow rendering method provided by Embodiment 2 of the present invention. The technical solution of this embodiment further optimizes the operation of offsetting the diffuse reflection intensity and determining the bright and dark areas according to the offset diffuse reflection intensity on the basis of the solutions of any of the above embodiments. Correspondingly, the method of this embodiment includes:

[0072] S210. Calculate diffuse reflection intensity and specular intensity respectively.

[0073] S220. Use the product of the R channel of the Lightmap texture and the R channel of the vertex color to offset the intensity of the diffuse reflection.

[0074] The parameters stored in the R channel of the vertex color have the same effect as the data in the R channel of the Lightmap texture. As a supplement to the Lightmap texture, multiplying it with the R channel of the Lightmap texture can ensure a more ac...

Embodiment 3

[0081] image 3 It is a flowchart of a cartoon-style light and shadow rendering method provided by Embodiment 3 of the present invention. The technical solution of this embodiment further optimizes the operation of offsetting the highlight intensity and determining the highlight region according to the offset highlight intensity on the basis of the solution of any of the above embodiments. Correspondingly, the method of this embodiment includes:

[0082] S310. Calculate diffuse reflection intensity and specular intensity respectively.

[0083] S320. Offset the diffuse reflection intensity, and determine bright and dark areas according to the offset diffuse reflection intensity.

[0084] S330. Use the product of the G channel of the Lightmap texture and the G channel of the vertex color to offset the highlight intensity.

[0085] The parameters stored in the G channel of the vertex color have the same effect as the data in the G channel of the Lightmap texture. As a suppleme...

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 embodiment of the invention discloses a cartoon style light and shadow rendering method and device, equipment and a medium. The method comprises the steps that the diffuse reflection intensity andthe specular power are respectively calculated; the diffuse reflection intensity is shifted and light and dark areas are determined according to the shifted diffuse reflection intensity; the specularpower is shifted and a specular area is determined according to the shifted specular power; and the light and dark areas and the specular area are synthesized so as to obtain a light and shadow rendering image. Light and shadow rendering can be realized and light and shadow adjustment can be realized by using the shift mode so that the light and the shadow are enabled to be more controllable andbeautiful, and rendering of multiple lighting directions can be met in comparison with the mode of fixing the diffuse reflection areas and the specular area that only light and shadow rendering of onelighting direction can be met.

Description

technical field [0001] Embodiments of the present invention relate to rendering technologies, and in particular to a method, device, device and medium for rendering cartoon-style light and shadow. Background technique [0002] 3D technology has been widely used in the production of multimedia works. Compared with the technology using 2D pictures, it has the advantages of less manpower investment, less data volume, and flexible and diverse expression methods. However, 3D technology is now more used in realistic works, and there are still many problems in the production of cartoon style. One of the main problems is the rendering of light and shadow. Light and shadow mainly refer to the light and shade and highlights on the surface of objects. Realistic light and shadow can be calculated based on the surface information of the model and the physical characteristics of lighting, and usually can get light and shadow with rich details and delicate transition. The cartoon style ha...

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/50
CPCG06T15/506
Inventor 蒙畅
Owner 米哈游科技(上海)有限公司
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