Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and terminal for displaying shadow in games

A light and shadow and game technology, applied in the field of light and shadow display in games, can solve problems such as poor lighting display effect, and achieve the effect of solving poor lighting display effect and improving technical effect.

Inactive Publication Date: 2018-09-28
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF7 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a method, device, and terminal for displaying light and shadow in a game, so as to at least solve the existing technical problem that the lighting display effect of the model is poor during the transition between light and dark in the game scene

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 and terminal for displaying shadow in games
  • Method, device and terminal for displaying shadow in games
  • Method, device and terminal for displaying shadow in games

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0019] According to an embodiment of the present invention, an embodiment of a method for displaying light and shadow in a game is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0020] figure 1 It is a flowchart of a method for displaying light and shadow in a game according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:

[0021] Step S102, obtaining the light and shadow map of the game scene and the position information of the virtual object in the game scene, wherein the position information includes: the position of each vertex on the three-dimensional model constituting the virtual object.

[002...

Embodiment 2

[0062] According to an embodiment of the present invention, an embodiment of a device for displaying light and shadow in a game is also provided, wherein, figure 2 It is a schematic structural diagram of a device for displaying light and shadow in a game according to an embodiment of the present invention, as shown in figure 2 As shown, the device includes: an acquisition module 201 , a processing module 203 , a rendering module 205 and a display module 207 .

[0063] Wherein, the obtaining module 201 is used to obtain the light and shadow map of the game scene and the position information of the virtual object in the game scene, wherein the position information includes: the position of each vertex on the three-dimensional model constituting the virtual object; the processing module 203 is used to The light and shadow map is sampled according to the position information to obtain the light and shadow information, and the light and shadow color value is obtained according to...

Embodiment 3

[0075] According to an embodiment of the present invention, a terminal embodiment for displaying light and shadow in a game is also provided, wherein the terminal includes: a display and a processor, wherein the processor runs a program, and when the program is running, the following processing is performed on the data output from the display Step: Obtain the light and shadow map of the game scene and the position information of the virtual object in the game scene, wherein the position information includes: the position of each vertex on the three-dimensional model constituting the virtual object; sample the light and shadow map according to the position information to obtain the light and shadow information , and obtain the light and shadow color value according to the light and shadow information, wherein the light and shadow information includes: sampling information corresponding to the position of each vertex on the light and shadow map; rendering the virtual object accord...

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, a device and a terminal for displaying shadow in games, wherein the method comprises the following steps: acquiring shadow mapping in a game scene as well as positional information of a virtual object in the game scene, wherein the positional information comprises position of each vertex on a three-dimensional model constituting the virtual object; implementing sampling on the shadow mapping in accordance with the positional information, so that shadow information is obtained, and obtaining shadow color value in accordance with the shadow information, whereinthe shadow information includes sampling information, corresponding to the location of each vertex, on the shadow mapping; rendering the virtual object in accordance with the shadow color value; and displaying the rendered virtual object. According to the invention, the technical problem of the prior art that models, which transit on a bright-dark junction site in a game scene, are poor in lighting display effect can be solved.

Description

technical field [0001] The present invention relates to the field of computer graphics, in particular to a method, device and terminal for displaying light and shadow in games. Background technique [0002] In order to improve the game player's experience when playing games, when the dynamic model moves in the game scene, the environment light and shadow change effect can be added to the dynamic model, so that the dynamic model can better integrate into the game scene, so that the game picture is more vivid Realistically, for example, when the model moves in the shade of a tree, the light and shadow on the model will alternate between light and dark. It is very unrealistic to realize light and shadow effects based on real real-time lighting in mobile games. Therefore, pseudo real-time light and shadow methods are generally used in mobile games to realize the light and shadow effects of dynamic models in game scenes. It should be noted that pseudo real-time light and shadow ...

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): A63F13/52
CPCA63F13/52A63F2300/538
Inventor 王少标莫介烨
Owner NETEASE (HANGZHOU) NETWORK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products