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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com