Display information processing method and apparatus, storage medium and electronic apparatus
By converting and rendering masks in virtual scenes, the problem of low display efficiency of virtual luminescent devices is solved, and the diversity of dynamic effects and efficient rendering is achieved.
Patent Information
- Application Number
- PCT/CN2024/075522
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-29
- Filing Date
- 2024-02-02
- Publication Date
- 2024-12-05
AI Technical Summary
When creating dynamic effects of virtual light emitting devices in games, the prior art requires high labor costs, the sequence frame images take up a large space and it is difficult to achieve style switching, resulting in low display efficiency of virtual light emitting devices.
By determining the virtual model in a virtual scene, obtaining the mask and converting it into multiple masks based on the target dynamic information, and rendering the performance results of the target pattern in the target area in turn to simulate the dynamic display effect, avoiding the production of sequence frame images .
It improves the display efficiency of virtual light emitting devices, achieves diversity of dynamic effects and efficient rendering, and solves the problem of low display efficiency.
Smart Images

Figure CN2024075522_05122024_PF_FP_ABST
Abstract
Description
Display information processing method, device, storage medium and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202310618985.3, filed on May 29, 2023, entitled “Method, device, storage medium and electronic device for processing display information”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to the field of game technology, and in particular to a method, device, storage medium, and electronic device for processing display information. Background Art
[0004] At present, when creating dynamic effects of virtual light-emitting devices in games, sequential frame images are usually sampled through texture coordinate (UV) offset to achieve the dynamic effects of light signs. However, the labor cost required for the production of sequential frame images is high, and the sequential frame images occupy a large space. In addition, the dynamic effects of light signs achieved by using sequential frame images are single, and it is difficult to achieve style switching. There is a technical problem of low display efficiency of virtual light-emitting devices.
[0005] To address the above-mentioned problems, no effective solutions have been proposed so far.
[0006] Summary of the Invention
[0007] At least some embodiments of the present disclosure provide a method, device, storage medium, and electronic device for processing display information to at least solve the technical problem of low display efficiency of virtual light-emitting devices.
[0008] According to one aspect of the present disclosure, a method for processing display information is provided, which may include: determining a virtual model in a virtual scene, and obtaining a first mask map corresponding to the virtual model, wherein the first mask map is used to represent an area on the virtual model where dynamic information can be displayed; determining target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change trajectory of the target pattern during the dynamic display process; obtaining a second mask map corresponding to the target pattern in the target dynamic information, wherein the second mask map is used to represent an area where the target pattern needs to be dynamically displayed on the virtual model; based on the change trajectory in the target dynamic information, converting the second mask map into multiple third mask maps, wherein the third mask map is used to determine a target area corresponding to the change trajectory in the first mask map; based on the third mask map and the first mask map, rendering and displaying the target pattern in the corresponding target area in sequence to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
[0009] According to one aspect of the present disclosure, a display information processing device is also provided, which may include: a first determination unit, configured to determine a virtual model in a virtual scene and obtain a first mask map corresponding to the virtual model, wherein the first mask map is used to represent an area on the virtual model where dynamic information can be displayed; a second determination unit, configured to determine target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change trajectory of the target pattern during the dynamic display process; an acquisition unit, configured to obtain a second mask map corresponding to the target pattern in the target dynamic information, wherein the second mask map is used to represent an area where the target pattern needs to be dynamically displayed on the virtual model; a conversion unit, configured to convert the second mask map into multiple third mask maps based on the change trajectory in the target dynamic information, wherein the third mask map is used to determine a target area corresponding to the change trajectory in the first mask map; a rendering unit, configured to render and display the performance results of the target pattern in the corresponding target area based on the multiple third mask maps and the first mask map, respectively, to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
[0010] According to one aspect of the present disclosure, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is configured to execute the method for processing display information according to an embodiment of the present disclosure when running.
[0011] According to one aspect of the present disclosure, an electronic device is further provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the method for processing display information according to an embodiment of the present disclosure.
[0012] After determining the virtual model in the virtual scene, the present disclosure can further determine the target dynamic information to be displayed on the virtual model. Since the target dynamic information includes the target pattern and the changing trajectory of the target pattern during the dynamic display process, based on this, the second mask image corresponding to the target pattern can be further obtained, and the second mask image can be converted into multiple third mask images according to the dynamic display process of the target pattern, and then the performance results of the target pattern are rendered and displayed in the target area in turn, which can simulate the dynamic display effect of the target pattern on the virtual model during the dynamic display process, thereby achieving the purpose of displaying the dynamic effect of the virtual light-emitting device, avoiding the production of sequential frame images, improving the display efficiency of the virtual light-emitting device, and thus solving the technical problem of low display efficiency of the virtual light-emitting device. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] FIG1 is a hardware structure block diagram of a mobile terminal for displaying information processing according to an embodiment of the present disclosure;
[0014] FIG2 is a flow chart of a method for processing display information according to one embodiment of the present disclosure;
[0015] FIG3 is a diagram of a love pattern sequence in a related art according to one embodiment of the present disclosure;
[0016] FIG4 is a schematic diagram of switching a love pattern sequence diagram according to an embodiment of the present disclosure;
[0017] FIG5 is a schematic diagram of a linear gradient change image according to an embodiment of the present disclosure;
[0018] FIG6 is a schematic diagram of an LED mask according to an embodiment of the present disclosure;
[0019] FIG7 is a UV coordinate diagram according to an embodiment of the present disclosure;
[0020] FIG8 is a schematic diagram of UV tiling according to an embodiment of the present disclosure;
[0021] FIG9 is an LED mask diagram obtained based on UV calculation according to an embodiment of the present disclosure;
[0022] FIG10 is a pattern mask diagram according to an embodiment of the present disclosure;
[0023] FIG11 is a schematic diagram of an LED static effect according to an embodiment of the present disclosure;
[0024] FIG12 is a gradient interpolation pattern mask according to an embodiment of the present disclosure;
[0025] FIG13 is a schematic diagram of an LED dynamic effect provided according to an embodiment of the present disclosure;
[0026] FIG14 is a schematic diagram of a gradient interpolation pattern mask composite image provided according to an embodiment of the present disclosure;
[0027] FIG15 is a structural block diagram of a device for processing display information according to one embodiment of the present disclosure;
[0028] FIG16 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present disclosure.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] In one possible implementation, in the field of gaming, when producing dynamic effects of virtual light-emitting devices, sequence frame images are usually sampled through UV offset to achieve the dynamic effects of light signs. However, the labor cost required for the production of sequence frame images is high, and the sequence frame images occupy a large space. In addition, the dynamic effects of light signs achieved by using sequence frame images are single, and it is difficult to achieve style switching. There is a technical problem of low display efficiency of virtual light-emitting devices. Based on this, an embodiment of the present disclosure proposes a method for processing display information, which comprises determining a virtual model in a virtual scene and obtaining a first mask map corresponding to the virtual model, wherein the first mask map is used to represent an area on the virtual model where dynamic information can be displayed; determining target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change trajectory of the target pattern during the dynamic display process; obtaining a second mask map corresponding to the target pattern in the target dynamic information, wherein the second mask map is used to represent an area where the target pattern needs to be dynamically displayed on the virtual model; based on the change trajectory in the target dynamic information, converting the second mask map into multiple third mask maps, wherein the third mask map is used to determine a target area corresponding to the change trajectory in the first mask map; based on the third mask map and the first mask map, sequentially rendering and displaying the target pattern in the corresponding target area to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process, thereby achieving the purpose of displaying the dynamic effect of the virtual light-emitting device, avoiding the production of sequential frame images, improving the display efficiency of the virtual light-emitting device, and thereby solving the technical problem of low display efficiency of the virtual light-emitting device.
[0032] The above-mentioned method embodiments involved in the present disclosure can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone, a tablet computer, a handheld computer, a mobile Internet device, a PAD, a game console and other terminal devices. Figure 1 is a hardware structure block diagram of a mobile terminal for a method of processing display information in an embodiment of the present disclosure. As shown in Figure 1, the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (the processor 102 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data. In one embodiment of the present disclosure, it may also include: an input and output device 108 and a display device 110.
[0033] In some optional embodiments mainly based on gaming scenarios, the above-mentioned device can also provide a human-computer interaction interface with a touch-sensitive surface, which can sense finger contact and / or gestures to perform human-computer interaction with a graphical user interface (GUI). The human-computer interaction functions may include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interface, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.
[0034] Those skilled in the art will appreciate that the structure shown in FIG1 is merely illustrative and does not limit the structure of the mobile terminal. For example, the mobile terminal may include more or fewer components than shown in FIG1 , or have a configuration different from that shown in FIG1 .
[0035] According to one embodiment of the present disclosure, an embodiment of a method for processing display information is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] FIG2 is a flow chart of a method for processing display information according to one embodiment of the present disclosure. As shown in FIG2 , the method includes the following steps:
[0037] Step S201: determine a virtual model in a virtual scene, and obtain a first mask image corresponding to the virtual model.
[0038] In the technical solution of step S201 of the present disclosure, the virtual model may be a virtual display model in a virtual scene such as an LED screen, a flat panel, or an LCD screen composed of light emitting diodes (LEDs). The first mask image corresponding to the virtual model is a pattern drawn based on the display area of the virtual model. The first mask image is used to represent an area on the virtual model where dynamic information can be displayed.
[0039] In this embodiment, after the virtual model is determined in the virtual scene, the UV coordinates of the center point of the display area and the distances between the UV coordinates of other points other than the center point can be calculated based on the UV map corresponding to the display area of the virtual model, thereby obtaining an image with a linear gradient change from the center point outward. Subsequently, the pixel value of each point in the obtained image with a linear gradient change from the center point outward is used as X, and the pixel value of each point is compared with a preset reference value Y to adjust the pixel value corresponding to each point in the image with a linear gradient change, thereby obtaining an adjusted UV image. The reference value Y can be preset, for example, Y can be 0.45, and there is no specific limitation here.
[0040] For example, taking any point in an image with a linear gradient change as an example, if the pixel value X of the point is greater than the reference value Y, the pixel value of the point is adjusted to 1; if the pixel value X of the point is not greater than the reference value Y, the pixel value of the point is adjusted to 0. After comparing the pixel value of each point in the image with the reference value, an adjusted pixel value corresponding to each point can be obtained, and then an adjusted UV image can be obtained.
[0041] After obtaining the adjusted UV image, UV tiling may be further performed on the adjusted UV image to obtain a first mask image corresponding to the virtual model.
[0042] For example, each UV coordinate value in the adjusted UV image can be multiplied by 5, and then the remainder is taken with respect to 1 to obtain a new UV coordinate map. The new UV coordinate map is arranged five times in the range of 0-1 in both the X and Y directions, which is equivalent to tiling 25 UV images. The resulting new UV coordinate map is the first mask map corresponding to the virtual model, where the first mask map can be a 5x5 LED mask map.
[0043] Step S202: determining target dynamic information to be displayed on the virtual model.
[0044] In the technical solution of the above-mentioned step S202 of the present disclosure, after obtaining the first mask image corresponding to the virtual model, the target dynamic information to be displayed on the virtual model can be further determined, wherein the target dynamic information at least includes the target pattern and the changing trajectory of the target pattern during the dynamic display process.
[0045] In this embodiment, the target pattern included in the target dynamic information can be a pre-set pattern, such as a heart-shaped pattern, a letter pattern or a number pattern, etc., and there is no specific limitation here. The changing trajectory of the target pattern during the dynamic display process can also be a pre-set trajectory, which can be used to indicate the display path and display direction of the target pattern on the virtual model, so as to realize the dynamic display of the target pattern on the virtual model.
[0046] Step S203: Acquire a second mask image corresponding to the target pattern in the target dynamic information.
[0047] In the technical solution of the above-mentioned step S203 of the present disclosure, after obtaining the target dynamic information to be displayed on the virtual model, a second mask image corresponding to the target pattern in the target dynamic information can be further obtained, wherein the second mask image is used to represent the area where the target pattern needs to be dynamically displayed on the virtual model, wherein the size of the second mask image is consistent with the size of the first mask image.
[0048] In this embodiment, the second mask image can be drawn based on the target pattern. For example, when the target pattern is a heart-shaped pattern, the second mask image can be used to indicate the area where the heart-shaped pattern needs to be dynamically displayed on the virtual model. When the target pattern is a letter pattern, the second mask image can be used to indicate the area where the letter pattern needs to be dynamically displayed on the virtual model. That is, the second mask image can determine the area that needs to be dynamically displayed on the virtual model based on the target pattern that the user wants to dynamically display on the virtual model.
[0049] For example, the second mask image can be drawn according to the target pattern using image drawing software, wherein the image drawing software can be Photoshop drawing software, that is, the second mask image can be drawn using Photoshop drawing software.
[0050] Step S204: converting the second mask image into a plurality of third mask images based on the change trajectory in the target dynamic information.
[0051] In the technical solution of the above-mentioned step S204 of the present disclosure, the second mask image can be converted into multiple third mask images based on the change trajectory of the target pattern in the target dynamic information during the dynamic display process, wherein the third mask image is used to determine the target area corresponding to the change trajectory in the first mask image.
[0052] In this embodiment, since the target pattern is dynamically displayed in the dynamic display area of the virtual model, that is, according to the changing trajectory of the target pattern during the dynamic display process, part of the target pattern may be displayed in the dynamic display area of the virtual model at each moment. Based on this, the second mask image corresponding to the target pattern can be converted according to the multi-frame display pattern corresponding to the changing trajectory of the target pattern during the dynamic display process to obtain multiple third mask images, wherein the multiple third mask images correspond to the multi-frame display pattern, and the sizes of the multiple third mask images are consistent with the sizes of the first mask image and the second mask image.
[0053] Step S205 , based on the third mask image and the first mask image, rendering and displaying the target pattern in the corresponding target area in sequence, so as to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
[0054] In the technical solution of the above-mentioned step S205 of the present disclosure, since the third mask map is used to determine the target area corresponding to the change trajectory in the first mask map, based on this, the target area corresponding to each third mask map in the first mask map can be determined, and based on the third mask map and the first mask map, the performance results of the target pattern are rendered and displayed in the corresponding target area in turn. Each third mask map is processed in this way to simulate the result of the dynamic display of the target pattern on the virtual model during the dynamic display process.
[0055] In this embodiment, after determining the target area corresponding to the change trajectory in the first mask image based on the third mask image, the target pattern can be rendered and displayed in the target area of the virtual model in sequence according to the target area corresponding to the change trajectory, to obtain a dynamic display result of the target pattern in the target area of the virtual model.
[0056] In the technical solution of steps S201 to S205 above, after determining the virtual model in the virtual scene, the target dynamic information to be displayed on the virtual model can be further determined. Since the target dynamic information includes the target pattern and the changing trajectory of the target pattern during the dynamic display process, based on this, the second mask image corresponding to the target pattern can be further obtained, and the second mask image can be converted into multiple third mask images according to the dynamic display process of the target pattern, and then the performance results of the target pattern are rendered and displayed in the target area in turn, which can simulate the dynamic display effect of the target pattern on the virtual model during the dynamic display process, thereby achieving the purpose of displaying the dynamic effect of the virtual light-emitting device, avoiding the production of sequential frame images, improving the display efficiency of the virtual light-emitting device, and thus solving the technical problem of low display efficiency of the virtual light-emitting device.
[0057] The above method of this embodiment is further introduced below.
[0058] As an optional implementation, the method also includes: adjusting the original grayscale value of the pixel in the second mask image based on the target dynamic information to obtain a fourth mask image; converting the second mask image into multiple third mask images based on the change trajectory in the target dynamic information, including: determining a first grayscale threshold associated with the target moment of the change trajectory during the dynamic display process; comparing the adjusted original grayscale value in the fourth mask image with the first grayscale threshold to obtain a first comparison result; adjusting the adjusted original grayscale value to the target grayscale value corresponding to the first comparison result to obtain a third mask image corresponding to the target moment.
[0059] In this embodiment, since the second mask image is a mask image drawn based on the target pattern, the target pattern is displayed in the second mask image through black areas and white areas, that is, the original grayscale value of the pixels in the second mask image is 0 or 1, wherein the original grayscale value corresponding to the pixels in the black area of the second mask image can be 0, and the original grayscale value corresponding to the pixels in the white area can be 1. Based on this, the area with an original grayscale value of 1 in the second mask image can be linearly gradient interpolated from 0 to 1 according to the changing trajectory of the target pattern during the dynamic display process, and the original grayscale value of the black area in the second mask image is modified from 0 to 1 to obtain a gradient interpolation pattern mask image, which is the fourth mask image.
[0060] In this embodiment, the second mask image may be converted into a plurality of third mask images based on the change trajectory in the target dynamic information.
[0061] For example, based on the changing trajectory of the target pattern during the dynamic display process, the first grayscale threshold associated with the target moment of the changing trajectory during the dynamic display process can be determined, wherein the target moment can be any moment of the target pattern during the dynamic display process, and the first grayscale threshold can be determined by the running time of the game, that is, the first grayscale threshold is dynamically changing, and the running time of the game can be the dynamic display time of the target pattern. Taking any moment of the target pattern during the dynamic display process as an example, for the sake of convenience, this moment is called the target moment. The first grayscale threshold can be determined based on the display time corresponding to the target pattern from the beginning of display to the target moment. For example, the first grayscale threshold can be determined by taking the decimal value of the display time of the target pattern during the dynamic display process. Assuming that the target pattern is dynamically displayed for 4.45 seconds, the first grayscale threshold can be 0.45. This is only an illustrative example. Any method that makes the first grayscale threshold dynamically change through the running time of the game scene is within the protection scope of the embodiments of the present disclosure.
[0062] After determining the first grayscale threshold, the adjusted original grayscale value in the fourth mask image can be compared with the first grayscale threshold to obtain a first comparison result, which is used to show whether the adjusted grayscale value of the pixel point in the fourth mask image is greater than the first grayscale threshold.
[0063] After determining the first comparison result, the adjusted original grayscale value corresponding to each pixel in the fourth mask image may be adjusted to a target grayscale value corresponding to the first comparison result to obtain a third mask image corresponding to the target moment.
[0064] For example, since the first comparison result is used to indicate whether the adjusted original grayscale value in the fourth mask image is greater than the first grayscale threshold, when the adjusted original grayscale value in the fourth mask image is greater than the first grayscale threshold, the adjusted original grayscale value is adjusted to the target grayscale value of 0; when the adjusted original grayscale value in the fourth mask image is less than the first grayscale threshold, the original drawing value is adjusted to the target grayscale value of 1. After adjusting the original grayscale value in the fourth mask image to the target grayscale value according to the above method, the third mask image corresponding to the target moment can be obtained.
[0065] As an optional implementation, based on the target dynamic information, the original grayscale values of the pixels in the second mask image are adjusted to obtain a fourth mask image, including: based on the target dynamic information, linear gradient processing is performed on the first grayscale values of the pixels corresponding to the target pattern in the second mask image, and the grayscale values of the pixels in the second mask image except the pixels corresponding to the target pattern are adjusted from the second grayscale value to the first grayscale value to obtain the fourth mask image.
[0066] In this embodiment, since the target dynamic information includes the changing trajectory of the target pattern during the dynamic display process, based on this, the first grayscale value of the pixel corresponding to the target pattern in the second mask image can be linearly gradient processed. It should be noted that the first grayscale value of the pixel corresponding to the target pattern in the second mask image is 1. Based on this, the white area with the first original grayscale value of 1 in the second mask image can be linearly gradient interpolated from 0 to 1 according to the changing trajectory of the target pattern during the dynamic display process, and the grayscale value of the pixel in the second mask image other than the pixel corresponding to the target pattern is adjusted from the second grayscale value to the first grayscale value, wherein the second grayscale value of the pixel in the target pattern is 0, that is, the grayscale value of the pattern background other than the pixel corresponding to the target pattern in the second mask image can be adjusted from the second grayscale value of 0 to the first grayscale value of 1, and the adjusted mask image is determined as the fourth mask image.
[0067] As an optional implementation, the adjusted original grayscale value is adjusted to a target grayscale value corresponding to the first comparison result to obtain a third mask image corresponding to the target moment, including: in response to the first comparison result that the adjusted original grayscale value is less than the first grayscale threshold, the adjusted original grayscale value is adjusted to the first grayscale value, or, in response to the first comparison result that the adjusted original grayscale value is greater than the first grayscale threshold, the adjusted original grayscale value is adjusted to the second grayscale value to obtain the third mask image corresponding to the target moment.
[0068] In this embodiment, when the adjusted original grayscale value in the fourth mask image is adjusted to the target grayscale value corresponding to the first comparison result to obtain the third mask image corresponding to the target moment, the adjusted original grayscale value in the fourth mask image can be adjusted by the first comparison result. As can be seen from the above introduction, the first comparison result is used to indicate whether the adjusted original grayscale value in the fourth mask image is greater than the first grayscale threshold, wherein when the adjusted original grayscale value is less than the first grayscale threshold in response to the first comparison result, the adjusted original grayscale value is adjusted to the first grayscale value of 1, or when the adjusted original grayscale value is greater than the first grayscale threshold in response to the first comparison result, the adjusted original grayscale value is adjusted to the second grayscale value of 0, thereby obtaining the third mask image corresponding to the target moment.
[0069] As an optional implementation, determining a first grayscale threshold associated with a target moment in a dynamic display process of a change trajectory includes: performing a decimal operation on the target moment to obtain a first grayscale threshold, wherein a variation range of the first grayscale threshold is the same as a variation range of the first grayscale value after linear gradient processing.
[0070] In this embodiment, the first grayscale threshold may be determined by the target moment during the dynamic display process of the target pattern. That is, the first grayscale threshold changes dynamically and the first grayscale threshold may be obtained by performing a decimal operation on the target moment.
[0071] For example, assuming the time corresponding to the target moment is 4.45 seconds, after rounding off the target moment, the first grayscale threshold can be 0.45. This is merely an illustrative example and does not limit the embodiments of the present disclosure. It should be noted that since the time value is a variable value, rounding off the decimal portion limits the time value change to a cyclic range of 0 to 1. In other words, the first grayscale threshold is constantly changing, which can achieve the purpose of continuously adjusting the speed limit and realizing the dynamic display effect of the virtual light-emitting device.
[0072] As an optional implementation, step S205, based on the third mask image and the first mask image, sequentially renders and displays the target pattern expression results in the corresponding target area, including: based on the grayscale value of the pixel in the third mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, sequentially renders and displays the target pattern expression results in the corresponding target area, wherein the size of the third mask image is the same as the size of the first mask image.
[0073] In this embodiment, when rendering and displaying the target pattern in the corresponding target area in sequence based on the third mask image and the first mask image, the rendering and display result of the target pattern in the corresponding target area can be determined based on the product of the grayscale value of the pixel in the third mask image and the grayscale value of the pixel in the first mask image corresponding to the pixel in the third mask image.
[0074] For example, when the grayscale value of a pixel in the third mask image is the first grayscale value 1, and the grayscale value of the pixel in the first mask image corresponding to the pixel in the third mask image is also the first grayscale value 1, then the product of the grayscale values of the two pixels is also the first grayscale value 1; when the grayscale value of a pixel in the third mask image is the first grayscale value 1, but the grayscale value of the pixel in the first mask image corresponding to the pixel in the third mask image is the second grayscale value 0, then the product of the grayscale values of the two pixels is the second grayscale value 0; when the grayscale value of a pixel in the third mask image is the second grayscale value 0, but the grayscale value of the pixel in the first mask image corresponding to the pixel in the third mask image is the second grayscale value When the grayscale value of the pixel corresponding to the pixel in the third mask image is the first grayscale value 1, the product of the grayscale values of the two pixels is the second grayscale value 0; when the grayscale value of the pixel in the third mask image is the second grayscale value 0, but the grayscale value of the pixel in the first mask image corresponding to the pixel in the third mask image is the second grayscale value 0, the product of the grayscale values of the two pixels is the second grayscale value 0. Based on the above method, the grayscale value of each pixel point of the target pattern rendered and displayed in the target area of the virtual model can be determined, and the performance result of the target pattern rendered and displayed in the target area can be obtained.
[0075] As an optional implementation, based on the grayscale value of the pixel in the third mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, the target pattern representation result is rendered and displayed in the corresponding target area in sequence, including: rendering and displaying the product based on the target color information to obtain the target pattern representation result.
[0076] In this embodiment, the target color information is used to represent the color of the LED light. Based on this, when the target pattern is rendered and displayed in the corresponding target area in sequence based on the grayscale value of the pixel in the third mask image and the grayscale value of the pixel corresponding to the pixel in the first mask image, the product of the grayscale values can also be rendered and displayed based on the target color information to obtain the target pattern.
[0077] For example, the product of the two grayscale values may be multiplied with the light information of the LED light to obtain the representation result of the target pattern in the virtual model.
[0078] As an optional implementation, step S201, obtaining a first mask image corresponding to the virtual model, includes: determining a sub-original area on the virtual model; determining the original grayscale value of the pixel corresponding to the texture coordinate in the sub-original area based on the distance between the texture coordinate of the sub-original area and the center texture coordinate of the sub-original area, wherein the original grayscale value of the pixel corresponding to the texture coordinate changes with the change of distance; comparing the original grayscale value of the pixel corresponding to the texture coordinate with a second grayscale threshold to obtain a second comparison result; adjusting the original grayscale value of the pixel corresponding to the texture coordinate to a target grayscale value corresponding to the second comparison result to obtain a sub-area of the area on the model where dynamic information can be displayed; and performing a tiling operation on the sub-area on the virtual model to obtain the first mask image.
[0079] In this embodiment, the virtual model includes an original area for dynamically displaying a target pattern. Based on this, a sub-original area can be determined on the virtual model, wherein the sub-original area is a part of the original area. Based on this, the distance between the texture coordinates of the sub-original area and the center texture coordinates of the sub-original area is further determined, and based on the distance between the texture coordinates of the sub-original area and the center texture coordinates of the sub-original area, the original grayscale value of the pixel corresponding to the texture coordinate in the sub-original area is determined.
[0080] For example, after determining the distance between the texture coordinates of the sub-original area and the center texture coordinates of the sub-original area, an image with a linear gradient change from the center point outward can be obtained. Afterwards, the original grayscale value of the pixel of each texture coordinate in the image with a linear gradient change from the center point outward is compared with the second grayscale threshold to obtain a second comparison result. The second comparison result is used to represent the size between the original grayscale value of the pixel corresponding to the texture coordinate and the second grayscale threshold, where the second grayscale threshold can be pre-set, for example, the second grayscale threshold can be 0.45, and there is no specific limitation here.
[0081] After obtaining the second comparison result, the original grayscale value of the pixel corresponding to the texture coordinate can be adjusted to the target grayscale value corresponding to the second comparison result to obtain a sub-area of the area on the model where dynamic information can be displayed; the sub-area is tiled on the virtual model to obtain the first mask image.
[0082] For example, taking any texture coordinate as an example, if the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to a target grayscale value of the first grayscale value 1; if the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to a target grayscale value of the second grayscale value 0. After adjusting the original grayscale value of the pixel corresponding to each texture coordinate based on this method, a sub-area of the area on the virtual model that can display dynamic information can be obtained. By tiling the sub-area on the virtual model, the first mask image can be obtained.
[0083] As an optional implementation, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the target grayscale value corresponding to the second comparison result to obtain a sub-area of the area on the model where dynamic information can be displayed, including: in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the first grayscale value, or, in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the second grayscale value to obtain a sub-area of the area on the model where dynamic information can be displayed.
[0084] In this embodiment, since the second comparison result is used to represent the size between the original grayscale value of the pixel corresponding to the texture coordinate and the second grayscale threshold, based on this, taking any texture coordinate as an example, when the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the first grayscale value 1; when the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to a target grayscale value of the second grayscale value 0. After adjusting the original grayscale value of the pixel corresponding to each texture coordinate based on this method, a sub-area of the area on the virtual model where dynamic information can be displayed can be obtained.
[0085] As an optional implementation, the method further includes: rendering and displaying a complete representation result of the target pattern based on the second mask image and the first mask image.
[0086] In this embodiment, by multiplying the original grayscale value of the pixel corresponding to each texture coordinate in the second mask image and the first mask image, a complete representation result of the target pattern can be obtained, and the complete representation result is used to represent the effect of the virtual model statically displaying the target pattern.
[0087] As an optional embodiment, based on the second mask image and the first mask image, the complete representation result of the target pattern is rendered and displayed, including: based on the grayscale value of the pixel in the second mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, the complete representation result of the target pattern is rendered and displayed, wherein the size of the second mask image is the same as the size of the first mask image.
[0088] In this embodiment, the grayscale value of each pixel in the second mask image and the grayscale value of each pixel in the first mask image can be determined first, and then the grayscale value of each pixel in the second mask image is multiplied by the grayscale value of the corresponding pixel in the first mask image. The obtained grayscale value is used to render the complete display result of the target image, wherein the size of the second mask image is the same as that of the first mask image.
[0089] As an optional implementation, the method also includes: combining multiple different second mask images to obtain a target mask image; obtaining a second mask image corresponding to a target pattern in target dynamic information, including: performing texture coordinate offset on the target mask image to obtain a second mask image.
[0090] In this embodiment, the target mask image is UV offset to obtain a second mask image. Based on this, after obtaining multiple different second mask images, the multiple different second mask images can be combined, and then the sampling pattern can be switched through UV offset to achieve changes in the dynamic display effect of the virtual light emitter.
[0091] The technical solution of the embodiment of the present disclosure is further introduced below with examples in combination with preferred implementation methods.
[0092] In related technologies, when creating dynamic effects for virtual light-emitting device light boards in games, sequential frame images are usually sampled through UV offset to achieve the dynamic effects of the light boards. However, the labor cost required for the production of sequential frame images is high, and the sequential frame images occupy a large space. In addition, the dynamic effects of the light boards achieved using sequential frame images are single, and it is difficult to achieve style switching. There is a technical problem of low display efficiency of virtual light-emitting devices.
[0093] FIG3 is a heart pattern sequence diagram in a related technology according to an embodiment of the present disclosure. As shown in FIG3 , a 5*5 heart pattern sequence diagram required for realizing the dynamic effect of a heart pattern LED light board based on a traditional method is shown.
[0094] FIG4 is a switching diagram of a love pattern sequence diagram according to an embodiment of the present disclosure. As shown in FIG4 , in the game scene, the LED light board switches the pattern (one square is one pattern) according to the numerical sequence shown in FIG4 through UV offset during texture sampling to achieve a dynamic effect of the love pattern. However, since the resource output method of the sequence frame image is mostly handmade by art, the output efficiency is low, and the resource occupancy space after the image is combined is large, resulting in a technical effect of low display efficiency of the LED light board (virtual light-emitting device).
[0095] However, an embodiment of the present disclosure proposes a method for processing display information, by determining a virtual model in a virtual scene and obtaining a first mask map corresponding to the virtual model, wherein the first mask map is used to represent the area on the virtual model where dynamic information can be displayed; determining target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a changing trajectory of the target pattern during the dynamic display process; obtaining a second mask map corresponding to the target pattern in the target dynamic information, wherein the second mask map is used to represent the area where the target pattern needs to be dynamically displayed on the virtual model; based on the changing trajectory in the target dynamic information, converting the second mask map into multiple third mask maps, wherein the third mask map is used to determine the target area corresponding to the changing trajectory in the first mask map; based on the third mask map and the first mask map, rendering the performance results of the target pattern in the corresponding target area in turn to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
[0096] Optionally, in an embodiment of the present disclosure, after determining the virtual model in the virtual scene, the target dynamic information to be displayed on the virtual model can be further determined. Since the target dynamic information includes the target pattern and the changing trajectory of the target pattern during the dynamic display process, based on this, the second mask image corresponding to the target pattern can be further obtained, and the second mask image can be converted into multiple third mask images according to the dynamic display process of the target pattern, and then the performance results of the target pattern are rendered and displayed in the target area in turn, which can simulate the dynamic display effect of the target pattern on the virtual model during the dynamic display process, thereby achieving the purpose of displaying the dynamic effect of the virtual light-emitting device, avoiding the production of sequential frame images, improving the display efficiency of the virtual light-emitting device, and thus solving the technical problem of low display efficiency of the virtual light-emitting device.
[0097] Figure 5 is a schematic diagram of an image with a linear gradient change according to an embodiment of the present disclosure. As shown in Figure 5, the distances between each point in the original image and the center point can be calculated based on the UV coordinates of each point in the original image and the UV coordinates of the center point of the original image. The calculated distances are then sorted in ascending order to obtain an image with a linear gradient change from the center outward.
[0098] Optionally, this embodiment uses each pixel value of the image with a linear gradient from the center outward obtained in Figure 5 as X, compares each pixel value X with a pre-set threshold value Y, and returns 0 if the X value is greater than the Y value; otherwise, it returns 1. Based on the calculation results, an LED mask image can be obtained. Figure 6 is a schematic diagram of an LED mask according to an embodiment of the present disclosure. As shown in Figure 6, the central area of the LED mask image is a white area with a pixel value of 1, and the surrounding area is a black area with a pixel value of 0.
[0099] Figure 7 is a UV coordinate diagram according to an embodiment of the present disclosure. As shown in Figure 7, the values in the x and y directions are 0-1. Multiplying the UV coordinate values by 5 and then taking the remainder of 1 yields a new coordinate diagram. The values in both the x and y directions of this coordinate diagram change to 0-1 and are arranged five times, which is equivalent to tiling 25 UV coordinate diagrams, as shown in Figure 8. Figure 8 is a schematic diagram of UV tiling according to an embodiment of the present disclosure.
[0100] FIG9 is an LED mask image obtained based on UV calculation according to an embodiment of the present disclosure. As shown in FIG9 , the LED mask image includes a white circular pattern with a grayscale value of 1.
[0101] Figure 10 is a pattern mask according to an embodiment of the present disclosure. As shown in Figure 10, the pattern mask can be drawn using Photoshop software; the drawing principle depends on the desired pattern of the drawer. For example, the desired pattern can be letters, numbers, etc. Figure 10 shows a heart-shaped pattern, which is only an illustrative example and does not limit the shape of the pattern.
[0102] Figure 11 is a schematic diagram of an LED static effect according to an embodiment of the present disclosure. As shown in Figure 11, the pixel values in the pattern mask image in Figure 10 can be multiplied with the pixel values corresponding to the LED mask image in Figure 9 to obtain the LED static effect image.
[0103] Figure 12 shows a gradient interpolation pattern mask according to an embodiment of the present disclosure. To achieve the dynamic effect of the LED sign, the pattern mask of Figure 11 is further manipulated. For white areas with a grayscale value of 1 in the pattern mask, a linear gradient interpolation from 0 to 1 is performed based on the dynamic change path of the LED. Furthermore, areas with a grayscale value of 0 in the pattern background are changed to 1, resulting in the gradient interpolation mask shown in Figure 12.
[0104] Figure 13 is a schematic diagram of an LED dynamic effect provided according to an embodiment of the present disclosure. As shown in Figure 13, by performing a decimal operation on the time value and then performing a step operation on the resulting value with the gradient interpolation pattern mask in Figure 12, a heart-shaped LED signboard dynamic effect can be achieved. Figure 13 shows several example frames of the LED dynamic effect.
[0105] Figure 14 is a schematic diagram of a combined image of a gradient interpolation pattern mask according to an embodiment of the present disclosure. As shown in Figure 14, to achieve switching between different LED dynamic effects, different patterns are created using the aforementioned steps to create corresponding gradient interpolation pattern masks. These images are then combined, and the sampled patterns are switched by UV offset to achieve switching between various LED dynamic effects.
[0106] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0107] In this embodiment, a display information processing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments. Details already described are not repeated here. As used below, the terms "unit" and "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0108] Figure 15 is a structural block diagram of a display information processing device according to one embodiment of the present disclosure. As shown in Figure 15, the display information processing device 1500 includes: a first determination unit 1501, a second determination unit 1502, an acquisition unit 1503, a conversion unit 1504 and a rendering unit 1505.
[0109] The first determining unit 1501 is configured to determine a virtual model in a virtual scene and obtain a first mask image corresponding to the virtual model, wherein the first mask image is used to represent an area on the virtual model where dynamic information can be displayed.
[0110] The second determining unit 1502 is configured to determine target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change trajectory of the target pattern during the dynamic display process.
[0111] The acquiring unit 1503 is configured to acquire a second mask image corresponding to the target pattern in the target dynamic information, wherein the second mask image is used to represent an area where the target pattern needs to be dynamically displayed on the virtual model.
[0112] The conversion unit 1504 is configured to convert the second mask image into a plurality of third mask images based on the change trajectory in the target dynamic information, wherein the third mask images are used to determine the target area corresponding to the change trajectory in the first mask image.
[0113] The rendering unit 1505 is configured to render and display the target pattern in the corresponding target area based on the third mask images and the first mask image, so as to simulate the dynamic display result of the target pattern on the virtual model during the dynamic display process.
[0114] Optionally, the device 1500 also includes: an adjustment unit, used to adjust the original grayscale value of the pixel in the second mask image based on the target dynamic information to obtain a fourth mask image; the conversion unit 1504 also includes: a first determination module, used to determine the first grayscale threshold associated with the target moment of the change trajectory during the dynamic display process; a first comparison module, used to compare the adjusted original grayscale value in the fourth mask image with the first grayscale threshold to obtain a first comparison result; the first adjustment module, used to adjust the adjusted original grayscale value to the target grayscale value corresponding to the first comparison result to obtain a third mask image corresponding to the target moment.
[0115] Optionally, the adjustment unit also includes: a processing module, which is used to perform linear gradient processing on the first grayscale value of the pixel corresponding to the target pattern in the second mask image based on the target dynamic information, and adjust the grayscale value of the pixel other than the pixel corresponding to the target pattern in the second mask image from the second grayscale value to the first grayscale value to obtain a fourth mask image.
[0116] Optionally, the adjustment module is also used to adjust the adjusted original grayscale value to the first grayscale value in response to the first comparison result that the adjusted original grayscale value is less than the first grayscale threshold, or to adjust the adjusted original grayscale value to the second grayscale value in response to the first comparison result that the adjusted original grayscale value is greater than the first grayscale threshold, so as to obtain a third mask image corresponding to the target moment.
[0117] Optionally, the determination module is further configured to: perform a decimal operation on the target moment to obtain a first grayscale threshold, wherein a variation range of the first grayscale threshold is the same as a variation range of the first grayscale value after linear gradient processing.
[0118] Optionally, the rendering unit 1505 also includes: a rendering module, which is used to render and display the target pattern in the corresponding target area in sequence based on the product of the grayscale value of the pixel in the third mask image and the grayscale value of the pixel corresponding to the pixel in the first mask image, wherein the size of the third mask image is the same as the size of the first mask image.
[0119] Optionally, the rendering module is further configured to render and display the product based on the target color information to obtain a representation result of the target pattern.
[0120] Optionally, the acquisition unit 1503 also includes: a second determination module for determining the sub-original area on the virtual model; a third determination module for determining the original grayscale value of the pixel corresponding to the texture coordinate in the sub-original area based on the distance between the texture coordinate of the sub-original area and the center texture coordinate of the sub-original area, wherein the original grayscale value of the pixel corresponding to the texture coordinate changes with the change of the distance; a second comparison module for comparing the original grayscale value of the pixel corresponding to the texture coordinate with the second grayscale threshold to obtain a second comparison result; a second adjustment module for adjusting the original grayscale value of the pixel corresponding to the texture coordinate to a target grayscale value corresponding to the second comparison result to obtain a sub-area of the area on the model that can display dynamic information; an operation module for performing a tiling operation on the sub-area on the virtual model to obtain a first mask image.
[0121] Optionally, the second adjustment module is further used to adjust the original grayscale value of the pixel corresponding to the texture coordinate to the first grayscale value in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, or to adjust the original grayscale value of the pixel corresponding to the texture coordinate to the second grayscale value in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, so as to obtain a sub-area of the area on the model where dynamic information can be displayed.
[0122] Optionally, the apparatus 1500 further includes: a display unit, configured to render and display a complete representation result of the target pattern based on the second mask image and the first mask image.
[0123] Optionally, the display unit also includes: a display module for rendering and displaying a complete representation result of the target pattern based on the grayscale value of the pixel in the second mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, wherein the size of the second mask image is the same as the size of the first mask image.
[0124] Optionally, the device 1500 further includes: an operating unit for combining multiple different second mask images to obtain a target mask image; and an acquiring unit 1503 for performing texture coordinate offset on the target mask image to obtain a second mask image.
[0125] In the display information processing device of this embodiment, after determining the virtual model in the virtual scene, the target dynamic information to be displayed on the virtual model can be further determined. Since the target dynamic information includes the target pattern and the changing trajectory of the target pattern during the dynamic display process, based on this, the second mask image corresponding to the target pattern can be further obtained, and the second mask image can be converted into multiple third mask images according to the dynamic display process of the target pattern, and then the performance results of the target pattern are rendered and displayed in the target area in turn, which can simulate the dynamic display effect of the target pattern on the virtual model during the dynamic display process, thereby achieving the purpose of displaying the dynamic effect of the virtual light-emitting device, avoiding the production of sequential frame images, improving the display efficiency of the virtual light-emitting device, and thus solving the technical problem of low display efficiency of the virtual light-emitting device.
[0126] It should be noted that the above-mentioned units and modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned units and modules are all located in the same processor; or the above-mentioned units and modules are located in different processors in any combination.
[0127] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[0128] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0129] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0130] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0131] S1, determining a virtual model in a virtual scene, and obtaining a first mask image corresponding to the virtual model, wherein the first mask image is used to represent an area on the virtual model where dynamic information can be displayed.
[0132] S2, determining target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change trajectory of the target pattern during the dynamic display process.
[0133] S3, obtaining a second mask image corresponding to the target pattern in the target dynamic information, wherein the second mask image is used to represent an area where the target pattern needs to be dynamically displayed on the virtual model.
[0134] S4. Based on the change trajectory in the target dynamic information, convert the second mask image into a plurality of third mask images, wherein the third mask images are used to determine the target area corresponding to the change trajectory in the first mask image.
[0135] S5, based on the third mask image and the first mask image, sequentially rendering and displaying the target pattern in the corresponding target area to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
[0136] Optionally, the above-mentioned computer-readable storage medium is also configured to store program code for executing the following steps: based on the target dynamic information, adjusting the original grayscale value of the pixel in the second mask image to obtain a fourth mask image; determining a first grayscale threshold associated with the target moment of the change trajectory during the dynamic display process; comparing the adjusted original grayscale value in the fourth mask image with the first grayscale threshold to obtain a first comparison result; adjusting the adjusted original grayscale value to the target grayscale value corresponding to the first comparison result to obtain a third mask image corresponding to the target moment.
[0137] Optionally, the above-mentioned computer-readable storage medium is also configured to store program code for executing the following steps: based on the target dynamic information, the first grayscale value of the pixel corresponding to the target pattern in the second mask image is linearly gradient processed, and the grayscale value of the pixel other than the pixel corresponding to the target pattern in the second mask image is adjusted from the second grayscale value to the first grayscale value to obtain a fourth mask image.
[0138] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: in response to the first comparison result being that the adjusted original grayscale value is less than the first grayscale threshold, adjusting the adjusted original grayscale value to the first grayscale value; or, in response to the first comparison result being that the adjusted original grayscale value is greater than the first grayscale threshold, adjusting the adjusted original grayscale value to the second grayscale value, to obtain a third mask image corresponding to the target moment.
[0139] Optionally, the above-mentioned computer-readable storage medium is also configured to store program code for executing the following steps: performing a decimal operation on the target moment to obtain a first grayscale threshold, wherein the variation range of the first grayscale threshold is the same as the variation range of the first grayscale value after linear gradient processing.
[0140] Optionally, the computer-readable storage medium is further configured to store program code for executing the following steps: based on the grayscale value of the pixel in the third mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, rendering the display result of the target pattern in the corresponding target area in sequence, wherein the size of the third mask image is the same as the size of the first mask image.
[0141] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: rendering and displaying the product based on the target color information to obtain a representation result of the target pattern.
[0142] Optionally, the computer-readable storage medium is further configured to store program code for executing the following steps: determining a sub-original area on a virtual model; determining the original grayscale value of the pixel corresponding to the texture coordinate in the sub-original area based on the distance between the texture coordinate of the sub-original area and the center texture coordinate of the sub-original area, wherein the original grayscale value of the pixel corresponding to the texture coordinate changes with the change of distance; comparing the original grayscale value of the pixel corresponding to the texture coordinate with a second grayscale threshold to obtain a second comparison result; adjusting the original grayscale value of the pixel corresponding to the texture coordinate to a target grayscale value corresponding to the second comparison result to obtain a sub-area of the area on the model where dynamic information can be displayed; and performing a tiling operation on the sub-area on the virtual model to obtain a first mask image.
[0143] Optionally, the computer-readable storage medium is further configured to store program code for executing the following steps: in response to the second comparison result being that the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, adjusting the original grayscale value of the pixel corresponding to the texture coordinate to the first grayscale value; or, in response to the second comparison result being that the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, adjusting the original grayscale value of the pixel corresponding to the texture coordinate to the second grayscale value, thereby obtaining a sub-area of the area on the model where dynamic information can be displayed.
[0144] Optionally, the computer-readable storage medium is further configured to store program codes for executing the following steps: rendering and displaying a complete representation result of the target pattern based on the second mask image and the first mask image.
[0145] Optionally, the computer-readable storage medium is further configured to store program code for executing the following steps: rendering and displaying a complete representation result of the target pattern based on the grayscale value of the pixel in the second mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, wherein the size of the second mask image is the same as the size of the first mask image.
[0146] Optionally, the above-mentioned computer-readable storage medium is also configured to store program code for executing the following steps: performing a merging operation on multiple different second mask images to obtain a target mask image; obtaining a second mask image corresponding to a target pattern in target dynamic information, including: performing texture coordinate offset on the target mask image to obtain a second mask image.
[0147] In the computer-readable storage medium of this embodiment, a technical solution for a method for processing display information is provided. After determining a virtual model in a virtual scene, target dynamic information to be displayed on the virtual model can be further determined. Since the target dynamic information includes a target pattern and the changing trajectory of the target pattern during the dynamic display process, a second mask image corresponding to the target pattern can be further obtained based on this. The second mask image is converted into multiple third mask images according to the dynamic display process of the target pattern, and the performance results of the target pattern are sequentially rendered and displayed in the target area. This can simulate the dynamic display effect of the target pattern on the virtual model during the dynamic display process, achieve the purpose of displaying the dynamic effect of the virtual light-emitting device, avoid the production of sequential frame images, improve the display efficiency of the virtual light-emitting device, and thus solve the technical problem of low display efficiency of the virtual light-emitting device.
[0148] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0149] In exemplary embodiments of the present disclosure, a computer-readable storage medium stores a program product capable of implementing the aforementioned method of the present embodiment. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product comprising program code. When the program product is executed on a terminal device, the program code is configured to cause the terminal device to execute the steps described in the "Exemplary Method" section of the present embodiment according to various exemplary embodiments of the present disclosure.
[0150] According to an embodiment of the present disclosure, a program product for implementing the above-mentioned method can be a portable compact disc read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the embodiment of the present disclosure is not limited thereto. In the embodiment of the present disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0151] The program product may be implemented in any combination of one or more computer-readable media. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive) of computer-readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0152] It should be noted that the program code contained in the computer-readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any appropriate combination of the above.
[0153] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0154] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0155] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:
[0156] S1, determining a virtual model in a virtual scene, and obtaining a first mask image corresponding to the virtual model, wherein the first mask image is used to represent an area on the virtual model where dynamic information can be displayed.
[0157] S2, determining target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change trajectory of the target pattern during the dynamic display process.
[0158] S3, obtaining a second mask image corresponding to the target pattern in the target dynamic information, wherein the second mask image is used to represent an area where the target pattern needs to be dynamically displayed on the virtual model.
[0159] S4. Based on the change trajectory in the target dynamic information, convert the second mask image into a plurality of third mask images, wherein the third mask images are used to determine the target area corresponding to the change trajectory in the first mask image.
[0160] S5, based on the third mask image and the first mask image, sequentially rendering and displaying the target pattern in the corresponding target area to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
[0161] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: based on the target dynamic information, adjust the original grayscale value of the pixel in the second mask image to obtain a fourth mask image; determine the first grayscale threshold associated with the target moment of the change trajectory during the dynamic display process; compare the adjusted original grayscale value in the fourth mask image with the first grayscale threshold to obtain a first comparison result; adjust the adjusted original grayscale value to the target grayscale value corresponding to the first comparison result to obtain a third mask image corresponding to the target moment.
[0162] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: based on the target dynamic information, linear gradient processing is performed on the first grayscale value of the pixel corresponding to the target pattern in the second mask image, and the grayscale value of the pixel other than the pixel corresponding to the target pattern in the second mask image is adjusted from the second grayscale value to the first grayscale value to obtain a fourth mask image.
[0163] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: in response to the first comparison result that the adjusted original grayscale value is less than the first grayscale threshold, the adjusted original grayscale value is adjusted to the first grayscale value, or, in response to the first comparison result that the adjusted original grayscale value is greater than the first grayscale threshold, the adjusted original grayscale value is adjusted to the second grayscale value, to obtain a third mask image corresponding to the target moment.
[0164] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: performing a decimal operation on the target moment to obtain a first grayscale threshold, wherein the variation range of the first grayscale threshold is the same as the variation range of the first grayscale value after linear gradient processing.
[0165] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: based on the grayscale value of the pixel in the third mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, rendering the display result of the target pattern in the corresponding target area in turn, wherein the size of the third mask image is the same as the size of the first mask image.
[0166] Optionally, the processor may also be configured to execute the following steps through a computer program: rendering and displaying the product based on the target color information to obtain a representation result of the target pattern.
[0167] Optionally, the processor may also be configured to perform the following steps through a computer program: determining a sub-original area on a virtual model; determining the original grayscale value of the pixel corresponding to the texture coordinate in the sub-original area based on the distance between the texture coordinate of the sub-original area and the center texture coordinate of the sub-original area, wherein the original grayscale value of the pixel corresponding to the texture coordinate changes with the change of the distance; comparing the original grayscale value of the pixel corresponding to the texture coordinate with a second grayscale threshold to obtain a second comparison result; adjusting the original grayscale value of the pixel corresponding to the texture coordinate to a target grayscale value corresponding to the second comparison result to obtain a sub-area of the area on the model where dynamic information can be displayed; and performing a tiling operation on the sub-area on the virtual model to obtain a first mask image.
[0168] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the first grayscale value, or, in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the second grayscale value, to obtain a sub-area of the area on the model where dynamic information can be displayed.
[0169] Optionally, the processor may be further configured to execute the following steps through a computer program: rendering and displaying a complete representation result of the target pattern based on the second mask image and the first mask image.
[0170] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: rendering and displaying the complete representation result of the target pattern based on the grayscale value of the pixel in the second mask image and the product between the grayscale value of the pixel corresponding to the pixel in the first mask image, wherein the size of the second mask image is the same as the size of the first mask image.
[0171] Optionally, the above-mentioned processor can also be configured to perform the following steps through a computer program: combining multiple different second mask images to obtain a target mask image; obtaining a second mask image corresponding to a target pattern in target dynamic information, including: performing texture coordinate offset on the target mask image to obtain a second mask image.
[0172] In the electronic device of this embodiment, a technical solution for a method for processing display information is provided. After determining a virtual model in a virtual scene, target dynamic information to be displayed on the virtual model can be further determined. Since the target dynamic information includes a target pattern and the changing trajectory of the target pattern during the dynamic display process, a second mask image corresponding to the target pattern can be further obtained based on this. The second mask image is converted into multiple third mask images according to the dynamic display process of the target pattern, and the target pattern is then sequentially rendered in the target area. This can simulate the dynamic display effect of the target pattern on the virtual model during the dynamic display process, achieve the purpose of displaying the dynamic effect of the virtual light-emitting device, avoid the production of sequential frame images, improve the display efficiency of the virtual light-emitting device, and thus solve the technical problem of low display efficiency of the virtual light-emitting device.
[0173] FIG16 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG16 , the electronic device 1600 is merely an example and should not limit the functions and scope of use of the embodiment of the present disclosure.
[0174] As shown in Figure 16, electronic device 1600 is implemented as a general-purpose computing device. Components of electronic device 1600 may include, but are not limited to, at least one processor 1610, at least one memory 1620, a bus 1630 connecting various system components (including memory 1620 and processor 1610), and a display 1640.
[0175] The memory 1620 stores program codes, which can be executed by the processor 1610 , so that the processor 1610 executes the steps described in the method section of the embodiment of the present disclosure according to various exemplary embodiments of the present disclosure.
[0176] The memory 1620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 16201 and / or a cache memory unit 16202, and may further include a read-only memory unit (ROM) 16203, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
[0177] In some examples, memory 1620 may also include a program / utility 16204 having a set (at least one) of program modules 16205. Such program modules 16205 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Memory 1620 may further include memory remotely located relative to processor 1610. These remote memories may be connected to electronic device 1600 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0178] Bus 1630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a local bus to processor 1610, or a bus using any of a variety of bus architectures.
[0179] The display 1640 may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the electronic device 1600 .
[0180] Optionally, electronic device 1600 may also communicate with one or more external devices 1700 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1600, and / or any device that enables electronic device 1600 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication may occur via input / output (I / O) interface 1650. Furthermore, electronic device 1600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via network adapter 1660. As shown in FIG16 , network adapter 1660 communicates with other modules of electronic device 1600 via bus 1630. It should be understood that, although not shown in FIG16 , other hardware and / or software modules may be used in conjunction with electronic device 1600, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0181] The electronic device 1600 may further include: a keyboard, a cursor control device (such as a mouse), an input / output interface (I / O interface), a network interface, a power supply and / or a camera.
[0182] It will be understood by those skilled in the art that the structure shown in FIG16 is for illustration only and does not limit the structure of the electronic device described above. For example, the electronic device 1600 may also include more or fewer components than those shown in FIG16 , or have a configuration different from that shown in FIG1 . The memory 1620 may be used to store computer programs and corresponding data, such as the computer program and corresponding data corresponding to the method for processing display information in the embodiment of the present disclosure. The processor 1610 executes various functional applications and data processing by running the computer program stored in the memory 1620, that is, implements the method for processing display information described above.
[0183] The serial numbers of the above-mentioned embodiments of the present disclosure are for description only and do not represent the advantages or disadvantages of the embodiments.
[0184] In the above embodiments of the present disclosure, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0185] In the several embodiments provided in the present disclosure, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0186] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0187] In addition, the functional units in the various embodiments of the present disclosure may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0188] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the relevant technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0189] The above is only a preferred embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present disclosure. These improvements and modifications should also be regarded as within the scope of protection of the present disclosure.
Claims
1. A method for processing display information, comprising: Determine a virtual model in a virtual scene, and obtain a first mask image corresponding to the virtual model, wherein the first mask image is used to represent an area on the virtual model where dynamic information can be displayed; Determining target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change track of the target pattern during dynamic display; Acquire a second mask image corresponding to the target pattern in the target dynamic information, wherein the second mask image is used to indicate an area where the target pattern needs to be dynamically displayed on the virtual model; Based on the change track in the target dynamic information, converting the second mask map into a plurality of third mask maps, wherein the third mask maps are used to determine the target area in the first mask map corresponding to the change track; Based on the third mask map and the first mask map, the representation results of the target pattern are rendered and displayed in the corresponding target areas in sequence to simulate the result of the target pattern being dynamically displayed on the virtual model during the dynamic display process.
2. The method according to claim 1, wherein: The method further comprises: Based on the target dynamic information, adjusting the original grayscale values of the pixels in the second mask image to obtain a fourth mask image; Based on the change track in the target dynamic information, converting the second mask map into a plurality of third mask maps includes: Determine a first grayscale threshold value associated with a target moment of the change trajectory during the dynamic display process; Compare the adjusted original grayscale value in the fourth mask image with the first grayscale threshold to obtain a first comparison result; The adjusted original grayscale value is adjusted to a target grayscale value corresponding to the first comparison result, so as to obtain the third mask image corresponding to the target moment.
3. The method according to claim 2, wherein: Based on the target dynamic information, original grayscale values of pixels in the second mask image are adjusted to obtain a fourth mask image, including: Based on the target dynamic information, the first grayscale value of the pixel corresponding to the target pattern in the second mask image is linearly gradient processed, and the grayscale value of the pixel in the second mask image except the pixel corresponding to the target pattern is adjusted from the second grayscale value to the first grayscale value to obtain the fourth mask image.
4. The method according to claim 2, wherein: Adjusting the adjusted original grayscale value to a target grayscale value corresponding to the first comparison result to obtain the third mask image corresponding to the target moment includes: In response to the first comparison result that the adjusted original grayscale value is less than the first grayscale threshold, the adjusted original grayscale value is adjusted to the first grayscale value; or, in response to the first comparison result that the adjusted original grayscale value is greater than the first grayscale threshold, the adjusted original grayscale value is adjusted to the second grayscale value, to obtain the third mask image corresponding to the target moment.
5. The method according to claim 2, wherein: Determining a first grayscale threshold associated with a target moment of the change trajectory during the dynamic display process includes: The target moment is subjected to a decimal operation to obtain the first grayscale threshold, wherein a variation range of the first grayscale threshold is the same as a variation range of the first grayscale value after linear gradient processing.
6. The method according to claim 1, wherein: Based on the third mask image and the first mask image, rendering and displaying the target pattern in the corresponding target area in sequence includes: Based on the grayscale value of the pixel in the third mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, the representation result of the target pattern is rendered and displayed in the corresponding target area in turn, wherein the size of the third mask image is the same as that of the first mask image.
7. The method according to claim 6, wherein: Based on the grayscale value of the pixel in the third mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, rendering and displaying the target pattern in the corresponding target area in sequence includes: The product is rendered and displayed based on the target color information to obtain a representation result of the target pattern.
8. The method according to claim 1, wherein: Obtaining a first mask image corresponding to the virtual model includes: determining a sub-original region on the virtual model; Determining, based on a distance between a texture coordinate of the sub-original region and a central texture coordinate of the sub-original region, an original grayscale value of a pixel corresponding to the texture coordinate in the sub-original region, wherein the original grayscale value of the pixel corresponding to the texture coordinate changes as the distance changes; Comparing the original grayscale value of the pixel corresponding to the texture coordinate with the second grayscale threshold to obtain a second comparison result; Adjusting the original grayscale value of the pixel corresponding to the texture coordinate to a target grayscale value corresponding to the second comparison result, to obtain a sub-region of the region on the model where the dynamic information can be displayed; A tiling operation is performed on the sub-region on the virtual model to obtain the first mask image.
9. The method according to claim 8, wherein: The original grayscale value of the pixel corresponding to the texture coordinate is adjusted to a target grayscale value corresponding to the second comparison result to obtain a sub-region of the region on the model where the dynamic information can be displayed, including: In response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is less than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the first grayscale value; or, in response to the second comparison result that the original grayscale value of the pixel corresponding to the texture coordinate is greater than the second grayscale threshold, the original grayscale value of the pixel corresponding to the texture coordinate is adjusted to the second grayscale value, to obtain a sub-area of the area on the model where the dynamic information can be displayed.
10. The method according to any one of claims 1 to 9, wherein: The method further comprises: Based on the second mask image and the first mask image, a complete representation result of the target pattern is rendered and displayed.
11. The method according to claim 10, wherein: Based on the second mask image and the first mask image, rendering and displaying a complete representation result of the target pattern includes: Based on the grayscale value of the pixel in the second mask image and the product of the grayscale value of the pixel corresponding to the pixel in the first mask image, the complete representation result of the target pattern is rendered and displayed, wherein the size of the second mask image is the same as that of the first mask image.
12. The method according to any one of claims 1 to 9, wherein: The method further comprises: Performing a combination operation on a plurality of different second mask images to obtain a target mask image; Acquiring a second mask map corresponding to the target pattern in the target dynamic information includes: performing texture coordinate shifting on the target mask map to obtain the second mask map.
13. A display information processing device, comprising: A first determining unit, configured to determine a virtual model in a virtual scene, and obtain a first mask image corresponding to the virtual model, wherein the first mask image is used to indicate an area on the virtual model where dynamic information can be displayed; A second determining unit is used to determine target dynamic information to be displayed on the virtual model, wherein the target dynamic information at least includes a target pattern and a change track of the target pattern during the dynamic display process; an acquisition unit, configured to acquire a second mask image corresponding to the target pattern in the target dynamic information, wherein the second mask image is used to indicate an area where the target pattern needs to be dynamically displayed on the virtual model; a conversion unit, configured to convert the second mask map into a plurality of third mask maps based on the change track in the target dynamic information, wherein the third mask maps are used to determine a target area in the first mask map corresponding to the change track; A rendering unit is used to render and display the performance result of the target pattern in the corresponding target area based on the multiple third mask images and the first mask image respectively, so as to simulate the result of the dynamic display of the target pattern on the virtual model during the dynamic display process.
14. A computer-readable storage medium having a computer program stored therein, wherein: The computer program is configured to execute the method according to any one of claims 1 to 12 when executed by a processor.
15. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Method for making dynamic anti-counterfeiting image
CN102602184A
Role changing animation generation method and device, equipment and readable storage medium
CN111563945A
Video processing method and device, equipment and medium
CN114742856A
Image generation method and device, terminal equipment and storage medium
CN114758037A
Display information processing method and device, storage medium and electronic device
CN116664750A
