Conversation lens management method and device, electronic equipment and readable storage medium

By obtaining multi-character dialogue scripts and matching dynamic lens configuration strategies in the game, the problem of single lens perspective in the existing technology is solved, multi-view dialogue shooting is realized, and game experience and productivity are improved.

CN120189714APending Publication Date: 2025-06-24BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311775039.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

In the prior art, the lens configuration has a single perspective and cannot guarantee the visual effect. Especially in multi-person conversation scenarios, occlusion problems are prone to occur, limiting the player's gaming experience.

Method used

By obtaining dialogue scripts for multiple characters in the virtual dialogue scenario, matching dynamic configuration strategies based on the positional relationship between characters, combining atmosphere information and the roles to which the lines belong, matching the target shot for each line, realizing multi-view dialogue shooting.

Benefits of technology

The multi-view dialogue screen is realized, which improves the productivity of the lens, reduces development costs, ensures that players can clearly see the expressions, movements or details in the conversation, and enhances the immersion and game experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120189714A_ABST
    Figure CN120189714A_ABST
Patent Text Reader

Abstract

The invention provides a dialogue shot management method and device, electronic equipment and a readable storage medium, and relates to the field of game making. Comprising the steps that dialogue scripts of multiple roles in a virtual dialogue scene are obtained, and the number of the multiple roles is larger than or equal to a preset number; matching a dynamic configuration strategy according to a position relationship among roles in the virtual dialogue scene, and matching a target shot for the lines according to the dynamic configuration strategy, the atmosphere information and the roles to which the lines belong; and shooting the virtual dialogue scene through the target lens. According to the embodiment of the invention, the lenses with different lens parameters can be matched based on different scenes and stations to present lines and roles, so that various lens configuration rules are realized in a programmed manner, and the production efficiency of the lenses is improved. Meanwhile, the problem of shielding of the arranged lens can be prevented, the picture can change along with the view angles of different speaking roles, and the purpose that players clearly see expressions, actions or details in the dialogue is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game production, and in particular to a method, device, electronic device and readable storage medium for managing dialogue shots. Background Art

[0002] With the rapid development of online games, scenes with task processing have been added to games, thus enriching game content and player gaming experience. In MMORPG products, when players talk with task NPCs (Non-Player Characters) or with each other, different forms of dialogue scenarios will be shown to the players to enrich the player experience.

[0003] Traditional lens arrangement schemes are time-consuming and labor-intensive, and require constant manual intervention, which not only wastes time but also increases the complexity of the work. In related technologies, the lens in the game engine is configured at a fixed dialogue position to produce dialogue scenes, but the simple static lens generated by the configuration usually presents a single perspective and lacks change and dynamism. Moreover, in dialogue scenes with more characters, the characters are relatively close to each other, and it is possible that the lens tends to favor the perspective of one party, making it impossible for players to clearly see the expressions, actions or details in the dialogue and miss important content in the dialogue, limiting the player's gaming experience. Summary of the invention

[0004] In view of this, the present application provides a dialogue lens management method, device, electronic device and readable storage medium, the main purpose of which is to solve the problem that the existing lens configuration has a single viewing angle and cannot guarantee the visual effect.

[0005] In a first aspect, an embodiment of the present application provides a method for managing a dialogue shot, including:

[0006] Obtaining a dialogue script of multiple characters in a virtual dialogue scenario, wherein the dialogue script includes lines and line configuration information, the line configuration information includes atmosphere information and the characters to which the lines belong, and the number of the multiple characters is greater than or equal to a preset number;

[0007] Matching a dynamic configuration strategy according to the positional relationship between the characters in the virtual dialogue scenario, and matching a target shot for the line according to the dynamic configuration strategy, atmosphere information, and the character to which the line belongs, wherein the dynamic configuration strategy includes at least one of a line hit condition, a character hit condition, and a preset character shot library;

[0008] The virtual dialogue scene is filmed through the target lens.

[0009] Second aspect, an embodiment of the present application provides a management device for dialogue shots, including:

[0010] An acquisition module, configured to acquire dialogue scripts of multiple characters in a virtual dialogue scenario, where the dialogue script includes lines and line configuration information, the line configuration information includes atmosphere information and the character to which the line belongs, and the number of multiple characters is greater than or equal to a preset number;

[0011] A management module, configured to match a dynamic configuration strategy according to the positional relationship between characters in the virtual dialogue scenario, and match a target shot for the line according to the dynamic configuration strategy, atmosphere information, and the character to which the line belongs, where the dynamic configuration strategy includes at least one of a line hit condition, a character hit condition, and a preset character shot library;

[0012] A production module, configured to shoot the virtual dialogue scenario through the target shot.

[0013] Third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the method in the first aspect are implemented.

[0014] Fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.

[0015] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method in the first aspect.

[0016] Sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to implement the method in the first aspect.

[0017] In the embodiment of the present application, for a virtual dialogue scenario with a relatively large number of people in a dialogue, dialogue scripts of multiple characters in the virtual dialogue scenario with the number of characters greater than or equal to a preset number are acquired. A dynamic configuration strategy for arranging the target shot is matched according to the positional relationship between characters in the virtual dialogue scenario, so as to locate special lines, characters used as shot references, and available preset character shot libraries respectively through the line hit condition, character hit condition, and preset character shot library in the dynamic configuration strategy. Then, based on the hit lines, characters, preset character shot library, atmosphere information in the dialogue script, and the character speaking the line, a target shot is matched for the line. Finally, the virtual dialogue scenario is shot through the target shot, and the shot content is rendered and displayed to present a multi-perspective dialogue screen to the player.

[0018] In the embodiment of the present application, the conditions and lens library for arranging the lens are dynamically set by the character's position, so that the system can match lenses with different lens parameters based on different scenarios and positions to present lines and characters, thereby programmatically implementing multiple lens configuration rules, greatly improving the production efficiency of the lens, reducing the development cost of lens sequences in scenarios such as dialogues in the game, and helping to quickly generate high-quality multi-person dialogue lenses. In addition, the appropriate lens is selected by fully considering the positions between characters and the configuration of the dialogue script, which not only effectively prevents the occlusion problem of the arranged lens, but also enables the picture to change with the perspective of different speaking characters, so as to achieve the purpose of allowing players to clearly see the expressions, actions or details in the dialogue, and at the same time, players can also intuitively perceive the dialogue atmosphere through the game screen. In this way, the picture quality and effect of the virtual dialogue scene are guaranteed, so that players can better understand the content of the dialogue, enhance the player's sense of immersion, and help players better feel the communication and interaction between characters.

[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 A flowchart of a method for managing a dialogue shot according to an embodiment of the present application is shown;

[0022] Figure 2 A second flowchart of the method for managing dialogue shots according to an embodiment of the present application is shown;

[0023] Figure 3 The third flowchart of the method for managing dialogue shots according to an embodiment of the present application is shown;

[0024] Figure 4 One of the schematic diagrams of the position relationship between roles provided in the embodiment of the present application is shown;

[0025] Figure 5 The second schematic diagram of the position relationship between the roles provided in the embodiment of the present application is shown;

[0026] Figure 6 The third schematic diagram of the position relationship between the roles provided in the embodiment of the present application is shown;

[0027] Figure 7 Shows the fourth schematic diagram of the positional relationship between roles provided by the embodiments of the present application;

[0028] Figure 8 Shows the structural block diagram of the management device for dialogue shots in the embodiments of the present application;

[0029] Figure 9 Shows the structural block diagram of the electronic device in the embodiments of the present application. Detailed implementation manners

[0030] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.

[0032] Next, in conjunction with the accompanying drawings, through specific embodiments and their application scenarios, the dialogue shot management method, device, electronic device, and readable storage medium provided by the embodiments of the present application will be described in detail.

[0033] The embodiments of the present application provide a method for managing dialogue shots, as Figure 1 shown, the method includes:

[0034] Step 101, obtain the dialogue scripts of multiple roles in the virtual dialogue scenario.

[0035] In the embodiments of the present application, the virtual dialogue scenario includes, but is not limited to, the task dialogue between task NPCs, the task dialogue between the player character and the task NPC, and the scenario of the dialogue content generated by the dialogue between player characters. The virtual dialogue scenario in the embodiments of the present application is applicable to online games or single-player games, including but not limited to Massive Multiplayer Online Role-Playing Games (MMORPGs), competitive games, etc., so that when a dialogue occurs between NPCs or player characters, the dialogue scenario is filmed based on the automatically configured target camera, and then rendered into a scene picture and displayed through the display interface of the player's electronic device.

[0036] It is worth mentioning that since the number of characters in the virtual dialogue scenario will affect the complexity of the dialogue interaction and indirectly determine the difficulty of arranging the camera, the embodiments of the present application are applicable to virtual dialogue scenarios where the number of multiple characters is greater than or equal to a preset number. For example, the preset number can be set to possible dialogue character numbers in large-scale multiplayer online games such as 4, 6, or 9.

[0037] Specifically, the dialogue script includes lines and line configuration information. The line configuration information includes configuration information related to the lines when the characters are having a dialogue. For example, the atmosphere information of the lines, the character to which the lines belong, the line order, the action feature information of the character to which the lines belong, the identification label of the lines, etc. The embodiments of the present application will not list them one by one. Lines refer to the content generated by different dialogue characters having a dialogue in the virtual dialogue scenario. The standing position refers to the positional relationship between virtual characters. The atmosphere information refers to a distinctive and highly individualized atmosphere that surrounds or belongs to a specific origin. For example, normal, tense, ambiguous, etc. The atmosphere information can be set by the creator of the lines or can be matched by the system according to the intention and semantics of the lines. The identification label of the lines is used to mark special lines and can be set according to the needs of the line creator. For example, an animation label indicating that the character makes a large movement when saying the lines, or a music label for inserting accompaniment when saying the lines, etc. The line order is used to record the sequence of output of multiple lines.

[0038] It can be understood that the dialogue script can be a dialogue script preset by the operator or a dialogue configuration input by the player in real time, thus opening up the configuration of the camera, and a camera sequence can be automatically generated after the user inputs the dialogue configuration.

[0039] Step 102: Match a dynamic configuration strategy according to the positional relationship between the characters in the virtual dialogue scenario, and match a target camera for the lines according to the dynamic configuration strategy, the atmosphere information, and the character to which the lines belong.

[0040] Among them, the dynamic configuration strategy includes at least one of a line hit condition, a character hit condition, and a preset character camera library.

[0041] In this embodiment, a dynamic configuration strategy is matched according to the positional relationship between the characters in the virtual dialogue scenario, so as to locate special lines, characters used as shot references, and available preset character shot libraries respectively through the line hit condition, character hit condition, and preset character shot library in the dynamic configuration strategy. Thus, by synthesizing the possible problems that may occur when arranging shots for different standing positions, a dynamic configuration strategy for arranging target shots is determined. On the basis of ensuring that the shots that can guarantee the picture quality are selected, the randomness and diversity of shot arrangement are realized, the dynamics of the dialogue scenario production are increased, rich shot perspectives are provided for the virtual dialogue scenario, and the production effect of a diversified dialogue scenario is achieved. Further, high-quality target shots are comprehensively screened based on the dynamic configuration strategy, the atmosphere of the dialogue, and the character to which the line belongs, and a shot sequence of the target shots is generated according to the line order, so that the captured picture can take into account visual coherence and content presentation, ensure the picture quality and effect of the virtual dialogue scenario, and further better express the plot and character emotions of the virtual dialogue scenario, which is beneficial to improving the player's immersion and sense of substitution in the game. Moreover, by dynamically adjusting the configuration strategy required for screening shots, the reuse of different preset shots is realized. Even for special perspectives, diverse shot arrangements can be achieved by switching lenses with different functions, without the need to pre-produce a fixed shot sequence and without manual intervention, greatly reducing the workload and cost of shot configuration.

[0042] In an embodiment of the present application, step 102, that is, matching a dynamic configuration strategy according to the positional relationship between the characters in the virtual dialogue scenario, and matching a target shot for the line according to the dynamic configuration strategy, atmosphere information, and the character to which the line belongs, includes:

[0043] Step 102-1, if the positional relationship satisfies the first preset standing position, determining the hit result of the line according to the line hit condition associated with the first preset standing position, and screening the target shot from the preset character shot library associated with the first preset standing position according to the hit result, atmosphere information, and the character to which the line belongs.

[0044] Among them, the first preset standing position represents a standing position method with a relatively loose positional relationship between the characters, which can be determined according to the shot layout experience and the number of characters. For example, as Figure 4 shown, 4 characters stand face to face in pairs and stand side by side in pairs, and there is a large space around the characters where shots can be arranged.

[0045] Specifically, the preset character shot library includes multiple preset shots with shot parameters such as shot position, rotation angle, focal length, following target, and fixation target pre-configured. The shot parameters of the preset shots deployed in the preset character shot library can be reasonably set according to the shooting requirements of the virtual dialogue scenario. The shot parameters of the shots in different preset character shot libraries are different to adapt to diverse character position relationships and dialogue scenario requirements. The embodiments of the present application do not specifically limit the shot parameters of the preset character shot library.

[0046] It can be understood that the line hit conditions corresponding to different first preset standing positions can be the same or different.

[0047] In this embodiment, when the position relationship of multiple characters in the virtual dialogue scenario is the first preset standing position, it can be determined that the character standing positions in the virtual dialogue scenario are relatively loose and the shot position has a large tolerance. Then, a dynamic configuration strategy including the line hit conditions corresponding to the first preset standing position and the preset character shot library can be matched. After determining the dynamic configuration strategy, the hit result of the line is determined according to the line hit conditions associated with the first preset standing position, the lines for which single-sentence special shots can be set are determined, and the target shots suitable for the lines and characters are screened from the preset character shot library associated with the first preset standing position in combination with the hit result of the line, the atmosphere information, and the character to which the line belongs. In this way, richer shots can be provided for video capture, better meeting the diverse presentation requirements of the virtual dialogue scenario, supporting the generation of more expressive shot sequences, and thus better expressing the plot and character emotions of the virtual dialogue scenario.

[0048] In a specific embodiment, the line hit conditions include a hit probability and a preset line interval. Determining the hit result of the line according to the line hit conditions associated with the first preset standing position in step 102-1 specifically includes: if the line meets the hit probability, or the number of line intervals between the line and the previously hit line is greater than the preset interval number, it is determined that the line is hit; if the line does not meet the hit probability and the number of line intervals between the line and the previously hit line is less than or equal to the preset interval number, it is determined that the line is not hit.

[0049] Among them, the hit probability and the preset line interval can be reasonably set according to the required visual effect. Of course, in order to better balance the number of hit / unhit lines, the smaller the set hit probability, the smaller the set preset line interval. For example, the lines for which single-sentence special shots are set are hit with a probability of 30% and not hit with a probability of 70%. The maximum interval between the lines for which single-sentence special shots are set among all lines does not exceed 3, that is, if the number of continuously unhit lines exceeds 3, the fourth line will surely be hit.

[0050] In this embodiment, for each line of dialogue, it is screened based on the hit probability and the preset line interval to determine the lines for which single-sentence special shots can be set. This not only realizes the random selection of lines through the hit probability, but also uses the preset line interval to ensure the number of single-sentence special shot lines with hits, so as to meet the diverse needs of personalized shot allocation, increase the dynamics of the dialogue scenario production, and thus present rich visual effects to players.

[0051] In a specific embodiment, the line hit conditions include the hit probability and the preset line interval. In step 102-1, according to the hit result, the atmosphere information, and the character to which the line belongs, the target shots are screened from the preset character shot library associated with the first preset position. Specifically, if the line is not hit, the target shots are matched from the first character shot library according to the atmosphere information; if the line is hit, the target shots are matched from the second character shot library according to the atmosphere information.

[0052] Among them, the character to which the line belongs includes the output character and the receiving character. The preset character shot library (ConditionSpeaker) associated with the first preset position includes the first character shot library and the second character shot library, which are respectively used to match the target shots of the hit lines and the unhit lines. The first character shot library corresponds to the output character and the receiving character of the line, that is, the shot library determined by the output character (speaker) and the receiving character (dialogue target) of the dialogue. For example, if the output character is character A and the receiving character is character B, the corresponding first character shot library is denoted as LensA2B, and multiple preset shots in LensA2B are used to shoot multiple perspectives of character A speaking to character B; when the output character is character B and the receiving character is character A, the corresponding first character shot library is denoted as LensB2A, and multiple preset shots in LensB2A are used to shoot multiple perspectives of character B speaking to character A. Similarly, if the output character is character B and the receiving character is character D, the corresponding first character shot library is denoted as LensB2D, and multiple preset shots in LensB2D are used to shoot multiple perspectives of character B speaking to character D; if the output character is character F and the receiving character is character C, the corresponding first character shot library is denoted as LensF2C, and multiple preset shots in LensF2C are used to shoot multiple perspectives of character F speaking to character C. The second character shot library refers to the shot library corresponding to the output character of the line, that is, the shot library determined by the output character (speaker) of the dialogue. For example, if the output character is character A or character B, the corresponding second character shot library is denoted as LensAB, and LensAB is used to process the shot rules related to character A or character B; if the output character is character C or character D, the corresponding second character shot library is denoted as LensCD, and LensCD is used to process the shot rules related to character C and character D. The embodiments of the present application will not list them one by one.

[0053] In this embodiment, for each line of dialogue in a single sentence, if the line is not hit, the preset shots deployed in the first character shot library are used as the basis for shot screening, and the target shots related to the output character and the receiving character of the line are matched according to the shot weights corresponding to the atmosphere information. Conversely, if the line is hit, the preset shots deployed in the second character shot library are used as the basis for shot screening, and the target shots related to the output character of the line are matched according to the shot weights corresponding to the atmosphere information. This results in random shot changes between each independent line of dialogue, and makes the shots more in line with the emotions and atmosphere of the scene, ensuring that each line of dialogue has a suitable shot presentation, avoiding the long-term use of a single perspective shot, and enhancing the coherence of the dialogue and the immersion of the player.

[0054] Step 102-2: If the positional relationship satisfies the second preset standing position, determine the reference character in the virtual dialogue scenario according to the character hit condition associated with the second preset standing position, and screen the target shots from the preset character shot library associated with the second preset standing position based on the target shot orientation, atmosphere information, and the character to which the line belongs of the reference character.

[0055] Among them, the second preset standing position represents a standing position method with a relatively compact positional relationship between characters, which can be determined according to shot layout experience and the number of characters. For example, as Figure 5 shown, among 4 characters, character A stands facing the other characters (character B, character C, character D), and character B, character C, and character D stand side by side. Since the distance between character B, character C, and character D is relatively small, when shooting character A with a shot deployed near character B, character C, and character D during the dialogue between character B, character C, character D and character A, there may be certain occlusion in some perspectives, resulting in the player being unable to clearly see some expressions, actions, or details in the dialogue and missing important content in the dialogue. Similarly, as Figure 6 shown, among 5 characters, character A stands facing the other characters (character C, character D, character E, character F), and character C, character D, character E, and character F stand side by side. As Figure 7 shown, among 6 characters, character A and character B stand side by side and face the other characters (character C, character D, character E, character F), and character C, character D, character E, and character F stand side by side.

[0056] Specifically, the reference character can be set as the character facing the target number of characters in the positional relationship. The target number can be obtained by referring to a certain proportion according to the total number of dialogue characters in the virtual dialogue scenario. For example, character A in Figure 5 and Figure 6 , Figure 7Characters A and B. The target camera orientation of the reference character refers to the shooting direction, angle range, and position range of the camera lens relative to the reference character. The target camera orientation of the reference character can be determined according to a preset positioning rule. For example, there is a 60% probability of setting the target camera orientation to the left of the reference character and a 40% probability of setting it to the right of the reference character, or a 70% probability of setting it to the left of the reference character and a 30% probability of setting it to the right of the reference character. The target camera orientations of different reference characters can be different, and the embodiments of the present application do not make specific limitations.

[0057] It can be understood that the character hit conditions corresponding to different second preset standing positions can be the same or different.

[0058] In this embodiment, when the positional relationship of multiple characters in the virtual dialogue scenario is the second preset standing position, it can be determined that the character standing positions in the virtual dialogue scenario are relatively compact and the probability of occlusion problems is relatively high. Then, a dynamic configuration strategy including the character hit conditions corresponding to the second preset standing position and the preset character lens library can be matched. After determining the dynamic configuration strategy, the reference character that can be used as a reference for the lens position is determined according to the character hit conditions associated with the second preset standing position. And in combination with the target camera orientation, atmosphere information, and the character to which the line belongs of the reference character, the target lens suitable for the line and the character is screened from the preset character lens library associated with the second preset standing position. In this way, when shooting, as many game characters as possible can fall into the shooting field of view of the lens, ensuring the presentation quality of the dialogue scenario picture, and the player can intuitively perceive the dialogue atmosphere through the game picture, which is beneficial to realizing an immersive game experience.

[0059] In a specific embodiment, the character to which the line belongs includes an output character and a receiving character. Step 102-2 of screening the target lens from the preset character lens library associated with the second preset standing position according to the target camera orientation, atmosphere information, and the character to which the line belongs of the reference character specifically includes: screening the target lens from the first character lens library corresponding to the character to which the line belongs according to the target camera orientation and atmosphere information of the reference character.

[0060] Among them, the character to which the line belongs includes an output character and a receiving character. The preset character lens library (ConditionSpeaker) associated with the second preset standing position includes a first character lens library. The first character lens library corresponds to the output character and the receiving character of the line, that is, the lens library determined by the output character (speaker) and the receiving character (dialogue target) of the dialogue.

[0061] In this embodiment, the weight value of the atmosphere information is matched with different preset shots in the first character shot library corresponding to the output character of the line, and the preset shot that matches the weight value of the atmosphere information is determined as the candidate shot. And the preset shot in the first character shot library corresponding to the output character of the line, whose shot parameters conform to the target shot orientation, is determined as the candidate shot. The candidate shot that hits both the atmosphere information and the target shot orientation of the reference character is used as the final target shot. Therefore, by using the atmosphere information and the target shot orientation of the reference character, the target shot related to the data character of the line is dynamically selected to shoot the virtual dialogue scenario, and different game screens are presented. Without manual arrangement of the shot, the diversity of the character perspective can be achieved, the dynamics of the dialogue scenario production is increased, and the immersion and substitution sense of the player in the game are improved.

[0062] It should be noted that the first character shot library includes at least one preset shot, and at least one preset shot in the same first character shot library corresponds to different atmosphere weight values.

[0063] Step 103, shooting the virtual dialogue scenario through the target shot.

[0064] In the embodiment of the present application, for the virtual dialogue scenario with a large number of people, the dialogue scripts of multiple characters in the virtual dialogue scenario with the number of characters greater than or equal to the preset number are obtained. According to the positional relationship between the characters in the virtual dialogue scenario, the dynamic configuration strategy for arranging the target shot is matched, so as to locate the special line, the character as the shot reference, and the available preset character shot library respectively through the line hit condition, the character hit condition and the preset character shot library in the dynamic configuration strategy. Then, based on the hit line, character, preset character shot library, the atmosphere information in the dialogue script and the character who says the line, the target shot is matched for the line. Finally, the virtual dialogue scenario is shot through the target shot, and the captured content is rendered and displayed to present a multi-perspective dialogue screen to the player. By dynamically setting the conditions and shot library for arranging the shot according to the character positions, the system can match the shots with different shot parameters based on different scenarios and positions to present the line and the character, thus programmatically implementing various shot configuration rules, greatly improving the production efficiency of the shot, reducing the development cost of the shot sequence in the dialogue and other scenarios in the game, and helping to quickly generate high-quality multi-person dialogue shots. Moreover, fully considering the positions between characters and the configuration of the dialogue script to select the appropriate shot not only effectively prevents the problem of occlusion of the arranged shot, but also enables the screen to change with the perspective of different speaking characters, achieving the purpose of allowing the player to clearly see the expressions, actions or details in the dialogue. At the same time, the player can also intuitively perceive the dialogue atmosphere through the game screen. Furthermore, the picture quality and effect of the virtual dialogue scenario are guaranteed, enabling the player to better understand the dialogue content, enhancing the immersion of the player, and helping the player to better feel the communication and interaction between characters.

[0065] In one embodiment of the present application, as Figure 2 shown, the method for managing dialogue shots further includes:

[0066] Step 201, if it is determined according to the line configuration information that a target dialogue event occurs in the virtual dialogue scenario, match the event priority, the event shot configuration rule, and the event shot library according to the target dialogue event.

[0067] Among them, the line configuration information includes at least one of the role to which the line belongs, the line order, the action feature information of the role to which the line belongs, the identification label of the line, and the atmosphere information.

[0068] Specifically, the event priority matched with the target dialogue event is used to determine the order of execution of the event shot configuration rules. The rule with a higher event priority is executed first. For the rules to be executed subsequently, it is necessary to determine whether the target content to be modified has been modified by the rule with a higher priority. If it has been modified, the current rule is not applied.

[0069] The event shot configuration rule matched with the target dialogue event is used to define the shot screening method. For example, the shot is screened by the atmosphere information and / or the target shot orientation, or the target shot is screened according to the position relationship, or the target shot is screened according to the role, etc. In the embodiments of the present application, the event shot configuration rule can be set according to the game plot and visual effect requirements, and no specific limitation is made.

[0070] The event shot library and the event shot configuration rule matched with the target dialogue event are used to process dialogue events with different functions. Different target dialogue events can be associated with different event shot libraries and event shot configuration rules according to the specific display function. Exemplarily, the event shot library includes a preset character shot library (ConditionSpeaker) and other special shot libraries, such as a special shot library (LensSpecial), an insert shot library (LensInsert), a turn head shot library (LensTurn), an initial shot library (LensInit), a take shot library (LensTake), a hand close-up shot library (LensHand), a large movement shot library (LensAction), a long shot library (LensTele), etc. No specific limitation is made in the embodiments of the present application. The shot parameters of at least one preset shot in the same event shot library are all within the shot parameter range corresponding to the event shot library, and the corresponding shot parameter ranges in different event shot libraries are different to facilitate adapting to different dialogue events.

[0071] It can be understood that the event priorities, event shot configuration rules, and event shot libraries matched by different target dialogue events can be the same or different, and can be reasonably set according to the required visual effects. The embodiments of the present application do not make specific limitations. Of course, for different character position relationships, the same target dialogue event can also correspond to different event shot libraries to achieve diverse visual effect requirements.

[0072] It is worth mentioning that different event priorities of target dialogue events associated with different standing positions are pre-configured in the system. Before or after determining that a target dialogue event has occurred, the event priority of the target dialogue event stored in the system that matches the position relationship of the characters in the virtual dialogue scenario is determined, so as to facilitate the screening of target shots through the preset event priority. For example, taking the Figure 4 standing position shown as an example, the order of event priorities can be: the first target dialogue event / the second target dialogue event > the third target dialogue event > the fifth target dialogue event > the sixth target dialogue event > the fourth target dialogue event. Taking the Figure 6 standing position shown as an example, the preset order of event priorities can be: the first target dialogue event / the second target dialogue event > the fourth target dialogue event > the third target dialogue event > the fifth target dialogue event > the sixth target dialogue event.

[0073] Step 202: Screen event shots from the event shot library of the target dialogue event according to the event priority and the event shot configuration rule, and replace the target shot with the event shot.

[0074] In this embodiment, considering that when a character makes an action or is in a special scene, there are often multiple lines of dialogue content that interact with each other. When it is determined that a target dialogue event occurs in the virtual dialogue scenario, it means that relatively special events such as lines and character actions have appeared in the dialogue scenario. At this time, the target shot can be reselected from the event shot library according to the real-scene shot configuration rule corresponding to the target dialogue event with the highest event priority, so as to highlight the expressiveness of the target dialogue event, make the dialogue process in which the target dialogue event occurs more flexible and rich in content visually, provide a richer shot perspective for the virtual dialogue scenario, and facilitate the generation of a more expressive shot sequence of the virtual dialogue scenario, greatly enhancing the attraction of the virtual dialogue scenario to players. In addition, since the event priority is associated with the target dialogue event, the operator does not need to set independent event shot configuration rules for different target dialogue events, which helps to simplify the configuration requirements for the operator, facilitate the reuse of event shot configuration rules, reduce the development cost of shot sequences in dialogues and other scenarios in the game, and improve the shot development efficiency.

[0075] In a specific embodiment, step 202 can be implemented in the following manner:

[0076] (1) If the action feature information conforms to the target action, it is determined that the first target dialogue event occurs in the virtual dialogue scenario; if it is determined that the first target dialogue event occurs in the virtual dialogue scenario and the output role of the line and the role that generates the target action are different, the first shot is screened from the event shot library corresponding to the role that generates the target action, and the target shot is replaced with the first shot.

[0077] Among them, the target action can be a giving action, a taking action, a turning action, etc., which can be reasonably set according to the actual visual effect requirements, and the embodiments of the present application do not make specific limitations.

[0078] In this embodiment, when the action feature information of the role to which the line belongs includes the action feature related to the target action, it indicates that the target action appears in the virtual dialogue scenario, and it is determined that the first target dialogue event occurs. And during the dialogue, if the target action and the speaker are not the same output role, the first shot corresponding to the role of the target action is used to replace the shot screened according to the current speaker. Thus, the perspective is transferred to the perspective related to the role that generates the target action, so as to highlight the target action in the dialogue process, make the camera lens echo the dialogue action, and improve the visual effect.

[0079] (2) If the line carries a target animation tag, it is determined that the second target dialogue event occurs in the virtual dialogue scenario; if it is determined that the second target dialogue event occurs in the virtual dialogue scenario, the second shot is screened from the event shot library according to the atmosphere information, and the target shot is replaced with the second shot.

[0080] In this embodiment, when generating the line, an identification tag can be pre-marked for the key line or the line with a special picture. When it is detected that the line has a target animation tag of a large-scale action of the role, it is determined that the second target dialogue event occurs. And when the dialogue triggers the second target dialogue event, the second shot is screened from the event shot library related to the line role according to the atmosphere for replacing the single-sentence target shot. Thus, the replaced target shot can highlight the large-scale action in the dialogue process, achieving the effect of the camera lens echoing the dialogue action and improving the viewing experience of the player.

[0081] (3) If the line is at the initial position or the end position of the line in the dialogue script, it is determined that the third target dialogue event occurs in the virtual dialogue scenario; if it is determined that the third target dialogue event occurs in the virtual dialogue scenario, the target line is determined according to the first trigger probability associated with the third target dialogue event; if the line is the target line, the third shot is screened from the event shot library corresponding to the first trigger probability according to the atmosphere information, and the target shot is replaced with the third shot.

[0082] In this embodiment, if the line is at the initial position or the end position of the lines in the dialogue script, it is determined that the third target dialogue event occurs in the virtual dialogue scenario. And the target line at the initial position or the end position of the line, where the shot to be replaced needs to be located, is determined through the first trigger probability, so as to realize the random setting of the target line with a certain probability. There is no need to define a fixed initial line position. Even for the same line segment, different shots may be used, so that from the perspective of the target shot, players can quickly perceive the start or end of the dialogue.

[0083] (4) If the line is at the first arrangement position corresponding to the positional relationship in the line sequence, it is determined that the fourth target dialogue event occurs in the virtual dialogue scenario; if it is determined that the fourth target dialogue event occurs in the virtual dialogue scenario, the fourth shot is screened from the event shot library according to the positional relationship and the atmosphere information, and the target shot is replaced with the fourth shot.

[0084] Among them, the first arrangement position is used to mark the lines in the dialogue that require specified shots. For example, long-shot, special shot, etc. The first arrangement positions corresponding to different character positional relationships may be the same or different. For example, as Figure 6 shown in the 5-character positional relationship, for all single-line lines, one shot is replaced every 4 lines, that is, the fourth target dialogue event is triggered every 4 lines. As Figure 7 shown in the 6-character positional relationship, for all single-line lines, one shot is replaced every 6 lines, that is, the fourth target dialogue event is triggered every 6 lines.

[0085] In this embodiment, if the line is at the position of the line specifying the shot in the line sequence of the lines, it is determined that the fourth target dialogue event occurs in the virtual dialogue scenario. At this time, the corresponding event shot library is determined according to the character positional relationship, and the fourth shot is screened from the event shot library that matches the positional relationship by using the atmosphere information for the replacement operation of the target shot. Thus, different shots are randomly inserted at some positions, so as to realize the dynamic change of the shot perspective, which is beneficial to reducing the boredom of players.

[0086] (5) If the line is at the second arrangement position in the line sequence, it is determined that the fifth target dialogue event occurs in the virtual dialogue scenario; if it is determined that the fifth target dialogue event occurs in the virtual dialogue scenario, the fifth shot is screened from the event shot library according to the character to which the line belongs and the atmosphere information, and the target shot is replaced with the fifth shot.

[0087] Among them, the second arrangement position is determined according to the role order of the first line group, and the role order of the first line group is the order determined according to the line order and the output role of the line. The role order of the first line group conforms to the first target sequence structure corresponding to the position relationship, and the output roles of some lines in the first line group are different. The first target sequence structure can be reasonably set according to role position management, and the embodiments of the present application do not make specific limitations. For example, the first target sequence structure is the XXYM combination of the line role order, where X, Y, and M can be any role, the position before XX is not X, and the position after M cannot be M. The Y position in the XXYM combination is used as the second arrangement position; as Figure 4 shown, when the line output role order is CAABCA and ABBCDA, the lines corresponding to AABC and BBCD can be used as the second line group. For another example, the first target sequence structure is the XYXN combination of the line role order, where X, Y, and N can be any role, the position before X is not X, and the second X position in the XXYM combination is used as the second arrangement position.

[0088] In this embodiment, if there is a first line group that conforms to the first target sequence structure corresponding to the position relationship among all the lines, the second arrangement position in the line order of the lines that need to update the shot is determined according to the first line group. When the currently spoken line is the line at the second arrangement position, it is determined that the fifth target dialogue event occurs. At this time, the fifth shot is matched in the event shot library related to the role who speaks the line through the atmosphere information, and the target shot is replaced with the fifth shot. Thus, in the scenario where multiple characters speak alternately, the perspectives of multiple characters are adjusted by variable camera adjustments, so as to dynamically adjust the shot layout according to different dialogue structures, making the shot perspective better follow the character changes.

[0089] (6) If the consecutive lines in the line order all belong to the same output role, it is determined that the sixth target dialogue event occurs in the virtual dialogue scenario; if it is determined that the sixth target dialogue event occurs in the virtual dialogue scenario, the number of lines in the second line group corresponding to the sixth target dialogue event is determined; the shot distribution rule associated with the number of lines and the second trigger probability of the shot distribution rule are determined; the sixth shot is screened from the event shot library according to the shot distribution rule and the atmosphere information, and the target shot is replaced with the sixth shot according to the second trigger probability.

[0090] Among them, the second line group corresponding to the sixth target dialogue event includes multiple consecutive lines belonging to the same output role.

[0091] In this embodiment, if consecutive lines in the line order of the lines all belong to the same output character, it indicates that there is a situation where the same output character speaks continuously. Multiple consecutive lines together form a line group with a multi-line structure, and it can be determined that the sixth target dialogue event occurs in the virtual dialogue scenario. At this time, the lines in the second line group are divided according to the second trigger probability of the target camera allocation rule and the camera distribution rule, and the corresponding sixth camera is allocated according to the division result. Thus, the appropriate camera distribution rule is dynamically selected according to the number of lines, enabling the camera to switch multiple times when a character speaks continuously, allowing the player to observe the dialogue scenario from multiple perspectives, avoiding the boredom caused by using the same perspective for a long time, and enhancing the display effect of the multi-line structure of the lines and the character.

[0092] It can be understood that the determination conditions of the target dialogue event and the camera update scheme can be reasonably set according to requirements such as the plot, style, and device, and are not limited to the scheme proposed in the embodiments of this application. There can also be other target dialogue events, which will not be elaborated in the embodiments of this application.

[0093] Specifically, for example, Figure 4 the positional relationship of the characters in

[0094] The first target dialogue event: When a character makes an action of giving or receiving an item, it is determined that the first target dialogue event is triggered. At this time, the giver and the receiver select a camera lens from the first character lens library and apply it.

[0095] The second target dialogue event: When it is detected that the current line hits a keyword, check whether the animation corresponding to the keyword has a target animation label with a large movement. If so, the second target dialogue event occurs and the large dynamic logic is triggered. At this time, a lens is randomly selected from the LensAction (large movement lens library) according to the atmosphere and the lens weight in that atmosphere and applied.

[0096] The third target dialogue event: When the lines are the first 2 lines of the dialogue script (the third target dialogue event), there is a 20% probability of not replacing, and an 80% probability of randomly selecting a lens from the long-shot lens library of the speaking character according to the atmosphere and the lens weight in that atmosphere and applying it to the second initial line.

[0097] The fourth target dialogue event: Except for the initial line, MultiLines, action-related lines, and large dynamic lines, every 10 lines, a lens is selected from the LensTele library according to the atmosphere and the lens weight in that atmosphere and applied.

[0098] Fifth target dialogue event: When the XXYM combination appears in the role order of SingleLine and MulitLines, set the shot at the third position of the XXYM combination to the shot in the second character shot library corresponding to character Y.

[0099] Sixth target dialogue event: For each MultiLines (the second line group), first determine the number of lines in the second line group. When the number of lines in the second line group is 2, randomly select 1 shot corresponding to a speaker from the ConditionSpeaker configuration table according to the atmosphere and the shot weight under that atmosphere, and apply it to the 2 lines of the second line group with a 100% probability (the second trigger probability), that is, the 2 lines share one shot. When the number of lines in the second line group is 3, randomly select 2 shots corresponding to speakers from the ConditionSpeaker configuration table according to the atmosphere and the shot weight under that atmosphere. With a 100% probability, the first shot covers the 1st and 2nd lines, that is, the 1st and 2nd lines share one shot, and the second shot covers the 3rd line. When the number of lines in the second line group is 4, with a 50% probability (the second trigger probability), randomly select 2 shots corresponding to speakers from the ConditionSpeaker configuration table according to the atmosphere and the shot weight under that atmosphere. The first shot covers the 1st and 2nd lines, and the second shot covers the 3rd and 4th lines; with a 50% probability, randomly select 3 shots corresponding to speakers from the ConditionSpeaker configuration table according to the atmosphere and the shot weight under that atmosphere. The first shot covers the 1st and 2nd lines, the second shot covers the 3rd line, and the third shot covers the 4th line. When the number of lines in the second line group is equal to 5, randomly select 3 shots corresponding to speakers from the ConditionSpeaker configuration table according to the atmosphere and the shot weight under that atmosphere. With a 50% probability, the first shot covers the 1st and 2nd lines, the second shot covers the 3rd line, and the third shot covers the 4th and 5th lines; with a 50% probability, the first shot covers the 1st and 2nd lines, the second shot covers the 3rd and 4th lines, and the third shot covers the 5th line. When the number of lines in the second line group is greater than 5, take 5 lines as a group, and the lines after the 5th line reuse the allocation rules for the 1st to 5th lines. For example, the 6th line adopts the processing method of a single-line (singleline) line, that is, match the target shot according to the dynamic configuration strategy, atmosphere information, and the role to which the line belongs. The 7th to 10th lines adopt the processing method of the above sixth target dialogue event (MultiLines). Take Figure 5 the positional relationship of the characters in it as an example for illustration.

[0100] The first / fifth / sixth target dialogue events can adopt the same processing method as Figure 4 the positional relationship of the characters in it, which will not be elaborated here.

[0101] Second target dialogue event: When it is detected that the current line hits a keyword, check whether the animation corresponding to the keyword has a target animation tag with large-scale movements. If so, the second target dialogue event occurs and the large dynamic logic is triggered. At this time, a shot is randomly selected from the LensAction (large-scale movement shot library) according to the target shot orientation, atmosphere, and shot weight under this atmosphere of the reference character and applied.

[0102] Third target dialogue event: When the lines are the first 2 lines of the dialogue script (third target dialogue event), there is a 20% probability of not replacing, and an 80% probability of randomly selecting a shot from the long-shot library of the speaking character according to the target shot orientation, atmosphere, and shot weight under this atmosphere of the reference character and applying it to the second initial line.

[0103] Fourth target dialogue event: Except for the initial line, MultiLines, action-related lines, and large dynamic lines, every 10 lines, a shot is selected from the LensTele library according to the target shot orientation, atmosphere, and shot weight under this atmosphere and applied.

[0104] Take Figure 6 the positional relationship of the characters in

[0105] The first / second / sixth target dialogue events can adopt the same processing method as Figure 5 the positional relationship of the characters in

[0106] Third target dialogue event: When the line is the first line of the dialogue script, there is an 80% probability that when the character to which the current line belongs is not character A as the reference character, a shot is randomly selected from the LensTele library according to the preset shot orientation and the shot weight of the atmosphere, and when the character to which the current line belongs is character A as the reference character, a shot is randomly selected from the LensInit library according to the preset shot orientation and the shot weight of the atmosphere; there is a 20% probability that when the character to which the current line belongs is not character A as the reference character, a shot is randomly selected from the LensCF library (the second character shot library for character C and character F) according to the preset shot orientation and the shot weight of the atmosphere, and when the character to which the current line belongs is character A as the reference character, a shot is randomly selected from the LensInit library (the second character shot library for character C and character F) according to the preset shot orientation and the shot weight of the atmosphere. Also, there is a 70% probability of using the character long-shot setting for the last line.

[0107] Fourth target dialogue event: For all singleline (single-sentence lines), the fourth target dialogue event is triggered every four lines. At this time, if the speaker is Character A, the target shot is replaced with Shot A filtered from the LensA library (the second character shot library of Character A) according to the atmosphere. If it is not Character A, the target shot is replaced with the CF shot in the LensCF library.

[0108] Take Figure 7 the positional relationship of the characters in it as an example for illustration.

[0109] The first / second / third / sixth target dialogue events can adopt the same processing method as Figure 6 the positional relationship of the characters in it, which will not be elaborated, and the determination rule for the fifth target dialogue event is not set.

[0110] Fourth target dialogue event: For all singleline (single-sentence lines), the fourth target dialogue event is triggered every four lines. At this time, if the speaker is Character A or Character B, the target shot is replaced with the AB shot filtered from the LensAB library (the second character shot library for Character A and Character B) according to the atmosphere. If it is not Character A or Character B, the target shot is replaced with the CF shot in the LensCF library.

[0111] In an embodiment of the present application, as Figure 3 shown, the method for managing dialogue shots further includes:

[0112] Step 301: Determine the character order according to the output character and line order of the lines in the line configuration information.

[0113] Step 302: If it is determined that the character order conforms to the preset repair rule matching the positional relationship, perform off-axis repair processing on the target shot.

[0114] It should be noted that the axis refers to an imaginary straight line or curve formed by the line of sight direction, movement direction of the photographed object, and the relationship between different objects. When setting up and shooting virtual camera positions, the axis rule should be observed, that is, set the camera position within one side area of the axis. Otherwise, setting the camera position outside one side area of the axis is called "off-axis". If an off-axis problem occurs, it will cause players to have a confused perception of the spatial relationship of the characters in the scene.

[0115] In this embodiment, all the lines in the virtual dialogue scenario are traversed to determine the role order of all the lines. When the role order conforms to the preset repair rules for axis-crossing repair, the lens parameters such as the position, angle, or zoom of the target lens for shooting are adjusted by replacing the repaired lens according to the preset repair rules, so that the lines or characters to be shot return to the correct display area, ensuring the consistency between the lens perspective and the dialogue characters, thereby solving the axis-crossing problem in the game screen, optimizing the character performance and visual effects, and enhancing the user experience.

[0116] It can be understood that the rule content of different preset repair rules can be reasonably set according to the actual severity of axis-crossing, and the embodiments of the present application do not make specific limitations.

[0117] In a specific embodiment, step 302, that is, if it is determined that the role order conforms to the preset repair rules matching the position relationship, the axis-crossing repair process is performed on the target lens, which specifically includes the following steps:

[0118] Step 302-1, if the position relationship satisfies the first preset standing position and there is a second target sequence structure in the role order, the first repair lens is screened from the first repair lens library corresponding to the characters in the second target sequence structure, and the target lens is replaced with the first repair lens.

[0119] Among them, the characters in the second target sequence structure are arranged alternately, and the lens parameters of the preset lenses in the preset character lens library and the preset lenses in the first repair lens library are different.

[0120] Step 302-2, if the position relationship satisfies the second preset standing position and there is a third target sequence structure in the role order, the axis-crossing repair process is performed on the target lens through the second repair lens library.

[0121] Among them, the consecutive characters in the third target sequence structure are different and are all target characters. The target characters include the first target character and the second target character, and the target characters correspond to the second preset standing position.

[0122] In this embodiment, whether the character standing positions are relatively compact is determined by the positional relationship of the characters. When the character positional relationship meets the first preset standing position, it can be determined that the positional relationship is relatively loose. At this time, if a second target sequence structure in which characters are alternately arranged is detected in the character sequence, the first repair shot is screened from the first repair shot library corresponding to the characters in the second target sequence structure, and the target shot is replaced with the first repair shot. When the character positional relationship meets the second preset standing position, it can be determined that the positional relationship is relatively compact. At this time, if a third target sequence structure is detected in the character sequence, the second repair shot is screened from the second repair shot library corresponding to the characters in the third target sequence structure to replace the target shot. Thus, the shot with a relatively high possibility of axis crossing is located through the positional relationship of the characters in the virtual dialogue scenario and the target sequence structure corresponding to the positional relationship, and the shot is replaced to complete the axis crossing repair. In this way, a targeted automatic axis crossing repair function is realized, the stability of the repair quality is improved and the possibility of errors is reduced, and a large number of dialogue scenario productions can be processed in a relatively short time, improving the production efficiency.

[0123] It is worth mentioning that the first repair shot library or the second repair shot library includes a preset character shot library (ConditionSpeaker), a backup character shot library, and other special shot libraries, such as a special shot library (LensSpecial), an insert shot library (LensInsert), a head-turning shot library (LensTurn), an initial shot library (LensInit), a taking shot library (LensTake), a hand close-up shot library (LensHand), a large movement shot library (LensAction), a long shot library (LensTele), etc., which are not specifically limited in the embodiments of the present application.

[0124] Exemplarily, based on Figure 4The positional relationship shown. When the following combinations (third target sequence structures) appear in the character order of the dialogue: ABAB... (... is an AB cycle), ABAB...A (... is an AB cycle), BABA... (... is a BA cycle), BABA...B (... is a BA cycle), CDCD... (... is a CD cycle), CDCD...C (... is a CD cycle), DCDC... (... is a DC cycle), DCDC...D (... is a DC cycle), etc., which are cyclic structures with alternating characters, the middle-position lines after removing the first line and the last line in the combination are applied with the shots randomly selected from the alternative character shot library according to the atmosphere and the shot weight in that atmosphere. Among them, the alternative character shot library refers to a shot library with different shot parameters from the first character shot library determined by the speaker and the dialogue target. For example, if the speaker is character A and the dialogue target is character B, the alternative character shot library can be denoted as the LensA2B02 shot library; if the speaker is character B and the dialogue target is character A, the alternative character shot library can be denoted as the LensB2A02 shot library; if the speaker is character D and the dialogue target is character C, the alternative character shot library can be denoted as the LensD2C02 shot library.

[0125] In a specific embodiment, step 302-2, that is, performing off-axis repair processing on the target shot through the second repair shot library, specifically includes: determining the repair character as the first character after the third target sequence structure in the character order; screening the second repair shot from the second repair shot library of the repair character; and replacing the target shot of the repair character with the second repair shot.

[0126] In this embodiment, the repair character is located through the third target sequence structure, further refining the character shots that may have off-axis problems, and performing targeted shot replacement. Thus, through the second repair shot for off-axis repair, the dialogue shot perspective can be effectively and smoothly transitioned from one character to another, avoiding the abruptness of the picture break or transition, improving the picture quality of the arranged shots, helping to increase the visual stimulation and emotional investment of the audience, and enhancing the viewing experience of the player.

[0127] Based on Figure 6 and Figure 7 the positional relationship shown, when the following combinations (third target sequence structures) appear in the character order of the dialogue:

[0128] Combinations of T0...TnX (n > 2, T0,.., Tn ∈ {A, B}, Tn ≠ Tn+1). For the lines within the combination, the shots from the corresponding first character's shot library are used. For the character X of the first line after the combination, a long shot is used. If the first line and the second line after the combination form MultiLines, then the shots of the subsequent lines need to be reset according to the MultiLines group rules (since Figure 6 character B does not appear in the positional relationship, this rule does not apply).

[0129] Combinations of T0...TnX (n > 2, T0,.., Tn ∈ {C, E}, Tn ≠ Tn+1). For the lines within the combination, the shots from the corresponding first character's shot library are used. For the character X of the first line after the combination, a long shot is used. If the first line and the second line after the combination form MultiLines, then the shots of the subsequent lines need to be reset according to the MultiLines group rules.

[0130] Combinations of T0...TnX (n > 2, T0,.., Tn ∈ {C, F}, Tn ≠ Tn+1). For the lines within the combination, the shots from the corresponding first character's shot library are used. For the character X of the first line after the combination, a long shot is used. If the first line and the second line after the combination form MultiLines, then the shots of the subsequent lines need to be reset according to the MultiLines group rules.

[0131] Combinations of T0...TnX (n > 2, T0,.., Tn ∈ {D, E}, Tn ≠ Tn+1). For the lines within the combination, the shots from the corresponding first character's shot library are used. For the character X of the first line after the combination, a long shot is used. If the first line and the second line after the combination form MultiLines, then the shots of the subsequent lines need to be reset according to the MultiLines group rules.

[0132] Combinations of T0...TnX (n > 2, T0,.., Tn ∈ {D, F}, Tn ≠ Tn+1). For the lines within the combination, the shots from the corresponding first character's shot library are used. For the character X of the first line after the combination, a long shot is used. If the first line and the second line after the combination form MultiLines, then the shots of the subsequent lines need to be reset according to the MultiLines group rules.

[0133] Combinations of T0...TnX (n > 2, T0,.., Tn ∈ {E, F}, Tn ≠ Tn+1). The lines within the combination use the shots from the corresponding first-character shot library. For the first line of dialogue after the combination, the character X uses a long shot. If the first line of dialogue after the combination and the second line of dialogue after the combination form MultiLines, the shots of the subsequent lines need to be reset according to the MultiLines group rules.

[0134] It can be understood that when the lines of dialogue simultaneously meet the preset repair rules and the preset dialogue events, since the target shots need to be updated after triggering the preset dialogue events, the target shots with axis-crossing problems are likely to be replaced, thus correcting the shot orientation. Therefore, the axis-crossing repair rules should not be applied when the specified preset dialogue events occur, so as to avoid unnecessary work of the system and save the consumption of system resources.

[0135] It should be noted that the magnitudes of the sequence numbers of the steps in the above embodiments do not indicate the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0136] As a specific implementation of the above method for managing dialogue shots, an embodiment of the present application provides a device for managing dialogue shots. As Figure 7 shown, the device 700 for managing dialogue shots includes: an acquisition module 701, a management module 702, and a production module 703.

[0137] Among them, the acquisition module 701 is used to acquire the dialogue scripts of multiple characters in a virtual dialogue scenario. Among them, the dialogue script includes lines of dialogue and line configuration information. The line configuration information includes atmosphere information and the character to which the line of dialogue belongs. The number of multiple characters is greater than or equal to the preset number;

[0138] The management module 702 is used to match a dynamic configuration strategy according to the positional relationship between the characters in the virtual dialogue scenario, and match a target shot for the line of dialogue according to the dynamic configuration strategy, the atmosphere information, and the character to which the line of dialogue belongs. Among them, the dynamic configuration strategy includes at least one of a line hit condition, a character hit condition, and a preset character shot library;

[0139] The production module 703 is used to shoot the virtual dialogue scenario with the target shot.

[0140] Further, the management module 702 is specifically configured to, if the position relationship meets the first preset standing position, determine the hit result of the line according to the line hit condition associated with the first preset standing position, and screen the target shot from the preset character shot library associated with the first preset standing position according to the hit result, the atmosphere information, and the character to which the line belongs; if the position relationship meets the second preset standing position, determine the reference character in the virtual dialogue scenario according to the character hit condition associated with the second preset standing position, and screen the target shot from the preset character shot library associated with the second preset standing position according to the target shot orientation, the atmosphere information, and the character to which the line belongs of the reference character.

[0141] Further, the line hit condition includes a hit probability and a preset line interval; the management module 702 is specifically configured to determine that the line is hit if the line meets the hit probability, or the number of line intervals between the line and the previously hit line is greater than the preset interval number; determine that the line is not hit if the line does not meet the hit probability and the number of line intervals between the line and the previously hit line is less than or equal to the preset interval number.

[0142] Further, the character to which the line belongs includes an output character and a receiving character; the management module 702 is specifically configured to match the target shot from the first character shot library according to the atmosphere information if the line is not hit, where the first character shot library corresponds to the output character and the receiving character of the line; match the target shot from the second character shot library according to the atmosphere information if the line is hit, where the second character shot library corresponds to the output character of the line; where the preset character shot library associated with the first preset standing position includes the first character shot library and the second character shot library.

[0143] Further, the character to which the line belongs includes an output character and a receiving character; the management module 702 is specifically configured to screen the target shot from the first character shot library corresponding to the character to which the line belongs according to the target shot orientation and the atmosphere information of the reference character, where the preset character shot library associated with the second preset standing position includes the first character shot library, and the first character shot library corresponds to the output character and the receiving character of the line.

[0144] Further, the management module 702 is further configured to, if it is determined according to the line configuration information that a target dialogue event occurs in the virtual dialogue scenario, match the event priority, the event shot configuration rule, and the event shot library according to the target dialogue event; screen the event shot from the event shot library of the target dialogue event according to the event priority and the event shot configuration rule, and replace the target shot with the event shot; where the line configuration information includes at least one of the character to which the line belongs, the line sequence, the action feature information of the character to which the line belongs, the identification label of the line, and the atmosphere information.

[0145] Further, the management module 702 is specifically configured to determine that a first target dialogue event occurs in the virtual dialogue scenario if the action feature information conforms to the target action.

[0146] Further, the management module 702 is specifically configured to determine that a second target dialogue event occurs in the virtual dialogue scenario if the line carries the target animation label.

[0147] Further, the management module 702 is specifically configured to determine that a third target dialogue event occurs in the virtual dialogue scenario if the line is at the initial position or the end position of the lines in the dialogue script.

[0148] Further, the management module 702 is specifically configured to determine that a fourth target dialogue event occurs in the virtual dialogue scenario if the line is at the first arrangement position corresponding to the position relationship in the line order.

[0149] Further, the management module 702 is specifically configured to determine that a fifth target dialogue event occurs in the virtual dialogue scenario if the line is at the second arrangement position in the line order, where the second arrangement position is determined according to the role order of the first line group, the role order of the first line group conforms to the first target sequence structure corresponding to the position relationship, and the output roles of some lines in the first line group are different.

[0150] Further, the management module 702 is specifically configured to determine that a sixth target dialogue event occurs in the virtual dialogue scenario if the consecutive lines in the line order all belong to the same output role.

[0151] Further, the management module 702 is specifically configured to, if it is determined that a first target dialogue event occurs in the virtual dialogue scenario and the output role of the line is different from the role that generates the target action, screen a first shot from the event shot library corresponding to the role that generates the target action, and replace the target shot with the first shot.

[0152] Further, the management module 702 is specifically configured to, if it is determined that a second target dialogue event occurs in the virtual dialogue scenario, screen a second shot from the event shot library according to the atmosphere information, and replace the target shot with the second shot.

[0153] Further, the management module 702 is specifically configured to, if it is determined that a third target dialogue event occurs in the virtual dialogue scenario, determine the target line according to the first trigger probability associated with the third target dialogue event; and, if the line is the target line, screen a third shot from the event shot library corresponding to the first trigger probability according to the atmosphere information, and replace the target shot with the third shot.

[0154] Further, the management module 702 is specifically configured to, if it is determined that a fourth target dialogue event occurs in the virtual dialogue scenario, screen a fourth shot from the event shot library according to the position relationship and the atmosphere information, and replace the target shot with the fourth shot.

[0155] Further, the management module 702 is specifically configured to, if it is determined that a fifth target dialogue event occurs in the virtual dialogue scenario, screen a fifth shot from the event shot library according to the role to which the line belongs and the atmosphere information, and replace the target shot with the fifth shot.

[0156] Further, the management module 702 is specifically configured to, if it is determined that a sixth target dialogue event occurs in the virtual dialogue scenario, determine the number of lines in the second line group corresponding to the sixth target dialogue event; and determine a shot distribution rule associated with the number of lines and a second trigger probability of the shot distribution rule; and screen a sixth shot from the event shot library according to the shot distribution rule and the atmosphere information, and replace the target shot with the sixth shot according to the second trigger probability, where the second line group corresponding to the sixth target dialogue event includes multiple consecutive lines belonging to the same output role.

[0157] Further, the dialogue shot management device 700 further includes: a determination module (not shown in the figure), where the determination module is configured to determine a role order according to the output role and the line order of the lines in the line configuration information; a repair module (not shown in the figure), where the repair module is configured to perform an axis-crossing repair process on the target shot if it is determined that the role order conforms to a preset repair rule matching the position relationship.

[0158] Further, the repair module is specifically configured to, if the position relationship satisfies a first preset standing position and there is a second target sequence structure in the role order, screen a first repair shot from the first repair shot library corresponding to the role in the second target sequence structure, and replace the target shot with the first repair shot, where the roles in the second target sequence structure are arranged alternately, and the lens parameters of the preset shots in the preset role shot library and the preset shots in the first repair shot library are different; if the position relationship satisfies a second preset standing position and there is a third target sequence structure in the role order, perform an axis-crossing repair process on the target shot through a second repair shot library, where the consecutive roles in the third target sequence structure are different and are both target roles, and the target roles include a first target role and a second target role, and the target roles correspond to the second preset standing position.

[0159] Further, the repair module is specifically configured to determine the first role after the third target sequence structure in the role order as the repair role; screen a second repair shot from the second repair shot library of the repair role; and replace the target shot of the repair role with the second repair shot.

[0160] The dialogue shot management device 700 in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than terminals. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an Augmented Reality (AR) / Virtual Reality (VR) device, a robot, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook, or a Personal Digital Assistant (PDA), etc. It can also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0161] The dialogue shot management device 700 provided in the embodiments of the present application can implement Figures 1 to 3 each process implemented by the dialogue shot management method embodiments. To avoid repetition, it will not be elaborated here.

[0162] The embodiments of the present application also provide an electronic device, as Figure 8 shown. The electronic device 800 includes a processor 801 and a memory 802. A program or instruction that can run on the processor 801 is stored on the memory 802. When the program or instruction is executed by the processor 801, it implements each step of the dialogue shot management method embodiments described above and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0163] It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.

[0164] The memory 802 can be used to store software programs and various data. The memory 802 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 802 may include volatile memory or non-volatile memory, or the memory 802 may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 802 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0165] The processor 801 may include one or more processing units; optionally, the processor 801 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 801 either.

[0166] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the embodiment of the above management method for dialogue shots and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0167] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement each process of the above-mentioned embodiment of the method for managing dialogue shots, and can achieve the same technical effects. To avoid repetition, details are not described herein again.

[0168] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0169] The embodiments of the present application further provide a computer program product, which is stored in a storage medium and is executed by at least one processor to implement each process of the above-mentioned embodiment of the method for managing dialogue shots, and can achieve the same technical effects. To avoid repetition, details are not described herein again.

[0170] It should be noted that in this document, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device including a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "including a..." does not exclude the presence of additional identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0171] The embodiments of the present application have been described above with reference to the accompanying drawings. However, the present 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 the present application and without departing from the spirit and scope protected by the claims of the present application, can still make many forms, all of which fall within the protection scope of the present application.

Claims

1. A method for managing dialogue shots, characterized in that, Including: Obtain the dialogue scripts of multiple characters in a virtual dialogue scenario, where the dialogue scripts include lines and line configuration information, the line configuration information includes atmosphere information and the character to which the line belongs, and the number of the multiple characters is greater than or equal to a preset number; Match a dynamic configuration strategy according to the positional relationship between the characters in the virtual dialogue scenario, and match a target shot for the line according to the dynamic configuration strategy, the atmosphere information, and the character to which the line belongs, where the dynamic configuration strategy includes at least one of a line hit condition, a character hit condition, and a preset character shot library; Shoot the virtual dialogue scenario through the target shot.

2. The method according to claim 1, wherein The step of matching a dynamic configuration strategy according to the positional relationship between the characters in the virtual dialogue scenario, and matching a target shot for the line according to the dynamic configuration strategy, the atmosphere information, and the character to which the line belongs includes: If the positional relationship meets a first preset standing position, determine the hit result of the line according to the line hit condition associated with the first preset standing position, and screen the target shot from the preset character shot library associated with the first preset standing position according to the hit result, the atmosphere information, and the character to which the line belongs; If the positional relationship meets a second preset standing position, determine the reference character in the virtual dialogue scenario according to the character hit condition associated with the second preset standing position, and screen the target shot from the preset character shot library associated with the second preset standing position according to the target shot orientation of the reference character, the atmosphere information, and the character to which the line belongs.

3. The method according to claim 2, wherein the line hit condition includes a hit probability and a preset line interval; the step of determining the hit result of the line according to the line hit condition associated with the first preset standing position includes: If the line meets the hit probability, or the number of line intervals between the line and the previously hit line is greater than the preset interval number, determine that the line is hit; If the line does not meet the hit probability, and the number of line intervals between the line and the previously hit line is less than or equal to the preset interval number, determine that the line is not hit; the character to which the line belongs includes an output character and a receiving character; the step of screening the target shot from the preset character shot library associated with the first preset standing position according to the hit result, the atmosphere information, and the character to which the line belongs includes: If the line is not hit, match a target shot from a first character shot library according to the atmosphere information, where the first character shot library corresponds to the output character and the receiving character of the line; If the line is hit, match a target shot from a second character shot library according to the atmosphere information, where the second character shot library corresponds to the output character of the line; wherein the preset character shot library associated with the first preset standing position includes the first character shot library and the second character shot library.

4. The method according to claim 2, wherein The characters to which the lines belong include an output character and a receiving character; screening the target shot from the preset character shot library associated with the second preset position according to the target shot orientation of the reference character, the atmosphere information, and the characters to which the lines belong includes: Screening the target shot from the first character shot library corresponding to the characters to which the lines belong according to the target shot orientation of the reference character and the atmosphere information, wherein the preset character shot library associated with the second preset position includes the first character shot library, and the first character shot library corresponds to the output character and the receiving character of the lines.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If it is determined according to the line configuration information that a target dialogue event occurs in the virtual dialogue scenario, matching an event priority, an event shot configuration rule, and an event shot library according to the target dialogue event; Screening an event shot from the event shot library of the target dialogue event according to the event priority and the event shot configuration rule, and replacing the target shot with the event shot; Wherein, the line configuration information includes at least one of: the character to which the line belongs, the line sequence, the action feature information of the character to which the line belongs, the identification label of the line, and the atmosphere information.

6. The method according to claim 5, characterized in that, Determining that a target dialogue event occurs in the virtual dialogue scenario according to the line configuration information includes: If the action feature information conforms to the target action, determining that a first target dialogue event occurs in the virtual dialogue scenario; If the line carries a target animation label, determining that a second target dialogue event occurs in the virtual dialogue scenario; If the line is at the initial position or the end position of the lines in the dialogue script, determining that a third target dialogue event occurs in the virtual dialogue scenario; If the line is at the first arrangement position corresponding to the position relationship in the line sequence, determining that a fourth target dialogue event occurs in the virtual dialogue scenario; If the line is at the second arrangement position in the line sequence, determining that a fifth target dialogue event occurs in the virtual dialogue scenario, wherein the second arrangement position is determined according to the character sequence of the first line group, the character sequence of the first line group conforms to the first target sequence structure corresponding to the position relationship, and the output characters of some lines in the first line group are different; If the consecutive lines in the line sequence all belong to the same output character, determining that a sixth target dialogue event occurs in the virtual dialogue scenario.

7. The method according to claim 6, wherein Screening an event shot from the event shot library of the target dialogue event according to the event priority and the event shot configuration rule, and replacing the target shot with the event shot includes: If it is determined that the first target dialogue event occurs in the virtual dialogue scenario and the output character of the line is different from the character that generates the target action, screening a first shot from the event shot library corresponding to the character that generates the target action, and replacing the target shot with the first shot; If it is determined that the second target dialogue event occurs in the virtual dialogue scenario, screening a second shot from the event shot library according to the atmosphere information, and replacing the target shot with the second shot; If it is determined that the third target dialogue event occurs in the virtual dialogue scenario, determine the target line according to the first trigger probability associated with the third target dialogue event; and, if the line is the target line, screen the third shot from the event shot library corresponding to the first trigger probability according to the atmosphere information, and replace the target shot with the third shot; If it is determined that the fourth target dialogue event occurs in the virtual dialogue scenario, screen the fourth shot from the event shot library according to the position relationship and the atmosphere information, and replace the target shot with the fourth shot; If it is determined that the fifth target dialogue event occurs in the virtual dialogue scenario, screen the fifth shot from the event shot library according to the role to which the line belongs and the atmosphere information, and replace the target shot with the fifth shot; If it is determined that the sixth target dialogue event occurs in the virtual dialogue scenario, determine the number of lines in the second line group corresponding to the sixth target dialogue event; and determine the shot distribution rule associated with the number of lines and the second trigger probability of the shot distribution rule; and screen the sixth shot from the event shot library according to the shot distribution rule and the atmosphere information, and replace the target shot with the sixth shot according to the second trigger probability, where the second line group includes multiple consecutive lines belonging to the same output role.

8. The method according to any one of claims 1 to 4, characterized in that The method further includes: Determine the role order according to the output role and the line order of the line in the line configuration information; If it is determined that the role order conforms to a preset repair rule matching the position relationship, perform an axis-crossing repair process on the target shot.

9. The method according to claim 8, characterized in that The step of, if it is determined that the role order conforms to a preset repair rule matching the position relationship, performing an axis-crossing repair process on the target shot, includes: If the position relationship satisfies the first preset standing position and there is a second target sequence structure in the role order, screen the first repair shot from the first repair shot library corresponding to the role in the second target sequence structure, and replace the target shot with the first repair shot, where the roles in the second target sequence structure are arranged alternately, and the lens parameters of the preset shots in the preset role shot library and the preset shots in the first repair shot library are different; If the position relationship satisfies the second preset standing position and there is a third target sequence structure in the role order, perform an axis-crossing repair process on the target shot through the second repair shot library, where the consecutive roles in the third target sequence structure are different and are all target roles, and the target roles include a first target role and a second target role, and the target roles correspond to the second preset standing position.

10. The method according to claim 9, wherein The step of performing an axis-crossing repair process on the target shot through the second repair shot library includes: Determine the repair role as the first role after the third target sequence structure in the role order; Screen the second repair shot from the second repair shot library of the repair role; Replace the target shot of the repair role with the second repair shot.

11. A management device for dialogue shots, characterized in that, including: An acquisition module, configured to acquire dialogue scripts of multiple characters in a virtual dialogue scenario, where the dialogue scripts include lines and line configuration information, the line configuration information includes atmosphere information and the characters to which the lines belong, and the number of the multiple characters is greater than or equal to a preset number; A management module, configured to match a dynamic configuration policy according to the positional relationship between the characters in the virtual dialogue scenario, and match a target shot for the line according to the dynamic configuration policy, the atmosphere information, and the character to which the line belongs, where the dynamic configuration policy includes at least one of a line hit condition, a character hit condition, and a preset character shot library; A production module, configured to shoot the virtual dialogue scenario through the target shot.

12. An electronic device, characterized in that, It includes a processor and a memory, where the memory stores a program or instruction that runs on the processor, and when the program or instruction is executed by the processor, the steps of the dialogue shot management method described in any one of claims 1 to 10 are implemented.

13. A readable storage medium, on which a program or instructions are stored, characterized in that, When the program or instruction is executed by the processor, the steps of the dialogue shot management method described in any one of claims 1 to 10 are implemented.