CN111314770A - In-game list display method and device and terminal equipment - Google Patents

In-game list display method and device and terminal equipment Download PDF

Info

Publication number
CN111314770A
CN111314770A CN202010155013.1A CN202010155013A CN111314770A CN 111314770 A CN111314770 A CN 111314770A CN 202010155013 A CN202010155013 A CN 202010155013A CN 111314770 A CN111314770 A CN 111314770A
Authority
CN
China
Prior art keywords
area
coordinates
region
list
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010155013.1A
Other languages
Chinese (zh)
Other versions
CN111314770B (en
Inventor
姜锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010155013.1A priority Critical patent/CN111314770B/en
Publication of CN111314770A publication Critical patent/CN111314770A/en
Application granted granted Critical
Publication of CN111314770B publication Critical patent/CN111314770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • G06T3/04
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4781Games

Abstract

The application provides a display method and device of a list in a game and a terminal device, relates to the technical field of games, and solves the technical problem that a great amount of work is required in the existing list emergence processing process. The method comprises the following steps: determining coordinates of a first area to be displayed in the list model; determining coordinates of a second region to be feathered in the first region based on a predetermined feathering parameter and the coordinates of the first region; performing pixel sampling in the list map based on the coordinates of the first area to obtain a sampling pixel value of the first area; based on the coordinates of the second area, carrying out transparency value adjustment on the sampling pixel value corresponding to the second area in the sampling pixel values of the first area; displaying the image of the first area in the game picture based on the adjusted sampling pixel value of the first area.

Description

In-game list display method and device and terminal equipment
Technical Field
The present application relates to the field of game technologies, and in particular, to a method and an apparatus for displaying a list in a game, and a terminal device.
Background
In the field of games, lists may be feathered in order to enhance the visual effect of the contents such as in-game lists. The feathering refers to blurring a partial region in the whole region to play a role of gradual change, so that a natural engagement effect is achieved.
At present, a common feather processing method is to set a semi-transparent map for a part to be feathered, that is, a semi-transparent map is first made for the part to be feathered, and then the semi-transparent map is added to an original non-feathered map, so as to achieve the feather effect.
Therefore, in the current list emergence process, a semi-transparent map needs to be set for each list. In the case of a large number of lists that need to be feathered, a large amount of work is required to make the semi-transparent map.
Disclosure of Invention
The invention aims to provide a method and a device for displaying a list in a game and a terminal device, so as to solve the technical problem that a great amount of work is required in the current list emergence processing process.
In a first aspect, an embodiment of the present application provides a method for displaying a list in a game, where a first terminal device provides a graphical user interface, the graphical user interface includes a game screen, the game includes a list model, and the list model corresponds to a list map; the method comprises the following steps:
determining coordinates of a first area to be displayed in the list model; determining coordinates of a second region to be feathered in the first region based on a predetermined feathering parameter and the coordinates of the first region;
performing pixel sampling in the list map based on the coordinates of the first area to obtain a sampling pixel value of the first area; based on the coordinates of the second area, carrying out transparency value adjustment on the sampling pixel value corresponding to the second area in the sampling pixel values of the first area;
displaying the image of the first area in the game picture based on the adjusted sampling pixel value of the first area.
In one possible implementation, the feathering parameters include: a proportion sub-parameter and a proportion calculation position sub-parameter of the second region to be feathered in the first region.
In one possible implementation, the fractional position sub-parameter corresponds to a fractional position located at an edge of the first area.
In one possible implementation, the coordinates of the first area are the coordinates of the first area in a target coordinate system;
the step of determining coordinates of a second region to be feathered in the first region based on a predetermined feathering parameter and the coordinates of the first region, includes:
calculating a starting position and an ending position of a second region to be feathered in the first region relative to the first region according to a predetermined feathering parameter;
converting the starting position and the ending position into an initial feathering area coordinate and an ending feathering area coordinate in the target coordinate system respectively by using the coordinate of the first area;
and obtaining the coordinates of the second area based on the coordinates of the starting feathering area and the coordinates of the ending feathering area.
In one possible implementation, the step of adjusting the transparency value of the sampled pixel value corresponding to the second area in the sampled pixel values of the first area based on the coordinates of the second area includes:
adjusting, by a pixel shader in a rendering pipeline, an alpha value in a sampled pixel value corresponding to the second region among the sampled pixel values of the first region based on coordinates of the second region.
In one possible implementation, the step of adjusting, based on the coordinates of the second region, an alpha value in a sampled pixel value corresponding to the second region among the sampled pixel values of the first region includes:
judging whether the position coordinates of the sampling pixels currently processed by the pixel shaders in the rendering pipeline in the target coordinate system are located in the coordinates of the second area;
if yes, adjusting the alpha value of the currently processed sampling pixel in the rendering pipeline.
In one possible implementation, the method further includes:
if not, keeping the alpha value of the currently processed sampling pixel in the rendering pipeline unchanged.
In one possible implementation, the step of adjusting the alpha value of the currently processed sampled pixel in the rendering pipeline includes:
calculating a target alpha value of the currently processed sampling pixel in the rendering pipeline according to a preset transparency gradual change function;
adjusting an initial alpha value of the currently processed sample pixel in the rendering pipeline to the target alpha value.
In one possible implementation, the list corresponding to the list model is a scrolling list.
In one possible implementation, the scrolling direction of the scrolling list includes up and down, or left and right.
In a second aspect, a display apparatus for in-game lists is provided, wherein a graphical user interface is provided through a second terminal device, the graphical user interface includes a game picture, the game includes a list model, and the list model corresponds to a list map; the device comprises:
the determining module is used for determining the coordinates of a first area to be displayed in the list model and determining the coordinates of a second area to be feathered in the first area based on a pre-determined feathering parameter and the coordinates of the first area;
the adjusting module is used for performing pixel sampling in the list map based on the coordinates of the first area to obtain sampling pixel values of the first area, and performing transparency value adjustment on the sampling pixel values corresponding to the second area in the sampling pixel values of the first area based on the coordinates of the second area;
and the display module is used for displaying the image of the first area in the game picture based on the adjusted sampling pixel value of the first area.
In a third aspect, an embodiment of the present application further provides a terminal device, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the method in the first aspect.
In a fourth aspect, this embodiment of the present application further provides a computer-readable storage medium storing machine executable instructions, which, when invoked and executed by a processor, cause the processor to perform the method of the first aspect.
The embodiment of the application brings the following beneficial effects:
the method, the device and the terminal device for displaying the in-game list provided by the embodiment of the application can determine the coordinates of the second area to be feathered in the first area based on the pre-determined feathering parameters and the coordinates of the first area to be displayed in the list model, perform pixel sampling in the list map based on the coordinates of the first area to obtain the sampling pixel value of the first area, then perform transparency value adjustment on the sampling pixel value in the coordinates of the second area from the sampling pixel value of the first area, so that an image corresponding to the adjusted sampling pixel value of the first area can be displayed in a game picture, further display the feathering effect of the list by determining the coordinates of the area to be feathered and performing transparency value adjustment on the sampling pixel value in the area, do not need to use a semitransparent map, not only can reduce the workload of setting the semitransparent map for each list, the unification of the list feathering effect is improved, and the occupied space of the semitransparent chartlet on the bag body and the memory can be reduced.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the detailed description of the present application or the technical solutions in the prior art, the drawings needed to be used in the detailed description of the present application or the prior art description will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating a method for displaying an in-game list according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating a list feathering effect provided by an embodiment of the present application;
FIG. 3 is a schematic view of another flowchart of a method for displaying an in-game list according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a display device for in-game lists according to an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating a terminal device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The in-game list display method in one embodiment of the present disclosure may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the in-game list display method is executed on the server, the in-game list display method may be implemented and executed based on a cloud interaction system, where the cloud interaction system includes the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and the operation of the information processing method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
At present, the conventional feathering method adds a semi-transparent map to the part to be feathered, and the size of the map is consistent with the requirement. For example, the width and height of the list is 600 x 400, the portion that needs to be feathered is a 15% area at the bottom of the list, the width of the translucency map is 600 and the height is 60(400 x 15%) as the effect displayed is more transparent closer to the bottom, and this translucency map is added to the bottom of the list.
By the conventional feather method, a semi-transparent map is required to be made for each list, a large workload is required, adjustment is required to adapt to the sizes of different lists, the feather effect is prone to deviation, and semi-transparent map resources occupy a large memory space. Furthermore, the current feathering method cannot freely set the function of blurring and gradual change in feathering.
Based on this, the embodiment of the application provides a display method and device for a list in a game and a terminal device, and the technical problem that a large amount of work is required in the current list feather processing process can be solved through the method.
Embodiments of the present invention are further described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for displaying an in-game list according to an embodiment of the present application. The method comprises the steps that a graphical user interface is provided through first terminal equipment, the graphical user interface comprises a game picture, the game comprises a list model, and the list model corresponds to a list map. The first terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in the cloud interaction system. As shown in fig. 1, the method includes:
step S110, determining coordinates of a first region to be displayed in the list model.
The list model is a list model in the game, and can be used for showing data such as attributes, numerical values and the like in the game in a list form.
In practical applications, a device (the aforementioned local terminal device or server, hereinafter referred to as an electronic device) running the method provided by the embodiment of the present application may determine a display position of the list area to be displayed, that is, coordinates of the first area.
Step S120, determining coordinates of a second region to be feathered in the first region based on the pre-determined feathering parameters and the coordinates of the first region.
Wherein the predetermined feathering parameter is used to indicate a specific position parameter of the region to be feathered set in advance with respect to the first region in step S110, for example, the second region to be feathered is located at a position of one fifth of the bottom thereof in the first region. In this step, the electronic device may calculate a specific coordinate value of the second region to be feathered according to the feathering parameter and the coordinate value of the first region.
Step S130, performing pixel sampling in the list map based on the coordinates of the first area to obtain a sampled pixel value of the first area.
For example, the electronic device may load a list map corresponding to the list model of the first region coordinates into a memory, and then call a graphics rendering interface to transmit the corresponding list map to a Graphics Processing Unit (GPU), where the GPU performs pixel sampling. For example, the GPU may retrieve a Red-Green-Blue-transparency (RGBA) value corresponding to each pixel in the first region coordinates in the list map.
In step S140, based on the coordinates of the second region, the transparency value of the sampled pixel value corresponding to the second region in the sampled pixel values of the first region is adjusted.
The adjusted transparency value may be an Alpha value of the RGBA values. In practical applications, if no feathering or other processing is performed, the color space value finally displayed on the display is the RGBA value sampled in step S130. In the embodiment of the present application, if feathering needs to be performed on the second region, the Alpha value of each pixel in the coordinates of the second region is modified.
In step S150, the image of the first area is displayed on the game screen based on the adjusted sampling pixel value of the first area.
Wherein the adjusted first region includes the adjusted sampled pixel values of the second region (the feathered region), and the sampled pixel values in the first region other than the second region, that is, the unadjusted sampled pixel values in the first region (the unadjusted region).
In the embodiment of the application, after the Alpha value is modified, the electronic device may display the adjusted image of the first area in the game screen, so as to display the semitransparent effect of the second area in the first area, as shown in fig. 2, the list designation part is mixed with the background behind the list, and a gradual background blending list emergence effect is achieved.
By providing the display method of the list in the game, the region coordinates of the list to be feathered can be determined, and the transparency value of the sampling pixel value in the region can be adjusted, so that the feathering effect of the list can be displayed. Therefore, the semi-transparent map does not need to be added, the uniformity of the list feathering effect can be improved, the workload of setting the semi-transparent map on each list is reduced, and the occupied space of the semi-transparent map on the bag body and the memory can be reduced.
The above steps are described in detail below.
In some embodiments, the list model described above may be a dynamic list model to make the feathering effect more dramatic. As one example, the list to which the list model corresponds is a scrolling list. By rolling the eclosion effect in the form list, the eclosion effect can be dynamically displayed, so that the eclosion effect is more vivid.
Based on this, the scrolling direction of the scrolling list may be a variety of different directions. As one example, the scrolling direction for scrolling through the list includes up and down, or left and right. Therefore, in the process of scrolling up and down or left and right of the scrolling list, the feathering effect at the fixed area in the scrolling list is always kept, and the picture effect of the game is improved.
In some embodiments, the predetermined feathering parameters may be represented in a number of different forms. For example, the feathering parameters include: the proportion sub-parameter and the proportion position sub-parameter of the second region to be feathered in the first region.
For example, the percentage sub-parameter of the second region to be feathered in the first region is set to percentage, that is, the percentage of the region to be feathered in the list to the whole list. Wherein the percentage may be any value between 0 and 1 that can be freely set. For example, the second region to be feathered is 15% from the top of the first region.
Through the proportion sub-parameter and the proportion calculation position sub-parameter, the relatively accurate position of the second area to be feathered in the first area can be more accurately determined, so that the accuracy of the feathering position is improved.
Based on this, the fractional position sub-parameter may be a special position in the list. As an example, the fractional computation location corresponding to the fractional computation location sub-parameter is located at an edge of the first area.
For example, the position data may be set to account for the bottom-most edge of the first region as the comparative position sub-parameter, for example, the second region to be feathered is 20% of the region from the bottom-most edge of the first region.
The calculation position sub-parameter of the edge of the first area can make the edge of the list display a feathering effect, so that the connection part inside and outside the list is blurred to play a gradual change effect, and the natural connection effect of the list and the background is achieved.
In some embodiments, the position space of the second region relative to the first region and the position coordinate space of the first region coordinates may be unified to obtain more accurate data of the position coordinates of the second region. As an example, the coordinates of the first area are the coordinates of the first area in the target coordinate system; the step S120 may include the following steps:
step a), calculating the starting position and the ending position of the second area to be feathered in the first area relative to the first area according to the predetermined feathering parameters.
And b), converting the starting position and the ending position into a starting feather area coordinate and an ending feather area coordinate in a target coordinate system respectively by using the coordinate of the first area.
And c), obtaining the coordinate of the second area based on the initial feathering area coordinate and the ending feathering area coordinate.
In practical applications, the electronic device may calculate the position of the second area to be feathered in the target coordinate system according to the model matrix of the list of the second area to be feathered and the first area. The model matrix is the transformation matrix coordinates in the target coordinate system after the list of the first region is transformed from the model local space, that is, the current model space coordinates are transformed into the space of the target coordinate system where the model is located, and if the model is located in the space of the target coordinate system, the model matrix is the coordinates transformed into the target coordinate system.
For example, the width and height of the first region in the current list are width and height, respectively, and the model matrix is model. The feathering start position and end position that need to be calculated are start, end, respectively.
From height and percentage, it can be found that: start left height; end is 0. Converting the model space coordinates into coordinates in a target coordinate system: a start (model) start; end is model end.
The above process of transforming to coordinates in the target coordinate system is because the space of the Open graphics library (OpenGL) is not uniform with the coordinate system of the first area coordinates, and all coordinates need to be transformed to the same spatial coordinate system before comparing the coordinates. Furthermore, multiple layers of content may be nested in the list, such as a button with a text inside, so that a translation to a uniform spatial coordinate system is required for position comparison.
The determined position of the second area can be more accurate through processes of coordinate system conversion, calculation of the starting position and the ending position of the second area and the like, and finally calculated coordinate values of the second area are more accurate through the unification of the coordinate system.
Based on this, the above-mentioned target coordinate system may be various types of coordinate systems. As an example, the target coordinate system includes any one or more of:
a world space coordinate system, a plane rectangular coordinate system and a plane polar coordinate system.
Illustratively, as shown in fig. 3, after setting the emergence region (i.e., the second region to be emerged), emergence start and end regions in world coordinates, i.e., a start emergence position and an end emergence position of the emergence region in world space coordinates, are calculated.
Through various types of target coordinate systems, the calculation process of the coordinate system conversion process can be more free, and only a plurality of different position coordinates are converted into a uniform coordinate system, so that the conversion process is more convenient.
In some embodiments, the electronic device may make the adjustment of the transparency value by a pixel shader in the rendering pipeline. As an example, the step S140 may include the steps of:
and d), adjusting an alpha value in the sampling pixel value corresponding to the second area in the sampling pixel values of the first area based on the coordinates of the second area through a pixel shader in the rendering pipeline.
For example, as shown in fig. 3, the coordinates of the second region calculated in the above steps may be passed into a pixel shader in each control rendering pipeline in the list. Namely, the coordinates of the starting emergence region and the coordinates of the ending emergence region calculated in the step c) are transmitted into a pixel shader program in a rendering pipeline of each control in the list.
Wherein, the control refers to a node added to the list, such as: picture controls (buttons), text controls (text), etc., similar to interface elements in a game. The pixel shader can calculate the alpha value of the pixel according to the start and the end.
The pixel shader is used for adjusting the alpha value in the sampling pixel value corresponding to the second area, so that the transparency value of the second area can be adjusted more efficiently, and the efficiency of the transparency value adjusting process is improved.
Based on this, it can be determined whether the currently processed sampling pixel is in the second region during the rendering process to determine whether to perform alpha value adjustment thereon. As an example, the step d) may include the steps of:
and e), judging whether the position coordinates of the sampling pixels currently processed by the pixel shaders in the rendering pipeline in the target coordinate system are positioned in the coordinates of the second area. If yes, executing step f).
And f), adjusting the alpha value of the currently processed sampling pixel in the rendering pipeline.
In practical applications, as shown in fig. 3, it can be determined whether each rendered pixel is in the feathering region in the pixel shader, and if so, the alpha value of the pixel is adjusted.
For example, assuming that the color value of the pixel in the current pixel shader is color, the y coordinate according to the current pixel position is compared with start and end, and if y is greater than end and less than start, the color value is modified.
Whether the currently processed sampling pixel is in the second area or not is judged in the rendering process, whether the sampling pixel is subjected to alpha value adjustment or not can be determined, the process of adjusting the alpha value is more accurate, and the condition of error of an adjustment object is reduced.
Based on step e) above, the alpha value may not be adjusted when the currently processed sampled pixel is not in the second region. As an example, the method may further comprise the steps of:
and g), if not, keeping the alpha value of the currently processed sampling pixel in the rendering pipeline unchanged.
As shown in fig. 3, no processing is done if the currently processed sample pixel is not in the feathered region. For example, when y is less than end or y is greater than start, the alpha value for the pixel remains unchanged.
The alpha value of the sampling pixel which is not in the second area is kept unchanged, so that a plurality of processing operation processes are omitted in the alpha value adjusting process, and the efficiency of the transparency value adjusting process is improved.
Based on the above steps e) and f), the adjustment of the alpha value can be performed according to the transparency gradual change function which can be freely set. As an example, the step f) may include the steps of:
and h), calculating a target alpha value of the currently processed sampling pixel in the rendering pipeline according to a preset transparency gradual change function.
Step i), adjusting the initial alpha value of the currently processed sampling pixel in the rendering pipeline to be the target alpha value.
In practical application, various self-defined gradient functions can be supported, namely different gradient functions can be self-defined, and the alpha value of the pixel is processed according to the self-defined gradient functions. For example, color.a ═ func (y) is given. Where func refers to a processing function, such as linear transformation: func (y) end)/(start-end).
The feathering effect is controlled through the gradual change function, the feathering effect can be controlled by freely using self-defined equations such as linearity or curve, and the diversity of the feathering effect is improved.
Based on the above steps h) and i), the preset transparency gradient function can be a plurality of different types of gradient functions. As an example, the preset transparency gradation function is a linear transformation function or a nonlinear transformation function.
For example, if a linear transformation function is used, the transparency can be transformed along with linearity, and if a parabolic curve is used, the transparency can be transformed along with the parabolic curve, so that the feathering effect is enriched, and the picture effect of the game list is improved.
Fig. 4 provides a schematic diagram of a structure of a display device for in-game lists. And providing a graphical user interface through the second terminal device, wherein the graphical user interface comprises a game picture, the game comprises a list model, and the list model corresponds to the list map. The second terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in the cloud interaction system. As shown in fig. 4, the in-game list display apparatus 400 includes:
a determining module 401, configured to determine coordinates of a first region to be displayed in the list model, and determine coordinates of a second region to be feathered in the first region based on a pre-determined feathering parameter and the coordinates of the first region;
an adjusting module 402, configured to perform pixel sampling in the list map based on the coordinate of the first region to obtain a sampled pixel value of the first region, and perform transparency value adjustment on a sampled pixel value corresponding to the second region in the sampled pixel values of the first region based on the coordinate of the second region;
a display module 403, configured to display an image of the first area in the game screen based on the adjusted sampled pixel value of the first area.
In some embodiments, the feathering parameters include: the proportion sub-parameter and the proportion position sub-parameter of the second region to be feathered in the first region.
In some embodiments, the fractional computation location corresponding to the fractional computation location sub-parameter is located at an edge of the first area.
In some embodiments, the coordinates of the first region are the coordinates of the first region in the target coordinate system; the determination module is specifically configured to:
calculating a starting position and an ending position of a second region to be feathered in the first region relative to the first region according to a predetermined feathering parameter;
converting the initial position and the end position into an initial feathering area coordinate and an end feathering area coordinate in a target coordinate system respectively by using the coordinate of the first area;
and obtaining the coordinates of the second area based on the coordinates of the initial feathering area and the coordinates of the ending feathering area.
In some embodiments, the adjustment module is specifically configured to:
adjusting, by a pixel shader in the rendering pipeline, an alpha value in a sampled pixel value of the first region corresponding to the second region based on coordinates of the second region.
In some embodiments, the adjustment module is further to:
judging whether the position coordinates of the sampling pixels currently processed by a pixel shader in the rendering pipeline in the target coordinate system are located in the coordinates of the second area or not;
if yes, adjusting the alpha value of the currently processed sampling pixel in the rendering pipeline.
In some embodiments, the adjustment module is further to:
if not, the alpha value of the currently processed sampling pixel in the rendering pipeline is kept unchanged.
In some embodiments, the adjustment module is further to:
calculating a target alpha value of a currently processed sampling pixel in a rendering pipeline according to a preset transparency gradual change function;
the initial alpha value of the currently processed sample pixel in the rendering pipeline is adjusted to a target alpha value.
In some embodiments, the preset transparency gradient function is a linear transformation function or a non-linear transformation function.
In some embodiments, the target coordinate system comprises any one or more of:
a world space coordinate system, a plane rectangular coordinate system and a plane polar coordinate system.
In some embodiments, the list to which the list model corresponds is a scrolling list.
In some embodiments, the scrolling direction of the scrolling list includes up and down, or left and right.
The display device for the in-game list provided by the embodiment of the application has the same technical characteristics as the display method for the in-game list provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
As shown in fig. 5, a terminal device 500 provided in an embodiment of the present application includes: the terminal device comprises a processor 501, a memory 502, a display 503 and a bus, wherein the memory 502 stores machine readable instructions executable by the processor 501, when the terminal device runs, the processor 501 and the memory 502 are communicated through the bus, the processor 501 executes the machine readable instructions to execute the steps of the display method of the in-game list, and the display 503 is used for presenting a graphical user interface in the embodiment of the application.
Specifically, the memory 502 and the processor 501 can be general-purpose memory and processor, which are not limited to specific examples, and when the processor 501 runs a computer program stored in the memory 502, the in-game list display method can be executed.
The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
Corresponding to the display method of the in-game list, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores machine executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to execute the steps of the display method of the in-game list.
The display device of the in-game list provided by the embodiment of the application can be specific hardware on the device, or software or firmware installed on the device, and the like. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
For another example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or a part of the technical solution may be essentially implemented in the form of a software product, which is stored in a storage medium and includes several instructions to enable a terminal device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the displaying method of the in-game list according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for displaying a list in a game is characterized in that a first terminal device provides a graphical user interface, the graphical user interface comprises a game picture, the game comprises a list model, and the list model corresponds to a list map; the method comprises the following steps:
determining coordinates of a first area to be displayed in the list model; determining coordinates of a second region to be feathered in the first region based on a predetermined feathering parameter and the coordinates of the first region;
performing pixel sampling in the list map based on the coordinates of the first area to obtain a sampling pixel value of the first area; based on the coordinates of the second area, carrying out transparency value adjustment on the sampling pixel value corresponding to the second area in the sampling pixel values of the first area;
displaying the image of the first area in the game picture based on the adjusted sampling pixel value of the first area.
2. The method of claim 1, wherein the feathering parameters comprise: a proportion sub-parameter and a proportion calculation position sub-parameter of the second region to be feathered in the first region.
3. The method of claim 2, wherein the fractional computation position sub-parameter corresponds to a fractional computation position located at an edge of the first area.
4. The method according to any one of claims 1-3, wherein the coordinates of the first area are the coordinates of the first area in a target coordinate system;
the step of determining coordinates of a second region to be feathered in the first region based on a predetermined feathering parameter and the coordinates of the first region, includes:
calculating a starting position and an ending position of a second region to be feathered in the first region relative to the first region according to a predetermined feathering parameter;
converting the starting position and the ending position into an initial feathering area coordinate and an ending feathering area coordinate in the target coordinate system respectively by using the coordinate of the first area;
and obtaining the coordinates of the second area based on the coordinates of the starting feathering area and the coordinates of the ending feathering area.
5. The method according to claim 1, wherein the step of adjusting the transparency value of the sampled pixel value corresponding to the second area among the sampled pixel values of the first area based on the coordinates of the second area comprises:
adjusting, by a pixel shader in a rendering pipeline, an alpha value in a sampled pixel value corresponding to the second region among the sampled pixel values of the first region based on coordinates of the second region.
6. The method of claim 5, wherein the step of adjusting, based on the coordinates of the second region, an alpha value in the sampled pixel values of the first region corresponding to the second region comprises:
judging whether the position coordinates of the sampling pixels currently processed by the pixel shaders in the rendering pipeline in the target coordinate system are located in the coordinates of the second area;
if yes, adjusting the alpha value of the currently processed sampling pixel in the rendering pipeline.
7. The method of claim 6, wherein the step of adjusting the alpha value of the currently processed sample pixel in the rendering pipeline comprises:
calculating a target alpha value of the currently processed sampling pixel in the rendering pipeline according to a preset transparency gradual change function;
adjusting an initial alpha value of the currently processed sample pixel in the rendering pipeline to the target alpha value.
8. The method of claim 1, wherein the list corresponding to the list model is a scrolling list.
9. The method of claim 8, wherein the scrolling direction of the scrolling list comprises up and down, or left and right.
10. A display device of a list in a game is characterized in that a graphical user interface is provided through a second terminal device, the graphical user interface comprises a game picture, the game comprises a list model, and the list model corresponds to a list map; the device comprises:
the determining module is used for determining the coordinates of a first area to be displayed in the list model and determining the coordinates of a second area to be feathered in the first area based on a pre-determined feathering parameter and the coordinates of the first area;
the adjusting module is used for performing pixel sampling in the list map based on the coordinates of the first area to obtain sampling pixel values of the first area, and performing transparency value adjustment on the sampling pixel values corresponding to the second area in the sampling pixel values of the first area based on the coordinates of the second area;
and the display module is used for displaying the image of the first area in the game picture based on the adjusted sampling pixel value of the first area.
11. A terminal device comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of the method of any of claims 1 to 9.
12. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 9.
CN202010155013.1A 2020-03-06 2020-03-06 In-game list display method and device and terminal equipment Active CN111314770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010155013.1A CN111314770B (en) 2020-03-06 2020-03-06 In-game list display method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010155013.1A CN111314770B (en) 2020-03-06 2020-03-06 In-game list display method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN111314770A true CN111314770A (en) 2020-06-19
CN111314770B CN111314770B (en) 2022-03-04

Family

ID=71147308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010155013.1A Active CN111314770B (en) 2020-03-06 2020-03-06 In-game list display method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN111314770B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5185808A (en) * 1991-06-06 1993-02-09 Eastman Kodak Company Method for merging images
CN101222622A (en) * 2007-01-10 2008-07-16 晨星半导体股份有限公司 Adaptively de-blocking circuit and associated method
CN101536078A (en) * 2006-09-25 2009-09-16 奥多比公司 Improving image masks
CN102063280A (en) * 2010-12-24 2011-05-18 广东威创视讯科技股份有限公司 Image edge blending processing method and system
CN102073468A (en) * 2011-01-05 2011-05-25 广东威创视讯科技股份有限公司 Method for realizing image edge blending based on window system
CN105976371A (en) * 2016-05-03 2016-09-28 成都索贝数码科技股份有限公司 Outline-based transparency gradient image matting method
CN110392904A (en) * 2017-08-25 2019-10-29 谷歌有限责任公司 The method to be remapped using the dynamic image color of alpha blended

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5185808A (en) * 1991-06-06 1993-02-09 Eastman Kodak Company Method for merging images
CN101536078A (en) * 2006-09-25 2009-09-16 奥多比公司 Improving image masks
CN101222622A (en) * 2007-01-10 2008-07-16 晨星半导体股份有限公司 Adaptively de-blocking circuit and associated method
CN102063280A (en) * 2010-12-24 2011-05-18 广东威创视讯科技股份有限公司 Image edge blending processing method and system
CN102073468A (en) * 2011-01-05 2011-05-25 广东威创视讯科技股份有限公司 Method for realizing image edge blending based on window system
CN105976371A (en) * 2016-05-03 2016-09-28 成都索贝数码科技股份有限公司 Outline-based transparency gradient image matting method
CN110392904A (en) * 2017-08-25 2019-10-29 谷歌有限责任公司 The method to be remapped using the dynamic image color of alpha blended

Also Published As

Publication number Publication date
CN111314770B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US9786091B2 (en) Gradient adjustment for texture mapping to non-orthonormal grid
US20080284798A1 (en) Post-render graphics overlays
CN108022285B (en) Map rendering method and device
US9275493B2 (en) Rendering vector maps in a geographic information system
JP2022528432A (en) Hybrid rendering
CN112116692A (en) Model rendering method, device and equipment
CN112215934A (en) Rendering method and device of game model, storage medium and electronic device
CN111161392B (en) Video generation method and device and computer system
US10733793B2 (en) Indexed value blending for use in image rendering
CN111476851B (en) Image processing method, device, electronic equipment and storage medium
US20210005008A1 (en) Gradient adjustment for texture mapping to non-orthonormal grid
KR20170040698A (en) Method and apparatus for performing graphics pipelines
CN111314770B (en) In-game list display method and device and terminal equipment
CN111784814A (en) Virtual character skin adjusting method and device
US20030169272A1 (en) Image generation apparatus and method thereof
CN115471592A (en) Dynamic image processing method and system
CN115391692A (en) Video processing method and device
US6460063B1 (en) Division circuit and graphic display processing apparatus
CN112752131B (en) Barrage information display method and device, storage medium and electronic device
JP4244444B2 (en) Data processing device, division circuit, and image processing device
JP2021193506A (en) Image drawing processor, image drawing processing method, image drawing processing program and electronic game providing device
CN115607962A (en) Object display information determining method and device, electronic equipment and storage medium
CN117234654A (en) Method, device, equipment and storage medium for customizing chart colors
CN117952817A (en) Image comparison display method and related device
CN112115015A (en) Graphics processor and associated method for displaying a set of pixels, associated platform and avionics system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant