Method, device, terminal device and storage medium for simulating lighting in game scene

A game scene and light source technology, applied in the field of image processing, can solve problems such as the inability to achieve light occlusion

Active Publication Date: 2020-10-23
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above problems, the purpose of the present invention is to provide a method, device, terminal device and storage medium for simulating lighting in game scenes, which can solve the problem that light shading cannot be realized in games with a fixed viewing angle, and flexibly simulate flashlights in complex scenes. Light Direction and Scene Occlusion in

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
  • Method, device, terminal device and storage medium for simulating lighting in game scene
  • Method, device, terminal device and storage medium for simulating lighting in game scene
  • Method, device, terminal device and storage medium for simulating lighting in game scene

Examples

Experimental program
Comparison scheme
Effect test

no. 3 example

[0114] On the basis of the first embodiment, the generating target illumination information texture map according to the movement of the light source and the illumination area table specifically includes:

[0115] calculating an offset of the light source according to the current position of the light source after the movement and the initial position of the light source;

[0116] Generate a target lighting information texture map according to the offset and the lighting area table.

[0117] In this embodiment, in order to reduce the calculation pressure, the generation frequency of illumination information can be appropriately reduced. When it is detected that the position of the light source changes, there is no need to perform collision detection based on the new light source position to generate a new illumination area table. In this embodiment, specifically, when it is detected that the position of the light source changes, the current position of the light source after m...

no. 4 example

[0124] On the basis of the third embodiment, the generating the target lighting information texture map according to the offset and the lighting area table specifically includes:

[0125] Perform scaling processing on the illumination area table according to the offset to obtain a first illumination information texture map;

[0126] Correcting the field of view of the first illumination information texture map by using the moved irradiation range of the light source to obtain a second illumination information texture map;

[0127] performing Gaussian blur processing on the second illumination information texture map to obtain a third illumination information texture map;

[0128] performing edge sharpening on the third illumination information texture map to obtain a fourth illumination information texture map;

[0129] The fourth illumination information texture map is interpolated and fused with the target illumination information texture map of the previous N frames to gen...

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 method for simulating illumination in a game scene, comprising the following steps: dividing the game scene to obtain a regional information table containing at least two sub-regions; performing illumination detection on the sub-regions in a preset scope of the regional information table according to the position of a light source in the game scene, so as to generate an illumination region table; generating a target illumination information texture map according to the movement of the light source and the illumination region table; and rendering according to the target illumination information texture map, so as to generate a picture frame used for displaying. The invention also discloses a device for simulating illumination in game scene, terminal equipment and astorage medium, which can solve the problem of light shielding cannot be realized in a game scene with fixed angle of view, and can flexibly simulate the illumination direction and scene shielding oflight of a flashlight in a complicated scene, and therefore, the use experience feeling is promoted.

Description

technical field [0001] The present invention relates to the technical field of image processing, in particular to a method, a device, a terminal device and a storage medium for simulating lighting in a game scene. Background technique [0002] Simulated lighting is a very important research content in computer graphics, and it involves many fields, such as animation, virtual reality, games and other fields. In the field of games, with the development of the game industry, game players have increasing requirements for game screens. Therefore, simulating different lighting effects is an important part of improving the quality of game screens and enhancing the sense of game substitution. Specifically, in the prior art, the method of simulating flashlight lighting is generally to use spotlights, by recording information such as the position, direction, and color of the spotlights, and changing the color of the texture map according to these information to achieve an effect simil...

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): A63F13/52A63F13/60
CPCA63F2300/66A63F2300/6692A63F13/52A63F13/60
Inventor 黄锦武
Owner NETEASE (HANGZHOU) NETWORK 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