Light probe generation method and apparatus, storage medium, and computer device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsDian LIU, Yu Cheng QU
Life of this patent
Estimating the term…
Abstract
A light probe generation method and apparatus, a storage medium, and a computer device are provided. The method includes: selecting shadow points of a target object in a virtual scene; converting the selected shadow points into a voxelized shadow voxel object; reducing a quantity of vertexes in the shadow voxel object to obtain a shadow voxel object after the reduction; and generating a light probe at a vertex position of the shadow voxel object after the vertex reduction.
Claims20
A light probe generation method, performed by a computer device, the method comprising:
- selecting shadow points of a target object in a virtual scene;
- converting the selected shadow points into a voxelized shadow voxel object;
- reducing a quantity of vertexes in the voxelized shadow voxel object;
- and
- generating a light probe at a vertex position of a shadow voxel object obtained after vertex reduction.
A light probe generation apparatus, comprising:
- at least one memory configured to store program code;
- and
- at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:
- selection code configured to cause the at least one processor to select shadow points of a target object in a virtual scene;
- conversion code configured to cause the at least one processor to convert the selected shadow points into a voxelized shadow voxel object;
- reduction code configured to cause the at least one processor to reduce a quantity of vertexes in the voxelized shadow voxel object;
- and
- generation code configured to cause the at least one processor to generate a light probe at a vertex position of a shadow voxel object obtained after vertex reduction.
A non-transitory computer-readable storage medium, storing a computer program executable by at least one processor to perform a light probe generation method, the method comprising:
- selecting shadow points of a target object in a virtual scene;
- converting the selected shadow points into a voxelized shadow voxel object;
- reducing a quantity of vertexes in the voxelized shadow voxel object;
- and
- generating a light probe at a vertex position of a shadow voxel object obtained after vertex reduction.
Dependencies are inferred from the claim text.