Lighting control method, device, mobile terminal and storage medium
Virtual light adjustment controls are provided through the interactive interface of the mobile terminal, which solves the problem of low light adjustment efficiency in virtual shooting, realizes flexible and convenient light control, reduces the communication needs of professionals, and improves operational efficiency.
Patent Information
- Application Number
- CN202311387260.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-10-23
AI Technical Summary
In virtual shooting, the adjustment efficiency of virtual lighting is low, and it lacks flexibility and convenience. This causes lighting engineers to need to communicate frequently with professionals, which increases costs and operational complexity.
Provide a lighting control method that displays adjustment controls through an interactive interface on a mobile terminal, allowing lighting engineers to directly adjust virtual lighting parameters, including group adjustment and posture adaptation, reducing the need for communication with professionals.
It improves the flexibility and convenience of lighting control, reduces communication costs, improves adjustment efficiency, and enables lighting engineers to independently and flexibly adjust the light and shadow effects of virtual scenes.
Smart Images

Figure CN117424970B
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of virtual photography technology, and more particularly, to a lighting control method, device, mobile terminal, and computer-readable storage medium for a virtual photography system. Background Art
[0002] In order to meet the shooting needs, traditional film and television production needs to spend a lot of time and manpower to select shooting locations, make props, and build shooting scenes. Virtual shooting (or virtual production) technology, by rendering visual effects on the LED screen instead of real scenery, reduces the dependence of film and television shooting on locations and scenery, and reduces the cost and production cycle of film and television shooting. Specifically, virtual shooting (or virtual production) technology refers to a series of computer-aided production and visual film production methods. At the shooting site of virtual production, there is at least one screen for displaying virtual scenes, and there are actual scenery props in front of the screen. The camera in virtual shooting will shoot the screen and the scenery in front of the screen at the same time, and obtain a video that combines the screen and the scenery in front of the screen.
[0003] In virtual shooting, the design of virtual lighting is particularly important, and it is a key component of visual effects assets. Virtual lighting usually needs to be developed by professionals with knowledge of graphics rendering using relevant rendering software, but most lighting technicians in film and television production who are responsible for the lighting effects of the shooting scene do not have knowledge of graphics rendering. When adjusting the virtual lighting, the lighting technician needs to communicate with the professionals responsible for the virtual lighting, and then the professionals operate on the computer to control the virtual lighting. This lighting control method has low control efficiency, is not flexible enough, and is not convenient enough. Summary of the invention
[0004] In view of this, one or more embodiments of the present specification provide a lighting control method, device, mobile terminal, and computer-readable storage medium for a virtual shooting system.
[0005] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions:
[0006] According to a first aspect of one or more embodiments of this specification, a lighting control method for a virtual shooting system is proposed, wherein the virtual shooting system includes at least one screen, and the method is applied to a mobile terminal, and the method includes:
[0007] In the interactive interface of the mobile terminal, an adjustment control for adjusting a first virtual light in the virtual scene displayed on the screen is displayed; the adjustment control is used to adjust at least one light parameter of the first virtual light;
[0008] In response to the adjustment control being triggered, the adjusted light parameters of the first virtual light are obtained, and the adjusted light parameters are used to enable the screen to display a virtual scene integrated with the adjusted first virtual light.
[0009] In one implementation, all first virtual lights in the virtual scene displayed on the screen can be divided into at least two groups;
[0010] The adjustment controls include first adjustment controls for each first virtual light and second adjustment controls for each group of first virtual lights;
[0011] Wherein, the first adjustment control is used to adjust the lighting parameters of a single first virtual light;
[0012] The second adjustment control is used to adjust a set of lighting parameters of the first virtual lights.
[0013] In one implementation, grouping all first virtual lights in the virtual scene displayed on the screen includes:
[0014] In response to a grouping instruction for first virtual lights in the virtual scene displayed on the screen, the selected at least one first virtual light is divided into a group.
[0015] In one implementation, grouping all first virtual lights in the virtual scene displayed on the screen includes:
[0016] The first virtual lights in the virtual scene displayed on the screen are grouped according to at least two display areas after the screen is divided; each group of first virtual lights corresponds to a display area on the screen, and is used to provide light and shadow effects for the virtual scene displayed in the display area.
[0017] In one implementation, grouping all first virtual lights in the virtual scene displayed on the screen includes:
[0018] The first virtual lights in the virtual scene displayed on the screen are grouped according to the virtual objects in the virtual scene displayed on the screen; each group of first virtual lights corresponds to a virtual object in the virtual scene and is used to provide light and shadow effects for the virtual object.
[0019] In one implementation, the mobile terminal pre-stores a first mapping relationship between different posture information of the camera and a lighting parameter of a first virtual light in the virtual scene, wherein the first mapping relationship is used to keep the light and shadow effects of different image frames obtained when the camera is photographed in different postures consistent;
[0020] The method further comprises:
[0021] In response to a change in the position and posture of the camera, target light parameters of the first virtual light in the virtual scene are obtained according to the changed position and posture information of the camera and the first mapping relationship; the target light parameters are used to enable the screen to display a virtual scene that is integrated with the first virtual light that is adapted to the changed position and posture of the camera.
[0022] In one implementation, the mobile terminal is further used to communicate with a physical light in a real scene where the virtual shooting system is located;
[0023] The method further comprises:
[0024] Acquire the position information and display properties of the physical light in the real scene where the virtual shooting system is located;
[0025] At least one second virtual light is created according to the position information of the screen and the position information and display properties of the physical light to simulate the light and shadow effects of the physical light in the virtual scene, and the lighting parameters of the second virtual light are determined. The lighting parameters of the second virtual light are used to enable the screen to display a virtual scene integrated with the second virtual light.
[0026] In one implementation, the lighting parameter includes at least one of posture information and display attributes;
[0027] The posture information includes at least one of the light source position and the light source angle, and the display attributes include at least one of the light source type, color, light intensity and brightness.
[0028] According to a second aspect of one or more embodiments of this specification, a lighting control device for a virtual shooting system is provided, wherein the virtual shooting system includes at least one screen, and the device is applied to a mobile terminal, and the device includes:
[0029] A control display module, used to display, in an interactive interface of the mobile terminal, an adjustment control for adjusting a first virtual light in a virtual scene displayed on the screen; the adjustment control is used to adjust at least one light parameter of the first virtual light;
[0030] The light adjustment module is used to obtain the adjusted light parameters of the first virtual light in response to the adjustment control being triggered, and the adjusted light parameters are used to make the screen display a virtual scene integrated with the adjusted first virtual light.
[0031] According to a third aspect of an embodiment of this specification, a mobile terminal is provided, including:
[0032] processor;
[0033] a memory for storing processor-executable instructions;
[0034] When the processor executes the executable instructions, it is used to implement the method described in the first aspect.
[0035] According to a fourth aspect of the embodiments of this specification, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any of the above methods are implemented.
[0036] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:
[0037] In the embodiments of the present specification, the lighting engineer can control the first virtual light through the adjustment control displayed in the interactive interface of the mobile terminal to flexibly adjust the display effect of the virtual scene on the screen. The operation is simple and convenient, and there is no need for the lighting engineer to communicate with the professional responsible for the virtual light and then the professional to operate the computer to control the virtual light. The adjustment flexibility is high, which reduces the communication cost between the lighting engineer and the professional responsible for the virtual light, and is conducive to improving the lighting control efficiency.
[0038] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1A It is a schematic diagram of a virtual shooting system and a mobile terminal provided by an exemplary embodiment.
[0040] Figure 1B is another schematic diagram of a virtual shooting system and a mobile terminal provided by an exemplary embodiment.
[0041] Figure 2 It is a schematic structural diagram of another virtual shooting system provided by an exemplary embodiment.
[0042] Figure 3 It is a flowchart of a lighting control method provided by an exemplary embodiment.
[0043] Figure 4 It is a schematic diagram of a first interactive interface for a first virtual light provided by an exemplary embodiment.
[0044] Figure 5 It is a schematic diagram of a second interactive interface for a first virtual light provided by an exemplary embodiment.
[0045] Figure 6 It is a schematic diagram of a third interactive interface regarding a first virtual light provided by an exemplary embodiment.
[0046] Figure 7 It is a schematic diagram of a fourth interactive interface regarding a first virtual light provided by an exemplary embodiment.
[0047] Figure 8 It is a schematic diagram of a screen and physical lights in a virtual shooting system provided by an exemplary embodiment.
[0048] Fig. 9 It is a schematic diagram of a first interactive interface for a physical light provided by an exemplary embodiment.
[0049] Fig.10 It is a schematic diagram of a second interactive interface for a physical light provided by an exemplary embodiment.
[0050] Fig.11 It is a schematic diagram of a third interactive interface for entity lights provided by an exemplary embodiment.
[0051] Fig.12 It is a structural schematic diagram of a mobile terminal provided by an exemplary embodiment.
[0052] Fig.13 It is a block diagram of a lighting control device provided by an exemplary embodiment. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0054] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0055] Figure 1A A schematic diagram showing an application scenario according to an embodiment of this specification is shown, such as Figure 1AAs shown, the virtual shooting system includes at least one screen 02, wherein the mobile terminal 00 can be communicatively connected with the screen 02, and the mobile terminal 00 can execute the lighting control method of the embodiment of this specification to adjust the first virtual light in the virtual scene displayed on the screen 02, so that the screen 02 can display the virtual scene integrated with the adjusted first virtual light.
[0056] For example, Figure 1B As shown, the virtual shooting system may include a rendering device 01 and at least one screen 02, a mobile terminal 00 may establish a communication connection with the rendering device 01, and a communication connection may be established between the rendering device 01 and the screen 02; wherein the mobile terminal 00 may execute the lighting control method of the embodiment of this specification, obtain the adjusted lighting parameters of the first virtual light, send the adjusted lighting parameters of the first virtual light to the rendering device 01, and the rendering device 01 may render the adjusted first virtual light according to the adjusted lighting parameters of the first virtual light, and control the screen 02 to display a virtual scene integrated with the adjusted first virtual light. wherein the rendering device 01 and the screen 02 may be integrated into one, or may be separately set.
[0057] In the above application scenario, the lighting engineer can hold the mobile terminal 00 in front of the screen 02, and control the first virtual light in real time through the mobile terminal 00 based on the display effect of the virtual scene displayed in real time on the screen 02, so as to flexibly adjust the display effect of the virtual scene on the screen. The operation is simple and convenient, and there is no need for the lighting engineer to communicate with the professional responsible for the virtual light and then the professional to operate the computer to control the virtual light. The adjustment flexibility is high, which reduces the communication cost between the lighting engineer and the professional responsible for the virtual light, and is conducive to improving the lighting control efficiency.
[0058] The screen 02 used in the virtual shooting system can be an LED screen, an LCD screen, etc., and can be a curved screen or a flat screen. It should be understood that those skilled in the art can customize the type, quantity, size, resolution, etc. of the screen 02 in the virtual shooting system according to actual needs, and this specification embodiment does not limit this. It should be understood that this specification embodiment does not limit the communication connection method between devices.
[0059] Optionally, when the screen 02 is an LED screen, the embodiment of this specification also provides Figure 2 A virtual shooting system is shown, such as Figure 2As shown, the virtual shooting system may include an LED screen 101, a server cluster 102 (including a main server 1021 and multiple servers 1022), an LED broadcast control processor 103, a camera 104, a posture tracker 105, a network switch 106, and a synchronization signal generator 107; the rendering device 01 of the embodiment of this specification may include a server cluster 102 and an LED broadcast control processor 103; wherein, the mobile terminal 00 may establish a communication connection with the main server 1021, so that the mobile terminal 00 may send relevant data (such as the adjusted lighting parameters of the first virtual light) to the main server 1021, and the main server 1021 may synchronize the relevant data (such as the adjusted lighting parameters of the first virtual light) to the other multiple servers 1022.
[0060] Among them, each server in the server cluster 102 can render the adjusted first virtual light according to the adjusted light parameters of the first virtual light, and send the rendering result to the corresponding LED broadcast control processor 103. Since the LED screen 101 is composed of multiple LED boxes, one server can correspond to one or more LED boxes, that is, one server can render the picture required to be displayed by the one or more LED boxes corresponding to it. The LED broadcast control processor 103 is a hardware device for controlling the LED screen 101. One LED broadcast control processor can correspond to one or more LED boxes, or one LED broadcast control processor can control one or more LED boxes corresponding to it to display the picture.
[0061] Among them, the posture tracker 105 is bound to the camera 104, and the posture tracker 105 can track the position and posture of the camera 104 in real time, and broadcast the tracked posture information to the on-site local area network through the network. The network switch 106 can build an on-site local area network to realize communication between various devices in the on-site local area network. For example, the network switch 106 can receive the posture information broadcast by the posture tracker 105, and send the posture information to the server cluster 102. The synchronization signal generator 107 can generate a synchronization signal pulse, and send the synchronization signal to the camera 104, the posture tracker 105, the server cluster 102 and the LED broadcast control processor 103, so that the camera 104, the posture tracker 105, the server cluster 102 and the LED broadcast control processor 103 are synchronized. Among them, the camera 104 will simultaneously shoot the screen and the real scene (that is, the scene in front of the screen), and obtain a video that integrates the screen and the scene in front of the screen.
[0062] The lighting control method for a virtual shooting system in the embodiments of this specification can be deployed on various mobile terminals through software or hardware modification. The mobile terminal involved in the embodiments of this specification may be a mobile terminal that can provide an interactive interface. For example, the mobile terminal may include but is not limited to handheld devices, tablet computers, PDAs, laptop computers, smart phones, wearable devices (for example, watches, glasses, gloves, headwear (for example, hats, helmets, virtual reality headsets, augmented reality headsets, head-mounted devices (HMD), headbands), pendants, armbands, leg rings, shoes, vests), etc. The mobile terminal involved in the embodiments of this specification may refer to a device with a wireless connection function and / or a wired connection function. The wireless connection function refers to the ability to connect to other devices through wireless connection methods such as wifi and Bluetooth. The mobile terminal involved in the embodiments of this specification may also be communicatively connected to other devices through a wired connection function. The mobile terminal involved in the embodiments of this specification may be a touch-screen or non-touch-screen mobile terminal. A touch-screen mobile terminal may be controlled by clicking or sliding on a display with a finger or a stylus, and a non-touch-screen mobile terminal may be connected to an input device such as a mouse, keyboard, or touch panel to control the mobile terminal through the input device, etc. This specification does not limit the embodiments of this specification.
[0063] See also Figure 3 , Figure 3 A flowchart of a lighting control method for a virtual shooting system is shown. The virtual shooting system includes at least one screen, and the method is applied to a mobile terminal, and the method includes:
[0064] In S101, an adjustment control for adjusting a first virtual light in a virtual scene displayed on the screen is displayed in an interactive interface of the mobile terminal; the adjustment control is used to adjust at least one light parameter of the first virtual light.
[0065] As described above, the lighting control method of the embodiment of the present specification can be deployed in a mobile terminal through software, for example, it can be deployed in a mobile terminal in the form of an application APP. When a user expects to adjust and control the first virtual light in the virtual scene displayed on the screen, the above application can be opened to enter an interactive interface for adjusting the first virtual light. The interactive interface can display adjustment controls for adjusting the first virtual light in the virtual scene displayed on the screen, so that the user can operate the adjustment controls in the interactive interface according to actual needs to adjust at least one lighting parameter of the first virtual light.
[0066] The lighting parameters include at least one of posture information and display attributes. The posture information includes at least one of the light source position and the light source angle. The display attributes include at least one of the light source type, color, light intensity, and brightness. The light source type includes but is not limited to point light source, parallel light source, spotlight, etc. Different light source types will produce different lighting effects.
[0067] In S102, in response to the adjustment control being triggered, the adjusted light parameters of the first virtual light are obtained, and the adjusted light parameters are used to enable the screen to display a virtual scene integrated with the adjusted first virtual light.
[0068] For example, in Figure 1A In the application scenario shown, when a rendering device is integrated inside the screen, the mobile terminal can send the adjusted lighting parameters of the first virtual light to the screen, so that the rendering device in the screen renders the adjusted first virtual light according to the adjusted lighting parameters of the first virtual light, and controls the screen to display the virtual scene integrating the adjusted first virtual light.
[0069] For example, in Figure 1B In the application scenario shown, the mobile terminal can send the adjusted lighting parameters of the first virtual light to the rendering device, so that the rendering device renders the adjusted first virtual light according to the adjusted lighting parameters of the first virtual light, and controls the screen to display the virtual scene integrating the adjusted first virtual light.
[0070] It is understandable that the user can adjust the lighting parameters of the first virtual light once or more than once, and the user can adjust at least one lighting parameter of at least one first virtual light at a time. The mobile terminal can send the adjusted lighting parameters of the first virtual light obtained after each adjustment operation to the rendering device, so that the rendering device can render the adjusted first virtual light according to the real-time adjusted lighting parameters, and control the screen to display the virtual scene integrated with the adjusted first virtual light, so that the user can use the effect of the virtual scene picture displayed in real time on the screen as feedback, and the user can choose to continue adjusting the lighting parameters of the first virtual light until the user's needs are met. Among them, the rendering device can use rendering technology known in the art to render the adjusted first virtual light according to the adjusted lighting parameters of the first virtual light, and this embodiment of the specification is not limited to this.
[0071] In this embodiment, a lighting engineer who does not have knowledge of graphics rendering can also control the first virtual light in real time through a mobile terminal to flexibly adjust the display effect of the virtual scene on the screen. The operation is simple and convenient, and there is no need for the lighting engineer to communicate with the professional responsible for the virtual light and then the professional operates on the computer to control the virtual light. The adjustment flexibility is high, which reduces the communication cost between the lighting engineer and the professional responsible for the virtual light, and is conducive to improving the efficiency of lighting control.
[0072] In some embodiments, in order to further improve the adjustment efficiency, the embodiments of this specification implement that all first virtual lights in the virtual scene displayed on the screen can be divided into at least two groups. By grouping the first virtual lights, the user can set and control the entire first virtual light group at one time without having to adjust each first virtual light one by one, which can save the user's time and energy and improve work efficiency.
[0073] Exemplarily, the adjustment control includes a first adjustment control for each first virtual light and a second adjustment control for each group of first virtual lights. The first adjustment control is used to adjust at least one light parameter of a single first virtual light, including the light source type, light source position, light source angle, color, light intensity, and brightness. The second adjustment control is used to batch adjust at least one light parameter of a group of first virtual lights, including the light source type, light source position, light source angle, color, light intensity, and brightness, and display properties.
[0074] Among them, for each group of first virtual lights after grouping, they can be batch adjusted through the second adjustment control corresponding to the group of first virtual lights, and for each first virtual light in the group of first virtual lights, they can also be individually adjusted through the first adjustment control corresponding to the first virtual light.
[0075] It is understandable that each first virtual light may have one or more first adjustment controls corresponding to it, for example, each first virtual light may have more than one first adjustment controls corresponding to it, and each first adjustment control is used to adjust one of the lighting parameters of the first virtual light. Also, each group of first virtual lights may have one or more second adjustment controls corresponding to it, for example, each group of first virtual lights may have more than one second adjustment controls corresponding to it, and each second adjustment control is used to batch adjust one of the lighting parameters of the group of first virtual lights. This specification does not impose any restrictions on the specific operation forms of the first adjustment controls and the second adjustment controls, which may be click, slide, drag, or long press operations, but are not limited to these.
[0076] For an example, see Figure 4 , Figure 5 as well as Figure 6The interactive interface shown, Figure 4 and Figure 5 The left side of the interactive interface displays all the first virtual lights in the virtual scene. It can be seen that some first virtual lights are displayed in the form of light groups, while some first virtual lights are not grouped and are displayed as single first virtual lights.
[0077] See also Figure 4 When the user selects the ungrouped “first virtual light A”, the right side of the interactive interface displays the first adjustment control for adjusting the “first virtual light A”, so that the lighting parameters of the “first virtual light A”, such as the light intensity, light color and light source position, can be adjusted.
[0078] See also Figure 5 , when the user selects "Light Group-1", the right side of the interactive interface displays the second adjustment control for adjusting "Light Group-1", so that the light parameters such as the light intensity, light color and light source position of all the first virtual lights in "Light Group-1" can be adjusted in batches. For example, when the user adjusts Figure 5 When you adjust the light intensity on the right side of the interactive interface, the light intensity of all the first virtual lights in "Light Group-1" is adjusted, which is helpful to simplify the user's operation steps and improve operation efficiency.
[0079] See also Figure 6 , Figure 6 The left side of the interactive interface displays all the first virtual lights in the "Light Group -1". When the user selects the "First Virtual Light -1-c" in the "Light Group -1", the right side of the interactive interface displays the first adjustment control for adjusting the "First Virtual Light -1-c", so that the lighting parameters such as the light intensity, light color and light source position of the "First Virtual Light -1-c" can be adjusted.
[0080] Here is an exemplary description of the grouping of the first virtual light:
[0081] In a first possible implementation, the user can group the first virtual lights in the virtual scene currently displayed on the screen according to actual needs, and the mobile terminal can respond to the grouping instruction for the first virtual lights in the virtual scene displayed on the screen and divide the selected at least one first virtual light into a group. This embodiment uses the mobile terminal to group the first virtual lights, which can increase the interactivity and ease of use between the user and the virtual scene. The user can directly select the first virtual lights and divide them into different groups without complicated operation steps or professional skills. In addition, the user can customize the scene effect according to actual needs, and can combine multiple first virtual lights into a specific scene effect; for example, an indoor lighting scene, a stage performance effect, or a night scene simulation can be created. Through the setting and adjustment of the first virtual light group, the virtual scene can better meet the user's requirements.
[0082] For example, see Figure 7 In the interactive interface shown, the user can select the first virtual light in the virtual scene displayed on the screen in the interactive interface. For example, the user can arbitrarily select the optional first virtual light according to the required quantity. The first virtual light selected by the user will display the "√" symbol, and after confirmation, click the grouping control, and then the mobile terminal can generate a grouping instruction based on the grouping control being triggered, and then respond to the grouping instruction for the first virtual light in the virtual scene displayed on the screen, and divide the selected at least one first virtual light into a group.
[0083] In the second possible implementation, see Figure 2 In the virtual shooting system shown, the screen can be divided into regions and managed by multiple servers. Therefore, the mobile terminal can automatically group the first virtual lights in the virtual scene currently displayed on the screen according to the at least two display areas after the screen is divided; each group of first virtual lights corresponds to a display area on the screen, and is used to provide light and shadow effects for the virtual scene displayed in the display area. For example, the first virtual lights located in the same display area can be automatically grouped according to the current position of the first virtual lights, or the user can select the first virtual lights to be grouped according to the required number according to the user's selection operation, and associate them with the corresponding display area.
[0084] In this embodiment, by grouping the first virtual lights according to the display areas after the screen is divided, the lighting effect can be better controlled and adjusted. Each group of first virtual lights only needs to focus on a specific display area to provide the best lighting effect for the area, thereby enhancing the visual experience. In addition, the interactivity between the user and the virtual scene can be increased, and the user can more intuitively see the scope and effect of each group of first virtual lights, thereby making it easier to adjust and control the first virtual lights, which can improve the user's participation and usage experience. In addition, the user's operation steps and learning costs can be reduced, and the usage threshold can be lowered. There is no need to manually set the lighting parameters of each first virtual light. The mobile terminal can automatically adjust the grouping and properties of the first virtual lights according to the various display areas of the screen, thereby improving the automation of virtual light adjustment.
[0085] It is understandable that if the user subsequently adjusts the posture information of the first virtual light by adjusting the control in the mobile terminal, causing the display area illuminated by the first virtual light to change, the mobile terminal can re-group the adjusted first virtual lights according to the display area illuminated by the adjusted first virtual lights, so that each group of first virtual lights corresponds to a display area on the screen, for providing light and shadow effects for the virtual scene displayed in the display area.
[0086] In a third possible implementation, the virtual scene includes virtual objects, which refer to objects or entities generated by computers and do not exist in the real world; they may be characters, props, buildings, animals, and landscapes in the virtual world. Considering that the light and shadow requirements for different virtual objects in the virtual scene are also different, the mobile terminal can group the first virtual lights in the virtual scene currently displayed on the screen according to the virtual objects in the virtual scene displayed on the screen; each group of first virtual lights corresponds to a virtual object in the virtual scene, and is used to provide light and shadow effects for the virtual object. For example, the first virtual lights illuminating the same virtual object can be automatically grouped according to the current position and current angle of the first virtual lights, or the user can select the first virtual lights to be grouped according to the required number according to the user's selection operation, and associate them with the corresponding virtual objects.
[0087] In this embodiment, the first virtual lights are grouped according to virtual objects, so that the visual effect and immersion of the virtual scene can be enhanced, and each virtual object can obtain the best lighting effect and light and shadow performance, so that it is more realistic and vivid; it allows users to more intuitively feel the characteristics and features of each virtual object in the virtual scene, which helps to improve user participation and usage experience, and makes it easier for users to understand the information and effects in the virtual scene; refined lighting control can be achieved, and users can more specifically adjust and optimize the lighting effects and light and shadow performance of each virtual object to meet various different needs and scenes; automatically grouping lights and allocating light and shadow effects according to virtual objects can reduce the user's setting burden and improve the convenience and automation of lighting adjustment.
[0088] It is understandable that if the user subsequently adjusts the posture information of the first virtual light by adjusting the control in the mobile terminal, causing the virtual object illuminated by the first virtual light to change, the mobile terminal can re-group the adjusted first virtual lights according to the virtual objects illuminated by the adjusted first virtual lights, so that each group of first virtual lights corresponds to a virtual object in the virtual scene, so as to provide light and shadow effects for the virtual object.
[0089] In some embodiments, when the posture (position and attitude) of the camera in virtual shooting changes, the light and shadow effects of the image frames captured by the camera before and after the posture change may be inconsistent. This is because the light and shadow effects formed by the first virtual light in the virtual scene are calculated and rendered according to the position and direction of the camera. When the posture of the camera changes, the lighting parameters originally applicable to the old posture may not be applicable to the new posture, resulting in inconsistent light and shadow effects.
[0090] In order to adapt to the change of the camera's posture, a first mapping relationship between different posture information of the camera and the lighting parameters of the first virtual light in the virtual scene can be pre-stored in the mobile terminal. The first mapping relationship is used to keep the light and shadow effects of different image frames obtained when the camera is shot in different postures consistent. By establishing the first mapping relationship between the camera posture and the first virtual lighting parameters, it can be ensured that the light and shadow effects of the image frames obtained in different postures are consistent, which can improve the realism and coherence of the virtual scene and enable users to obtain a more consistent visual experience when watching on the mobile terminal.
[0091] Exemplarily, the mobile terminal can be connected to a camera for communication, and the camera is equipped with a posture sensor (such as Figure 2 The pose tracker shown in FIG. 1 is used to detect the pose of the camera and feed it back to the mobile terminal.
[0092] When the camera's posture changes, the mobile terminal can respond to the change in the camera's posture and, based on the changed posture information of the camera and the first mapping relationship, obtain the target light parameters of the first virtual light in the virtual scene; the target light parameters are used to enable the screen to display a virtual scene that incorporates the first virtual light adapted to the changed posture of the camera. Figure 1B In the application scenario shown, the mobile terminal can send the target lighting parameters of the first virtual light to the rendering device, so that the rendering device renders the first virtual light that is adapted to the changed position of the camera according to the target lighting parameters of the first virtual light, and controls the screen to display a virtual scene that is integrated with the first virtual light that is adapted to the changed position of the camera.
[0093] In this embodiment, when the camera's posture changes, the target parameters of the virtual light can be obtained in real time according to the new posture information and the first mapping relationship, so that the rendering device can adapt the lighting effect according to the new posture, and the light can be changed and adjusted in real time. The user does not need to wait for the light and shadow effects to be recalculated to obtain the light and shadow rendering results adapted to the new posture. In addition, by pre-storing the first mapping relationship between the camera posture information and the light parameters of the first virtual light, the computational complexity and resource consumption during operation can be reduced. It is only necessary to obtain the target light parameters of the first virtual light according to the posture change and send them to the rendering device, without recalculating the light and shadow information every time, thereby improving the efficiency and performance of the system.
[0094] Among them, the execution order of the steps of "in response to the adjustment control being triggered, obtaining the adjusted lighting parameters of the first virtual light" and "in response to the change in the position and posture of the camera, obtaining the target lighting parameters of the first virtual light in the virtual scene according to the changed position and posture information of the camera and the first mapping relationship" is not restricted. For example, the target lighting parameters of the first virtual light can be determined according to the changed position and posture information of the camera before, after or at the same time as the user adjusts the lighting parameters of the first virtual light through the interactive interface, and the target lighting parameters can be merged with the lighting parameters adjusted by the user. For example, the target lighting parameters are used to correct or replace the lighting parameters adjusted by the user, or the target lighting parameters are used to correct or replace the target lighting parameters, or the two are used to calculate the merged lighting parameters based on a preset algorithm. The present application does not impose any restrictions on this.
[0095] In some embodiments, the mobile terminal pre-stores lighting parameters of the first virtual light corresponding to different virtual scenes. The user can select according to actual shooting needs. For example, there are three different virtual scenes on the mobile terminal: indoor scene, outdoor daytime scene and night scene. (1) Indoor scene: The lighting parameters of the first virtual light can be set to soft and uniform light. (2) Outdoor daytime scene: The lighting parameters of the first virtual light can be set to strong and bright light. (3) Night scene: The lighting parameters of the first virtual light can be set to soft background light.
[0096] In the case where the mobile terminal pre-stores the lighting parameters of the first virtual light corresponding to different virtual scenes, a selection control for selecting a virtual scene can be displayed in the interactive interface of the mobile terminal. For example, one virtual scene can correspond to one selection control, and when a certain selection control is triggered, it means that the virtual scene corresponding to the selection control is selected. For example, multiple virtual scenes can correspond to one selection control, and the selection control is an input control, and the user can input identification information corresponding to the selected virtual scene according to actual needs, such as a number or a name.
[0097] Then, in response to the selection control being triggered, the mobile terminal obtains the target light parameter of the first virtual light corresponding to the selected virtual scene. Figure 1B In the application scenario shown, the mobile terminal can send the target lighting parameters of the first virtual light to the rendering device, so that the rendering device renders the first virtual light according to the target lighting parameters of the first virtual light, and controls the screen to display the virtual scene integrated with the first virtual light. In this embodiment, by pre-storing the lighting parameters of the first virtual light corresponding to different virtual scenes, the mobile terminal can automatically select suitable lighting parameters for adjustment according to the requirements of the shooting environment, so as to obtain better shooting effects. In this way, even in different virtual scenes, users can easily obtain the desired light and shadow effects, improve the quality and experience of shooting, and do not need users to adjust the lighting parameters of the first virtual light from scratch, which can greatly reduce the workload of manual adjustment, not only improve shooting efficiency, but also reduce the burden on users.
[0098] In some embodiments, see Figure 8 ( Figure 8 The virtual shooting system includes three screens. In addition to the first virtual light in the virtual scene, some physical lights are also arranged in the real scene where the virtual shooting system is located, and the physical lights will also affect the light and shadow effects in the virtual scene. It can be understood that the physical light can be at least one of a lighting device fixed at a certain position and a lighting device held by a user (for example, an actor), and this embodiment does not impose any limitation on this.
[0099] For example, if the virtual scene is a dark or dim environment, and the actor in the real scene holds a flashlight and shines it into the virtual scene, then light spots, shadows and other light and shadow effects will appear in the corresponding area in the virtual scene.
[0100] Therefore, in order to improve the realism and immersion of the virtual scene, the mobile terminal is also used to communicate with the physical lights in the real scene where the virtual shooting system is located. The mobile terminal can obtain the position information and display properties of the physical lights in the real scene where the virtual shooting system is located; then, based on the position information of the screen and the position information and display properties of the physical lights, create at least one second virtual light for simulating the lighting effects of the physical lights in the virtual scene, and determine the lighting parameters of the second virtual light, the lighting parameters of the second virtual light are used to enable the screen to display a virtual scene that incorporates the second virtual light. Exemplarily, in Figure 1B In the application scenario shown, the mobile terminal can send the lighting parameters of the second virtual light to the rendering device, so that the rendering device renders the second virtual light according to the lighting parameters of the second virtual light, and controls the screen to display the virtual scene integrated with the second virtual light. In this embodiment, the physical light in the real scene is combined with the light and shadow effects in the virtual scene, which can improve the realism of the image frames captured by the camera in the virtual shooting and enhance the user's immersion. In addition, by communicating with the physical light in the real scene and simulating the light and shadow effects of the physical light in the virtual scene, it is possible to achieve more detailed adjustment and control of the light and shadow effects in the virtual scene, thereby meeting the needs of different users.
[0101] Specifically, after obtaining the position information and display attributes of the physical light in the real scene where the virtual shooting system is located, the mobile terminal first determines the distance between the screen and the physical light and the angle of the physical light relative to the screen based on the difference between the position information of the screen and the position information of the physical light, and then determines at least one light parameter of the light source type, light source position, light source angle, color, illumination intensity and brightness of the second virtual light used to simulate the light and shadow effect of the physical light in the virtual scene based on the distance between the screen and the physical light, the angle of the physical light relative to the screen, and the display attributes of the physical light. Among them, the correspondence between one or more of the distance between the screen and the physical light, the angle of the physical light relative to the screen, and the display attributes of the physical light and one or more of the light source type, light source position, light source angle, color, illumination intensity and brightness of the second virtual light can be preset, so as to obtain the light parameters of the second virtual light according to the above angle, distance, display attributes, etc. Exemplarily, in order to further improve the realism and immersion of the virtual scene, when the light parameters of the physical light change, the second virtual light used in the virtual scene to simulate the light and shadow effect of the physical light in the virtual scene should also change accordingly to maintain consistency with the real scene.
[0102] Continuing with the above example, when in the real scene an actor holds a flashlight and shines it into the virtual scene and gradually walks towards the screen used to display the virtual scene, the second virtual light in the virtual scene used to simulate the lighting and shadow effects of the flashlight in the virtual scene will be brighter. Conversely, when in the real scene an actor holds a flashlight and shines it into the virtual scene and gradually moves away from the screen used to display the virtual scene, the second virtual light in the virtual scene used to simulate the lighting and shadow effects of the flashlight in the virtual scene will be darker.
[0103] In another example, for a physical light placed at a fixed position, if the color of the physical light is changed, a second virtual light in the virtual scene for simulating the light and shadow effects of the physical light in the virtual scene will also change accordingly.
[0104] That is, the mobile terminal can respond to the change of the lighting parameters of the physical light in the real scene where the virtual shooting system is located, obtain the changed lighting parameters of the physical light; according to the changed lighting parameters of the physical light, adjust the lighting parameters of the second virtual light, and the adjusted lighting parameters of the second virtual light are used to make the screen display a virtual scene integrated with the adjusted second virtual light. Figure 1BIn the application scenario shown, the mobile terminal can send the adjusted lighting parameters of the second virtual light to the rendering device, so that the rendering device renders the adjusted second virtual light according to the adjusted parameters of the second virtual light, and controls the screen to display the virtual scene integrated with the adjusted second virtual light. In this embodiment, the second virtual light in the virtual scene is synchronously adjusted according to the physical light whose lighting parameters change in the real scene, which can more accurately simulate the real lighting conditions, so that the virtual scene better matches the actual situation of the scene, thereby enhancing the realism of the virtual scene; the light and shadow changes in the virtual scene are consistent with the physical light in the real scene, and this consistency can provide a more natural and coherent visual experience and enhance the sense of immersion.
[0105] A rendering device can be used to independently perform rendering based on the lighting parameters of the second virtual light and the lighting parameters of the first virtual light, so that the light and shadow effects brought by the lighting parameters of the second virtual light and the lighting parameters of the first virtual light are superimposed on each other in the virtual scene displayed on the screen.
[0106] Exemplarily, the lighting parameters of the entity light include at least one of posture information and display attributes, the posture information includes the light source position and / or the light source angle, and the display attributes include at least one of the light source type, color, light intensity and brightness; specific settings can be made according to the actual application scenario, and this embodiment does not impose any restrictions on this.
[0107] For example, if the lighting parameters of the physical light include posture information, the physical light may be equipped with a driving device, and the user may control the movement of the driving device through the mobile terminal to adjust at least one of the light source position and the light source angle of the physical light.
[0108] For example, if the lighting parameters of the physical light include display properties, the physical light can be equipped with a processor for adjusting the display properties, such as a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC) or a field-programmable gate array (FPGA), etc., and relevant adjustment or control instructions can be sent to the processor in the physical light through a mobile terminal, so that the processor can adjust the display properties of the physical light, such as color, light intensity and brightness.
[0109] Here is an example of possible changes in the lighting parameters of entity lights:
[0110] In a first possible implementation, the user can adjust the lighting parameters of the physical light. To facilitate user operation, a third adjustment control for adjusting the physical light in the real scene where the virtual shooting system is located can be displayed in the interactive interface of the mobile terminal. The third adjustment control is used to adjust at least one lighting parameter of the physical light. The user can operate the third adjustment control according to actual needs; then the mobile terminal responds to the triggering of the third adjustment control, obtains the adjusted lighting parameters of the physical light, and adjusts the physical light according to the adjusted lighting parameters of the physical light. And the second virtual light in the virtual scene used to simulate the light and shadow effects of the physical light in the virtual scene is synchronously adjusted in the above manner, thereby enhancing the realism of the virtual scene.
[0111] It is understandable that each entity light may have one or more third adjustment controls corresponding to it. For example, each entity light may have more than one third adjustment control corresponding to it, and each third adjustment control is used to adjust one of the lighting parameters of the entity light. This specification does not impose any restrictions on the specific operation form of the third adjustment control, which may be click, slide, drag or long press, but is not limited thereto.
[0112] For example, see Fig. 9 , Fig.10 and Fig.11 The interactive interface shown, Fig. 9 , Fig.10 and Fig.11 The left side of the interactive interface shows all physical lights in the real scene where the virtual shooting system is located. When the user selects one of the physical lights, the right side of the interactive interface will display a third adjustment control for adjusting the physical light, thereby adjusting at least one lighting parameter of the physical light. Different physical lights may correspond to different lighting parameters that need to be adjusted, and accordingly, have different third adjustment controls.
[0113] See also Fig. 9 When the user selects "Entity Light-1", the third adjustment control for adjusting "Entity Light-1" is displayed on the right side of the interactive interface. The hue and saturation of the entity light can be adjusted from the HSI mode. The HSI (HueSatrationntenst HSI) model uses three parameters H, S, and I to describe color characteristics, where H defines the wavelength of the color, called hue; S represents the depth of the color, called saturation; and I represents intensity or brightness.
[0114] See also Fig.10When the user selects "Physical Light-2", the third adjustment control for adjusting "Physical Light-2" is displayed on the right side of the interactive interface. The red, green, blue and white intensity levels of the physical light can be adjusted from the RGBW mode. RGBW is a color mode that combines the spectrum of four colors, red, green, blue and white, to form richer colors.
[0115] See also Fig.11 When the user selects "Physical Light - 3", the third adjustment control for adjusting "Physical Light - 3" is displayed on the right side of the interactive interface. The color temperature of the physical light can be adjusted. When the color temperature is around 3000K, the light color is yellowish. When the color temperature is above 5000K, the light color is bluish.
[0116] Understandably, Fig. 9 , Fig.10 as well as Fig.11 The third adjustment control in the figure is used to adjust the lighting parameters for illustrative purposes only and does not constitute a limitation on the lighting parameters.
[0117] In another possible implementation, considering that the lighting parameters of the physical light are set according to the position and direction of the camera, when the camera's posture changes, the lighting parameters of the physical light that were originally applicable to the old posture may not be applicable to the new posture, resulting in inconsistent lighting effects of the image frames captured by the camera before and after the posture change.
[0118] Therefore, in order to adapt to changes in the camera's posture, a second mapping relationship between different posture information of the camera and the lighting parameters of the physical light can be pre-stored in the mobile terminal. The second mapping relationship is used to ensure that the light and shadow effects of different image frames obtained when the camera is shooting in different postures remain consistent.
[0119] When the posture (at least one of the position and attitude) of the camera in the virtual shooting changes, the mobile terminal responds to the change in the posture of the imaging device camera of the shooting screen, obtains the target light parameters of the physical light according to the changed posture information of the imaging device camera and the second mapping relationship, and adjusts the physical light according to the target light parameters of the physical light. And the second virtual light used to simulate the light and shadow effect of the physical light in the virtual scene is synchronously adjusted in the above manner, thereby enhancing the realism of the virtual scene. In this embodiment, through the above adjustment method, when the camera shoots at different angles or positions, the brightness, color and projection effect of the physical light can be kept consistent, providing a more realistic and unified lighting effect. And by pre-storing the second mapping relationship and automatically adjusting the physical light, the user's operation process can be simplified. The user does not need to manually adjust the parameters of the physical light, nor does he need to make repeated trial and error adjustments for different postures. The mobile terminal can automatically calculate the target light parameters according to the camera posture change and the second mapping relationship, and directly adjust the physical light, which reduces the user's operation burden and improves the convenience and efficiency of operation.
[0120] In a third possible implementation, considering that the posture of the subject has changed, the lighting parameters of the physical light that was originally suitable for the old posture of the subject may not be suitable for the new posture of the subject (such as an actor in front of the screen), and may also make the lighting effects of the image frames captured by the camera before and after the posture change of the subject inconsistent.
[0121] Exemplarily, the photographed object may carry a posture sensor for detecting the posture information of the photographed object. The posture sensor is connected to the mobile terminal for communication and sends the detected posture information of the photographed object to the mobile terminal, so that the mobile terminal can know whether the posture of the photographed object has changed, and control the physical light and the second virtual light accordingly.
[0122] When the posture (at least one of the position and posture) of the photographed object changes, the mobile terminal can respond to the change in the posture of the photographed object, determine the distance and relative angle between the photographed object and the physical light according to the changed posture information of the photographed object and the posture information of the physical light; obtain the second target light parameter of the physical light according to the distance and relative angle between the photographed object and the physical light, and adjust the physical light according to the second target light parameter of the physical light. And synchronously adjust the second virtual light in the virtual scene for simulating the light and shadow effect of the physical light in the virtual scene in the above manner, thereby enhancing the realism of the virtual scene.
[0123] Among them, a preset corresponding relationship (such as a mapping table or a functional relationship) can be established between the distance and relative angle between the photographed object and the physical light and the second target light parameter, so that the second target light parameter corresponding to the distance and relative angle can be determined based on the corresponding relationship.
[0124] In this embodiment, when the posture of the photographed object changes, the physical light and the second virtual light are adjusted accordingly, so that the light and shadow effects of the photographed objects in different postures in the image frame can be kept consistent, which helps to enhance the viewing experience and make the shooting results more natural and coherent. When the mobile terminal senses the change in the posture of the photographed object, it automatically adjusts the physical light and the second virtual light, which can greatly reduce the workload of manual intervention and adjustment, not only improving the shooting efficiency, but also reducing the burden on the operator.
[0125] The various technical features in the above embodiments can be arbitrarily combined as long as there is no conflict or contradiction between the combinations of features. However, due to space limitations, they are not described one by one. Therefore, any combination of the various technical features in the above embodiments also falls within the scope of this specification.
[0126] Fig.12 is a schematic structural diagram of a mobile terminal provided by an exemplary embodiment. Fig.12 At the hardware level, the mobile terminal includes a processor 202, an internal bus 204, a network interface 206, a memory 208, and a non-volatile memory 210, and may also include hardware required for other services. One or more embodiments of this specification may be implemented based on software, such as the processor 202 reading the corresponding computer program from the non-volatile memory 210 into the memory 208 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0127] Please refer to Fig.13 The lighting control device for the virtual shooting system can be applied to Fig.12 In the mobile terminal shown in the figure, the technical solution of this specification is implemented. Wherein, the virtual shooting system includes at least one screen, and the lighting control device may include:
[0128] The control display module 301 is used to display, in the interactive interface of the mobile terminal, an adjustment control for adjusting a first virtual light in the virtual scene displayed on the screen; the adjustment control is used to adjust at least one light parameter of the first virtual light.
[0129] The light adjustment module 302 is used to obtain the adjusted light parameters of the first virtual light in response to the adjustment control being triggered, and the adjusted light parameters are used to make the screen display a virtual scene integrated with the adjusted first virtual light.
[0130] In some embodiments, all first virtual lights in the virtual scene displayed on the screen can be divided into at least two groups; the adjustment control includes a first adjustment control for each first virtual light and a second adjustment control for each group of first virtual lights; wherein the first adjustment control is used to adjust the lighting parameters of a single first virtual light; and the second adjustment control is used to adjust the lighting parameters of a group of first virtual lights.
[0131] In some embodiments, the apparatus further comprises a grouping module for dividing the selected at least one first virtual light into a group in response to a grouping instruction for the first virtual light in the virtual scene currently displayed on the screen.
[0132] In some embodiments, the device also includes a grouping module for grouping the first virtual lights in the virtual scene currently displayed on the screen according to at least two display areas after the screen is divided; each group of first virtual lights corresponds to a display area in the screen, and is used to provide light and shadow effects for the virtual scene displayed in the display area.
[0133] In some embodiments, the device further includes a grouping module, which is used to group all first virtual lights in the virtual scene displayed on the screen, including:
[0134] The first virtual lights in the virtual scene currently displayed on the screen are grouped according to the virtual objects in the virtual scene displayed on the screen; each group of first virtual lights corresponds to a virtual object in the virtual scene, and is used to provide light and shadow effects for the virtual object.
[0135] In some embodiments, the mobile terminal pre-stores a first mapping relationship between different posture information of the camera and lighting parameters of the first virtual light in the virtual scene, and the first mapping relationship is used to ensure that the light and shadow effects of different image frames obtained when the camera is shooting in different postures remain consistent.
[0136] The lighting adjustment module 302 is also used to: in response to a change in the position and posture of the camera, obtain target lighting parameters of the first virtual light in the virtual scene according to the changed position and posture information of the camera and the first mapping relationship; the target lighting parameters are used to enable the screen to display a virtual scene that integrates the first virtual light that is adapted to the changed position and posture of the camera.
[0137] In some embodiments, the mobile terminal is further used to communicate with physical lights in the real scene where the virtual shooting system is located.
[0138] The device also includes a second virtual light creation module, which is used to obtain the position information and display properties of the physical light in the real scene where the virtual shooting system is located; according to the position information of the screen and the position information and display properties of the physical light, create at least one second virtual light for simulating the light and shadow effects of the physical light in the virtual scene, and determine the lighting parameters of the second virtual light, and the lighting parameters of the second virtual light are used to enable the screen to display a virtual scene integrated with the second virtual light.
[0139] In some embodiments, the lighting parameters include at least one of posture information and display attributes;
[0140] The posture information includes at least one of the light source position and the light source angle, and the display attributes include at least one of the light source type, color, light intensity and brightness.
[0141] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0142] In some embodiments, the embodiments of this specification also provide a mobile terminal, including: a processor; a memory for storing processor executable instructions; wherein the processor implements any of the above methods by running the executable instructions.
[0143] In some embodiments, the embodiments of this specification further provide a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of any of the methods described above are implemented.
[0144] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this manual are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0145] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0146] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0147] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0148] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0149] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0150] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0151] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0152] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0153] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.
Claims
1. A lighting control method for a virtual shooting system, characterized in that: The virtual shooting system includes at least one screen, the method is applied to a mobile terminal, the mobile terminal pre-stores a first mapping relationship between different posture information of the camera and the lighting parameters of the first virtual light in the virtual scene, and the first mapping relationship is used to make the light and shadow effects of different image frames obtained when the camera shoots in different postures consistent; the method includes: In the interactive interface of the mobile terminal, an adjustment control for adjusting a first virtual light in the virtual scene displayed on the screen is displayed; the adjustment control is used to adjust at least one light parameter of the first virtual light; In response to the adjustment control being triggered, obtaining adjusted light parameters of the first virtual light, wherein the adjusted light parameters are used to enable the screen to display a virtual scene integrated with the adjusted first virtual light; In response to a change in the position and posture of the camera, target light parameters of the first virtual light in the virtual scene are obtained according to the changed position and posture information of the camera and the first mapping relationship; the target light parameters are used to enable the screen to display a virtual scene that is integrated with the first virtual light that is adapted to the changed position and posture of the camera.
2. The method according to claim 1, characterized in that All first virtual lights in the virtual scene displayed on the screen can be divided into at least two groups; The adjustment controls include first adjustment controls for each first virtual light and second adjustment controls for each group of first virtual lights; Wherein, the first adjustment control is used to adjust the lighting parameters of a single first virtual light; The second adjustment control is used to adjust a set of lighting parameters of the first virtual lights.
3. The method according to claim 2, characterized in that Grouping all first virtual lights in the virtual scene displayed on the screen, including: The first virtual lights in the virtual scene currently displayed on the screen are grouped according to at least two display areas after the screen is divided; each group of first virtual lights corresponds to a display area on the screen, and is used to provide light and shadow effects for the virtual scene displayed in the display area.
4. The method according to claim 2, characterized in that: Grouping all first virtual lights in the virtual scene displayed on the screen, including: The first virtual lights in the virtual scene currently displayed on the screen are grouped according to the virtual objects in the virtual scene displayed on the screen; each group of first virtual lights corresponds to a virtual object in the virtual scene, and is used to provide light and shadow effects for the virtual object.
5. The method according to claim 1, characterized in that The mobile terminal is also used to communicate with the physical light in the real scene where the virtual shooting system is located; The method further comprises: Acquire the position information and display properties of the physical light in the real scene where the virtual shooting system is located; At least one second virtual light is created according to the position information of the screen and the position information and display properties of the physical light to simulate the light and shadow effects of the physical light in the virtual scene, and the lighting parameters of the second virtual light are determined. The lighting parameters of the second virtual light are used to enable the screen to display a virtual scene integrated with the second virtual light.
6. The method according to any one of claims 1 to 5, characterized in that The lighting parameters include at least one of posture information and display attributes; The posture information includes at least one of the light source position and the light source angle, and the display attributes include at least one of the light source type, color, light intensity and brightness.
7. A lighting control device for a virtual shooting system, characterized in that: The virtual shooting system includes at least one screen, the device is applied to a mobile terminal, the mobile terminal pre-stores a first mapping relationship between different posture information of the camera and the lighting parameters of the first virtual light in the virtual scene, and the first mapping relationship is used to make the light and shadow effects of different image frames obtained when the camera shoots in different postures consistent; The device comprises: A control display module, used to display, in an interactive interface of the mobile terminal, an adjustment control for adjusting a first virtual light in a virtual scene displayed on the screen; the adjustment control is used to adjust at least one light parameter of the first virtual light; a light adjustment module, configured to obtain adjusted light parameters of the first virtual light in response to the adjustment control being triggered, wherein the adjusted light parameters are used to enable the screen to display a virtual scene integrated with the adjusted first virtual light; The lighting adjustment module is also used to respond to a change in the position and posture of the camera, and to obtain target lighting parameters of the first virtual light in the virtual scene according to the changed position and posture information of the camera and the first mapping relationship; the target lighting parameters are used to enable the screen to display a virtual scene that incorporates the first virtual light that is adapted to the changed position and posture of the camera.
8. A mobile terminal, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 6 by running the executable instructions.
9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
