Virtual image shooting method and device, equipment, storage medium and program product

By providing a variety of lighting templates and light source parameter adjustment controls in the virtual scene, the problem of insufficient freedom of lighting effects in the virtual scene is solved, and flexible shooting of virtual images and complex lighting effects are achieved.

CN119232907APending Publication Date: 2024-12-31TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310809629.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The shooting system in existing virtual scenes is difficult to meet the needs of composite lighting effects, and the freedom of lighting effects is limited, which cannot meet the diverse or complex shooting needs.

Method used

In the shooting preview interface of the virtual scene, the virtual image to be shot and a variety of lighting templates are displayed, allowing users to select and adjust the parameters of the virtual light source, including color, radius of action, position and movement mode, through the ring color disc and color Controls such as options, edit boxes and progress bars realize adjustment of light source parameters.

Benefits of technology

The freedom to adjust the lighting effect is improved. Users can adjust the lighting effect intuitively and conveniently according to their needs, meeting the needs of composite lighting effect and achieving flexible shooting of virtual images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232907A_ABST
    Figure CN119232907A_ABST
Patent Text Reader

Abstract

The invention provides a virtual image shooting method and device, electronic equipment, a computer readable storage medium and a computer program product. The method comprises the steps that a to-be-shot virtual image and at least one lighting template are displayed in a shooting preview interface of a virtual scene, different lighting templates correspond to different lighting effects, and the lighting templates correspond to at least one virtual light source; in response to a selection operation for the target lighting template, displaying an illumination effect corresponding to the virtual image, the illumination effect being obtained by lighting the virtual image based on the target lighting template; in response to a light source adjustment operation for a virtual light source in the target lighting template, a target image corresponding to the virtual image is displayed, and the target image is obtained by rendering the illumination effect based on light source parameters indicated and adjusted by the light source adjustment operation. According to the invention, the adjustment freedom degree of the lighting effect can be improved, and the composite lighting effect requirement can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to human-computer interaction technology, and in particular to a method, device, equipment, storage medium and program product for photographing a virtual image. Background Art

[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially the display technology of virtual scenes. It can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and has various typical application scenarios. For example, in the virtual scene of games, it can simulate the real battle process between virtual characters.

[0003] In order to enhance the interactivity of virtual scenes, most virtual scenes are embedded with a camera system. In related technologies, players can unlock preset lighting templates in the camera system of the virtual scene, and arrange the light sources of the camera system by selecting the preset lighting templates to obtain different lighting effects to match different shooting needs. However, the lighting effect obtained in this way is fixed by the preset lighting template, and the freedom of the lighting effect is relatively limited, which cannot meet the diverse or complex lighting effect needs. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for photographing a virtual image, which can improve the adjustment freedom of lighting effects and meet complex lighting effect requirements.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a method for photographing a virtual image, including:

[0007] In the shooting preview interface of the virtual scene, the virtual image to be shot and at least one lighting template are displayed, wherein different lighting templates correspond to different lighting effects, and the lighting template corresponds to at least one virtual light source;

[0008] In response to a selection operation on a target lighting template, displaying a lighting effect corresponding to the virtual image, wherein the lighting effect is obtained by lighting the virtual image based on the target lighting template;

[0009] In response to a light source adjustment operation for a virtual light source in the target lighting template, a target image corresponding to the virtual image is displayed, wherein the target image is obtained by rendering the lighting effect based on the light source parameters adjusted as indicated by the light source adjustment operation.

[0010] The present application provides a virtual image shooting device, including:

[0011] A first display module, used for displaying the virtual image to be photographed and at least one lighting template in the shooting preview interface of the virtual scene, wherein different lighting templates correspond to different lighting effects, and the lighting template corresponds to at least one virtual light source;

[0012] A second display module, configured to display a lighting effect corresponding to the virtual image in response to a selection operation on a target lighting template, wherein the lighting effect is obtained by lighting the virtual image based on the target lighting template;

[0013] A third display module is used to display a target image corresponding to the virtual image in response to a light source adjustment operation on the virtual light source in the target lighting template, wherein the target image is obtained by rendering the lighting effect based on the light source parameters adjusted as indicated by the light source adjustment operation.

[0014] In the above scheme, before displaying the target image corresponding to the virtual image, the device also includes: an adjustment operation receiving module, which is used to display at least one virtual light source corresponding to the target lighting template and a switch control corresponding to the virtual light source in the light source adjustment area; in response to an opening operation of the switch control corresponding to the target virtual light source, a parameter adjustment control corresponding to the target virtual light source is displayed; and a light source adjustment operation triggered by the parameter adjustment control is received, and the light source adjustment operation indicates adjustment of the light source parameters of the target virtual light source.

[0015] In the above scheme, the adjustment operation receiving module is also used to display a circular color wheel carrying a joystick and use the circular color wheel as the parameter adjustment control when the parameter adjustment control is used to adjust the color of the target virtual light source, wherein different positions in the circular color wheel indicate different colors; in response to a dragging operation on the joystick, a light source adjustment operation is received; wherein the light source adjustment operation indicates adjusting the color of the target virtual light source to the color indicated by the position of the joystick in the circular color wheel.

[0016] In the above scheme, the device also includes: a color display module, which is used to display the color value of the color indicated by the position of the joystick on the circular color wheel in the central area of ​​the circular color wheel during the process of displaying the circular color wheel carrying the joystick; and synchronously update the color value as the position of the joystick on the circular color wheel changes.

[0017] In the above scheme, the adjustment operation receiving module is also used to display multiple color options for selection when the parameter adjustment control is used to adjust the color of the target virtual light source, and use the multiple color options as the parameter adjustment control; in response to the selection operation for the target option, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the color of the target virtual light source is adjusted to the color corresponding to the target option.

[0018] In the above scheme, the adjustment operation receiving module is also used to display an edit box for inputting parameter values, and use the edit box as a parameter adjustment control; wherein the edit box corresponds to the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; in response to an input operation to the target edit box, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the parameter value of the light source parameter corresponding to the target edit box is adjusted to the parameter value input by the input operation.

[0019] In the above scheme, the adjustment operation receiving module is also used to display a progress bar carrying a pull rod, and use the progress bar as a parameter adjustment control; wherein the progress bar corresponds to the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; in response to the dragging operation of the pull rod in the target progress bar, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the parameter value of the light source parameter corresponding to the target progress bar is adjusted to the parameter value indicated by the pull rod in the target progress bar.

[0020] In the above scheme, the adjustment operation receiving module is also used to display a light source mark corresponding to the target virtual light source at the first position of the shooting preview interface when the parameter adjustment control is used to adjust the position of the target virtual light source, and use the light source mark as the parameter adjustment control; wherein, the first position is determined according to the position parameters of the target virtual light source configured in the target lighting template; in response to a drag operation on the light source mark, a light source adjustment operation is received; wherein, the light source adjustment operation indicates that the first position of the target virtual light source in the shooting preview interface is adjusted to the second position indicated by the drag operation.

[0021] In the above scheme, the adjustment operation receiving module is also used to display the light source mark corresponding to the target virtual light source using a target color; wherein the target color is the color of the target virtual light source configured in the target lighting template.

[0022] In the above scheme, the adjustment operation receiving module is also used to display at least one virtual light source corresponding to the target lighting template in the light source adjustment area using a first color, and the at least one virtual light source includes a target virtual light source; the device also includes: an update display module, which is used to display the target virtual light source using a second color in response to an opening operation of a switch control corresponding to the target virtual light source, wherein the second color is the color of the target virtual light source configured in the target lighting template; when the light source adjustment operation indicates that the color of the target virtual light source is adjusted to a third color, the target virtual light source is displayed using the third color.

[0023] In the above scheme, before displaying the lighting effect corresponding to the virtual image, the device also includes: a lighting module, used to obtain light source parameters of the virtual light source corresponding to the target lighting template; based on the light source parameters, the virtual image is illuminated to obtain the lighting effect corresponding to the virtual image.

[0024] In the above scheme, after displaying the lighting effect corresponding to the virtual image, the device also includes: a shooting update module, which is used to update the shooting parameters of the virtual character in the lighting effect when the virtual character moves in the shooting preview interface; wherein the shooting parameters include at least one of the following: the position of the virtual character in the lighting effect, the background in the lighting effect.

[0025] In the above scheme, the device also includes: a movement control module, which is used to obtain the movement mode of the virtual light source configured in the target lighting template during the movement of the virtual character; when the movement mode is a follow-character mode, the virtual light source is controlled to move synchronously with the virtual character so that the lighting effect of the lighting effect remains unchanged; when the movement mode is a non-follow-character mode, the position of the virtual light source is controlled to remain unchanged, and the lighting effect of the lighting effect is adjusted so that the adjusted lighting effect is adapted to the relative position between the virtual light source and the virtual character.

[0026] In the above scheme, before displaying the captured virtual image and at least one lighting template, the device also includes: a template configuration module, used to display a template configuration interface and display a light source adding control in the template configuration interface; in response to a light source adding operation triggered based on the light source adding control, displaying a target number of added virtual light sources; in response to a light source parameter configuration operation, displaying the light source parameters configured for each of the virtual light sources; in response to a template generation operation, generating a lighting template including the target number of virtual light sources based on the light source parameters configured for each of the virtual light sources.

[0027] In the above scheme, before displaying the light source parameters configured for each of the virtual light sources, the device also includes: a parameter configuration operation receiving module, which is used to perform the following operations for each of the virtual light sources: displaying a first configuration control for configuring the light source parameters of the virtual light source; wherein the first configuration control is in a corresponding relationship with the light source parameters, and the light source parameters include at least one of the following: color, effective radius, position, and moving mode; receiving a light source parameter configuration operation triggered by the first configuration control corresponding to the target light source parameters, and the light source parameter configuration operation indicates the configuration of the target light source parameters.

[0028] In the above scheme, the template configuration module is also used to perform the following operations for each of the virtual light sources: display a second configuration control for configuring the light source parameters of the virtual light source; in response to a trigger operation on the second configuration control, display a parameter configuration interface, and display a configuration area corresponding to each of the light source parameters in the parameter configuration interface; in response to a light source parameter configuration operation triggered based on each of the configuration areas, display the corresponding light source parameters in each of the configuration areas.

[0029] In the above scheme, after displaying the target image corresponding to the virtual image, the device also includes: an image saving module, which is used to save the target image to the album corresponding to the virtual scene in response to the saving operation on the target image; wherein, the target image saved in the album is used to obtain virtual rewards or unlock virtual skills.

[0030] An embodiment of the present application provides an electronic device, including:

[0031] A memory for storing computer executable instructions or computer programs;

[0032] The processor is used to implement the method for photographing a virtual image provided in an embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.

[0033] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for implementing the method for photographing a virtual image provided by the embodiment of the present application when executed by a processor.

[0034] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the method for photographing a virtual image provided by the embodiment of the present application is implemented.

[0035] The embodiments of the present application have the following beneficial effects:

[0036] By applying the embodiments of the present application, during the process of photographing a virtual image, the virtual image is first illuminated by using a target lighting template to obtain a lighting effect, and then a light source adjustment operation is further performed on the virtual light source in the target lighting template, and the lighting effect is rendered using the light source parameters adjusted as indicated by the light source adjustment operation to obtain a target image of the virtual image. That is, during the process of photographing a virtual image, the user can freely adjust the light source parameters of the virtual light source in the lighting template in an intuitive and convenient manner based on the preset lighting template according to the shooting requirements, thereby realizing a free adjustment of the lighting effect, improving the adjustment freedom of the lighting effect, and meeting the complex lighting effect requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a schematic diagram of the architecture of a virtual image shooting system 100 provided in an embodiment of the present application;

[0038] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;

[0039] Figure 3 It is a flowchart of a method for photographing a virtual image provided by an embodiment of the present application;

[0040] Figure 4 It is a schematic diagram of image lighting provided by an embodiment of the present application;

[0041] Figure 5 is a schematic diagram of light source parameter adjustment provided in an embodiment of the present application;

[0042] Figure 6 is a schematic diagram of adjusting light source parameters provided in an embodiment of the present application;

[0043] Figure 7 is a schematic diagram of adjusting light source parameters provided in an embodiment of the present application;

[0044] Figure 8 is a schematic diagram of adjusting light source parameters provided in an embodiment of the present application;

[0045] Fig. 9 is a schematic diagram of adjusting light source parameters provided in an embodiment of the present application;

[0046] Fig.10 It is a schematic diagram of the configuration of the lighting template provided in the embodiment of the present application;

[0047] Fig.11 It is a schematic diagram of position parameters provided in an embodiment of the present application;

[0048] Fig.12 It is a schematic diagram of light source parameter configuration provided by an embodiment of the present application;

[0049] Fig.13It is a schematic diagram of light source parameter configuration provided by an embodiment of the present application;

[0050] Fig.14 It is a configuration diagram of the lighting template provided in the embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0052] It is understandable that in the embodiments of the present application, data related to user information (such as user trigger operations, light source adjustment operations, etc.) is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0053] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0054] In the following description, the terms "first\second..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0056] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0057] 1) Client: an application running in the terminal to provide various services, such as a video player client, a game client, etc.

[0058] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0059] 3) A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and users can control virtual objects to move in the virtual scene.

[0060] 4) Virtual characters, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people and animals displayed in a virtual scene. A virtual character can be a virtual image in the virtual scene that represents the user. A virtual scene can include multiple virtual characters. Each virtual character has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. A virtual character can also be a game character controlled by a user (or player).

[0061] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for shooting a virtual image, which can improve the degree of freedom of adjustment of the lighting effect and meet the complex lighting effect requirements. The following describes an exemplary application of the electronic device provided by the embodiments of the present application. The electronic device provided by the embodiments of the present application can be implemented as various types of user terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, mobile devices (for example, mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals, and can also be implemented as servers. Below, an exemplary application when the device is implemented as a terminal will be described.

[0062] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the virtual image shooting system 100 provided in an embodiment of the present application. To support an exemplary application, the terminal (terminal 400-1 and terminal 400-2 are shown as examples) is connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0063] In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, etc., but is not limited to this. The terminal is provided with a client with a live broadcast function, such as a video playback client, an instant messaging client, a game client, a live broadcast client, etc. The server 200 is a background server corresponding to the client, which can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present application.

[0064] In actual applications, the terminal displays a virtual image to be photographed and at least one lighting template in the shooting preview interface of the virtual scene, wherein different lighting templates correspond to different lighting effects, and the lighting template corresponds to at least one virtual light source; in response to a selection operation on a target lighting template, a lighting request for the virtual image carrying the target lighting template is generated and sent to the server 200; based on the lighting request, the server 200 uses the target lighting template to light the virtual image, obtains the lighting effect corresponding to the virtual image, and returns the obtained lighting effect to the terminal for display; in response to a light source adjustment operation on the virtual light source in the target lighting template, the terminal generates and sends a lighting adjustment request carrying the light source parameters adjusted as indicated by the light source adjustment operation to the server 200; based on the lighting adjustment request, the server 200 renders the lighting effect based on the light source parameters adjusted as indicated by the light source adjustment operation, obtains a target image corresponding to the virtual image, and returns the obtained target image to the terminal for display.

[0065] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, taking the electronic device 500 as Figure 1 For example, the terminal in Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .

[0066] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0067] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiment of the present application is intended to include any suitable type of memory. The memory 550 optionally includes one or more storage devices that are physically far away from the processor 510.

[0068] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0069] The operating system 551 includes system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic businesses and processing hardware-based tasks; a network communication module 552 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520. Exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.

[0070] In some embodiments, the virtual image shooting device provided in the embodiments of the present application can be implemented in software. The virtual image shooting device provided in the embodiments of the present application can be provided as various software embodiments, including various forms including applications, software, software modules, scripts or codes. Figure 2 A shooting device 555 of a virtual image stored in a memory 550 is shown, which may be software in the form of a program and a plug-in, and includes a series of modules, including a first display module 5551, a second display module 5552, and a third display module 5553. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0071] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the virtual image shooting method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field-programmable gate arrays (Field-Progr ammable Gate Array, FPGA) or other electronic components.

[0072] In some embodiments, the terminal or server can implement the method for shooting a virtual image provided in the embodiments of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be microprogram-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a native application (APPlicat ion, APP), that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP or a live broadcast APP; it can also be a small program that can be embedded in any APP, that is, a program that can be run only by downloading it to a browser environment. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.

[0073] As mentioned above, the method for photographing a virtual image provided in the embodiment of the present application can be implemented by various types of electronic devices, for example, Figure 1 The terminal and the server 200 in the embodiment can be executed by either one of them separately, or by Figure 1 The terminal and server 200 in the embodiment cooperate to execute. Figure 1 The method for photographing a virtual image provided in the embodiment of the present application is described as an example in which a terminal alone executes the method. Figure 3 , Figure 3 is a flow chart of a method for photographing a virtual image provided by an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0074] Step 101: The terminal displays a virtual image to be photographed and at least one lighting template in a shooting preview interface of a virtual scene.

[0075] In actual applications, a client supporting virtual scenes is installed on the terminal (for example, when the virtual scene is a game, the corresponding client can be a shooting game APP), and the client has a shooting function, such as a shooting system set or embedded in the client. When the user opens the shooting system in the client on the terminal to shoot the virtual image in the virtual scene, the terminal displays the virtual image to be shot and at least one lighting template in the shooting preview interface of the virtual scene, wherein the lighting template is pre-configured by the user, and different lighting templates correspond to different lighting effects, such as soft light, front light, backlight, side light, full light, blue tone, etc.; each lighting template corresponds to at least one virtual light source, and when the lighting template corresponds to multiple (two or more) virtual light sources, different virtual light sources correspond to different light source parameters; the user can preset and configure multiple lighting templates with different lighting effects according to actual needs for use in shooting.

[0076] In some embodiments, before displaying the captured virtual image and at least one lighting template, the terminal may preset the configuration of the lighting template in the following manner: displaying the template configuration interface, and displaying the light source adding control in the template configuration interface; in response to the light source adding operation triggered by the light source adding control, displaying the target number of added virtual light sources; in response to the light source parameter configuration operation, displaying the light source parameters configured for each virtual light source; in response to the template generation operation, generating a lighting template including the target number of virtual light sources based on the light source parameters configured for each virtual light source.

[0077] Here, when configuring the lighting template, the terminal displays a light source adding control for adding a virtual light source in the template configuration interface. When the user triggers the light source adding control, the terminal responds to the trigger operation and displays multiple virtual light sources for selection, such as virtual light source 1, virtual light source 2, virtual light source 3, and virtual light source 4. The user can select a target number of virtual light sources (depending on actual needs, such as a target number of 3) and add the selected target number of virtual light sources to the lighting template. Then, the light source parameters are configured for each added virtual light source. When the light source parameter configuration of each virtual light source is completed, a lighting template including the target number of virtual light sources can be generated based on the light source parameters of each configured virtual light source.

[0078] Among them, the light source parameters include at least one of the following: color, effective radius, position, and moving mode; in practical applications, the color parameter of the light source can be disassembled according to the color model of the virtual light source (such as the HSV color model) to obtain hue (Hue, referred to as H), saturation (S) and value (V), wherein hue (H) is the basic attribute of color, which is the color name commonly referred to as red, yellow, etc., color information; saturation (S) refers to the purity of the color, taking a value of 0 to 100%, the higher the value, the purer the color, and the lower the value, the grayer it gradually becomes; value (V) refers to the brightness of the color, taking a value of 0 to 100%, wherein 0 means off and 100% means the brightest. The effective radius refers to the influence range of the virtual light source. The position refers to the positional relationship of the virtual light source relative to the virtual character, including at least one of the following: angle (i.e., the direction of the virtual light source relative to the virtual character), distance (the distance between the virtual light source and the virtual character), and vertical height (the vertical height of the virtual light source relative to the virtual character). The movement modes include follow-character mode and non-follow-character mode. In follow-character mode, the position of the virtual light source always takes the current position of the virtual character as the starting point. When the virtual character moves, the virtual light source moves synchronously. In non-follow-character mode, the virtual light source always takes the birth point and direction of the virtual light source as the starting point (that is, the starting relative position between the configured virtual light source and the virtual character). When the virtual character moves, the virtual light source does not move.

[0079] In some embodiments, before displaying the light source parameters configured for each virtual light source, the terminal performs the following operations for each virtual light source: displays a first configuration control for configuring the light source parameters of the virtual light source; wherein the first configuration control corresponds to the light source parameters; receives a light source parameter configuration operation triggered by the first configuration control corresponding to the target light source parameters, wherein the light source parameter configuration operation indicates configuration of the target light source parameters.

[0080] Here, when configuring the light source parameters of each virtual light source, taking virtual light source 1 as an example, a first configuration control can be displayed at the associated position of virtual light source 1, wherein the first configuration control and the light source parameter are in a one-to-one correspondence, that is, virtual light source 1 corresponds to a target number of first configuration controls, wherein the target number is the number of virtual parameters, and the target light source parameters can be configured through the first configuration controls corresponding to the target light source parameters, such as hue corresponds to the first configuration control 1, and saturation corresponds to the first configuration control 2. The user sets the hue (i.e., color value) of the virtual light source through the first configuration control 1 corresponding to the hue, and sets the saturation through the first configuration control 2 corresponding to the first configuration control 2, and so on. All light source parameters of the virtual light source 1 can be configured. After the light source parameters of each virtual light source are configured, a lighting template including the target number of virtual light sources can be generated based on the light source parameters of each configured virtual light source.

[0081] In some embodiments, the terminal can respond to the light source parameter configuration operation and display the light source parameters configured for each virtual light source in the following manner: perform the following operations for each virtual light source: display a second configuration control for configuring the light source parameters of the virtual light source; in response to a trigger operation on the second configuration control, display a parameter configuration interface, and display a configuration area corresponding to each light source parameter in the parameter configuration interface; in response to a light source parameter configuration operation triggered based on each configuration area, display the corresponding light source parameters in each configuration area.

[0082] Here, when configuring the light source parameters of each virtual light source, taking virtual light source 1 as an example, a second configuration control can be displayed at the associated position of virtual light source 1, wherein the second configuration control corresponds to virtual light source 1, that is, when there are multiple light source parameters involved in virtual light source 1, the second configuration control corresponds to the multiple light source parameters, and the multiple light source parameters can be configured with one click through the second configuration control. For example, when the user triggers the second configuration control, the terminal responds to the trigger operation, displays a parameter configuration interface, and displays a configuration area corresponding to each light source parameter in the parameter configuration interface, and the user can configure the corresponding light source parameters in the configuration area corresponding to each light source parameter. The user can input the hue value in configuration area 1 and the saturation value in configuration area 2, and so on, to configure all the light source parameters of the virtual light source 1. After the light source parameters of each virtual light source are configured, a lighting template including the target number of virtual light sources can be generated based on the light source parameters of each configured virtual light source. For example, after configuring the light source parameters of each virtual light source, the light source parameters of each virtual light source and the light source identifier of each virtual light source are combined with the template identifier, template name and template icon of the lighting template to generate a lighting template.

[0083] Step 102: In response to a selection operation for a target lighting template, a lighting effect corresponding to the virtual image is displayed, wherein the lighting effect is obtained by lighting the virtual image based on the target lighting template.

[0084] Here, when the user selects a target lighting template, the terminal responds to the selection operation, obtains the light source parameters of the virtual light source corresponding to the target lighting template, and performs lighting processing (i.e., rendering processing) on ​​the virtual image in the shooting preview interface according to the light source parameters of the virtual light source corresponding to the target lighting template to obtain the lighting effect corresponding to the virtual image.

[0085] For example, assuming that the target lighting template corresponds to virtual light source 1, virtual light source 2, and virtual light source 3, the terminal obtains the light source parameters (such as hue, saturation, brightness, effective radius, position, etc.) of virtual light source 1, virtual light source 2, and virtual light source 3, respectively, and performs lighting processing on the virtual image based on the light source parameters of virtual light source 1, virtual light source 2, and virtual light source 3, respectively, to obtain the corresponding lighting effect.

[0086] See also Figure 4 , Figure 4 It is a schematic diagram of image lighting provided in an embodiment of the present application. In the shooting preview interface, multiple lighting templates are displayed, such as soft, front light, reverse side light, etc. When the user selects a target lighting template 401 (such as soft) from them, the terminal responds to the selection operation and displays the lighting effect obtained by lighting the virtual image (or shooting preview interface) using the target lighting template 401 (such as soft). The lighting effect obtained in this way is the lighting effect corresponding to the target lighting target (i.e., soft).

[0087] It should be noted that when lighting the virtual image, it is necessary to light the other contents (collectively referred to as background elements) in the preview shooting interface except the virtual image, that is, according to the light source parameters of the virtual light source corresponding to the target lighting template, all the contents in the shooting preview interface (including the virtual image and background elements) are lit to obtain the lighting effect, which can ensure that the lighting effect or lighting style of each part of the lighting effect is consistent.

[0088] Step 103: In response to a light source adjustment operation for a virtual light source in a target lighting template, a target image corresponding to the virtual image is displayed, wherein the target image is obtained by rendering the lighting effect based on the light source parameters adjusted according to the light source adjustment operation.

[0089] Here, in actual application, the user can adjust the light source parameters of the virtual light source corresponding to the target lighting template, and after the adjustment, use the light source parameters adjusted as indicated by the light source adjustment operation (i.e., the adjusted light source parameters) to render the lighting effect to obtain the target image corresponding to the virtual image. The target image is actually rendered based on the lighting effect and the virtual image based on the light source parameters adjusted as indicated by the light source adjustment operation. Here, the lighting effect presented by the target image is the lighting effect after the light source parameters of the target lighting template are adjusted. In this way, the virtual image is first illuminated using the target lighting template to obtain the lighting effect, and then the light source parameters corresponding to the target lighting template are freely adjusted according to the shooting requirements, thereby realizing the free adjustment of the lighting effect, improving the adjustment freedom of the lighting effect, and meeting the complex lighting effect requirements.

[0090] In some embodiments, before displaying the target image corresponding to the virtual image, the terminal may receive a light source adjustment operation in the following manner: displaying at least one virtual light source corresponding to the target lighting template and a switch control corresponding to the virtual light source in the light source adjustment area; in response to an opening operation of the switch control corresponding to the target virtual light source, displaying a parameter adjustment control corresponding to the target virtual light source; receiving a light source adjustment operation triggered by the parameter adjustment control, wherein the light source adjustment operation indicates adjusting the light source parameters of the target virtual light source.

[0091] See also Figure 5 , Figure 5 3. It is a schematic diagram of light source parameter adjustment provided in an embodiment of the present application. When a user selects a target lighting template 501, taking the target lighting template 501 corresponding to three virtual light sources as an example, the light source adjustment area displays the virtual light sources corresponding to the target lighting template 501, such as virtual light source 1, virtual light source 2, virtual light source 3, and switch controls corresponding to the virtual light sources (i.e., one virtual light source corresponds to one switch control). In the default state, the switch controls of the virtual light sources are in the off state. When the user turns on the switch controls, the light source parameters of the virtual light sources corresponding to the turned on switch controls can be adjusted. For example, when the user turns on the switch control corresponding to the target virtual light source (such as virtual light source 3), the corresponding position of the target virtual light source (for example Figure 5 A parameter adjustment control is displayed at the right position shown in ), through which the light source parameters of the target virtual light source (ie, virtual light source 3) can be adjusted.

[0092] It can be understood that the parameter adjustment control can be in a one-to-one correspondence with the light source parameters of the target virtual light source, that is, one light source parameter corresponds to one parameter adjustment control, such as hue corresponds to parameter adjustment control 1, saturation corresponds to parameter adjustment control 2, and position corresponds to parameter adjustment control 3; of course, the parameter adjustment control can also be in a one-to-many relationship with the light source parameters of the target virtual light source, that is, one parameter adjustment control corresponds to multiple light source parameters. The parameter adjustment control integrates the function of adjusting multiple light source parameters. The following describes the implementation method of adjusting various light source parameters separately through the parameter adjustment control.

[0093] In some embodiments, the terminal can display the parameter adjustment control corresponding to the target virtual light source in the following manner: when the parameter adjustment control is used to adjust the color of the target virtual light source, a circular color wheel carrying a joystick is displayed, and the circular color wheel is used as the parameter adjustment control, wherein different positions in the circular color wheel indicate different colors; accordingly, the terminal can receive a light source adjustment operation triggered by the parameter adjustment control in the following manner: in response to a dragging operation on the joystick, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the color of the target virtual light source is adjusted to the color indicated by the position of the joystick in the circular color wheel.

[0094] See also Figure 6 , Figure 6 It is a schematic diagram of adjusting the light source parameters provided in an embodiment of the present application. In response to the opening operation of the switch control corresponding to the target virtual light source 601, the terminal displays a circular color wheel for adjusting the color of the target virtual light source in the light source adjustment area as a parameter adjustment control. By dragging the joystick in the circular color wheel to change the position of the joystick in the circular color wheel, the color value of the target virtual light source can be changed.

[0095] It should be noted that Figure 6 The color value shown refers to the hue value in the color. The circular color wheel 603 may also be associated with a sub-control for adjusting the saturation and brightness of the color, such as a progress bar 704 (i.e., a sub-control) carrying a pull rod. The circular color wheel and the progress bar are used together as parameter adjustment controls for adjusting the color of the target virtual light source. The hue value in the color of the target virtual light source is adjusted by the circular color wheel, and the saturation and brightness in the color of the target virtual light source are adjusted by the progress bar. Finally, the adjusted hue value, saturation, and brightness are mixed to obtain the adjusted color.

[0096] In some embodiments, when the terminal displays a circular color wheel carrying a joystick, the color value of the color indicated by the position of the joystick in the circular color wheel is displayed in the central area of ​​the circular color wheel; the color value is updated synchronously with the change of the position of the joystick in the circular color wheel.

[0097] Still see Figure 6 The center area of ​​the circular color wheel 603 displays the color value (i.e., hue value, such as 197) of the color indicated at the position of the circular color wheel. As the position of the joystick in the circular color wheel changes, the color value (i.e., hue value, such as updating the hue value from 197 to 208) is updated synchronously.

[0098] In some embodiments, the terminal can display the parameter adjustment control corresponding to the target virtual light source in the following manner: when the parameter adjustment control is used to adjust the color of the target virtual light source, multiple color options are displayed for selection, and the multiple color options are used as the parameter adjustment control; accordingly, the terminal can receive the light source adjustment operation triggered by the parameter adjustment control in the following manner: in response to the selection operation for the target option, the light source adjustment operation is received; wherein the light source adjustment operation indicates that the color of the target virtual light source is adjusted to the color corresponding to the target option.

[0099] See also Figure 7 , Figure 7 It is a schematic diagram of adjusting the light source parameters provided in an embodiment of the present application. In response to the opening operation of the switch control corresponding to the target virtual light source 701, the terminal displays color options for adjusting the color of the target virtual light source 701 in the light source adjustment area, such as red, orange, yellow, green, etc., and uses the color option as a parameter adjustment control to change the color value of the target virtual light source by selecting the color option.

[0100] It should be noted that Figure 7 The color value corresponding to the color option shown refers to the hue value in the color. The color option may also be associated with a sub-control for adjusting the saturation and brightness of the color, such as a progress bar (i.e., a sub-control) carrying a pull rod. The color option and the progress bar are used together as parameter adjustment controls for adjusting the color of the target virtual light source. For example, the hue in the color of the target virtual light source is adjusted by selecting a color option (e.g., if the red option is selected, the hue in the color of the target virtual light source is adjusted to red), and the saturation and brightness in the color of the target virtual light source are adjusted through the progress bar. Finally, the adjusted hue value, saturation, and brightness are mixed to obtain the adjusted color.

[0101] In some embodiments, the terminal can display the parameter adjustment control corresponding to the target virtual light source in the following manner: display a progress bar carrying a pull rod, and use the progress bar as a parameter adjustment control; wherein the progress bar corresponds to the light source parameters of the target virtual light source, wherein the light source parameters include at least one of the following: color, effective radius, and position; accordingly, the terminal can receive a light source adjustment operation triggered by the parameter adjustment control in the following manner: in response to a dragging operation on the pull rod in the target progress bar, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the parameter value of the light source parameter corresponding to the target progress bar is adjusted to the parameter value indicated by the pull rod in the target progress bar.

[0102] See also Figure 8 , Figure 8 It is a schematic diagram of the adjustment of light source parameters provided in an embodiment of the present application. In response to the opening operation of the switch control corresponding to the target virtual light source, the terminal displays a progress bar corresponding to each light source parameter in the light source adjustment area, such as a progress bar corresponding to the effective radius. Since color includes hue, saturation and brightness, progress bars corresponding to hue, saturation and brightness are displayed respectively. Position includes distance, angle, and rise (i.e., vertical height), so progress bars corresponding to distance, angle, and rise are displayed respectively, so as to adjust the corresponding light source parameters through their respective progress bars.

[0103] In some embodiments, the terminal can display the parameter adjustment control corresponding to the target virtual light source in the following manner: display an edit box for inputting parameter values, and use the edit box as a parameter adjustment control; wherein the edit box corresponds to the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; accordingly, the terminal can receive a light source adjustment operation triggered by the parameter adjustment control in the following manner: in response to an input operation to the target edit box, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the parameter value of the light source parameter corresponding to the target edit box is adjusted to the parameter value entered by the input operation.

[0104] Here, in actual application, the terminal responds to the opening operation of the switch control corresponding to the target virtual light source 801, and displays edit boxes corresponding to each light source parameter in the light source adjustment area, such as the edit box corresponding to the effective radius. Since color includes hue, saturation and brightness, edit boxes corresponding to hue, saturation and brightness are displayed respectively. Position includes distance, angle, and rise (i.e., vertical height), so edit boxes corresponding to distance, angle, and rise are displayed respectively, so that the parameter values ​​of the corresponding light source parameters can be directly edited through their respective edit boxes, so as to achieve the purpose of adjusting the light source parameters of the target virtual light source.

[0105] In some embodiments, the light source mark corresponding to the target virtual light source may be a parameter adjustment control for adjusting the position of the target virtual light source. The terminal may display the parameter adjustment control corresponding to the target virtual light source in the following manner: when the parameter adjustment control is used to adjust the position of the target virtual light source, the light source mark corresponding to the target virtual light source is displayed at the first position of the shooting preview interface, and the light source mark is used as the parameter adjustment control. The light source mark here may be a light source icon, for example Fig. 9 The light bulb icon shown; wherein the first position is determined according to the position parameters of the target virtual light source configured in the target lighting template; accordingly, the terminal can receive the light source adjustment operation triggered by the parameter adjustment control in the following manner: in response to the drag operation on the light source mark, the light source adjustment operation is received; wherein the light source adjustment operation indicates adjusting the first position of the target virtual light source in the shooting preview interface to the second position indicated by the drag operation.

[0106] See also Fig. 9 , Fig. 9 : is a schematic diagram of adjusting light source parameters provided in an embodiment of the present application. In response to the opening operation of the switch control corresponding to the target virtual light source, the terminal obtains the position parameter in the light source parameter corresponding to the target virtual light source configured in the target lighting template (i.e., the relative position relationship between the target virtual light source and the virtual character), and determines the first position of the target virtual light source in the shooting preview interface according to the position parameter. Assuming that the position parameter indicates that the target virtual light source is located 45 degrees and 3 meters behind the left of the virtual character, the light source icon of the target virtual light source is displayed 45 degrees and 3 meters behind the left of the virtual character in the shooting preview interface (i.e., the first position), and the target virtual light source is used as a parameter adjustment control for adjusting the position parameter. In this case, the light source icon of the target virtual light source is changed by dragging its display position in the shooting preview interface to achieve the purpose of adjusting the position parameter of the target virtual light source. For example, if the light source icon is dragged to 45 degrees and 3 meters behind the right of the virtual character, the light source adjustment operation indicates that the first position of the target virtual light source in the shooting preview interface (i.e., 45 degrees and 3 meters behind the left of the virtual character) is adjusted to the second position (i.e., 45 degrees and 3 meters behind the right of the virtual character).

[0107] In some embodiments, the terminal may display the light source mark corresponding to the target virtual light source in the following manner: using the target color to display the light source mark corresponding to the target virtual light source; wherein the target color is the color of the target virtual light source configured in the target lighting template.

[0108] Here, the terminal responds to the opening operation of the switch control corresponding to the target virtual light source, and displays the light source mark of the target virtual light source in the shooting preview interface. The display color can adopt the color of the target virtual light source configured in the target lighting template. For example, if the color of the target virtual light source configured in the target lighting template is red, the light source mark of the target virtual light source is displayed in red (i.e., a red light source mark). It should be noted that when the color of the target virtual light source is adjusted, the light source mark of the target virtual light source displayed in the shooting preview interface can be updated in real time, so that the color of the light source mark of the target virtual light source displayed in the shooting preview interface is always consistent with the color of the target virtual light source.

[0109] In some embodiments, the terminal may display at least one virtual light source corresponding to the target lighting template in the following manner: in the light source adjustment area, at least one virtual light source corresponding to the target lighting template is displayed using a first color, wherein the at least one virtual light source includes a target virtual light source; accordingly, in response to an opening operation of a switch control corresponding to the target virtual light source, the target virtual light source is displayed using a second color, wherein the second color is the color of the target virtual light source configured in the target lighting template; when the light source adjustment operation indicates that the color of the target virtual light source is adjusted to a third color, the target virtual light source is displayed using the third color.

[0110] Here, when the target virtual light source has not been turned on (i.e., the switch control corresponding to the target virtual light source has not been turned on), in the light source adjustment area, the first color (grayscale display, such as black or white) is used to display each virtual light source corresponding to the target lighting template (i.e., the light source mark of the virtual light source). For example, when the target lighting template corresponds to virtual light source 1, virtual light source 2 and virtual light source 3 (the target virtual light source is one of the virtual light sources), virtual light source 1, virtual light source 2 and virtual light source 3 are displayed in grayscale. When the user turns on the target virtual light source (i.e., turns on the switch control corresponding to the target virtual light source), in the light source adjustment area, the second color (the color of the target virtual light source configured in the target lighting template) is used to display the target virtual light source. For example, when the color of the target virtual light source configured in the target lighting template is red, the target virtual light source is displayed in red. After the color of the target virtual light source is adjusted, the target virtual light source is displayed in the adjusted color. For example, if the color of the target virtual light source is adjusted to green, the target virtual light source is displayed in red.

[0111] In some embodiments, after the terminal displays the lighting effect corresponding to the virtual image, when the virtual character moves in the shooting preview interface, the shooting parameters of the virtual character in the lighting effect are updated; wherein the shooting parameters include at least one of the following: the position of the virtual character in the lighting effect, the background in the lighting effect.

[0112] Here, after the user selects the target lighting template, if the virtual image moves in the virtual scene and causes the content displayed in the shooting preview interface to change, the terminal can use the target lighting template in real time to perform lighting processing on the moving virtual image (that is, the content displayed on the shooting preview interface in real time) to achieve real-time updating of the shooting parameters of the virtual character in the lighting effect, such as the position of the virtual character in the lighting effect, the background content in the lighting effect, etc.

[0113] In some embodiments, during the movement of the virtual character, the movement mode of the virtual light source configured in the target lighting template is obtained; when the movement mode is the follow character mode, the virtual light source is controlled to move synchronously with the virtual character so that the lighting effect of the lighting effect remains unchanged; when the movement mode is the non-follow character mode, the position of the virtual light source is controlled to remain unchanged, and the lighting effect of the lighting effect is adjusted so that the adjusted lighting effect is adapted to the relative position between the virtual light source and the virtual character.

[0114] In practical applications, for the situation where a virtual character moves in a virtual scene, the lighting effect can be regarded as a plurality of video frames corresponding to the video captured containing the virtual character. When the virtual character moves, whether the lighting effect of the corresponding video frame changes during the movement depends on the movement mode of the virtual light source configured in the target lighting template. When the movement mode of the virtual light source configured in the target lighting template is the follow-character mode, since the follow-character mode means that the position of the virtual light source always takes the current position of the virtual character as the starting point, when the virtual character moves, the virtual light source moves synchronously. Therefore, in this case, during the movement of the virtual character, the virtual light source is controlled to move synchronously with the virtual character so that the lighting effect of the lighting effect remains unchanged; the non-follow-character mode means that the birth point and direction of the virtual light source are always taken as the starting point (that is, the starting relative position between the configured virtual light source and the virtual character). In this case, during the movement of the virtual character, the position of the virtual light source is controlled to remain unchanged, and the lighting effect of the lighting effect is adjusted so that the adjusted lighting effect corresponds to the relative position between the virtual light source and the virtual character. If the relative position between the virtual light source and the virtual character gradually becomes farther, the lighting effect of the corresponding video frame (that is, multiple lighting effects) during the movement gradually becomes weaker.

[0115] In some embodiments, after displaying the target image corresponding to the virtual image, the terminal saves the target image to an album corresponding to the virtual scene in response to a save operation on the target image; wherein the target image saved in the album is used to obtain virtual rewards or unlock virtual skills.

[0116] Here, the user can save the target image of the save operation to the album corresponding to the virtual scene. For example, when the user clicks the shooting control, the terminal responds to the click operation, performs the shooting operation to obtain the target image, and saves the shot target image to the album corresponding to the virtual scene to obtain virtual rewards or unlock virtual skills, such as accumulating interaction experience points or unlocking certain virtual props or virtual monsters, etc., to obtain more powerful virtual skills.

[0117] By applying the embodiments of the present application, during the process of photographing a virtual image, the virtual image is first illuminated by using a target lighting template to obtain a lighting effect, and then a light source adjustment operation is further performed on the virtual light source in the target lighting template, and the lighting effect is rendered using the light source parameters adjusted as indicated by the light source adjustment operation to obtain a target image of the virtual image. That is, during the process of photographing a virtual image, the user can freely adjust the light source parameters of the virtual light source in the lighting template in an intuitive and convenient manner based on the preset lighting template according to the shooting requirements, thereby realizing a free adjustment of the lighting effect, improving the adjustment freedom of the lighting effect, and meeting the complex lighting effect requirements.

[0118] Next, an exemplary application of the embodiment of the present application in an actual application scenario will be described. Taking a virtual scene as a game as an example, the method for photographing a virtual image provided by the embodiment of the present application will be further described.

[0119] See also Fig.10 , Fig.10 It is a configuration diagram of the lighting template provided in the embodiment of the present application. The user can pre-configure multiple lighting templates with different lighting effects, such as soft, front light, and backlight. Each lighting template can correspond to at least one virtual light source (different virtual light sources correspond to different light source parameters). Taking the configuration of the target lighting template and the target lighting template corresponding to 3 virtual light sources as an example, when configuring each virtual light source corresponding to the target lighting template, it is necessary to set the light source parameters of each virtual light source, wherein the light source parameters include at least one of the following: color, effective radius, and position.

[0120] In practical applications, the color parameter of the light source can be decomposed according to the color model of the virtual light source (such as the HSV color model) to obtain hue (H), saturation (S) and brightness (V). Among them, hue (H) is the basic attribute of color, which is the color name we usually call, such as red, yellow, etc. When the color information is represented by a circular color disk, the value of hue can be measured by angle, and the angle range is 0 to 360°; saturation (S) refers to the purity of the color, taking a value of 0 to 100%, the higher the value, the purer the color, and the lower the value, the grayer it gradually becomes; brightness (V) refers to the brightness of the color, taking a value of 0 to 100%, where 0 means off and 100% means the brightest. The radius of action refers to the influence range of the virtual light source, and the value unit is the number of meters of the scene in the game.

[0121] See also Fig.11 , Fig.11 It is a schematic diagram of position parameters provided in an embodiment of the present application, where position refers to the positional relationship of a virtual light source relative to a virtual character, including at least one of the following: angle, distance, elevation, and movement mode; the following takes the virtual character as an example for parameter configuration of relative position, where angle is the direction of the virtual light source relative to the virtual character, and is the orientation relative to the starting point, with an angle range of 0 to 360°; distance refers to the distance between the virtual light source and the virtual character; elevation (i.e., the vertical height mentioned above) refers to the vertical height of the virtual light source relative to the virtual character; movement modes include a follow-the-character mode and a non-follow-the-character mode, where the so-called follow-the-character mode means that the position of the virtual light source always takes the current position of the virtual character as the starting point, and when the virtual character moves, the virtual light source moves synchronously; the non-follow-the-character mode always takes the birth point and orientation of the virtual light source as the starting point (i.e., the starting relative position between the configured virtual light source and the virtual character), and when the virtual character moves, the virtual light source does not move.

[0122] See also Fig.12 , Fig.12 This is a schematic diagram of light source parameter configuration provided in an embodiment of the present application, wherein the hue value in the color of the virtual light source is configured by dragging the joystick of the circular color wheel, the saturation in the color of the virtual light source is configured by dragging the pull rod in the saturation progress bar, the saturation in the color of the virtual light source is configured by dragging the pull rod in the brightness progress bar, the range of action of the virtual light source is configured by dragging the pull rod in the radius progress bar, the distance in the position parameter of the virtual light source is configured by dragging the pull rod in the distance progress bar, the angle in the position parameter of the virtual light source is configured by dragging the pull rod in the angle progress bar, the elevation in the position parameter of the virtual light source is configured by dragging the pull rod in the elevation progress bar, and the movement mode of the virtual light source is configured to follow the character mode by checking the "Light source follows the protagonist" control (if the "Light source follows the protagonist" control is not checked, the movement mode of the virtual light source is configured to not follow the character mode).

[0123] See also Fig.13 , Fig.13 This is a schematic diagram of the light source parameter configuration provided in an embodiment of the present application. When configuring the hue value in the color of the virtual light source, the hue value in the color of the virtual light source can be configured through the joystick of the circular color wheel, or the color value of the virtual light source can be changed by selecting a color option. The two methods can be switched.

[0124] After the light source parameters of each virtual light source corresponding to the target lighting template are configured in the above manner, see Fig.14 , Fig.14This is a configuration diagram of the lighting template provided in an embodiment of the present application. Taking the lighting template corresponding to three virtual light sources as an example, after configuring the light source parameters of each virtual light source, the light source parameters of each virtual light source and the light source identifier of each virtual light source are combined with the template identifier, template name and template icon of the lighting template to generate a lighting template.

[0125] Through the above method, users can pre-configure multiple lighting templates according to actual needs for use when shooting. When shooting a virtual image in the game, the terminal displays the virtual image to be shot and at least one lighting template in the shooting preview interface of the game. When the user selects a target lighting template, the terminal responds to the selection operation, obtains the light source parameters of the virtual light source corresponding to the target lighting template, and performs lighting processing (i.e., rendering processing) on ​​the virtual image in the shooting preview interface according to the light source parameters of the virtual light source corresponding to the target lighting template, and obtains the lighting effect corresponding to the virtual image. The lighting effect presented by the lighting effect here is the lighting effect corresponding to the target lighting template.

[0126] In actual applications, users can adjust the light source parameters of the virtual light source corresponding to the target lighting template. The following is an explanation of the adjustment process of the light source parameters of the virtual light source in the target lighting template. Fig.12 The configuration process of the light source parameters shown in the figure, such as adjusting the hue value of the color of the virtual light source by dragging the joystick of the circular color wheel (in addition, you can also adjust the hue value of the color of the virtual light source by selecting Figure 7 The color options shown, such as red, orange, yellow, green, etc., are used to change the color value of the virtual light source), the saturation of the color of the virtual light source is adjusted by dragging the pull rod in the saturation progress bar, the saturation of the color of the virtual light source is adjusted by dragging the pull rod in the brightness progress bar, the range of action of the virtual light source is adjusted by dragging the pull rod in the radius progress bar, and based on the current coordinate point and orientation of the virtual character, the position parameters of the virtual light source are adjusted by dragging the pull rod in the position-related progress bar, such as adjusting the distance in the position parameters of the virtual light source by dragging the pull rod in the distance progress bar, adjusting the angle in the position parameters of the virtual light source by dragging the pull rod in the angle progress bar, and adjusting the elevation in the position parameters of the virtual light source by dragging the pull rod in the elevation progress bar, and setting the movement mode of the virtual light source to follow the character mode by checking the "Light source follows the protagonist" control (if the "Light source follows the protagonist" control is not checked, the movement mode of the virtual light source is set to not follow the character mode).

[0127] In addition, when adjusting the position parameters of the virtual light source, you can also change the display position of the virtual light source in the shooting preview interface by dragging the light source mark of the virtual light source displayed in the shooting preview interface to achieve the purpose of adjusting the position parameters of the virtual light source. For example, before dragging, the virtual light source is located 45 degrees and 3 meters behind the left of the virtual character. If the light source mark is dragged to 45 degrees and 3 meters behind the right of the virtual character, the position parameters of the virtual light source can be adjusted from 45 degrees and 3 meters behind the left of the virtual character to 45 degrees and 3 meters behind the right of the virtual character.

[0128] After adjusting the light source parameters of the target lighting template, the adjusted light source parameters can be used to further render the lighting effect to obtain a target image corresponding to the virtual image. Here, the lighting effect presented by the target image is the lighting effect after the light source parameters of the target lighting template are adjusted. In this way, the target lighting template is first used to illuminate the virtual image to obtain the lighting effect, and then the light source parameters corresponding to the target lighting template are freely adjusted according to shooting requirements, thereby realizing the free adjustment of the lighting effect, improving the convenience and freedom of adjustment of the lighting effect, and meeting the complex lighting effect requirements.

[0129] So far, the method for photographing a virtual image provided by the embodiment of the present application has been described in combination with the exemplary application and implementation of the electronic device provided by the embodiment of the present application. The following will continue to describe the cooperation of various modules in the virtual image photographing device 555 provided by the embodiment of the present application to implement the virtual image photographing solution.

[0130] The first display module 5551 is used to display the virtual image to be photographed and at least one lighting template in the shooting preview interface of the virtual scene, wherein different lighting templates correspond to different lighting effects, and the lighting template corresponds to at least one virtual light source; the second display module 5552 is used to display the lighting effect corresponding to the virtual image in response to the selection operation of the target lighting template, wherein the lighting effect is obtained by lighting the virtual image based on the target lighting template; the third display module 5553 is used to display the target image corresponding to the virtual image in response to the light source adjustment operation of the virtual light source in the target lighting template, wherein the target image is rendered based on the lighting effect based on the light source parameters adjusted as indicated by the light source adjustment operation.

[0131] In some embodiments, before displaying the target image corresponding to the virtual image, the device also includes: an adjustment operation receiving module, which is used to display at least one virtual light source corresponding to the target lighting template and a switch control corresponding to the virtual light source in a light source adjustment area; in response to an opening operation of the switch control corresponding to the target virtual light source, displaying a parameter adjustment control corresponding to the target virtual light source; receiving a light source adjustment operation triggered by the parameter adjustment control, the light source adjustment operation instructing to adjust the light source parameters of the target virtual light source.

[0132] In some embodiments, the adjustment operation receiving module is also used to display a circular color wheel carrying a joystick and use the circular color wheel as the parameter adjustment control when the parameter adjustment control is used to adjust the color of the target virtual light source, wherein different positions in the circular color wheel indicate different colors; in response to a dragging operation on the joystick, a light source adjustment operation is received; wherein the light source adjustment operation indicates adjusting the color of the target virtual light source to the color indicated by the position of the joystick in the circular color wheel.

[0133] In some embodiments, the device also includes: a color display module, which is used to display the color value of the color indicated by the position of the joystick at the circular color wheel in the central area of ​​the circular color wheel during the process of displaying the circular color wheel carrying the joystick; and synchronously update the color value as the position of the joystick in the circular color wheel changes.

[0134] In some embodiments, the adjustment operation receiving module is also used to display multiple color options for selection when the parameter adjustment control is used to adjust the color of the target virtual light source, and use the multiple color options as the parameter adjustment control; in response to the selection operation for the target option, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the color of the target virtual light source is adjusted to the color corresponding to the target option.

[0135] In some embodiments, the adjustment operation receiving module is also used to display an edit box for inputting parameter values, and use the edit box as a parameter adjustment control; wherein the edit box corresponds to the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; in response to an input operation to the target edit box, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the parameter value of the light source parameter corresponding to the target edit box is adjusted to the parameter value input by the input operation.

[0136] In some embodiments, the adjustment operation receiving module is also used to display a progress bar carrying a pull rod, and use the progress bar as a parameter adjustment control; wherein the progress bar corresponds to the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; in response to the dragging operation of the pull rod in the target progress bar, a light source adjustment operation is received; wherein the light source adjustment operation indicates that the parameter value of the light source parameter corresponding to the target progress bar is adjusted to the parameter value indicated by the pull rod in the target progress bar.

[0137] In some embodiments, the adjustment operation receiving module is also used to display a light source mark corresponding to the target virtual light source at a first position of the shooting preview interface when the parameter adjustment control is used to adjust the position of the target virtual light source, and use the light source mark as the parameter adjustment control; wherein, the first position is determined according to the position parameters of the target virtual light source configured in the target lighting template; in response to a drag operation on the light source mark, a light source adjustment operation is received; wherein, the light source adjustment operation indicates that the first position of the target virtual light source in the shooting preview interface is adjusted to a second position indicated by the drag operation.

[0138] In some embodiments, the adjustment operation receiving module is further used to display the light source mark corresponding to the target virtual light source using a target color; wherein the target color is the color of the target virtual light source configured in the target lighting template.

[0139] In some embodiments, the adjustment operation receiving module is also used to display at least one virtual light source corresponding to the target lighting template in the light source adjustment area using a first color, and the at least one virtual light source includes a target virtual light source; the device also includes: an update display module, used to display the target virtual light source using a second color in response to an opening operation of a switch control corresponding to the target virtual light source, wherein the second color is the color of the target virtual light source configured in the target lighting template; when the light source adjustment operation indicates that the color of the target virtual light source is adjusted to a third color, the target virtual light source is displayed using the third color.

[0140] In some embodiments, before displaying the lighting effect corresponding to the virtual image, the device also includes: a lighting module, used to obtain light source parameters of the virtual light source corresponding to the target lighting template; based on the light source parameters, lighting processing is performed on the virtual image to obtain the lighting effect corresponding to the virtual image.

[0141] In some embodiments, after displaying the lighting effect corresponding to the virtual image, the device also includes: a shooting update module, used to update the shooting parameters of the virtual character in the lighting effect when the virtual character moves in the shooting preview interface; wherein the shooting parameters include at least one of the following: the position of the virtual character in the lighting effect, the background in the lighting effect.

[0142] In some embodiments, the device also includes: a movement control module, which is used to obtain the movement mode of the virtual light source configured in the target lighting template during the movement of the virtual character; when the movement mode is a follow-character mode, the virtual light source is controlled to move synchronously with the virtual character so that the lighting effect of the lighting effect remains unchanged; when the movement mode is a non-follow-character mode, the position of the virtual light source is controlled to remain unchanged, and the lighting effect of the lighting effect is adjusted so that the adjusted lighting effect is adapted to the relative position between the virtual light source and the virtual character.

[0143] In some embodiments, before displaying the captured virtual image and at least one lighting template, the device also includes: a template configuration module, used to display a template configuration interface and display a light source adding control in the template configuration interface; in response to a light source adding operation triggered based on the light source adding control, displaying a target number of added virtual light sources; in response to a light source parameter configuration operation, displaying the light source parameters configured for each of the virtual light sources; in response to a template generation operation, generating a lighting template including the target number of virtual light sources based on the light source parameters configured for each of the virtual light sources.

[0144] In some embodiments, before displaying the light source parameters configured for each of the virtual light sources, the device also includes: a parameter configuration operation receiving module, used to perform the following operations for each of the virtual light sources: displaying a first configuration control for configuring the light source parameters of the virtual light source; wherein the first configuration control is in a corresponding relationship with the light source parameters, and the light source parameters include at least one of the following: color, effective radius, position, and moving mode; receiving a light source parameter configuration operation triggered by the first configuration control corresponding to the target light source parameters, and the light source parameter configuration operation indicates to configure the target light source parameters.

[0145] In some embodiments, the template configuration module is also used to perform the following operations for each of the virtual light sources: displaying a second configuration control for configuring the light source parameters of the virtual light source; displaying a parameter configuration interface in response to a trigger operation on the second configuration control, and displaying a configuration area corresponding to each of the light source parameters in the parameter configuration interface; and displaying the corresponding light source parameters in each of the configuration areas in response to a light source parameter configuration operation triggered based on each of the configuration areas.

[0146] In some embodiments, after displaying the target image corresponding to the virtual image, the device also includes: an image saving module, used to save the target image to an album corresponding to the virtual scene in response to a save operation on the target image; wherein the target image saved in the album is used to obtain virtual rewards or unlock virtual skills.

[0147] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the virtual image shooting method described in the embodiment of the present application.

[0148] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute the method for photographing a virtual image provided by the present application embodiment, for example, Figure 3 A method for photographing a virtual image is shown.

[0149] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0150] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0151] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0152] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0153] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for photographing a virtual image, characterized in that: The method comprises: In the shooting preview interface of the virtual scene, the virtual image to be shot and at least one lighting template are displayed, wherein different lighting templates correspond to different lighting effects, and the lighting template corresponds to at least one virtual light source; In response to a selection operation on a target lighting template, displaying a lighting effect corresponding to the virtual image, wherein the lighting effect is obtained by lighting the virtual image based on the target lighting template; In response to a light source adjustment operation for a virtual light source in the target lighting template, a target image corresponding to the virtual image is displayed, wherein the target image is obtained by rendering the lighting effect based on the light source parameters adjusted as indicated by the light source adjustment operation.

2. The method according to claim 1, characterized in that Before displaying the target image corresponding to the virtual image, the method further includes: Displaying at least one virtual light source corresponding to the target lighting template and a switch control corresponding to the virtual light source in the light source adjustment area; In response to an on-operation of a switch control corresponding to a target virtual light source, displaying a parameter adjustment control corresponding to the target virtual light source; A light source adjustment operation triggered based on the parameter adjustment control is received, wherein the light source adjustment operation indicates adjusting the light source parameters of the target virtual light source.

3. The method according to claim 2, characterized in that The displaying of the parameter adjustment control corresponding to the target virtual light source includes: When the parameter adjustment control is used to adjust the color of the target virtual light source, a circular color wheel carrying a joystick is displayed, and the circular color wheel is used as the parameter adjustment control, wherein different positions in the circular color wheel indicate different colors; The receiving of the light source adjustment operation triggered by the parameter adjustment control includes: In response to a drag operation on the joystick, a light source adjustment operation is received; The light source adjustment operation indicates adjusting the color of the target virtual light source to the color indicated by the position of the joystick in the circular color wheel.

4. The method according to claim 3, characterized in that The method further comprises: In the process of displaying the circular color disk carrying the joystick, in the central area of ​​the circular color disk, the color value of the color indicated by the joystick at the position of the circular color disk is displayed; The color value is updated synchronously with the change of the position of the joystick in the circular color disk.

5. The method according to claim 2, characterized in that The displaying of the parameter adjustment control corresponding to the target virtual light source includes: When the parameter adjustment control is used to adjust the color of the target virtual light source, a plurality of color options are displayed for selection, and the plurality of color options are used as the parameter adjustment control; The receiving of the light source adjustment operation triggered by the parameter adjustment control includes: In response to a selection operation on a target option, a light source adjustment operation is received; The light source adjustment operation indicates adjusting the color of the target virtual light source to the color corresponding to the target option.

6. The method according to claim 2, characterized in that The displaying of the parameter adjustment control corresponding to the target virtual light source includes: Display an edit box for inputting parameter values, and use the edit box as a parameter adjustment control; The editing box is in a corresponding relationship with the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; The receiving of the light source adjustment operation triggered by the parameter adjustment control includes: In response to an input operation to a target edit box, a light source adjustment operation is received; The light source adjustment operation indicates adjusting the parameter value of the light source parameter corresponding to the target edit box to the parameter value input by the input operation.

7. The method according to claim 2, characterized in that The displaying of the parameter adjustment control corresponding to the target virtual light source includes: Displaying a progress bar carrying a pull rod, and using the progress bar as a parameter adjustment control; The progress bar is in a corresponding relationship with the light source parameters of the target virtual light source, and the light source parameters include at least one of the following: color, effective radius, and position; The receiving of the light source adjustment operation triggered by the parameter adjustment control includes: In response to a drag operation on a pull bar in a target progress bar, a light source adjustment operation is received; The light source adjustment operation indicates adjusting the parameter value of the light source parameter corresponding to the target progress bar to the parameter value indicated by the pull rod in the target progress bar.

8. The method according to claim 2, characterized in that The displaying of the parameter adjustment control corresponding to the target virtual light source includes: When the parameter adjustment control is used to adjust the position of the target virtual light source, a light source mark corresponding to the target virtual light source is displayed at the first position of the shooting preview interface, and the light source mark is used as the parameter adjustment control; Wherein, the first position is determined according to the position parameter of the target virtual light source configured in the target lighting template; The receiving of the light source adjustment operation triggered by the parameter adjustment control includes: In response to a drag operation on the light source mark, a light source adjustment operation is received; The light source adjustment operation indicates adjusting the first position of the target virtual light source in the shooting preview interface to a second position indicated by the dragging operation.

9. The method according to claim 8, characterized in that The displaying of the light source mark corresponding to the target virtual light source includes: Displaying a light source mark corresponding to the target virtual light source in a target color; The target color is the color of the target virtual light source configured in the target lighting template.

10. The method according to claim 2, characterized in that The displaying of at least one virtual light source corresponding to the target lighting template includes: In the light source adjustment area, at least one virtual light source corresponding to the target lighting template is displayed in a first color, wherein the at least one virtual light source includes a target virtual light source; The method further comprises: In response to an on operation of a switch control corresponding to a target virtual light source, the target virtual light source is displayed in a second color, wherein the second color is the color of the target virtual light source configured in the target lighting template; When the light source adjustment operation indicates that the color of the target virtual light source is adjusted to a third color, the target virtual light source is displayed using the third color.

11. The method according to claim 1, characterized in that After displaying the lighting effect corresponding to the virtual image, the method further includes: When the virtual character moves in the shooting preview interface, updating the shooting parameters of the virtual character in the lighting effect; The shooting parameters include at least one of the following: the position of the virtual character in the lighting effect, and the background in the lighting effect.

12. The method according to claim 11, characterized in that The method further comprises: During the movement of the virtual character, obtaining the movement mode of the virtual light source configured in the target lighting template; When the movement mode is a follow-the-character mode, controlling the virtual light source to move synchronously with the virtual character so that the lighting effect of the lighting effect remains unchanged; When the movement mode is a non-following character mode, the position of the virtual light source is controlled to remain unchanged, and the lighting effect of the illumination effect is adjusted so that the adjusted lighting effect is adapted to the relative position between the virtual light source and the virtual character.

13. The method according to claim 1, characterized in that Before displaying the photographed virtual image and at least one lighting template, the method further includes: Displaying a template configuration interface, and displaying a light source adding control in the template configuration interface; In response to a light source adding operation triggered by the light source adding control, displaying a target number of added virtual light sources; In response to the light source parameter configuration operation, displaying the light source parameters configured for each of the virtual light sources, the light source parameters including at least one of the following: color, effective radius, position, and movement mode; In response to the template generation operation, a lighting template including the target number of virtual light sources is generated based on the light source parameters configured for each of the virtual light sources.

14. The method according to claim 13, characterized in that Before displaying the light source parameters configured for each of the virtual light sources, the method further includes: The following operations are performed for each virtual light source: displaying a first configuration control for configuring light source parameters of the virtual light source, wherein the first configuration control corresponds to the light source parameters, A light source parameter configuration operation triggered by a first configuration control corresponding to a target light source parameter is received, wherein the light source parameter configuration operation indicates configuration of the target light source parameter.

15. The method according to claim 13, characterized in that The step of displaying the light source parameters configured for each of the virtual light sources in response to the light source parameter configuration operation includes: The following operations are performed for each virtual light source: Displaying a second configuration control for configuring light source parameters of the virtual light source; In response to a trigger operation on the second configuration control, a parameter configuration interface is displayed, and a configuration area corresponding to each of the light source parameters is displayed in the parameter configuration interface; In response to the light source parameter configuration operation triggered based on each of the configuration areas, the corresponding light source parameters are displayed in each of the configuration areas.

16. The method according to claim 1, wherein: After displaying the target image corresponding to the virtual image, the method further includes: In response to a save operation on the target image, saving the target image to an album corresponding to the virtual scene; The target image stored in the album is used to obtain virtual rewards or unlock virtual skills.

17. A virtual image shooting device, characterized in that: The device comprises: A first display module, used for displaying the virtual image to be photographed and at least one lighting template in the shooting preview interface of the virtual scene, wherein different lighting templates correspond to different lighting effects, and the lighting template corresponds to at least one virtual light source; A second display module, configured to display a lighting effect corresponding to the virtual image in response to a selection operation on a target lighting template, wherein the lighting effect is obtained by lighting the virtual image based on the target lighting template; A third display module is used to display a target image corresponding to the virtual image in response to a light source adjustment operation on the virtual light source in the target lighting template, wherein the target image is obtained by rendering the lighting effect based on the light source parameters adjusted as indicated by the light source adjustment operation.

18. An electronic device, characterized in that: include: A memory for storing computer executable instructions or computer programs; A processor is used to implement the method for photographing a virtual image as described in any one of claims 1 to 16 when executing the computer executable instructions or computer programs stored in the memory.

19. A computer-readable storage medium, characterized in that: Computer executable instructions or computer programs are stored, and when the computer executable instructions or computer programs are executed by a processor, the method for photographing a virtual image as described in any one of claims 1 to 16 is implemented.

20. A computer program product comprising a computer program or computer executable instructions, characterized in that When the computer program or computer executable instructions are executed by a processor, the method for photographing a virtual image as described in any one of claims 1 to 16 is implemented.