Shadow rendering method and device, terminal and storage medium

A shadow and lighting direction technology, applied in the field of image rendering, can solve problems such as crowding out terminal memory resources and affecting terminal CPU processing efficiency, and achieve the effect of saving memory resources and improving processing efficiency

Active Publication Date: 2019-07-09
TENCENT TECH (SHENZHEN) CO LTD
View PDF10 Cites 48 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a shadow rendering method, device, terminal, and storage medium, which can solve the problem

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
  • Shadow rendering method and device, terminal and storage medium
  • Shadow rendering method and device, terminal and storage medium
  • Shadow rendering method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0040] figure 1 It is a schematic diagram of an implementation environment of a shadow rendering method provided by an embodiment of the present invention. see figure 1 , in this implementation environment, a rendering engine 102 may be installed on the terminal 101 .

[0041] Wherein, the terminal 101 is used to provide shadow rendering service. The terminal 101 can render the virtual object and the shadow of the virtual object in any virtual scene based on the rendering engine 102. The virtual object can be a person or an object. The virtual scene may be any virtual scene displayed on the terminal, for example, the virtual scene may be a game scene, an interior design simulation scene, etc., and the embodiment of the present invent...

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 shadow rendering method and device, a terminal and a storage medium, and belongs to the technical field of image rendering. The method comprises the steps of obtaining at least one rendering structural body in a virtual scene according to an illumination direction in the virtual scene; obtaining model coordinates of the plurality of pixel points according to the current visual angle and the depth information of the plurality of pixel points; sampling at least one shadow map according to the model coordinates of the plurality of pixel points to obtain a plurality of sampling points corresponding to the plurality of pixel points; and rendering the plurality of sampling points in the virtual scene to obtain the at least one shadow. Under the condition that a third-party plug-in is not used, real-time rendering of the shadow is achieved based on the function of the rendering engine, memory resources of the terminal are saved, and the processing efficiency of a CPUof the terminal is improved.

Description

technical field [0001] The present invention relates to the technical field of image rendering, in particular to a shadow rendering method, device, terminal and storage medium. Background technique [0002] With the development of image rendering technology, in order to simulate a more realistic three-dimensional scene, the terminal usually renders the shadow of an object in the three-dimensional scene in real time, and the object may be a person or an object. [0003] At present, real-time shadow rendering can be realized through third-party plug-ins (such as Fast Shadow Receiver, fast shadow receiver), that is, the scene grid (mesh) is baked (bake) to convert high-dimensional and specific scene data It is approximate low-dimensional and generalized scene data, in which the above scene grid is used to represent the texture, lighting, material and other information of the 3D model; according to the light source data and the baked scene grid, from the scene grid Obtain the g...

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
IPC IPC(8): G06T15/60G06T15/04
CPCG06T15/60G06T15/04G06T2215/12G06T15/20
Inventor 侯仓健
Owner TENCENT TECH (SHENZHEN) CO LTD
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