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.

Active Publication Date: 2020-08-28
SHANGHAI MIHOYO TIANMING TECH CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in fact, there are a large number of individuals in the same type of objects, and each individual needs to correspond to a unique material scheme to reflect individual changes. A large number of materials are required, which leads to high energy consumption during the running of the game and is difficult to manage.

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
  • Picture rendering method and device, computer equipment and medium
  • Picture rendering method and device, computer equipment and medium
  • Picture rendering method and device, computer equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

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...

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 embodiment of the invention discloses a picture rendering method and device, computer equipment and a medium. The picture rendering method comprises the steps that when a game picture is loaded, sending index numbers of rendering parameters carried by all objects in a target loading picture to a shader; calling the shader to query rendering parameters corresponding to each object in a parameter query map according to the index number, and writing multiple groups of rendering parameters of the object in the parameter query map in advance; and calling the shader to render and display each object according to the inquired rendering parameters. According to the embodiment of the invention, the problems that a large number of materials similar to chartlets are adopted and need to be storedindependently are solved; the storage space and the calculation performance are saved; the art requirements for color change and individual change of an object model are met under the condition that multiple materials are not increased; the number of the materials is small; and the overhead of the operation performance is reduced.

Description

Technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a screen rendering method, device, computer equipment and medium. Background technique [0002] In the process of making the game interface, it is usually necessary to lay a large number of objects in the empty world to add details, supplement the picture, and then reflect the characteristics of different regions in the world. For example, by placing a large number of trees of different colors in the forest, the diversity of plants in the forest is reflected, and it is closer to the real scene. [0003] At present, the widely used image rendering method is to use different material schemes to correspond to different colors of individuals in the object to increase diversity. For example, n different texture maps are used to represent the color changes of trees to correspond to different color schemes. However, in fact, objects of the same type contain a ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/451
CPCG06F9/451Y02D10/00
Inventor 周昊楠
Owner SHANGHAI MIHOYO TIANMING TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products