Picture rendering method and device, computer equipment and medium
A screen and in-screen technology, applied in the computer field, can solve the problems of a large number of materials, difficult management, high performance consumption, etc., to achieve the effect of fewer materials, less repetition, and less overhead.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Figure 1a This is a flowchart of a screen rendering method provided in Embodiment 1 of the present invention. This embodiment is applicable to a situation where a screen is loaded and rendered. The method can be executed by a screen rendering device, which can be configured in a computer device, for example. Such as Figure 1a As shown, the method specifically includes:
[0044] S110: When the game screen is loaded, the index number of the rendering parameter carried by each object in the target loading screen is sent to the shader.
[0045] During the running of a game, the game screen will be loaded, that is, the effect of the screen will be displayed on the screen. The displayed content includes each object in the screen and the corresponding color and shape of each object. In the prior art, usually an object corresponds to a material scheme, that is, an object corresponds to a texture, and the texture data of the object and the material rendering scheme are recorded in th...
Embodiment 2
[0054] Figure 2a This is a flowchart of the screen rendering method provided in the second embodiment of the present invention. The second embodiment is further optimized on the basis of the first embodiment to illustrate the process of parameter query texture writing data. Such as Figure 2a As shown, the method includes:
[0055] S210. Record multiple sets of rendering parameters set by the user for the material of the object.
[0056] Among them, the users include game creators and / or game artists. The user can set or adjust multiple parameters in the shader for a certain material M in the game engine. A material scheme corresponds to a parameter group. The parameter group includes color parameters and numerical parameters. A material can have multiple rendering schemes, and accordingly have multiple sets of rendering parameters.
[0057] S220: Invoke the plan writing tool to write the multiple sets of rendering parameters into the parameter query texture and determine the inde...
Embodiment 3
[0067] image 3 It is a schematic diagram of the structure of the screen rendering device in the third embodiment of the present invention. This embodiment is applicable to the situation where the screen is loaded and rendered.
[0068] Such as image 3 As shown, the screen rendering device includes: an index number sending module 310, a rendering parameter acquisition module 320, and a rendering module 330. Wherein, the index number sending module 310 is used to send the index numbers of the rendering parameters carried by the objects in the target loading screen to the shader when the game screen is loaded; the rendering parameter acquisition module 320 is used to call the shader according to the The index number to the parameter query map to query the rendering parameters corresponding to each object, where multiple sets of rendering parameters of the object are pre-written in the parameter query map; the rendering module 330 is used to call the shader according to The queried...
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