A shadow processing method, device for a game scene and a terminal device
A game scene and shadow processing technology, applied in the field of game scene processing, can solve problems such as inappropriateness, difficult support for mobile devices, uncertain shadow data, etc., to achieve good performance, enhance shadow effects, and reduce the amount of calculation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] This embodiment provides a shadow processing method in a game scene, specifically as figure 1 shown, including the following steps:
[0042] Step S11: read the game scene object.
[0043] Among them, the game scene objects include:
[0044] 1. Character models of players and system roles
[0045] 2. The props and items owned by the player and reflected in the game scene
[0046] 3. Game scenes (such as tables, chairs, walls, doors, windows, etc.) that change in real time according to the player's game progress and personal game content. The above are just examples and are not limited to these enumerations.
[0047] Step S12: Determine whether the game scene object has been bound with a shadow map.
[0048] When the judging result is that the game scene object has been bound with a shadow map, perform step S13, otherwise perform other operations. Among them, the shadow map of the scene object, through the art production specification, binds the same shadow map for ...
Embodiment 2
[0057] This embodiment provides a shadow processing method in a game scene, specifically as figure 2 shown, including the following steps:
[0058] Step S21: read the game scene object. The details are the same as step S11 in Embodiment 1, and will not be repeated here.
[0059] Step S22: Determine whether the game scene object has been bound with a shadow map.
[0060] When the judging result is that the game scene object has been bound with a shadow map, step S23 is executed.
[0061] When the judging result is that the game scene object is not bound with a shadow map, step S25 is executed. It should be noted that step S25 is specifically: further judging whether separate shadow data is needed, and judging whether there is a specific shadow map of the game scene object in the atlas.
[0062] When the judging result is that the game scene object needs separate shadow data and there is a specific shadow map of the game scene object in this atlas, then perform step S26: bi...
Embodiment 3
[0072] The present invention also provides a shadow processing device in a game scene, such as image 3 As shown, the terminal can perform the corresponding steps in the above-mentioned embodiment 1, specifically including:
[0073] Reading module 31, is used for reading game scene object information;
[0074] The first judging module 32 is used to judge whether the game scene object has been bound with a shadow map;
[0075] The shadow manager 33 is used to call the underlying rendering engine, and according to the position of each shadow relative to the position of the camera and the distance of the light source, the size and shape of each shadow are scaled and changed, and finally all the shadows are pasted Figure 1 one-time drawing;
[0076] Monitoring module 34, for monitoring the position change of camera and light source;
[0077] The second judging module 35 is configured to judge whether the positions of the camera and the light source have changed.
[0078] The t...
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