Illumination rendering method and apparatus, storage medium, and electronic device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorZhi Xiao Wei
Life of this patent
Estimating the term…
Abstract
An illumination rendering method and apparatus includes obtaining a first picture at a target viewing angle from a virtual three-dimensional (3D) scene. The first picture includes a virtual object to be subject to illumination rendering in the virtual 3D scene at the target viewing angle. A target virtual light source point set is determined that performs illumination rendering on the virtual object in the first picture. Illumination rendering is performed on the virtual object in the first picture by using the target virtual light source point set. This illumination rendering improves efficiency in rendering on the virtual object in the virtual 3D scene.
Claims20
An illumination rendering method comprising:
- obtaining a first picture at a target viewing angle from a virtual three-dimensional (3D) scene, the first picture comprising a virtual object to be subject to illumination rendering in the virtual 3D scene at the target viewing angle;
- determining a target virtual light source point set that performs illumination rendering on the virtual object in the first picture, wherein the target virtual light source point set is determined by merging original virtual light source point sets of each sub-picture from the first picture and there is an associated pixel set for each sub-picture in the first picture, further wherein those pixels that appear most frequently in the associated pixel set are the original virtual light source point set of the sub-picture;
- and
- performing illumination rendering on the virtual object in the first picture by using the target virtual light source point set.
An illumination rendering apparatus, comprising:
- an obtaining unit configured to obtain a first picture at a target viewing angle from a virtual three-dimensional (3D) scene, the first picture comprising a virtual object to be subject to illumination rendering in the virtual 3D scene at the target viewing angle;
- a determining unit configured to determine a target virtual light source point set that performs illumination rendering on the virtual object in the first picture, wherein the target virtual light source point set is determined by merging original virtual light source point sets of each sub-picture from the first picture, wherein each sub-picture in the first picture has an associated pixel set, further wherein those pixels that appear most frequently in the associated pixel set are the original virtual light source point set of the sub-picture;
- and
- a rendering unit configured to perform illumination rendering on the virtual object in the first picture by using the target virtual light source point set.
A non-transitory non-volatile computer-readable storage medium, storing computer-readable instructions, the computer-readable instructions, when executed by one or more processors, causing the one or more processors to perform the following method:
- obtaining a first picture at a target viewing angle from a virtual three-dimensional (3D) scene, the first picture comprising a virtual object to be subject to illumination rendering in the virtual 3D scene at the target viewing angle;
- determining a target virtual light source point set that performs illumination rendering on the virtual object in the first picture, wherein the target virtual light source point set is determined by merging original virtual light source point sets of each sub-picture from the first picture, wherein each sub-picture in the first picture has an associated pixel set, further wherein those pixels that appear most frequently in the associated pixel set are the original virtual light source point set of the sub-picture;
- and
- performing illumination rendering on the virtual object in the first picture by using the target virtual light source point set.
Dependencies are inferred from the claim text.