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
Example Embodiment
[0040] Example 1
[0041] This embodiment provides a shadow processing method in a game scene, specifically as follows figure 1 shown, including the following steps:
[0042] Step S11: Read game scene objects.
[0043] Among them, the game scene objects include:
[0044] 1. Character models of players and system characters
[0045] 2. The props and items owned by the player and reflected in the game scene
[0046] 3. The game scene (such as tables, chairs, walls, doors, windows, etc.) that changes in real time according to the player's game progress and personal game content. The above are just examples, not limited to these examples.
[0047] Step S12: Determine whether the game scene object has been bound with a shadow map.
[0048] When the judgment result is that the game scene object has been bound with a shadow map, step S13 is performed, otherwise, other operations are performed. Among them, the shadow maps of scene objects are bound to the same shadow maps for s...
Example Embodiment
[0056] Example 2
[0057] This embodiment provides a shadow processing method in a game scene, specifically as follows figure 2 shown, including the following steps:
[0058] Step S21: Read game scene objects. The details are the same as step S11 in Embodiment 1, and are not repeated here.
[0059] Step S22: Determine whether the game scene object has been bound with a shadow map.
[0060] When the judgment result is that the game scene object has been bound with a shadow map, step S23 is executed.
[0061] When it is determined 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 required, and judging whether there is a specific shadow map of the game scene object in this atlas.
[0062] When the judgment result is that the game scene object needs separate shadow data and there is a specific shadow map of the game scene object in the atlas, step...
Example Embodiment
[0071] Example 3
[0072] The 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 foregoing Embodiment 1, specifically including:
[0073] The reading module 31 is used for reading game scene object information;
[0074] The first judgment module 32 is used for judging 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 camera and the distance of the light source, the size and shape of each shadow are scaled and changed, and finally all shadows are pasted Figure 1 one-time drawing;
[0076] The monitoring module 34 is used for monitoring the position changes of the camera and the light source;
[0077] The second judging module 35 is used for judging whether the positions of the camera and the light source have changed.
[0...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap