Light image display method and device, storage medium and electronic device

By generating reference lighting images in virtual space and configuring lighting parameters, the problem of poor virtual lighting display effect was solved, achieving a lighting effect similar to that of real stage lighting fixtures.

CN116630596BActive Publication Date: 2026-05-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2023-05-31
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing virtual lighting displays are of poor quality and cannot replicate the effects of real-world stage lighting.

Method used

By acquiring lighting elements and lighting distribution parameters, multiple planar sub-regions with rotational symmetry are determined, and reference lighting images are generated in these regions. The lighting parameters of the virtual lighting fixtures are then configured to display the target lighting image in the virtual space.

Benefits of technology

It improves the display effect of virtual lighting, achieving a lighting effect similar to that of real stage lighting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116630596B_ABST
    Figure CN116630596B_ABST
Patent Text Reader

Abstract

The application discloses a light image display method and device, a storage medium and an electronic device. The method comprises the following steps: acquiring a light element and light distribution parameters, wherein the light distribution parameters are used for indicating the imaging distribution of the light element in a plane area; determining a plurality of plane sub-areas with a rotational symmetry relationship according to the light distribution parameters, and determining a target light element in each of the plurality of plane sub-areas, wherein the target light element is a graphic element obtained by performing graphic transformation on the light element; generating a reference light image based on the target light elements in the plurality of plane sub-areas, and configuring light irradiation parameters for a virtual lamp object according to the reference light image; and controlling the virtual lamp to display a target light image in a virtual space according to the light irradiation parameters. The application solves the technical problem of poor display effect of the existing virtual light.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for displaying light images, a storage medium, and an electronic device. Background Technology

[0002] Virtual production refers to a series of computer-aided production and visual filmmaking methods. Specifically, virtual production combines virtual reality and augmented reality with CGI and game engine technologies, allowing producers to see scenes unfold in front of them, thereby achieving a preview of the production effect.

[0003] In recent years, the demand for virtual production has gradually increased, leading to a greater need for virtual DMX lighting, particularly in virtual performances and virtual human projects. However, while real-world stage lighting offers a wide range of effects, traditional virtual lighting struggles to replicate these effects. In other words, existing virtual production technologies suffer from poor lighting effects.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a method and apparatus for displaying light images, a storage medium, and an electronic device to at least solve the technical problem of poor display effects of existing virtual lights.

[0006] According to one aspect of the present invention, a method for displaying a light image is provided, comprising: acquiring light elements and light distribution parameters, wherein the light distribution parameters are used to indicate the imaging distribution of the light elements in a planar region; determining a plurality of planar sub-regions having a rotational symmetry relationship according to the light distribution parameters, and determining a target light element in each of the plurality of planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light elements; generating a reference light image based on the target light elements in the plurality of planar sub-regions, and configuring light illumination parameters for a virtual luminaire object according to the reference light image; and controlling the virtual luminaire to display the target light image in a virtual space according to the light illumination parameters.

[0007] According to another aspect of the present invention, a display device for a light image is also provided, comprising: an acquisition unit, configured to acquire light elements and light distribution parameters, wherein the light distribution parameters are used to indicate the imaging distribution of the light elements in a planar region; a determination unit, configured to determine a plurality of planar sub-regions having a rotational symmetry relationship based on the light distribution parameters, and to determine a target light element in each of the plurality of planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light elements; a generation unit, configured to generate a reference light image based on the target light element in the plurality of planar sub-regions, and to configure light illumination parameters for a virtual luminaire object based on the reference light image; and a display unit, configured to control the virtual luminaire to display the target light image in a virtual space according to the light illumination parameters.

[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described method for displaying light images when it is run.

[0009] According to another aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program / instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program / instructions from the computer-readable storage medium, and executes the computer program / instructions, causing the computer device to perform the above-described method for displaying light images.

[0010] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the above-described method for displaying a light image through the computer program.

[0011] In this embodiment of the invention, light elements and light distribution parameters are obtained, wherein the light distribution parameters are used to image the distribution of indicator light elements within a planar area; multiple planar sub-regions with rotational symmetry are determined based on the light distribution parameters, and a target light element is determined in each of the multiple planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light element; a reference light image is generated based on the target light elements in the multiple planar sub-regions, and light illumination parameters are configured for the virtual lighting object based on the reference light image; the virtual lighting object is controlled to display the target light image in the virtual space according to the light illumination parameters, thereby configuring the light parameters for the virtual lighting object based on the reference light image generated in the planar area, so as to achieve the technical effect of displaying the target light image in the virtual scene according to the virtual lighting object, thereby solving the technical problem of poor display effect of existing virtual lights. Attached Figure Description

[0012] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0013] Figure 1 This is a schematic diagram of the hardware environment for an optional method of displaying a light image according to an embodiment of the present invention;

[0014] Figure 2 This is a flowchart of an optional method for displaying a light image according to an embodiment of the present invention;

[0015] Figure 3 This is a schematic diagram of an optional method for displaying a light image according to an embodiment of the present invention;

[0016] Figure 4 This is a schematic diagram of another optional method for displaying a light image according to an embodiment of the present invention;

[0017] Figure 5 This is a schematic diagram of another optional method for displaying a light image according to an embodiment of the present invention;

[0018] Figure 6 This is a flowchart of another optional method for displaying a light image according to an embodiment of the present invention;

[0019] Figure 7 This is a flowchart of another optional method for displaying a light image according to an embodiment of the present invention;

[0020] Figure 8 This is a schematic diagram of the structure of an optional light image display device according to an embodiment of the present invention;

[0021] Figure 9 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] According to one aspect of the present invention, a method for displaying a light image is provided. As an optional implementation, the above-described method for displaying a light image can be applied, but is not limited to, to applications such as... Figure 1 The hardware environment shown includes a light image display system, which may include, but is not limited to, terminal device 102, network 104, server 106, database 108, and terminal device 110. Terminal device 102 runs a target client (e.g., ...). Figure 1 As shown, taking a game application client that can display virtual scenes as an example, terminal device 110 runs a configuration client for configuring lighting effects in the virtual scene. Terminal devices 102 and 110 respectively include a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen is used to display the virtual scene and also provides a human-computer interaction interface to receive human-computer interaction operations for controlling a controlled virtual character in the virtual scene. This virtual character will complete game tasks set in the virtual scene. The processor is used to generate interaction instructions in response to the aforementioned human-computer interaction operations and send these instructions to the server. The memory is used to store relevant attribute data, such as object attribute information of the controlled virtual character and attribute information of the virtual props it holds. This attribute information may include, but is not limited to, information used to identify its identity and current location. Terminal device 102 runs a game client that controls the virtual character.

[0025] In addition, server 106 includes a processing engine, which performs store or read operations on database 108. Specifically, the processing engine reads virtual scene information and operation information for each virtual character from database 108.

[0026] Assumption Figure 1The terminal device 102 runs a client for displaying the virtual scene, and the terminal device 110 is used to configure the virtual lighting objects in the virtual scene. The specific process of this embodiment is as follows: As in step S102, the terminal device 110 sends configuration information to the server 106 through the network 104, wherein the configuration information is used to instruct the virtual lighting in the virtual scene to display the target image in a specified manner; the server 106 executes S104 to configure the lighting effects for the virtual lighting in the virtual scene according to the configuration information; then as in step S106, the server 106 forwards the configuration information to the terminal device 102 through the network 104.

[0027] Next, steps S108 to S114 are executed in terminal device 102 to obtain light elements and light distribution parameters, wherein the light distribution parameters are used for the imaging distribution of indicator light elements in the planar area; multiple planar sub-regions with rotational symmetry are determined according to the light distribution parameters, and a target light element is determined in each of the multiple planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light element; a reference light image is generated based on the target light elements in the multiple planar sub-regions, and the light illumination parameters are configured for the virtual lamp object according to the reference light image; the virtual lamp is controlled to display the target light image in the virtual space according to the light illumination parameters.

[0028] Optionally, in this embodiment, the terminal device 102 can be a terminal device configured with a target client, which may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client can be a video client, instant messaging client, browser client, educational client, or other client that supports providing shooting game tasks. The network may include, but is not limited to, wired network and wireless network, wherein the wired network includes: local area network, metropolitan area network, and wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that enable wireless communication. The server may be a single server, a server cluster composed of multiple servers, or a cloud server. The above is only an example, and no limitation is made in this embodiment.

[0029] Optionally, in this embodiment, the above-mentioned method for displaying light images can be applied, but is not limited to, to game-type terminal applications (APPs) that complete predetermined social game tasks in a virtual scene, such as virtual combat game applications in Multiplayer Online Battle Arena (MOBA) applications; the above-mentioned social game tasks can be, but are not limited to, game tasks completed by the current player through virtual social interaction between virtual characters in the virtual scene and virtual characters controlled by other players via the display of human-computer interaction light images; the above-mentioned method for displaying light images can also be applied to terminal applications of massively multiplayer online role-playing games (MMORPGs), in which the current player can complete social game tasks in the game from the first-person perspective of a virtual character through role-playing, for example, completing game tasks together with other virtual characters. The social game tasks here can be, but are not limited to, running in the form of plugins or mini-programs within the application (such as a non-standalone game APP), or running within the application (such as a standalone game APP) in a game engine. The types of game applications mentioned above may include, but are not limited to, at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual reality (VR) game applications, augmented reality (AR) game applications, and mixed reality (MR) game applications. This is merely an example, and this embodiment does not impose any limitations on it.

[0030] In this embodiment of the invention, light elements and light distribution parameters are obtained, wherein the light distribution parameters are used to image the distribution of indicator light elements within a planar area; multiple planar sub-regions with rotational symmetry are determined based on the light distribution parameters, and a target light element is determined in each of the multiple planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light element; a reference light image is generated based on the target light elements in the multiple planar sub-regions, and light illumination parameters are configured for the virtual lighting object based on the reference light image; the virtual lighting object is controlled to display the target light image in the virtual space according to the light illumination parameters, thereby configuring the light parameters for the virtual lighting object based on the reference light image generated in the planar area, so as to achieve the technical effect of displaying the target light image in the virtual scene according to the virtual lighting object, thereby solving the technical problem of poor display effect of existing virtual lights.

[0031] As an optional implementation method, such as Figure 2As shown, the method for displaying the above-mentioned light image includes the following steps:

[0032] S202, acquire the light elements and light distribution parameters, wherein the light distribution parameters are used for the imaging distribution of the indicator light elements in the planar area;

[0033] S204, determine multiple planar sub-regions with rotational symmetry based on the light distribution parameters, and determine a target light element in each of the multiple planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light element;

[0034] S206, Generate a reference light image based on the target light elements in multiple planar sub-regions, and configure the light illumination parameters for the virtual luminaire object according to the reference light image;

[0035] S208 controls the virtual lighting fixtures to display the target light image in the virtual space according to the lighting parameters.

[0036] It should be noted that the above method can be used in scenarios including, but not limited to, displaying light images through virtual lights in a virtual scene. For example, it can be used in a game rendering scene, where a target light image matching the virtual spotlight can be mapped onto the virtual ground using virtual spotlights in the game; or it can be used in a virtual production process to map a corresponding target light image onto a virtual stage using virtual spotlights. In this embodiment, the specific application scenarios of the above embodiments are not limited. In a specific scenario, the above light image display method can be specifically applied to technical applications that use Unreal Engine to render virtual scenes.

[0037] Specifically, the light element obtained in step S204 above can be a light element used to generate a light image similar to a prism scattering pattern. The light element can be a simple geometric image, such as a circle, triangle, or rectangle, or a complex pattern, such as an image of virtual flowers or a virtual character. In this embodiment, the type of light element is not limited.

[0038] For example Figure 3 As shown, when the light element is circular, the corresponding prism light image can be a light image composed of 4 circles; when the light element is rectangular, the corresponding prism light image can be a light image composed of 8 rectangles; and when the light element is triangular, the corresponding prism light image can be a light image composed of 3 triangles. The above relationship between light elements and light images is only an example and does not limit the specific image correspondence.

[0039] The aforementioned light distribution parameters can be used to indicate the imaging distribution of the light elements in a planar area. In one optional embodiment, the light distribution parameters may include various types of parameters. For example, they may include quantity parameters indicating the number of light elements in the same light image, position parameters indicating the distribution location of each light element in the light image, and transformation parameters for image transformation of the light elements. In this embodiment, the specific parameter types included in the aforementioned light distribution parameters are not limited.

[0040] Furthermore, in step S204 above, multiple planar sub-regions with rotational symmetry can be determined within the planar region. In one specific embodiment, the planar region can be a virtual planar region used in Unreal Engine to describe image textures, such as the UV plane. Within the UV plane, multiple planar sub-regions with rotational symmetry can be determined, and target light elements can be determined in each planar sub-region, thereby ensuring that the target light elements also have a certain rotational symmetry relationship, thus achieving a prism effect in the light image.

[0041] The transformation relationship between the aforementioned light elements and the target light elements can include, but is not limited to, graphic transformations such as translation, rotation, combination, and scaling. In other words, by performing graphic transformations on the aforementioned light elements, including but not limited to translation, rotation, combination, and scaling, the target light element in the aforementioned planar sub-region can be obtained. In one optional approach, the transformation methods in different planar sub-regions can be different; in a preferred approach, the transformation methods in different planar sub-regions can be the same, meaning that the light elements can be controlled to transform synchronously in different planar sub-regions.

[0042] In steps S206 and S208 above, after determining the reference light image based on the target light element, the light parameters of the virtual lights in the virtual scene can be determined based on the reference light image, and the target light image can be displayed in the virtual scene based on the configured virtual lights. It is understood that in this embodiment, the target light image in the virtual scene is a target light image displayed on other virtual objects based on the virtual light generated by the virtual lights. For example... Figure 4 As shown, assuming the virtual lighting fixture is configured with a reference lighting image consisting of four circular elements, in Figure 4 In Figure (a), virtual lighting objects in the virtual scene are controlled to illuminate the virtual ground perpendicularly, thus displaying a target lighting image identical to the reference lighting image on the virtual ground; Figure 4In Figure (b), the virtual lighting objects in the virtual scene are controlled to illuminate the virtual ground at a certain tilt angle, thereby displaying a target lighting image on the virtual ground that is different from the reference lighting image, that is, a target lighting image that is displayed after stretching the reference lighting image. Figure 4 The way the target light image is displayed is only an example and does not limit the way the target light image is displayed in actual applications.

[0043] Through the above-described embodiments of this application, light elements and light distribution parameters are obtained, wherein the light distribution parameters are used for the imaging distribution of indicator light elements in a planar area; multiple planar sub-regions with rotational symmetry are determined according to the light distribution parameters, and a target light element is determined in each of the multiple planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light element; a reference light image is generated based on the target light elements in the multiple planar sub-regions, and light illumination parameters are configured for the virtual lighting object according to the reference light image; the virtual lighting object is controlled to display the target light image in the virtual space according to the light illumination parameters, thereby configuring the light parameters for the virtual lighting object according to the reference light image generated in the planar area, so as to achieve the technical effect of displaying the target light image according to the virtual lighting object in the virtual scene, thereby solving the technical problem of poor display effect of existing virtual lights.

[0044] In one alternative implementation, determining a target light element in each of the multiple planar sub-regions includes:

[0045] S1, determine the reference element position of the light element in the planar sub-region based on the element position parameters included in the light distribution parameters;

[0046] S2, based on the element transformation parameters included in the light distribution parameters, perform graphic transformation on the light elements to obtain the target light elements corresponding to the planar sub-region;

[0047] S3, determine the target element position of the target light element in the planar sub-region based on the reference element position.

[0048] It is understood that in this embodiment, multiple planar sub-regions can be determined, and target light elements in each planar sub-region can be determined separately. Specifically, the reference element position of each light element in each planar sub-region can be determined first, and then graphic transformation can be performed based on the light element at the reference element position to determine the target light element located at the target element position in the planar sub-region.

[0049] It should be noted that the aforementioned reference element position and target element position can be the center point position used to indicate the center point of the aforementioned light element. The reference element position and target element position before and after the transformation can be the same or different. For example, when the light element is enlarged or reduced to obtain the target light element, the reference element position and target element position can be the same; when the light element is moved to obtain the target light element, the reference element position and target element position can be different but the same. In this embodiment, the relationship between the aforementioned reference element position and target element position is not limited.

[0050] In this embodiment, the above-mentioned light distribution parameters include at least two types of parameters. The first type of distribution parameter, namely the element position parameter, is used to indicate the reference element position of the indicator light element in the planar sub-region. The second type of distribution parameter, namely the element transformation parameter, is used to indicate the transformation mode of the light element in the planar sub-region.

[0051] By implementing the above-described embodiments of this application, the target light element is accurately determined in each planar sub-region by first determining the reference element position of the light element in the planar sub-region and then performing graphic transformation on the light element, thereby improving the image accuracy of generating reference light images based on the target light element.

[0052] In one optional implementation, determining the reference element position of the light element in the planar sub-region based on the element position parameters included in the light distribution parameters includes:

[0053] S1, obtain the region reference point of the planar sub-region;

[0054] S2, determine the reference element position of the light element in the planar sub-region based on the relative position of the light element from the region reference point indicated by the element position parameter.

[0055] It should be noted that in this embodiment, the position of each light element in the planar sub-region is determined based on a relative position value. Specifically, in this embodiment, the light distribution parameters include an element position parameter for determining the position of a reference element. This element position parameter is specifically used for the relative position of the indicator light element in the planar sub-region. For example, if the planar sub-region is a circle, the reference point can be the center of the circle, and the position of the reference element can be determined in each planar sub-region by using the relative position of each sub-region. Similarly, if the planar sub-region is a sector, the reference point can be the vertex of the sector. In this embodiment, the specific type of the reference point is not limited.

[0056] It is understood that after determining the region reference point of the planar sub-region, the position of the reference element can be determined based on the relative position indicated by the element position parameters and the region reference point. In an alternative approach, the reference element position can indicate the position of the center point of the light element within the planar sub-region. For example, if the light element is a circular element, the reference element position can indicate the position of the center of the circular element within the planar sub-region.

[0057] Through the above-described embodiments of this application, by obtaining the regional reference point of the planar sub-region, and determining the reference element position of the light element in the planar sub-region according to the relative position of the light element from the regional reference point indicated by the element position parameter, the position of each light element in each planar sub-region is determined according to the relative coordinates, thereby avoiding the need to determine the position of each light element separately in the same coordinate system and improving the control efficiency of the light elements.

[0058] For example, in one alternative approach, using the above-described implementation method, after determining 10 planar sub-regions, the position of each light element in the 10 planar sub-regions can be determined based on the relative coordinate information (1,0) indicated by the element position parameters. However, if the same coordinate system is used to describe the position of each light element, 10 coordinate information pieces are needed to describe the position of each of the 10 light elements. Therefore, the above-described implementation method of this application can significantly improve the control efficiency of light elements.

[0059] In one optional implementation, the target light element obtained after graphic transformation of the light element, determined based on the element transformation parameters included in the light distribution parameters, includes at least one of the following:

[0060] Method 1: If the element transformation parameters include rotation parameters for controlling the rotation of the light element, control the light element to rotate the graphic according to the target rotation angle indicated by the rotation parameters;

[0061] Method 2: If the element transformation parameters include a scaling parameter for adjusting the size of the light element, shrink / enlarge the light element according to the target scaling factor indicated by the scaling parameter.

[0062] It is understood that, in this embodiment, after determining the position of the reference element, the light element can be further graphicly transformed at the reference element position in each planar sub-region, such as by rotation or scaling. In this embodiment, the combination of the above transformation operation types is not limited.

[0063] It should be noted that, in this embodiment, the above-mentioned rotation operation can be a static rotation, where the light element is rotated according to the target angle to obtain the target light element; or, in another embodiment, the above-mentioned rotation operation can be a dynamic rotation, where the light element is rotated according to the target angular velocity to obtain target light elements corresponding to different times or different frame rates. In this embodiment, the method of rotating the light element is not limited.

[0064] Through the above embodiments of this application, when the element transformation parameters include a rotation parameter for controlling the rotation of the light element, the light element is controlled to rotate according to the target rotation angle indicated by the rotation parameter; and / or, when the element transformation parameters include a scaling parameter for adjusting the size of the light element, the light element is shrunk / enlarged according to the target scaling factor indicated by the scaling parameter, thereby realizing the control of the light element to transform in each planar sub-region, improving the control effect of the light element, and thus enhancing the richness of the light image.

[0065] In one optional implementation, the determination of the target light element obtained after graphic transformation based on the element transformation parameters included in the light distribution parameters includes:

[0066] S1, when a light element includes multiple light sub-elements, the light sub-elements in the planar sub-region are scaled down according to the number of light sub-elements and their arrangement direction. The scaling factor of the scaling down transformation is proportional to the number of light sub-elements.

[0067] S2, based on the arrangement order and direction of the light sub-elements, translate and transform the light sub-elements in the planar sub-region.

[0068] It should be noted that, in this embodiment, the aforementioned light elements may include not only individual light elements (such as a circle, a triangle, etc.), but also light elements composed of multiple sub-elements. For example, it could be a light image composed of three circles, or a light image composed of a circle and a triangle. In this embodiment, the combination type of the aforementioned light sub-elements is not limited.

[0069] It is understood that in this embodiment, when there are multiple light sub-elements within a light element, each sub-element can be appropriately compressed and displayed according to its arrangement, thereby ensuring that the complete light element is included in a fixed-size planar area. For example, if the light element includes three circular sub-elements arranged horizontally, the three circular sub-elements can be compressed and transformed along the horizontal axis, that is, each circular sub-element is shrunk to one-third of its original size along the horizontal axis. In addition, each light sub-element needs to be translated along the horizontal axis according to its horizontal arrangement order to avoid the light sub-elements from stacking in the planar sub-area. Similarly, if the light element includes three circular sub-elements arranged vertically, the three circular sub-elements can be compressed and transformed along the vertical axis, that is, each circular sub-element is shrunk to one-third of its original size along the vertical axis. In addition, each light sub-element needs to be translated numerically according to its vertical arrangement order to avoid the light sub-elements from stacking in the planar sub-area.

[0070] Through the above-described embodiments of this application, when a light element includes multiple light sub-elements, the light sub-elements in a planar sub-region are scaled down according to the number and arrangement direction of the light sub-elements, wherein the scaling factor is proportional to the number of light sub-elements; and the light sub-elements in a planar sub-region are translated according to the arrangement order and arrangement direction of the light sub-elements, thereby appropriately scaling down and shifting the graphic in a planar sub-region according to the light sub-elements included in the light element, so as to improve the display effect of the light element.

[0071] In one optional implementation, the determination of multiple planar sub-regions with rotational symmetry based on light distribution parameters includes:

[0072] S1, obtain the number of regions included in the light distribution parameters;

[0073] S2 divides the circular region centered on the region center of the planar region into multiple sector sub-regions of the same shape according to the number indicated by the region quantity parameter;

[0074] S3 defines multiple sector sub-regions as multiple planar sub-regions.

[0075] The following combination Figure 5 The above-described embodiments in the UV space will be described. For example... Figure 5 As shown, in a square UV space, given that the number of regions included in the above light distribution parameters is determined to be "4", that is, according to... Figure 5The circular region centered on the square UV space generates four rotationally symmetric sector sub-regions, each with an angle of 90°.

[0076] Through the above-described embodiments of this application, the number of regions included in the light distribution parameters is obtained; a circular region centered on the center of the planar region is divided into multiple fan-shaped sub-regions of the same shape according to the number indicated by the number of regions; multiple fan-shaped sub-regions are determined as multiple planar sub-regions, thereby determining target light elements in each fan-shaped sub-region when multiple fan-shaped sub-regions are determined, thereby realizing unified control of multiple target light elements, and obtaining a light image for displaying a prism effect by combining multiple target light elements.

[0077] In an optional implementation, before determining the multiple planar sub-regions with rotational symmetry based on the light distribution parameters, the method further includes:

[0078] S1, if the light distribution parameters include the area rotation parameters, obtain the rotation angle indicated by the area rotation parameters;

[0079] S2, rotate the planar region around the center of the region according to the rotation angle to obtain the updated planar region.

[0080] It is understood that, in this embodiment, before determining each planar sub-region, if the region rotation parameters included in the light distribution parameters are obtained, the entire planar region, i.e., all pixels in the aforementioned UV space, can be rotated according to the rotation angle indicated by the region rotation parameters. It should be noted that the above rotation operation can be a static rotation, where all pixels in the UV space are rotated according to a target angle to obtain the target UV space, and then the corresponding reference light image is determined in the target UV space; alternatively, the above rotation operation can also be a dynamic rotation, where all pixels in the UV space are rotated according to a target angular velocity to obtain individual pixels corresponding to different times or different frame sizes.

[0081] Through the above-described embodiments of this application, when the light distribution parameters include region rotation parameters, the rotation angle indicated by the region rotation parameters is obtained; the planar region is rotated around the region center according to the rotation angle to obtain an updated planar region. It can be understood that the above-described region rotation parameters can be used to control the overall rotation of the light image of the virtual lamp around the image center point, while the above-described rotation parameters used to control the rotation of light elements can control the individual rotation of each light element in the light image, thereby controlling the generation of rich lighting effects through two different rotation parameters.

[0082] In one alternative implementation, configuring lighting parameters for the virtual lighting object based on the reference lighting image includes:

[0083] S1, when the light distribution parameters indicate that the reference light image is a static image, the reference light image is used as the object light texture of the virtual light fixture object;

[0084] S2, when the light distribution parameters indicate that the reference light image is a dynamic image, obtain the reference light image corresponding to the current moment, and use the reference light image corresponding to the current moment as the object light texture of the virtual light fixture object at the current moment.

[0085] It is understood that, in this embodiment, when the light distribution parameters indicate that the reference light image is a static image, the reference light image can be directly used as the object light texture of the virtual lamp to render the virtual lamp, thereby controlling the virtual lamp to display the target light image in the virtual scene through physical mapping. In another embodiment, when the light distribution parameters indicate that the reference light image is a dynamic image, that is, the reference light image can change continuously according to time, the reference light image corresponding to each moment or each frame can be obtained to render the virtual lamp, thereby controlling the virtual lamp to display the dynamically changing target light image in the virtual scene through physical mapping.

[0086] Through the above-described embodiments of this application, when the light distribution parameters indicate that the reference light image is a static image, the reference light image is used as the object light texture of the virtual lighting object; when the light distribution parameters indicate that the reference light image is a dynamic image, the reference light image corresponding to the current moment is obtained and used as the object light texture of the virtual lighting object at the current moment. Thus, the lighting parameters of the virtual lighting object are configured according to the reference light image generated in the planar area, so as to achieve the technical effect of displaying the target light image according to the virtual lighting object in the virtual scene, thereby solving the technical problem of poor display effect of existing virtual lights.

[0087] In an optional implementation, when the light distribution parameters indicate that the reference light image is a dynamic image, obtaining the reference light image corresponding to the current moment and using the reference light image corresponding to the current moment as the object light texture of the virtual luminaire object at the current moment includes:

[0088] S1, Create a virtual lighting object in Unreal Engine;

[0089] S2 creates a dynamic material instance based on the reference light image and renders the object light texture of the virtual light fixture object based on the dynamic material instance.

[0090] Specifically, taking the rendering of lighting effects in a virtual scene using Unreal Engine as an example, a material untouched by light is created based on the content of the aforementioned generated reference light image, named Mat_Prism; next, a RenderTarget is created, named RT; a dynamic material instance is created based on the Mat_Prism material and named Mat_Prism_Inst; then, the dynamic material instance Mat_Prism_Inst is rendered to RT and stored in memory; finally, RT is assigned to the Texture property of the materials used by objects that need to display patterns, such as Gobo, Spotlighting, and Beam, thereby realizing the rendering of virtual lights.

[0091] Through the above-described embodiments of this application, the Mask channel method for lighting objects in Unreal Engine is used to enable virtual lighting to generate physical projection, thereby solving the problem of incorrect rendering of certain functions or effects by the prism.

[0092] The following combination Figure 6 This application describes a specific method for determining a reference lighting image.

[0093] After obtaining the coordinates of each pixel in the UV plane, the UV coordinates of the input pixel are read and stored as a two-dimensional vector.

[0094] As in step S602, transform to the center point coordinate system; Taking the top left corner of the UV space as the origin, since the desired effect is that the pattern is distributed around the center point of the UV space, therefore... Offset by (0.5, 0.5), transform to a coordinate system with the center point of the UV space as the origin, as follows:

[0095]

[0096] As in step S604, rotate the UV; based on the input parameters, rotate the UV space. This step is a global rotation of the pattern, which will affect the rotation of the entire prism array. The method for rotating the UV is to... Multiply by the matrix to get the new coordinates.

[0097]

[0098] S606, calculate the angle between the line connecting the pixel and the center point and the horizontal axis; first, ... Vector normalization yields vector

[0099]

[0100] Next, calculate the included angle. The absolute value of the included angle α is:

[0101]

[0102] Determine the sign of the included angle, and sum the horizontal axis vector. Add a third dimension of 0 to form a three-dimensional vector, and use the cross product of the three-dimensional vectors to determine the sign of the included angle:

[0103] q=(1,0,0)×(n x ,n y ,0)

[0104] s = sign(q) z )

[0105] The final angle is s·α, and its range is the interval (-π, π). Then, map it to the interval (0, 2π) as follows to obtain the vector. and coordinate axes The included angle β:

[0106] β=(s·α+2π)%2π

[0107] S608, calculate the center point of the sector region; S610, calculate the displacement of the pixel from the center point of the sector; Assume the number of input patterns is n, and the n patterns are evenly distributed within a circle of 2π radians, with each pattern located within a sector. Then the angle of the sector is... The sector number where the current pixel is located is Another input parameter, r, represents the distance from the pattern center to the UV space center. The center point of the sector region containing the current pixel is defined as c, and its polar coordinates are:

[0108]

[0109] Transforming the polar coordinates to rectangular coordinates, we obtain the coordinates of the center point of the sector region. hereinafter referred to as The element space is a rectangular coordinate system centered at a point:

[0110]

[0111] S612, Element space coordinate calculation; Based on the input parameter element size e, determine the coordinates of the current pixel in element space.

[0112]

[0113] S614, Local rotation in element space; rotate the vector by element B according to the input parameter, transforming the vector... Rotate by angle B to obtain the rotated coordinates.

[0114]

[0115] S616, element space coordinates are converted to texture sampling UVs; this will prepare for subsequent texture sampling. Transformed to (0,1) UV space coordinates uv e :

[0116]

[0117] At this time, UV e This is suitable for single-pattern sampling. If multiple patterns are used horizontally side-by-side and the pattern is selected according to parameters, the UV values ​​need to be adjusted. e Scaling and translation are performed based on the number of patterns 'a' and the index of the currently selected pattern 'b' to obtain the UVs used for texture sampling. s :

[0118]

[0119] S618, range determination; if within the boundary, execute S620, texture sampling; S622, output texture sampling value; if not within the boundary, execute S624, output 0;

[0120] Define a horizontal UV boundary region. Determine UV s Whether it is within the boundary; if it is within the boundary, then use UV. s Read the pattern brightness and return it; if it exceeds the boundary, return 0 directly.

[0121] Through the above implementation method, a real-time reference light image in the UV space can be obtained.

[0122] The following combination Figure 7 This paper describes a complete process of applying this application in Unreal Engine.

[0123] S702, Create a material (Mat_Prism) that is not illuminated based on the generation logic of the reference light image;

[0124] S704, use this material to create a dynamic material instance (Mat_Prism_Inst) and create a Render Target (RT);

[0125] S706 renders the rendering result of the dynamic material instance (Mat_Prism_Inst) to the Render Target (RT) and stores it in memory;

[0126] S708, assign the Render Target (RT) obtained in the previous step to the corresponding property channel of the material of objects or components such as Gobo, Spotlighting, and Beam that need to use pattern content.

[0127] The above-described embodiments of this application provide a method for implementing a prism effect in DMX lighting fixtures within Unreal Engine. By using a Mask channel, the light generates a physical projection, thereby resolving the issue of incorrect prism rendering for certain functions or effects.

[0128] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0129] According to another aspect of the present invention, a display device for a light image is also provided for implementing the above-described light image display method. For example... Figure 8 As shown, the device includes:

[0130] The acquisition unit 802 is used to acquire light elements and light distribution parameters, wherein the light distribution parameters are used for the imaging distribution of indicator light elements in a planar area;

[0131] The determining unit 804 is used to determine multiple planar sub-regions with rotational symmetry based on the light distribution parameters, and to determine a target light element in each of the multiple planar sub-regions, wherein the target light element is a graphic element obtained by graphic transformation of the light element;

[0132] The generation unit 806 is used to generate a reference light image based on target light elements in multiple planar sub-regions, and to configure lighting parameters for the virtual luminaire object according to the reference light image;

[0133] Display unit 808 is used to control virtual lamps to display target light images in virtual space according to light illumination parameters.

[0134] Optionally, the determining unit 804 includes:

[0135] The first determining module is used to determine the reference element position of the light element in the planar sub-region based on the element position parameters included in the light distribution parameters;

[0136] The transformation module is used to perform graphic transformation on the light elements according to the element transformation parameters included in the light distribution parameters, so as to obtain the target light elements corresponding to the planar sub-region;

[0137] The second determining module is used to determine the target element position of the target light element in the planar sub-region based on the reference element position.

[0138] Optionally, the first determining module mentioned above includes:

[0139] The `get` submodule is used to obtain the region reference points for a planar sub-region;

[0140] The determination submodule is used to determine the reference element position of the light element in the planar sub-region based on the relative position of the light element from the region reference point indicated by the element position parameter.

[0141] Optionally, the above transformation module includes at least one of the following:

[0142] The first transformation submodule is used to control the light element to rotate according to the target rotation angle indicated by the rotation parameter when the element transformation parameters include a rotation parameter for controlling the rotation of the light element.

[0143] The second transformation submodule is used to shrink / enlarge the light element according to the target scaling factor indicated by the scaling parameter when the element transformation parameters include a scaling parameter for adjusting the size of the light element.

[0144] Optionally, the above transformation module includes:

[0145] The second transformation submodule is used to perform a scaling transformation on the light sub-elements in the planar sub-region when the light element includes multiple light sub-elements, based on the number of light sub-elements and their arrangement direction, wherein the scaling factor of the scaling transformation is proportional to the number of light sub-elements; and to perform a translation transformation on the light sub-elements in the planar sub-region based on their arrangement order and their arrangement direction.

[0146] Optionally, the determining unit 804 includes:

[0147] The sub-module is used to obtain the number of regions included in the light distribution parameters; the circular region centered on the region center of the planar region is divided into multiple fan-shaped sub-regions of the same shape according to the number indicated by the region number parameter; and the multiple fan-shaped sub-regions are determined as multiple planar sub-regions.

[0148] Optionally, the above-mentioned partitioning submodule is also used to: when the light distribution parameters include region rotation parameters, obtain the rotation angle indicated by the region rotation parameters; rotate the planar region around the region center according to the rotation angle to obtain the updated planar region.

[0149] Optionally, the generation unit 806 includes:

[0150] The first rendering module is used to use the reference light image as the object light texture of the virtual lamp object when the light distribution parameters indicate that the reference light image is a static image;

[0151] The second rendering module is used to obtain the reference light image corresponding to the current moment when the light distribution parameters indicate that the reference light image is a dynamic image, and to use the reference light image corresponding to the current moment as the object light texture of the virtual lamp object at the current moment.

[0152] Optionally, the second rendering module described above is also used to: create a virtual lighting object in Unreal Engine; create a dynamic material instance based on a reference lighting image; and render the object lighting texture of the virtual lighting object based on the dynamic material instance.

[0153] Optionally, in this embodiment, the implementation of each of the above-mentioned unit modules can be referred to the above-mentioned method embodiments, which will not be repeated here.

[0154] According to another aspect of the present invention, an electronic device for implementing the above-described method for displaying light images is also provided. This electronic device may be... Figure 9 The terminal device or server shown. This embodiment uses this electronic device as an example for illustration. Figure 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps of any of the above method embodiments through the computer program.

[0155] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0156] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0157] S1, obtain the light elements and light distribution parameters, wherein the light distribution parameters are used for the imaging distribution of the indicator light elements in the planar area;

[0158] S2, determine multiple planar sub-regions with rotational symmetry based on the light distribution parameters, and determine a target light element in each of the multiple planar sub-regions. The target light element is a graphic element obtained by transforming the light element.

[0159] S3, generate reference light images based on target light elements in multiple planar sub-regions, and configure lighting parameters for virtual luminaire objects according to the reference light images;

[0160] S4 controls the virtual lights to display the target light image in the virtual space according to the lighting parameters.

[0161] Alternatively, as those skilled in the art will understand, Figure 9 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 9 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 9 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 9 The different configurations shown.

[0162] The memory 902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the light image display method and device in this embodiment of the invention. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, thereby realizing the aforementioned light image display method. The memory 902 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 902 may further include memory remotely located relative to the processor 904, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 902 may be used, but is not limited to, to store information such as the display information of various elements in the scene and the light image. As an example, such as... Figure 9 As shown, the memory 902 may include, but is not limited to, the acquisition unit 802, the determination unit 804, the generation unit 806, and the display unit 808 in the display device for the aforementioned light image. Furthermore, it may include, but is not limited to, other module units in the display device for the aforementioned light image, which will not be elaborated upon in this example.

[0163] Optionally, the transmission device 906 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 906 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 906 is a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0164] In addition, the aforementioned electronic device also includes: a display 908 for displaying virtual scenes in the interface; and a connection bus 910 for connecting various module components in the aforementioned electronic device.

[0165] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0166] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.

[0167] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0168] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the above-described method for displaying a light image.

[0169] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0170] S1, obtain the light elements and light distribution parameters, wherein the light distribution parameters are used for the imaging distribution of the indicator light elements in the planar area;

[0171] S2, determine multiple planar sub-regions with rotational symmetry based on the light distribution parameters, and determine a target light element in each of the multiple planar sub-regions. The target light element is a graphic element obtained by transforming the light element.

[0172] S3, generate reference light images based on target light elements in multiple planar sub-regions, and configure lighting parameters for virtual luminaire objects according to the reference light images;

[0173] S4 controls the virtual lights to display the target light image in the virtual space according to the lighting parameters.

[0174] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0175] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0176] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0177] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0178] The units described above as separate components may or may not be physically separate. 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 network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0179] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0180] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for displaying a light image, characterized in that, include: Acquire light elements and light distribution parameters, wherein the light distribution parameters are used to indicate the imaging distribution of the light elements within a planar area; Based on the light distribution parameters, multiple planar sub-regions with rotational symmetry are determined; The reference element position of the light element in the planar sub-region is determined based on the element position parameters included in the light distribution parameters; The light elements are graphically transformed according to the element transformation parameters included in the light distribution parameters to obtain multiple target light elements corresponding to the planar sub-region; A reference light image is generated based on the target light elements in the plurality of planar sub-regions, and light illumination parameters are configured for the virtual light fixture object according to the reference light image; Control the virtual lighting fixtures to display a target light image with a prism scattering pattern in a virtual space according to the lighting parameters; The determination of the target light element obtained after graphic transformation based on the element transformation parameters included in the light distribution parameters includes at least one of the following: When the element transformation parameters include a rotation parameter for controlling the rotation of the light element, the light element is controlled to rotate according to the target rotation angle indicated by the rotation parameter. If the element transformation parameters include a scaling parameter for adjusting the size of the light element, the light element is reduced or enlarged according to the target scaling factor indicated by the scaling parameter.

2. The method according to claim 1, characterized in that, Before generating the reference light image based on the target light elements in the plurality of planar sub-regions, the method further includes: The target element position of the target light element in the planar sub-region is determined based on the position of the reference element.

3. The method according to claim 2, characterized in that, Determining the reference element position of the light element in the planar sub-region based on the element position parameters included in the light distribution parameters includes: Obtain the region reference point of the planar sub-region; The reference element position of the light element in the planar sub-region is determined based on the relative position of the light element from the reference point of the region indicated by the element position parameter.

4. The method according to claim 2, characterized in that, The step of performing graphic transformation on the light elements according to the element transformation parameters included in the light distribution parameters to obtain multiple target light elements corresponding to the planar sub-region includes: When the light element includes multiple light sub-elements, the light sub-elements in the planar sub-region are scaled down according to the number of light sub-elements and the arrangement direction of the light sub-elements, wherein the scaling factor of the scaling down transformation is proportional to the number of light sub-elements; Based on the arrangement order and direction of the light sub-elements, the light sub-elements in the planar sub-region are translated and transformed.

5. The method according to claim 1, characterized in that, Based on the light distribution parameters, multiple planar sub-regions with rotational symmetry are determined, including: Obtain the number of regions included in the light distribution parameters; The circular region centered on the center of the planar region is divided into multiple sector sub-regions of the same shape according to the number indicated by the region quantity parameter. The plurality of sector-shaped sub-regions are defined as the plurality of planar sub-regions.

6. The method according to claim 5, characterized in that, Before determining multiple planar sub-regions with rotational symmetry based on the light distribution parameters, the method further includes: If the light distribution parameters include a region rotation parameter, obtain the rotation angle indicated by the region rotation parameter; The planar region is rotated around its center according to the rotation angle to obtain the updated planar region.

7. The method according to claim 1, characterized in that, The step of configuring lighting parameters for the virtual lighting object based on the reference lighting image includes: When the light distribution parameters indicate that the reference light image is a static image, the reference light image is used as the object light texture of the virtual light fixture object; When the light distribution parameters indicate that the reference light image is a dynamic image, the reference light image corresponding to the current moment is obtained, and the reference light image corresponding to the current moment is used as the object light texture of the virtual lamp object at the current moment.

8. The method according to claim 7, characterized in that, The step of obtaining the reference light image corresponding to the current moment when the light distribution parameters indicate that the reference light image is a dynamic image, and using the reference light image corresponding to the current moment as the object light texture of the virtual lamp object at the current moment includes: Create virtual lighting objects in Unreal Engine; A dynamic material instance is created based on the reference light image, and the object light texture of the virtual light fixture object is rendered based on the dynamic material instance.

9. A display device for light-emitting images, characterized in that, include: An acquisition unit is used to acquire light elements and light distribution parameters, wherein the light distribution parameters are used to indicate the imaging distribution of the light elements within a planar area; The determining unit is configured to: determine multiple planar sub-regions with rotational symmetry based on the light distribution parameters; determine the reference element position of the light element in the planar sub-region based on the element position parameters included in the light distribution parameters; and perform graphic transformation on the light element based on the element transformation parameters included in the light distribution parameters to obtain multiple target light elements corresponding to the planar sub-regions. The generation unit is used to generate a reference light image based on the target light elements in the plurality of planar sub-regions, and to configure light illumination parameters for the virtual light fixture object according to the reference light image; The display unit is used to control the virtual lamps to display a target light image with a prism scattering pattern in a virtual space according to the light illumination parameters; The determination of the target light element obtained after graphic transformation based on the element transformation parameters included in the light distribution parameters includes at least one of the following: When the element transformation parameters include a rotation parameter for controlling the rotation of the light element, the light element is controlled to rotate according to the target rotation angle indicated by the rotation parameter. If the element transformation parameters include a scaling parameter for adjusting the size of the light element, the light element is reduced or enlarged according to the target scaling factor indicated by the scaling parameter.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method according to any one of claims 1 to 8.

11. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 8.

12. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 8 through the computer program.