A cartoon-style light and shadow rendering method, 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: 2021-07-23
米哈游科技(上海)有限公司
View PDF0 Cites 0 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
  • A cartoon-style light and shadow rendering method, device, equipment and medium
  • A cartoon-style light and shadow rendering method, device, equipment and medium
  • A cartoon-style light and shadow rendering method, device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a flow chart of a cartoon-style light shadow rendering method according to an embodiment of the present invention. The technical solution of this embodiment can be applied to the case of rendering light in the cartoon style. The method can be implemented by a cartoon-style light shadow rendering device according to an embodiment of the present invention, which can be implemented in software and / or hardware, and is configured in the rendering engine, the rendering engine can be an intelligence of any graphics function. Equipment, such as computers, tablets, mobile phones, smart cameras, etc. This method specifically includes the following operations:

[0047] S110, calculate the diffuse reflection intensity and high light intensity.

[0048] The diffuse reflection is the result of the basic color of the object and the mixing of the ambient light, which is the display effect of the object substantially colored on the welding surface and the light surface. Hi...

Embodiment 2

[0071] figure 2 It is a flow chart of a cartoon-style light shadow rendering method according to the second embodiment of the present invention. The technical solution of the present embodiment further optimizes the operation of the light and dark regions based on the degree of reflection intensity according to the obsessment in the present embodiment. Accordingly, the method of this embodiment includes:

[0072] S210, calculate diffuse reflection intensity and high light intensity.

[0073] S220, using the LightMap sticker R channel with the R channel of the vertex color to the reflection intensity of reflection intensity.

[0074] The vertex color R channel stored parameters are the same as the data in the LightMap sticker R channel, which is used as a lightmap map, and the LightMap sticker R channel can be used to ensure that the offset is more accurate.

[0075] S230, binarize the diffuse reflection after the offset to obtain the mandate and the dark portion in the dark area....

Embodiment 3

[0081] image 3 It is a flow chart of a cartoon-style light shadow rendering method according to the third embodiment of the present invention. The technical solution of the present embodiment is based on the above-described example of the embodiment, and further optimizes the offset of the highlight intensity, determines the operation of the high-light region according to the highlight intensity after the offset. Accordingly, the method of this embodiment includes:

[0082] S310 calculates diffuse reflection intensity and high light intensity.

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

[0084] S330, the product using the LightMap shaft G channel and the G-channel of the vertex color to the high light intensity to shift.

[0085] The parameters of the G-channel storage of the vertex color are the same as the data in the LightMap texture G channel. As a supplement to the...

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, device, equipment and medium. The method includes: separately calculating the diffuse reflection intensity and the highlight intensity; offsetting the diffuse reflection intensity, and determining the light and dark areas according to the offset diffuse reflection intensity; offsetting the highlight light intensity, and according to the offset highlight The intensity determines the highlight area; the light and dark area and the highlight area are synthesized to obtain a light and shadow rendering image. The embodiment of the present invention realizes the rendering of light and shadow, and adopts the offset method to realize the adjustment of light and shadow, making the light and shadow more controllable and beautiful. Compared with the method of fixing the diffuse reflection area and the highlight area, only one illumination can be satisfied Directional light and shadow rendering can satisfy the rendering of multiple lighting directions.

Description

Technical field [0001] Embodiments of the present invention relate to rendering techniques, in particular, to a cartoon-style optical rendering method, apparatus, device, and medium. Background technique [0002] 3D technology has been widely used in the production of multimedia works, compared to the use of 2D drawing technology, there is a small amount of labor, small data, and flexible performance. However, now 3D technology is used in a real-style work, and there are many problems in making cartoon style. One of the main problems is the rendering of light and shadows, and the light shadow mainly refers to the bright and dark and highlights of the object surface. The real-style lighting can be calculated based on the surface information of the model and the physical properties of the light, usually can be more detailed, and the transitional light shadow can be obtained. The cartoon style is the opposite of the light and shadow. On the other hand, it requires too much detail, w...

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 Patents(China)
IPC IPC(8): G06T15/50
CPCG06T15/506
Inventor 蒙畅
Owner 米哈游科技(上海)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products