Simulation Method, Device, Electronic Device and Storage Medium for Virtual Stage Lighting
By constructing stage lighting models and scene lighting simulation algorithms, and using virtual stage performance simulation data to generate lighting simulation solutions, it solves the problem of difficult to automatically complete complex stage lighting effects design and simulation in the existing technology, and achieves efficient and automatic lighting simulation effects.
Patent Information
- Application Number
- CN202210848866.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2042-07-19
AI Technical Summary
The existing virtual stage technology is difficult to automatically complete more complex stage lighting effect design and simulation, resulting in lower efficiency and effect of virtual stage modeling and simulation.
By constructing stage lighting model data and scene lighting simulation algorithm, scene metadata is extracted based on virtual stage performance simulation data, stage lighting simulation scheme is generated, and virtual stage lighting simulation parameters are generated based on these schemes and data, and the lighting simulation effect is finally realized.
It realizes the animation effect design and simulation of stage lighting based on the design requirements of the scene, characters and music of the stage program, and improves the efficiency and effect of lighting simulation.
Smart Images

Figure CN115081244B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual technology, and particularly to a simulation method, device, electronic device, and storage medium for virtual stage lighting. Background Art
[0002] Currently, stage designers can use virtual technology for virtual stage design, which can facilitate stage designers to modify creative solutions and improve the convenience of stage design. Existing virtual stage technologies can support the coordinated interaction between stage lighting and stage music. However, the existing technology can only control the changes of lighting equipment according to the melody and rhythm of background music, and cannot automatically complete the design and simulation of more complex stage lighting effects according to the content of stage programs, resulting in relatively low efficiency and effect of virtual stage modeling and simulation in the existing technology. Summary of the Invention
[0003] To solve the above technical problems, embodiments of this application provide a simulation method, device, electronic device, and storage medium for virtual stage lighting.
[0004] In a first aspect, embodiments of this application provide a simulation method for virtual stage lighting, and the method includes:
[0005] Construct different types of stage lighting model data according to the specification data of stage lighting equipment, and each stage lighting model data includes stage lighting model parameters and lighting simulation data;
[0006] Extract virtual stage scenario metadata from virtual stage performance simulation data;
[0007] Generate a stage lighting simulation plan based on the virtual stage scenario metadata and the stage lighting model parameters through a scenario lighting simulation algorithm;
[0008] Generate virtual stage lighting simulation parameters according to the stage lighting simulation plan and the virtual stage performance simulation data;
[0009] Generate a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data.
[0010] In an implementation manner, the virtual stage performance simulation data includes a virtual stage simulation script and audio-video data, and the extracting virtual stage scenario metadata from the virtual stage performance simulation data includes:
[0011] Extract the virtual stage scenario metadata from the virtual stage simulation script;
[0012] Extract the virtual stage scene metadata from the audio-visual data, where the virtual stage scene metadata includes program metadata, scene metadata, character metadata, prop metadata, and music metadata.
[0013] In one embodiment, the method for generating a stage lighting simulation scheme based on the virtual stage scene metadata and the stage lighting model parameters through a scene lighting simulation algorithm includes:
[0014] Obtain multiple multi-dimensional scene metadata vectors according to the virtual stage scene metadata through the scene lighting simulation algorithm, count the occurrence times of each parameter value of each attribute object of the virtual stage lighting model under each of the multi-dimensional scene metadata vectors based on the historical lighting design data in different scenes, and generate a two-dimensional matrix of the virtual stage lighting model attribute objects and the multi-dimensional scene metadata vectors according to the occurrence times of each parameter value of each attribute object under each multi-dimensional scene metadata vector;
[0015] Compare the metadata vector of the current scene with each multi-dimensional scene metadata vector of the two-dimensional matrix to obtain a target metadata vector that matches the metadata vector of the current scene;
[0016] Determine the parameter value with the most occurrences in each attribute object of the target metadata vector;
[0017] Generate a stage lighting simulation scheme according to the parameter value with the most occurrences and the stage lighting model parameters.
[0018] In one embodiment, the method for generating a stage lighting simulation scheme according to the parameter value with the most occurrences and the stage lighting model parameters includes:
[0019] Generate at least two scene lighting simulation schemes for the current scene according to the parameter value with the most occurrences and the stage lighting model parameters;
[0020] Combine at least two of the scene lighting simulation schemes according to a preset lighting simulation scheme combination strategy to obtain the stage lighting simulation scheme.
[0021] In one embodiment, the preset lighting simulation scheme combination strategy includes a non-conflict combination strategy, and the method for combining at least two of the scene lighting simulation schemes according to the preset lighting simulation scheme combination strategy includes:
[0022] When the simulation objects of at least two of the scene lighting simulation schemes are different and the simulation effects do not conflict, add at least two of the scene lighting simulation schemes according to the non-conflict combination strategy to obtain the stage lighting simulation scheme.
[0023] In one embodiment, the preset lighting simulation scheme combination strategy includes a conflict combination strategy. Combining at least two of the scenario lighting simulation schemes according to the preset lighting simulation scheme combination strategy includes:
[0024] When at least two of the scenario lighting simulation schemes belong to the first conflict situation or the second conflict situation, determine the weights of each lighting simulation attribute object in at least two of the scenario lighting simulation schemes according to the conflict combination strategy;
[0025] Eliminate the conflicting attribute object parameter values according to the weights of each lighting simulation object to obtain a stage lighting simulation scheme;
[0026] Wherein, the first conflict situation is that the simulation attribute objects are the same and the attribute object parameter values conflict, and the second conflict situation is that the simulation attribute objects are different and the simulation effects conflict.
[0027] In one embodiment, generating virtual stage lighting simulation parameters according to the stage lighting simulation scheme and the virtual stage performance simulation data includes:
[0028] Generate first lighting simulation parameters according to the stage lighting simulation scheme;
[0029] Extract virtual stage performance objects and their virtual performance data from the virtual stage performance simulation data, and convert the virtual performance data into second lighting simulation parameters;
[0030] Generate the virtual stage lighting simulation parameters according to the first lighting simulation parameters and the second lighting simulation parameters.
[0031] In one embodiment, generating a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data includes:
[0032] Generate a virtual stage lighting simulation script according to the stage lighting model parameters, the lighting simulation data, and the virtual stage lighting simulation parameters;
[0033] Generate the virtual stage lighting simulation effect according to the virtual stage lighting simulation script and the virtual stage performance simulation data.
[0034] In a second aspect, an embodiment of the present application provides a simulation device for virtual stage lighting, and the device includes:
[0035] A construction module, configured to construct different types of stage lighting model data according to the specification data of stage lighting equipment, and each of the stage lighting model data includes stage lighting model parameters and lighting simulation data;
[0036] An extraction module, configured to extract virtual stage scenario metadata from virtual stage performance simulation data;
[0037] A first generation module, configured to generate a stage lighting simulation scheme based on the virtual stage scenario metadata and the stage lighting model parameters through a scenario lighting simulation algorithm;
[0038] A second generation module, configured to generate virtual stage lighting simulation parameters according to the stage lighting simulation scheme and the virtual stage performance simulation data;
[0039] A third generation module, configured to generate a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the computer program executes the virtual stage lighting simulation method provided in the first aspect when running on the processor.
[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program executes the virtual stage lighting simulation method provided in the first aspect when running on a processor.
[0042] For the virtual stage lighting simulation method, device, electronic device, and storage medium provided in the above-mentioned present application, by establishing different types of stage lighting model parameters and lighting simulation data according to the specification data of stage lighting devices, automatically extracting virtual stage scenario metadata by using virtual stage performance simulation data, generating a stage lighting simulation scheme according to the stage scenario metadata and the stage lighting model parameters, automatically generating virtual stage lighting simulation parameters according to the virtual stage lighting simulation scheme and the stage performance simulation data, and using the stage lighting model parameters, lighting simulation data, virtual stage lighting simulation parameters, and virtual stage performance simulation data, automatically completing the animation effect simulation of virtual stage lighting, and can automatically complete the design and simulation of the animation effect of stage lighting according to the stage scenario design requirements such as the scene, characters, and music of the stage program, improving the lighting simulation efficiency and simulation effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the present application, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the protection scope of the present application. In each drawing, similar components are numbered similarly.
[0044] Figure 1It shows a schematic flowchart of the simulation method for virtual stage lighting provided by an embodiment of the present application;
[0045] Figure 2 It shows a schematic flowchart of step S103 of the simulation method for virtual stage lighting provided by an embodiment of the present application;
[0046] Figure 3 It shows a schematic structural diagram of the simulation device for virtual stage lighting provided by an embodiment of the present application.
[0047] Icons: 300 - Simulation device for virtual stage lighting, 301 - Construction module, 302 - Extraction module, 303 - First generation module, 304 - Second generation module, 305 - Third generation module. Detailed implementation manners
[0048] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments.
[0049] Generally, the components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application claimed, but merely represents the selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.
[0050] In the following, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are only intended to represent specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0051] In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.
[0052] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this application belong. The terms (such as those defined in a general use dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in various embodiments of this application.
[0053] Embodiment 1
[0054] An embodiment of the present disclosure provides a method for simulating virtual stage lighting.
[0055] Specifically, referring to Figure 1 , the method for simulating virtual stage lighting includes:
[0056] Step S101, constructing different types of stage lighting model data according to the specification data of stage lighting equipment, where each of the stage lighting model data includes stage lighting model parameters and lighting simulation data.
[0057] In this embodiment, the specification data of stage lighting equipment includes lighting type, color, brightness, beam angle, stroboscopic effect, quantity, position, etc. Different types of stage lighting models and layout data in the virtual stage space are established, and the lighting effects of different types of models are simulated, such as simulating effects like front light, side light, side light, column light, overhead strip light, ground strip light, moving light, and follow spot light. Exemplarily, referring to Table 1, an example table of stage lighting model parameters.
[0058] Table 1. Example Table of Stage Lighting Model Parameters
[0059]
[0060]
[0061] Step S102, extracting virtual stage scenario metadata from the virtual stage performance simulation data.
[0062] In this embodiment, the virtual stage scenario metadata at least includes program metadata, scene metadata, character metadata, music metadata, prop metadata, etc. Among them, the program metadata includes basic information of the scene, characters, music, and props; the scene metadata includes data such as environment, atmosphere, and duration; the character metadata includes data such as expression, action, emotion, and quantity; the music metadata includes data such as name, duration, rhythm, and melody; the prop metadata includes data such as shape, meaning, and quantity. Exemplarily, various types of virtual stage scenario metadata and their contents can be seen in Table 2.
[0063] Table 2. Classification Table of Virtual Stage Scenario Metadata
[0064]
[0065] In this embodiment, the virtual stage performance simulation data includes a virtual stage simulation script and audio-visual data, and step S102 includes:
[0066] Extracting corresponding virtual stage scenario metadata from the virtual stage simulation script;
[0067] Extracting corresponding virtual stage scenario metadata from the audio-visual data.
[0068] It should be noted that metadata parameter values related to the performance content can be automatically extracted from the virtual stage performance simulation data. Exemplarily, corresponding virtual stage scenario metadata can be retrieved and extracted from the virtual stage simulation script. It is also possible to analyze and extract corresponding virtual stage scenario metadata from the audio-visual data through technologies such as image recognition and voice recognition. In addition, virtual stage scenario metadata can also be manually input by stage simulation designers, which is not limited here.
[0069] Various types of virtual stage scenario metadata can be stored in the form of corresponding metadata tables. Exemplarily, please refer to Table 3, Table 4, and Table 5, which are the example tables of scene metadata, character metadata, and music metadata respectively.
[0070] Table 3. Example Table of Scene Metadata
[0071] Scene Number Performance Type Scene Environment Scene Atmosphere Scene 1 S1 Multi-person Dialogue Indoor in the Morning Angry Scene 2 S2 Multi-person Dance Outdoor at Dusk Cheerful Scene 3 S3 Single-person Singing Outdoor at Night Sad and Solemn
[0072] Table 4. Example Table of Character Metadata
[0073] Character Number Belonging Scene Performance Type Character Emotion Actor 1 A1 S1 Mental Activity Angry Actor 2 A2 S2 Multi-person Dance Happy Actor 3 A3 S3 Single-person Singing Sad
[0074] Table 5. Example Table of Music Metadata
[0075] Music Number Belonging Scene Performance Type Music Style Music Rhythm Music 1 M1 S2 Dance Music Rock 60 Beats per Minute Music 2 M2 S3 Song Classical 30 Beats per Minute
[0076] As shown in Table 3, the example table of scene metadata includes the numbers of each scene, performance types, scene environments, and scene atmospheres. As shown in Table 4, the example table of character metadata includes the numbers of each character, the scenes to which the characters belong, the performance types of the characters, character emotions, etc. As shown in Table 5, the example table of music metadata includes the numbers of each piece of music, the scenes to which the music belongs, performance types, music styles, and music rhythms, etc.
[0077] Step S103, through a scenario lighting simulation algorithm, generate a stage lighting simulation plan based on the virtual stage scenario metadata and the stage lighting model parameters.
[0078] In this embodiment, the scenario lighting simulation algorithm is divided into a scene lighting simulation algorithm, a character lighting simulation algorithm, a music lighting simulation algorithm, etc.
[0079] Please refer to Figure 2 , step S103 includes:
[0080] Step S1031: Obtain multiple multi-dimensional scene metadata vectors according to the virtual stage scenario metadata through the scenario lighting simulation algorithm. Based on the historical lighting design data in different scenes, count the occurrence times of each parameter value of each attribute object of the virtual stage lighting model under each of the multi-dimensional scene metadata vectors. Generate a two-dimensional matrix of the virtual stage lighting model attribute objects and the multi-dimensional scene metadata vectors according to the occurrence times of each parameter value of each attribute object under each multi-dimensional scene metadata vector.
[0081] Step S1032: Compare the metadata vector of the current scenario with each multi-dimensional scene metadata vector of the two-dimensional matrix to obtain a target metadata vector that matches the metadata vector of the current scenario.
[0082] Step S1033: Determine the parameter value with the most occurrences among the attribute objects of the target metadata vector.
[0083] Step S1034: Generate a stage lighting simulation plan according to the parameter value with the most occurrences and the stage lighting model parameters.
[0084] In this embodiment, the scene lighting simulation algorithm realizes the following process: Combine the scene metadata (the scene metadata is all the metadata included in the scene object) into a multi-dimensional scene metadata vector. Referring to Table 2, the example table of scene metadata, the multi-dimensional scene metadata vector can be: (multiple people talking, indoor morning, angry), (multiple people talking, indoor morning, cheerful), (multiple people talking, indoor morning, solemn), (multiple people talking, outdoor dusk, angry), (multiple people talking, outdoor dusk, cheerful), (multiple people talking, outdoor dusk, solemn), (multiple people talking, outdoor night, angry), (multiple people talking, outdoor night, cheerful), (multiple people talking, outdoor night, solemn), (multiple people dancing, indoor morning, angry), (multiple people dancing, indoor morning, cheerful), (multiple people dancing, indoor morning, solemn), ……, (single person singing, outdoor night, solemn), etc., or other multi-dimensional scene metadata vectors, which are not limited here.
[0085] The scene lighting simulation algorithm also implements the following process: Based on the historical lighting design data in different scenes, it counts the occurrence times of different parameter values of different types of attribute objects in the virtual stage lighting model in each multi-dimensional scene metadata vector, and generates a two-dimensional matrix of the virtual stage lighting model attribute objects and the multi-dimensional scene metadata vectors. Please refer to Table 6 and Table 7. Table 6 is an example table of the two-dimensional matrix, and Table 7 is another example table of the two-dimensional matrix.
[0086] Table 6, an example table of the two-dimensional matrix
[0087]
[0088] Table 7, another example table of the two-dimensional matrix
[0089]
[0090]
[0091] As shown in Table 6, the lighting types include: spotlight, soft light, backlight, floodlight, footlight. According to the historical data, it counts the occurrence times of each type of lamp under each multi-dimensional scene metadata vector. For example, the spotlight appears 1099 times under the vector of (multi-person conversation, indoor morning, angry).
[0092] As shown in Table 7, the lighting colors include: red, white, orange, blue, green. The historical lighting design data counts the occurrence times of each color under each multi-dimensional scene metadata vector. For example, red appears 878 times under the vector of (multi-person conversation, indoor morning, angry). It should be noted that the implementation processes of the character lighting simulation algorithm and the music lighting simulation algorithm are similar to that of the scene lighting simulation algorithm. To avoid repetition, they will not be elaborated here.
[0093] In this embodiment, it can receive the current scene formulated by the stage designer, obtain the metadata vector of the current scene, compare the metadata vector of the current scene with the two-dimensional matrix, take the multi-dimensional scene metadata vector closest to the metadata vector of the current scene in the two-dimensional matrix as the target scene metadata vector, obtain the occurrence times of each parameter value of the model object corresponding to the target scene metadata vector, and generate a scenario lighting simulation plan according to the parameter value with the most occurrences and the virtual stage lighting model data. The scenario lighting simulation plan can include a scene lighting simulation plan, a character lighting simulation plan, and a music lighting simulation plan, and can realize the lighting simulation of various scenes. Exemplarily, refer to Table 8. Table 8 is an example table of the scene lighting simulation plan.
[0094] Table 8, an example table of the scene lighting simulation plan
[0095]
[0096]
[0097] For example, the scenario lighting simulation solution for Scenario 1 is a soft light, the light is in front of the stage, the light is orange, the brightness is 60W, and the lighting effect is frontal lighting. The scenario lighting simulation solutions for other scenarios can be obtained according to the actual matching situation and are not limited here.
[0098] In one embodiment, generating a stage lighting simulation solution based on the parameter value with the most occurrences and the stage lighting model parameters includes:
[0099] Generating at least two scenario lighting simulation solutions for the current scenario based on the parameter value with the most occurrences and the stage lighting model parameters;
[0100] Combining at least two of the scenario lighting simulation solutions according to a preset lighting simulation solution combination strategy to obtain the stage lighting simulation solution.
[0101] In this embodiment, at least two scenario lighting simulation solutions may include a scene lighting simulation solution, a character lighting simulation solution, and a music lighting simulation solution. Refer to Tables 9 - 11. Table 9 is another example table of the scene lighting simulation solution, Table 10 is an example table of the character lighting simulation solution, and Table 11 is an example table of the music lighting simulation solution.
[0102] Table 9. Another example table of the scene lighting simulation solution
[0103]
[0104] Table 10. An example table of the character lighting simulation solution
[0105]
[0106]
[0107] Table 11. An example table of the music lighting simulation solution
[0108]
[0109] In this embodiment, the scene lighting simulation solution, the character lighting simulation solution, and the music lighting simulation solution can be combined to generate a complete stage lighting simulation solution. It should be noted that if there are no conflicts among multiple lighting simulation solutions, the overall lighting simulation solution can be directly obtained by adding them. If there are conflicts among multiple lighting simulation solutions during the combination process, then based on the lighting simulation solution combination strategy, according to the weights of the lighting attribute objects in different performance types in each dimension, the parameter values of the conflicting attribute objects are eliminated, for example, eliminating the conflicting parameter values such as lighting effects, colors, and brightness.
[0110] In one embodiment, the preset lighting simulation scheme combination strategy includes a non-conflict combination strategy. Combining at least two scenario lighting simulation schemes according to the preset lighting simulation scheme combination strategy includes:
[0111] When the simulation objects of at least two scenario lighting simulation schemes are different and the simulation effects do not conflict, add at least two scenario lighting simulation schemes according to the non-conflict combination strategy to obtain a stage lighting simulation scheme.
[0112] In one embodiment, the preset lighting simulation scheme combination strategy includes a conflict combination strategy. Combining at least two of the scenario lighting simulation schemes according to the preset lighting simulation scheme combination strategy includes:
[0113] When at least two of the scenario lighting simulation schemes belong to the first conflict situation or the second conflict situation, determine the weights of each lighting simulation attribute object in at least two of the scenario lighting simulation schemes according to the conflict combination strategy;
[0114] Eliminate the conflicting attribute object parameter values according to the weights of each lighting simulation object to obtain a stage lighting simulation scheme;
[0115] Wherein, the first conflict situation is that the simulation attribute objects are the same and the attribute object parameter values conflict, and the second conflict situation is that the simulation attribute objects are different and the simulation effects conflict.
[0116] Exemplarily, determining the weights of each lighting simulation attribute object in at least two of the scenario lighting simulation schemes can be carried out according to the following principles:
[0117] Switch(performance type) {
[0118] Case solo: weight of music lighting simulation attribute object > weight of character lighting simulation attribute object > weight of scene lighting simulation attribute object
[0119] Case chorus: weight of character lighting simulation attribute object > weight of music lighting simulation attribute object > weight of scene lighting simulation attribute object
[0120] Case dance: weight of character lighting simulation attribute object > weight of music lighting simulation attribute object > weight of scene lighting simulation attribute object
[0121] Case multi-person dialogue: weight of scene lighting simulation attribute object > weight of character lighting simulation attribute object > weight of music lighting simulation attribute object
[0122] Case monologue: weight of character lighting simulation attribute object > weight of scene lighting simulation attribute object > weight of music lighting simulation attribute object.
[0123] For example, please refer to Table 12. For scenario 3 in Table 12, the performance type is "solo singing". The scenario lighting simulation attribute object adopts the "footlights + front light" scheme, and the music lighting simulation attribute object adopts the "footlights + balcony light" scheme. This belongs to the situation where the simulation attribute objects are the same, but the values of the simulation attribute objects are different. According to the policy "weight of music lighting simulation attribute object > weight of character lighting simulation attribute object > weight of scenario lighting simulation attribute object", the music lighting simulation attribute object, that is, the "footlights + balcony light" scheme, is retained. In this way, conflicts can be eliminated.
[0124] Table 12. Another example table of scenario lighting simulation scheme
[0125]
[0126] Exemplarily, please refer to Table 13. Table 13 is an example table of stage lighting simulation scheme. The stage lighting simulation scheme includes character (actor 1), number (A1), lighting type (follow spot), lighting position (in front of the stage), lighting color (white), lighting brightness (50W), lighting effect (follow light), etc.
[0127] Table 13. An example table of stage lighting simulation scheme
[0128]
[0129] Step S104. Generate virtual stage lighting simulation parameters according to the stage lighting simulation scheme and the virtual stage performance simulation data.
[0130] In this embodiment, the virtual stage lighting simulation parameters include simulation parameters such as lighting type, position, brightness, and color.
[0131] Exemplarily, the partial code for generating virtual stage lighting simulation parameters is as follows:
[0132]
[0133] In one implementation manner, step S104 includes:
[0134] Generate first lighting simulation parameters according to the stage lighting simulation scheme;
[0135] Extract the virtual stage performance object and its virtual performance data from the virtual stage performance simulation data, and convert the virtual performance data into second lighting simulation parameters;
[0136] Generate the virtual stage lighting simulation parameters according to the first lighting simulation parameters and the second lighting simulation parameters.
[0137] In this embodiment, the virtual actor object and its virtual performance data such as position and movement trajectory are identified from the virtual stage performance simulation data, and the virtual performance data is converted into the second lighting simulation parameters. The identification method can be to retrieve and analyze the virtual actor object and its virtual performance data from the virtual stage simulation script, or to analyze the virtual actor object and its virtual performance data from the audio-visual content through technologies such as image recognition and voice recognition.
[0138] Exemplarily, the following code can be used to retrieve and analyze the virtual actor object data in the virtual stage simulation script to obtain the trajectory data of the virtual actor.
[0139]
[0140]
[0141] In this embodiment, the follow spot simulation parameters are calculated by using the trajectory data of the identified virtual actor object, such as rotation coordinates, rotation angles, etc., and are merged with the previously generated follow spot simulation parameters to generate complete follow spot simulation parameters.
[0142] Exemplarily, the following code can be used to generate complete follow spot simulation parameters.
[0143]
[0144]
[0145] Step S105, generate the virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data.
[0146] In this embodiment, the virtual stage lighting simulation script can be generated by using the virtual stage lighting simulation parameters, and the animation effect simulation of the stage lighting can be automatically completed based on the already generated virtual stage performance simulation data.
[0147] In one implementation manner, step S105 includes:
[0148] Generate a virtual stage lighting simulation script according to the stage lighting model parameters, the lighting simulation data, and the virtual stage lighting simulation parameters;
[0149] Generate the virtual stage lighting simulation effect according to the virtual stage lighting simulation script and the virtual stage performance simulation data.
[0150] In this way, the animation effect design and simulation of the stage lighting can be automatically completed according to the design requirements of the scene, characters, and music of the stage program, improving the lighting simulation efficiency.
[0151] The virtual stage lighting simulation method provided in this embodiment establishes different types of stage lighting model parameters and lighting simulation data according to the specification data of stage lighting equipment, automatically extracts virtual stage scenario metadata using virtual stage performance simulation data, generates a stage lighting simulation plan based on the stage scenario metadata and the stage lighting model parameters, automatically generates virtual stage lighting simulation parameters according to the virtual stage lighting simulation plan and the stage performance simulation data, and automatically completes the animation effect simulation of virtual stage lighting using the stage lighting model parameters, lighting simulation data, virtual stage lighting simulation parameters, and virtual stage performance simulation data. It can automatically complete the animation effect design and simulation of stage lighting according to the stage scenario design requirements such as the scene, characters, and music of the stage program, improving the lighting simulation efficiency and simulation effect.
[0152] Embodiment 2
[0153] In addition, the embodiments of the present disclosure provide a virtual stage lighting simulation device.
[0154] As Figure 3 shown, the virtual stage lighting simulation device 300 includes:
[0155] A construction module 301 for constructing different types of stage lighting model data according to the specification data of stage lighting equipment, each of the stage lighting model data including stage lighting model parameters and lighting simulation data;
[0156] An extraction module 302 for extracting virtual stage scenario metadata from virtual stage performance simulation data;
[0157] A first generation module 303 for generating a stage lighting simulation plan based on the virtual stage scenario metadata and the stage lighting model parameters through a scenario lighting simulation algorithm;
[0158] A second generation module 304 for generating virtual stage lighting simulation parameters according to the stage lighting simulation plan and the virtual stage performance simulation data;
[0159] A third generation module 305 for generating a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data.
[0160] In an embodiment, the virtual stage performance simulation data includes a virtual stage simulation script and audio-visual data, and the extraction module 302 is further configured to extract the virtual stage scenario metadata from the virtual stage simulation script;
[0161] Extract the virtual stage scenario metadata from the audio-visual data, where the virtual stage scenario metadata includes program metadata, scene metadata, character metadata, prop metadata, and music metadata.
[0162] In one embodiment, the first generation module 303 is further configured to obtain multiple multi-dimensional scene metadata vectors according to the virtual stage scenario metadata through a scene lighting simulation algorithm, count the occurrence times of each parameter value of each attribute object of the virtual stage lighting model under each of the multi-dimensional scene metadata vectors based on the historical lighting design data in different scenes, and generate a two-dimensional matrix of the virtual stage lighting model attribute objects and the multi-dimensional scene metadata vectors according to the occurrence times of each parameter value of each attribute object under each multi-dimensional scene metadata vector;
[0163] Compare the metadata vector of the current scenario with each multi-dimensional scene metadata vector of the two-dimensional matrix to obtain a target metadata vector that matches the metadata vector of the current scenario;
[0164] Determine the parameter value with the most occurrences among the attribute objects of the target metadata vector;
[0165] Generate a stage lighting simulation plan according to the parameter value with the most occurrences and the stage lighting model parameters.
[0166] In one embodiment, the first generation module 303 is further configured to generate at least two scenario lighting simulation plans for the current scenario according to the parameter value with the most occurrences and the stage lighting model parameters;
[0167] Combine at least two of the scenario lighting simulation plans according to a preset lighting simulation plan combination strategy to obtain the stage lighting simulation plan.
[0168] In one embodiment, the preset lighting simulation plan combination strategy includes a non-conflict combination strategy. The first generation module 303 is further configured to add at least two of the scenario lighting simulation plans according to the non-conflict combination strategy when the simulation objects of at least two of the scenario lighting simulation plans are different and the simulation effects do not conflict to obtain the stage lighting simulation plan.
[0169] In one embodiment, the preset lighting simulation plan combination strategy includes a conflict combination strategy. The first generation module 303 is further configured to determine the weights of each lighting simulation attribute object in at least two of the scenario lighting simulation plans according to the conflict combination strategy when at least two of the scenario lighting simulation plans belong to the first conflict situation or the second conflict situation;
[0170] Eliminate the conflicting attribute object parameter values according to the weights of each lighting simulation object to obtain the stage lighting simulation plan;
[0171] Among them, the first conflict situation is that the simulation attribute objects are the same and the parameter values of the attribute objects conflict, and the second conflict situation is that the simulation attribute objects are different and the simulation effects conflict.
[0172] In one embodiment, the second generation module 304 is further configured to generate first lighting simulation parameters according to the stage lighting simulation scheme;
[0173] Extract virtual stage performance objects and their virtual performance data from the virtual stage performance simulation data, and convert the virtual performance data into second lighting simulation parameters;
[0174] Generate the virtual stage lighting simulation parameters according to the first lighting simulation parameters and the second lighting simulation parameters.
[0175] In one embodiment, the second generation module 304 is further configured to generate a virtual stage lighting simulation script according to the stage lighting model parameters, the lighting simulation data, and the virtual stage lighting simulation parameters;
[0176] Generate the virtual stage lighting simulation effect according to the virtual stage lighting simulation script and the virtual stage performance simulation data.
[0177] The virtual stage lighting simulation device 300 provided in this embodiment can implement the virtual stage lighting simulation method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.
[0178] The virtual stage lighting simulation device provided in this embodiment automatically extracts virtual stage scenario metadata by establishing different types of stage lighting model parameters and lighting simulation data according to the specification data of stage lighting equipment, generates a stage lighting simulation scheme according to the stage scenario metadata and the stage lighting model parameters, automatically generates virtual stage lighting simulation parameters according to the virtual stage lighting simulation scheme and the stage performance simulation data, and automatically completes the animation effect simulation of the virtual stage lighting by using the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data. It can automatically complete the animation effect design and simulation of the stage lighting according to the stage scenario design requirements such as the scene, characters, and music of the stage program, improving the lighting simulation efficiency and simulation effect.
[0179] Embodiment 3
[0180] In addition, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the computer program executes the virtual stage lighting simulation method provided in Embodiment 1 when running on the processor.
[0181] The electronic device provided in this embodiment can implement the virtual stage lighting simulation method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.
[0182] Embodiment 4
[0183] This application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the virtual stage lighting simulation method provided in Embodiment 1.
[0184] In this embodiment, the computer-readable storage medium can be a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, an optical disk, etc.
[0185] The computer-readable storage medium provided in this embodiment can implement the virtual stage lighting simulation method provided in Embodiment 1. To avoid repetition, it will not be elaborated here.
[0186] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or terminal including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal. Without more limitations, the element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or terminal including the element.
[0187] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to enable a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in various embodiments of this application.
[0188] The embodiments of this application have been described above in conjunction with the accompanying drawings. However, this application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Those of ordinary skill in the art, under the inspiration of this application, without departing from the purpose of this application and the scope protected by the claims, can also make many forms, all of which fall within the protection scope of this application.
Claims
1. A simulation method for virtual stage lighting, characterized in that, The method includes: Construct different types of stage lighting model data according to the specification data of stage lighting equipment, where each of the stage lighting model data includes stage lighting model parameters and lighting simulation data; Extract virtual stage scenario metadata from virtual stage performance simulation data; Generate a stage lighting simulation plan based on the virtual stage scenario metadata and the stage lighting model parameters through a scenario lighting simulation algorithm; Generate virtual stage lighting simulation parameters according to the stage lighting simulation plan and the virtual stage performance simulation data; Generate a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data; The generating a stage lighting simulation plan based on the virtual stage scenario metadata and the stage lighting model parameters through a scenario lighting simulation algorithm includes: Obtain multiple multi-dimensional scenario metadata vectors according to the virtual stage scenario metadata through a scenario lighting simulation algorithm, statistically count the occurrence times of each parameter value of each attribute object of the virtual stage lighting model under each of the multi-dimensional scenario metadata vectors based on historical lighting design data in different scenarios, and generate a two-dimensional matrix of the virtual stage lighting model attribute object and the multi-dimensional scenario metadata vector according to the occurrence times of each parameter value of each attribute object under each multi-dimensional scenario metadata vector; Compare the metadata vector of the current scenario with each of the multi-dimensional scenario metadata vectors of the two-dimensional matrix to obtain a target metadata vector that matches the metadata vector of the current scenario; Determine the parameter value with the most occurrences among the attribute objects of the target metadata vector; Generate a stage lighting simulation plan according to the parameter value with the most occurrences and the stage lighting model parameters.
2. The method according to claim 1, characterized in that, The virtual stage performance simulation data includes a virtual stage simulation script and audio-visual data. The extracting virtual stage scenario metadata from the virtual stage performance simulation data includes: Extract the virtual stage scenario metadata from the virtual stage simulation script; Extract the virtual stage scenario metadata from the audio-visual data, where the virtual stage scenario metadata includes program metadata, scene metadata, character metadata, prop metadata, and music metadata.
3. The method according to claim 1, characterized in that, The generating a stage lighting simulation plan according to the parameter value with the most occurrences and the stage lighting model parameters includes: Generate at least two scenario lighting simulation plans for the current scenario according to the parameter value with the most occurrences and the stage lighting model parameters; Combine at least two of the scenario lighting simulation plans according to a preset lighting simulation plan combination strategy to obtain the stage lighting simulation plan.
4. The method according to claim 3, characterized in that, The preset lighting simulation plan combination strategy includes a non-conflict combination strategy. The combining at least two of the scenario lighting simulation plans according to the preset lighting simulation plan combination strategy includes: When the simulation objects of at least two of the scenario lighting simulation plans are different and the simulation effects do not conflict, add at least two of the scenario lighting simulation plans according to the non-conflict combination strategy to obtain the stage lighting simulation plan.
5. The method according to claim 3, characterized in that, The preset lighting simulation scheme combination strategy includes a conflict combination strategy. Combining at least two of the scenario lighting simulation schemes according to the preset lighting simulation scheme combination strategy includes: When at least two of the scenario lighting simulation schemes belong to the first conflict situation or the second conflict situation, determining the weights of each lighting simulation attribute object in at least two of the scenario lighting simulation schemes according to the conflict combination strategy; Eliminating the conflicting attribute object parameter values according to the weights of each lighting simulation object to obtain a stage lighting simulation scheme; Wherein, the first conflict situation is that the simulation attribute objects are the same and the attribute object parameter values conflict, and the second conflict situation is that the simulation attribute objects are different and the simulation effects conflict.
6. The method according to claim 1, characterized in that, Generating virtual stage lighting simulation parameters according to the stage lighting simulation scheme and the virtual stage performance simulation data includes: Generating first lighting simulation parameters according to the stage lighting simulation scheme; Extracting virtual stage performance objects and their virtual performance data from the virtual stage performance simulation data, and converting the virtual performance data into second lighting simulation parameters; Generating the virtual stage lighting simulation parameters according to the first lighting simulation parameters and the second lighting simulation parameters.
7. The method according to claim 1, characterized in that, Generating a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data includes: Generating a virtual stage lighting simulation script according to the stage lighting model parameters, the lighting simulation data, and the virtual stage lighting simulation parameters; Generating the virtual stage lighting simulation effect according to the virtual stage lighting simulation script and the virtual stage performance simulation data.
8. A simulation device for virtual stage lighting, characterized in that, The device includes: A construction module for constructing different types of stage lighting model data according to the specification data of stage lighting equipment, and each stage lighting model data includes stage lighting model parameters and lighting simulation data; An extraction module for extracting virtual stage scenario metadata from the virtual stage performance simulation data; A first generation module for generating a stage lighting simulation scheme based on the virtual stage scenario metadata and the stage lighting model parameters through a scenario lighting simulation algorithm; A second generation module for generating virtual stage lighting simulation parameters according to the stage lighting simulation scheme and the virtual stage performance simulation data; A third generation module for generating a virtual stage lighting simulation effect according to the stage lighting model parameters, the lighting simulation data, the virtual stage lighting simulation parameters, and the virtual stage performance simulation data; The first generation module is further configured to obtain multiple multi-dimensional scene metadata vectors according to the virtual stage scenario metadata through a scenario lighting simulation algorithm, count the occurrence times of each parameter value of each attribute object of the virtual stage lighting model based on the historical lighting design data in different scenes, and generate a two-dimensional matrix of the virtual stage lighting model attribute object and the multi-dimensional scene metadata vector according to the occurrence times of each parameter value of each attribute object in each multi-dimensional scene metadata vector; Compare the metadata vector of the current scenario with each multi-dimensional scenario metadata vector of the two-dimensional matrix to obtain a target metadata vector that matches the metadata vector of the current scenario; Determine the parameter value that appears most frequently among the attribute objects of the target metadata vector; Generate a stage lighting simulation plan based on the parameter value that appears most frequently and the stage lighting model parameters.
9. An electronic device, characterized in that, It includes a memory and a processor. The memory stores a computer program, and the computer program executes the simulation method of virtual stage lighting according to any one of claims 1 to 7 when running on the processor.
10. A computer-readable storage medium, characterized in that, It stores a computer program, and the computer program executes the simulation method of virtual stage lighting according to any one of claims 1 to 7 when running on a processor.
Citation Information
Patent Citations
Monitoring method of abnormal stage performance behaviors based on vision sensing network
CN107463898A
Stage lamp control method and device
CN111586942A
Cited By
Light virtual simulation system based on virtual scene
CN121921429A