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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com