Conversation scenario generation method and device, storage medium, and terminal
By acquiring the configuration data of the target virtual dialogue scenario and automatically configuring the lens position of the virtual camera, the problem of low efficiency in generating game dialogue scenarios is solved, and efficient dialogue scenario production is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
- Filing Date
- 2021-12-30
- Publication Date
- 2026-06-05
AI Technical Summary
In existing technologies, the generation of game dialogue scenarios is inefficient and requires manual configuration of virtual cameras, resulting in high resource costs and impacting productivity.
By acquiring the configuration data of the target virtual dialogue scenario, determining the target character's position parameters and camera markers, and automatically configuring the virtual camera's lens position, the dialogue scenario can be captured.
It improves the efficiency of game dialogue scenario generation, reduces the configuration cost of virtual cameras, and increases the dynamism and diversity of dialogue scenarios.
Smart Images

Figure CN116407835B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game technology, and in particular to a method and apparatus for generating dialogue scenarios, a storage medium, and a terminal. Background Technology
[0002] With the rapid development of online games, scenarios involving quest completion have been added to games to enrich the gameplay and player experience. Within these quest scenarios, different dialogue scenarios are displayed when players interact with quest NPCs (Non-Player Characters) or engage in dialogue with other quest NPCs, further enhancing the player experience.
[0003] Currently, the existing dialogue display methods in different scenarios are to create dialogue scenes by configuring virtual cameras in game engines at fixed dialogue positions. However, virtual cameras configured at fixed dialogue positions are static and require manual configuration of dialogue positions, which makes dialogue display costly in terms of resources. Each time a dialogue scene occurs, the dialogue content needs to be adjusted and configured with virtual cameras, which greatly affects the productivity of game scene production and thus affects the efficiency of game dialogue scene generation. Summary of the Invention
[0004] In view of this, the present invention provides a method and apparatus for generating dialogue scenarios, a storage medium, and a terminal, the main purpose of which is to solve the problem of low efficiency in generating dialogue scenarios in existing games.
[0005] According to one aspect of the present invention, a method for generating a dialogue scenario is provided, comprising:
[0006] Obtain scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content.
[0007] The target character's position parameters are determined based on the position identifier, and the target character's position in the target virtual dialogue scenario is determined based on the position parameters.
[0008] Based on the target character's position in the target virtual dialogue scenario and the camera marker, the camera position of the virtual camera is determined, and the target virtual dialogue scenario is filmed at the camera position using the virtual camera.
[0009] Furthermore, before obtaining the scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario, the method further includes:
[0010] Configure preset virtual dialogue scenarios with different numbers of participants, and define the origin role that matches the preset virtual dialogue scenario;
[0011] Determine the positioning parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario. The positioning parameters include positioning distance and positioning orientation.
[0012] Based on the position parameters, generate position components that match the preset virtual dialogue scenario, and assign position identifiers to the position components.
[0013] Further, determining the positioning parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario includes:
[0014] Obtain the scene distance between the origin character and the associated character to obtain the standing distance;
[0015] Using the origin character as the reference direction, obtain the angle between the two corresponding directions of the origin character and the associated character, and bind the position orientation based on the reference direction and the angle.
[0016] Furthermore, before obtaining the scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario, the method further includes:
[0017] Configure lens parameters corresponding to each of multiple types of lens components, wherein the lens parameters include lens position offset and lens focus parameters, and the multiple types include over-the-shoulder lens type and close-up lens type;
[0018] Assign a lens identifier to each of the lens components.
[0019] Furthermore, configuring lens parameters corresponding to multiple types of lens components, and assigning a lens identifier to each lens component, includes:
[0020] Obtain the character characteristics of a preset dialogue character, wherein the character characteristics include at least one of body shape characteristics, gender characteristics, and special effects characteristics;
[0021] Determine at least one shot parameter corresponding to the character characteristics under different shot types, wherein the shot types include over-the-shoulder shot type and close-up shot type;
[0022] At least one camera component matching the character characteristics is generated based on the at least one camera parameter, and a unique camera identifier is assigned to the at least one camera component.
[0023] Further, the step of determining the target character's position parameters based on the position identifier, and determining the target character's position in the target virtual dialogue scenario based on the position parameters, includes:
[0024] Determine the target role corresponding to the target dialogue content, and retrieve the position component corresponding to the position identifier;
[0025] Obtain the position distance and position orientation from the position component, and determine the position of the target character based on the position distance and position orientation from the position component;
[0026] Determining the virtual camera's position based on the target character's location in the virtual dialogue scenario and the camera markers includes:
[0027] Retrieve the lens component that matches the lens identifier, and obtain the lens parameters and type configured in the lens component;
[0028] Based on the dialogue characters configured in the target dialogue content, determine the camera position corresponding to the camera parameters and type configured in the camera component and the position of the dialogue characters.
[0029] Furthermore, after determining the virtual camera's lens position based on the target character's position in the target virtual dialogue scenario and the lens marker, and then capturing the target virtual dialogue scenario at the lens position using the virtual camera, the process further includes:
[0030] Obtain the scenario configuration data for the next dialogue content corresponding to the target dialogue content;
[0031] When the scenario configuration data of the next dialogue content includes a starting role and an ending role, and the starting role and ending role of the next dialogue content are the same as the first dialogue role and the second dialogue role of the target dialogue content, and the starting role and ending role are in the same position when the target dialogue content and the next dialogue content are generated in the target virtual dialogue scenario, then the dialogue scenario of the next dialogue content is captured based on the virtual camera and lens position of the target dialogue content.
[0032] Furthermore, the step of capturing the dialogue scene at the lens position using the virtual camera includes:
[0033] The target configuration content corresponding to the target character is configured in the scenario configuration data. The target configuration content is used to characterize the animation effects displayed by the target character in the virtual dialogue scenario.
[0034] The target character displaying the target configuration content is photographed using the virtual camera at the camera position.
[0035] According to another aspect of the present invention, a dialogue scenario generation apparatus is provided, comprising:
[0036] The acquisition module is used to acquire scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content.
[0037] The first determining module is used to determine the position parameters of the target character based on the position identifier, and to determine the position of the target character in the target virtual dialogue scenario based on the position parameters.
[0038] The second determining module is used to determine the lens position of the virtual camera based on the position of the target character in the target virtual dialogue scenario and the lens identifier, and to shoot the target virtual dialogue scenario through the virtual camera at the lens position.
[0039] Furthermore, the device also includes:
[0040] The definition module is used to configure preset virtual dialogue scenarios with different numbers of participants, and to define the origin role that matches the preset virtual dialogue scenario.
[0041] The third determining module is used to determine the position parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario. The position parameters include position distance and position orientation.
[0042] The allocation module is used to generate a station component that matches the preset virtual dialogue scenario based on the station parameters, and to assign a station identifier to the station component.
[0043] Furthermore, the third determining module includes:
[0044] The first acquisition unit is used to acquire the scene distance between the origin character and the associated character, and to obtain the standing distance;
[0045] The binding unit is used to obtain the angle between the two directions corresponding to the origin character and the associated character, with the origin character as the reference direction, and bind the position orientation based on the reference direction and the angle.
[0046] Furthermore, the device also includes: a configuration module,
[0047] The configuration module is used to configure the lens parameters corresponding to each of multiple types of lens components. The lens parameters include lens position offset and lens focus parameters. The multiple types include over-the-shoulder lens type and close-up lens type.
[0048] The allocation module is also used to assign a lens identifier to each lens assembly.
[0049] Furthermore, the configuration module includes:
[0050] The second acquisition unit is used to acquire the character characteristics of a preset dialogue character, wherein the character characteristics include at least one of body shape characteristics, gender characteristics, and special effects characteristics;
[0051] The first determining unit is used to determine at least one shot parameter corresponding to the character characteristics under different shot types, wherein the shot types include over-the-shoulder shot type and close-up shot type;
[0052] A generation unit is configured to generate at least one camera component that matches the character characteristics based on the at least one camera parameter, and assign a unique camera identifier to the at least one camera component.
[0053] Furthermore, the first determining module includes:
[0054] The second determining unit is used to determine the target role corresponding to the target dialogue content and to retrieve the position component corresponding to the position identifier;
[0055] The third acquisition unit is used to acquire the position distance and position orientation in the position component, and determine the position of the target character based on the position distance and position orientation in the position component;
[0056] The second determining module includes:
[0057] The retrieval unit is used to retrieve the lens assembly that matches the lens identifier and obtain the lens parameters and type configured in the lens assembly;
[0058] The third determining unit is used to determine the camera position corresponding to the camera parameters and type configured in the camera component and the position of the dialogue character, based on the dialogue character configured in the target dialogue content.
[0059] Furthermore, the device also includes: a shooting module,
[0060] The acquisition module is also used to acquire scenario configuration data of the next dialogue content corresponding to the target dialogue content;
[0061] The shooting module is used to shoot the dialogue scene of the next dialogue content based on the virtual camera and lens position of the target dialogue content when the scenario configuration data of the next dialogue content is configured with a start role and an end role, and the start role and end role of the next dialogue content are the same as the first dialogue role and the second dialogue role of the target dialogue content, and the start role and end role are in the same position when the target dialogue content and the next dialogue content are generated in the target virtual dialogue scenario.
[0062] Furthermore, the shooting module includes:
[0063] The fourth acquisition unit is used to acquire the target configuration content corresponding to the target character configured in the scenario configuration data, wherein the target configuration content is used to characterize the animation effect displayed by the target character in the virtual dialogue scenario;
[0064] The delivery unit is used to photograph the target character displaying the target configuration content using the virtual camera at the lens position.
[0065] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored therein, the executable instruction causing a processor to perform an operation corresponding to the dialogue scenario generation method described above.
[0066] According to another aspect of the present invention, a terminal is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;
[0067] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the above-described dialogue scenario generation method.
[0068] By employing the above-described technical solutions, the technical solutions provided by the embodiments of the present invention have at least the following advantages:
[0069] This invention provides a method, apparatus, storage medium, and terminal for generating dialogue scenarios. Compared with existing technologies, embodiments of this invention acquire scenario configuration data corresponding to target dialogue content in a target virtual dialogue scenario. The scenario configuration data stores position identifiers and camera identifiers corresponding to the target dialogue content. Based on the position identifiers, the position parameters of the target character are determined, and based on the position parameters, the position of the target character in the target virtual dialogue scenario is determined. Based on the position of the target character in the target virtual dialogue scenario and the camera identifiers, the camera position of the virtual camera is determined, and the target virtual dialogue scenario is captured by the virtual camera at the camera position. This achieves diversified dialogue scenario production effects and satisfies the reusability requirements of the virtual camera based on the acquired scenario configuration data, greatly reducing the configuration cost of the virtual camera. At the same time, the virtual camera obtained by combining position parameters and camera parameters increases the dynamism of dialogue scenario production, thereby improving the efficiency of game dialogue scenario generation.
[0070] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0071] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0072] Figure 1 A flowchart of a dialogue scenario generation method provided by an embodiment of the present invention is shown;
[0073] Figure 2 This invention provides a flowchart of another dialogue scenario generation method according to an embodiment of the invention.
[0074] Figure 3 This diagram illustrates a method for determining station parameters according to an embodiment of the present invention.
[0075] Figure 4 This invention provides a flowchart of another dialogue scenario generation method according to an embodiment of the invention.
[0076] Figure 5 This illustration shows a scene diagram of a special effects shot type provided by an embodiment of the present invention;
[0077] Figure 6 This illustration shows a scene diagram of an over-the-shoulder shot provided by an embodiment of the present invention;
[0078] Figure 7 This diagram illustrates a configuration of a motion lens type according to an embodiment of the present invention.
[0079] Figure 8 A flowchart of another dialogue scenario generation method provided by an embodiment of the present invention is shown;
[0080] Figure 9 This diagram illustrates a face-to-face standing arrangement according to an embodiment of the present invention.
[0081] Figure 10 This diagram illustrates a side-by-side standing position according to an embodiment of the present invention.
[0082] Figure 11 This diagram illustrates a parallel station location according to an embodiment of the present invention.
[0083] Figure 12 The flowchart of a method for generating dialogue scenarios provided by an embodiment of the present invention is shown.
[0084] Figure 13 This diagram illustrates a block diagram of a dialogue scenario generation device provided in an embodiment of the present invention.
[0085] Figure 14 A schematic diagram of the structure of a terminal provided in an embodiment of the present invention is shown. Detailed Implementation
[0086] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0087] The current method for generating dialogue scenarios involves static virtual cameras configured for fixed dialogue positions, requiring manual configuration. This results in significant resource consumption for dialogue display, as each dialogue instance necessitates adjustments and configuration of the virtual camera, severely impacting the productivity of game scene creation and consequently affecting the efficiency of game dialogue scenario generation. This invention provides a dialogue scenario generation method, such as... Figure 1 As shown, the method includes:
[0088] 101. Obtain the scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario.
[0089] In this embodiment of the invention, the virtual dialogue scenario includes, but is not limited to, scenarios of dialogue content generated from dialogues between quest NPCs, dialogues between player characters and quest NPCs, and dialogues between player characters. The target virtual dialogue scenario is at least one determined from the virtual dialogue scenarios. Therefore, in order to capture the target virtual dialogue scenario using a virtual camera, the scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario must first be obtained. The target dialogue content is the content generated from dialogues between different characters in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content. The position identifier is used to represent the position of the target character during the dialogue; different positions are determined by pre-configuring different identifiers. The camera identifier is used to represent the camera position and angle of the virtual camera required to capture each character during the dialogue; different camera positions and angles are determined by pre-configuring different identifiers. This embodiment of the invention does not impose specific limitations. Therefore, when generating a dialogue scenario based on a virtual camera, the scenario configuration data is first obtained to configure the virtual camera.
[0090] It should be noted that the virtual dialogue scenarios that generate dialogue content in the embodiments of the present invention are applicable to online games or single-player games, including but not limited to puzzle games, role-playing games, competitive games, etc., so that when task dialogue occurs between NPCs and player characters, the dialogue scenario can be captured based on a virtual camera.
[0091] 102. Determine the target character's position parameters based on the position identifier, and determine the target character's position in the target virtual dialogue scenario based on the position parameters.
[0092] In this embodiment of the invention, since each dialogue is generated by a character, the target character corresponding to each dialogue is determined based on the scenario configuration data. The target character is then all associated characters except the originating character among all characters that generated the dialogue. Generally, a dialogue includes one speaking character and at least one listening character from the perspective of the virtual camera. It may also include other characters in the virtual dialogue scenario that are neither speaking nor listening characters from the perspective of the virtual camera; this embodiment of the invention does not impose specific limitations. Simultaneously, all characters in the dialogue can be divided into the originating character and associated characters. The originating character's position (i.e., stance) in the dialogue scenario is a pre-fixed position, and the positions of each associated character in the dialogue scenario are determined based on stance parameters. Therefore, the target character includes all associated characters in the scenario corresponding to a dialogue. Furthermore, the stance parameters of the target character are determined based on the stance identifier. These stance parameters are used to mark the spatial position of the target character in the dialogue scenario. The position and orientation of each target character in a dialogue can be determined by using an originating position as a reference. At this time, the origin position can be predefined as the position of an origin NPC (i.e., the position of the origin character). Based on the origin position and the position parameters of each target character, the position of each target character in a dialogue content is determined in the dialogue scenario. In this embodiment of the invention, each position identifier corresponds to at least one set of position parameters, and each set of position parameters corresponds to a target character, so as to determine the position parameters of each target character based on the position identifier in the scenario configuration data.
[0093] It should be noted that since the position parameter is used to characterize the position and orientation of the character, after determining the position parameter, the position of the target character in the target virtual dialogue scenario is determined, that is, the position and orientation of all related characters participating in the dialogue content in the target virtual dialogue scenario.
[0094] 103. Based on the target character's position in the target virtual dialogue scenario and the camera marker, determine the camera position of the virtual camera, and capture the target virtual dialogue scenario at the camera position using the virtual camera.
[0095] In this embodiment of the invention, since different lens identifiers are pre-assigned based on different lens parameters, the lens position of the virtual camera is determined based on the target character's position in the target virtual dialogue scenario and the lens identifier. The lens parameters characterize the virtual camera's offset distance relative to the lens position origin and the lens focus parameters. Therefore, a unique lens parameter can be matched using the lens identifier. Then, the lens position of the virtual camera is further determined by combining the positions of each character in the target virtual dialogue scenario, thereby allowing the virtual camera to capture the target virtual dialogue scenario at this lens position.
[0096] In one embodiment of the present invention, for further illustration and limitation, such as Figure 2 As shown, before step 101 obtains the scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario, the method further includes:
[0097] 201. Configure preset virtual dialogue scenarios with different numbers of participants, and define the origin role that matches the preset virtual dialogue scenario;
[0098] 202. Determine the position parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario;
[0099] 203. Generate a station component that matches the preset virtual dialogue scenario based on the station parameters, and assign a station identifier to the station component.
[0100] Specifically, in order to add position identifiers to the scene configuration data to meet the shooting requirements of different dialogue requests, preset virtual dialogue scenarios with different number of participants are pre-configured, and an origin role matching this preset virtual dialogue scenario is defined, so as to configure position components and corresponding position identifiers based on the origin role. The number of participants refers to the number of people involved when a dialogue is generated, that is, the total number of all roles involved in the dialogue (i.e., the origin role and all related roles in the dialogue), such as a 3-person dialogue, a 4-person dialogue, etc. Preset virtual dialogue scenarios include, but are not limited to, scenarios of dialogue generated by dialogue between quest NPCs, dialogue between player characters and quest NPCs, and dialogue between player characters. For example, configuring a 3-person dialogue scenario between 3 quest NPCs, a 4-person quest dialogue scenario between 1 player character and 3 quest NPCs, etc. This embodiment of the invention does not impose specific limitations.
[0101] Furthermore, the origin character is a core character other than the player character. One of multiple NPC characters can be selected as the defined origin character. Then, based on the position of the origin character, the positioning parameters of at least one associated character relative to the origin character in a preset virtual dialogue scenario are determined. After defining the origin character, other characters within a preset virtual dialogue scenario are considered associated characters. These can be NPC characters other than the origin character, or player characters, without specific limitations. Simultaneously, since the positioning parameters include positioning distance and orientation, after determining the positioning distance and orientation of each associated character relative to the origin character in the preset virtual dialogue scenario, in order to reuse the positioning of the origin character and associated characters in this preset virtual dialogue scenario, positioning components matching this preset virtual dialogue scenario are generated based on these positioning parameters. Position identifiers are then assigned to these positioning components. The positioning component is an encapsulation of the procedural method for determining character positioning based on positioning distance and orientation; that is, one positioning identifier corresponds to one positioning component. This allows for the reuse of the positioning of each character in the preset virtual dialogue scenario after configuring the positioning identifiers in the scenario configuration data. For example, as shown in Table 1 below, in the preset virtual dialogue scenarios corresponding to 2-person dialogue and 3-person dialogue, different position identifiers (position numbers) correspond to different position components.
[0102] Table 1
[0103]
[0104]
[0105] In one embodiment of the present invention, for further explanation and limitation, step 202, determining the position parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario, includes: obtaining the scene distance between the origin character and the associated character to obtain the position distance; taking the origin character as the reference direction, obtaining the angle between the two corresponding directions of the origin character and the associated character, and binding the position orientation based on the reference direction and the angle.
[0106] Specifically, for each associated role, the scene distance between the origin role and the associated role needs to be determined to obtain the standing distance. The obtained scene distance can be entered by the operator to meet the flexible configuration needs of different virtual dialogue scenarios, or it can be based on the scene distance set between the origin role and the associated role in the virtual dialogue scenario to meet the business needs of the virtual dialogue scenario. This embodiment of the invention does not impose a specific limitation, thus determining the standing distance. In this case, if the scene position of the origin role is defined as the origin, the scene distance between the origin role and the associated role can be used as the standing distance. For example, as... Figure 3As shown, taking the origin NPC1 as the reference, the length of the line A connecting the other related NPCs 2 and the origin NPC (here, the length A of the line is the standing distance) is determined as the distance between them, i.e., the standing distance. Simultaneously, since each related character has a facing requirement with the origin character during dialogue, the angle between the two corresponding directions of the origin character and the related characters is obtained, using the origin character as the reference direction, to bind the standing orientation based on the reference direction and the angle. The standing orientation of the related character is the facing direction after offsetting the reference direction (i.e., the facing direction of the origin character) by an angle. Therefore, obtaining the angle between the two corresponding directions of the origin character and the related characters, and binding the standing orientation based on the reference direction and the angle, includes: using the facing direction of the origin character as the reference direction, determining the angle between the facing direction of the related characters and the facing direction of the origin character, and using the direction corresponding to this angle as the standing orientation. Optionally, this included angle can be entered by the operator to meet the flexible configuration needs of different virtual dialogue scenarios. Alternatively, it can be based on the dialogue angle set between the originating role and the associated role in the task dialogue within the virtual dialogue scenario to meet the business needs of the virtual dialogue scenario. This embodiment of the invention does not impose specific limitations. In this case, using the orientation of the originating role as the reference direction, such as 0°, the included angle between the orientation direction of the associated role and this reference direction is set, thereby obtaining the standing orientation of the associated role. That is, for the associated role, the standing orientation is determined by starting from the reference direction of 0° and facing the originating role according to the included angle. For example, as shown... Figure 3 As shown, the angle between the orientation of the origin NPC1 and the distance A from its position is α, and the angle between the orientation of the other NPC2 and the orientation of the origin NPC1 is β. This determines the orientation of the position. Since the orientation of NPC2 coincides with the direction of the connecting line A, the angle values of α and β are the same.
[0107] It should be noted that, regarding such Figure 3 The positioning parameters shown are used to determine the positioning distance and orientation of all related characters participating in the dialogue (i.e., NPC characters other than the originating character and player characters). Furthermore, a positioning component corresponding to a positioning identifier can include the positioning distance and orientation of each related character except the originating character. This allows for the pre-setting of the positioning distance and orientation of each related character in different virtual dialogue scenarios using positioning identifiers, thereby determining the positioning of each related character within the dialogue scenario.
[0108] In one embodiment of the present invention, for further illustration and limitation, such as Figure 4 As shown, before step 101 obtains the scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario, the method further includes:
[0109] 301. Configure the lens parameters corresponding to each of the multiple types of lens components;
[0110] 302. Assign a lens identifier to each of the lens components.
[0111] Specifically, to meet the diverse shooting effect requirements of the virtual camera, multiple types of lens components and their corresponding lens parameters are pre-configured. Each lens component is assigned a lens identifier, enabling lens reuse by adding these identifiers to the scene configuration data. These types include over-the-shoulder shots and close-up shots; each type of lens component corresponds to a set of lens parameters, including lens position offset and lens focus parameters. The lens position is configured by setting different lens position offsets and focus parameters. Each lens component encapsulates a procedural method for determining the lens position based on lens position offset and focus parameters. One lens component corresponds to one lens identifier, allowing the scene configuration data to extract the corresponding lens component based on the lens identifier, thus achieving lens reuse.
[0112] It should be noted that the close-up shot type is a shot type where the virtual camera's lens is positioned in front of the second dialogue character (i.e., the speaker) in the dialogue content, pointing towards the speaker, such as... Figure 5 As shown; the over-the-shoulder shot type refers to the type of shot where the virtual camera is generated behind the shoulder of the first dialogue character (i.e., the listener / speaker) and points towards the speaking character, such as... Figure 6 As shown; furthermore, the configuration of a virtual camera for moving shot types can be achieved by setting the start parameters, end parameters, and transition time of the lens based on the close-up shot type and the over-the-shoulder shot type, such as... Figure 7 As shown, this embodiment of the invention does not impose specific limitations. The lens position offset is the offset distance of the lens relative to the lens position origin, including the forward offset coefficient, right offset coefficient, and upward offset coefficient. The lens focus parameter is the focus parameter when the virtual camera is focusing at the position determined according to the lens position offset, including focus line offset and focus vertical offset. This embodiment of the invention does not impose specific limitations. Specifically, the lens position origin corresponding to the close-up shot type is the head skeleton of the speaking character, and the lens position origin corresponding to the over-the-shoulder shot type is the midpoint of the line connecting the head skeletons of the speaking character and the listening character.
[0113] For example, as shown in Table 2 below, lens identifier - lens 1 can be a close-up shot, and lens identifier - lens 2 can be an over-the-shoulder shot. In this case, the lens parameters in the lens assembly can be configured, and during the configuration process, lens 1 or lens 2 can achieve the effect of a moving shot.
[0114] Table 2
[0115]
[0116] In one embodiment of the present invention, for further illustration and limitation, such as Figure 8 As shown, step 301 configures lens parameters corresponding to multiple types of lens components and assigns a lens identifier to each lens component, including:
[0117] 401. Obtain the character traits of the preset dialogue characters;
[0118] 402. Determine at least one shot parameter corresponding to the character characteristics under different shot types;
[0119] 403. Generate at least one camera component that matches the character characteristics based on the at least one camera parameter, and assign a unique camera identifier to the at least one camera component.
[0120] In this embodiment of the invention, to increase the flexibility of lens component reuse, when configuring lens components, the character characteristics of a preset speaking character are obtained. Under different lens types, matching lens components are generated using lens parameters corresponding to different character characteristics. This allows for the retrieval of different lens components for speaking characters with different characteristics, thereby determining targeted lens positions. The character characteristics include at least one of body shape characteristics, gender characteristics, and special effects characteristics, used to characterize the height, weight, gender, and whether special effects are present in the dialogue. Since lens types include over-the-shoulder shots and close-up shots, at least one lens parameter corresponding to the character characteristics is determined for each lens type, indicating that different lens parameters determine different lens positions for characters with different characteristics. After determining at least one lens parameter corresponding to the character characteristics, at least one lens component matching the character characteristics is generated using this parameter. At this point, each lens component is assigned a unique lens identifier. Therefore, when filming a dialogue character with specific character characteristics, the lens component is extracted according to the matching lens identifier to determine the lens position for filming.
[0121] For example, as shown in Table 3 below, when the speaker in the dialogue is a player character, different camera components are configured for different body types (gender, height) under the same shot. When the speaker in the dialogue is a player character, camera identifier 1 is configured. Based on the player character's body type (e.g., adult female, young girl), camera component 1 (corresponding to adult female) or camera component 2 (corresponding to young girl) corresponding to the player character's body type is called from camera identifier 1, thereby using the parameters in the determined camera component to control the position of the camera.
[0122] Table 3
[0123]
[0124] In one embodiment of the present invention, for further explanation and limitation, step 102, which determines the position parameters of the target character based on the position identifier and determines the position of the target character in the target virtual dialogue scenario based on the position parameters, includes: determining the target character corresponding to the target dialogue content and retrieving the position component corresponding to the position identifier; obtaining the position distance and position orientation in the position component and determining the position of the target character based on the position distance and position orientation in the position component.
[0125] To achieve configuration reuse based on scenario configuration data, after obtaining the scenario configuration data, specifically, the target role corresponding to the target dialogue content is determined. This includes all associated roles. The speaking role in the dialogue content can be the origin role or any of the associated roles, and the listening role can be any role different from the speaking role (e.g., an associated role or the origin role). This embodiment of the invention does not impose specific limitations. For example, in a set of dialogue content, NPC1 or NPC2 can be selected as the speaking role from multiple non-origin NPCs. In this case, the virtual dialogue scenarios generated by the corresponding virtual cameras will be different. Of course, a speaking role is generally configured in the dialogue content, but a listening role can also be configured to generate the corresponding virtual dialogue scenario. After determining the target role, the position component corresponding to the position identifier configured for this dialogue content is retrieved to obtain the position distance and orientation in the configured position component. Based on this position distance and orientation, the position of each target role is determined. Among these, the positions that can be determined based on the standing distance and orientation include face-to-face standing, side-by-side standing, parallel standing, etc., to show the standing positions between different dialogue characters. Face-to-face standing refers to the standing position of the speaking character and the listening character in the target character who are having a face-to-face dialogue, such as... Figure 9 As shown, the side-by-side standing position refers to the position where the speaking character and the listening character in the target character are standing side by side during a dialogue, such as... Figure 10 As shown, parallel positioning refers to the positioning of the speaking character and the listening character in a dialogue where they are in parallel. Figure 11 As shown.
[0126] Correspondingly, determining the camera position of the virtual camera based on the target character's position in the virtual dialogue scenario and the camera identifier includes: retrieving a camera component that matches the camera identifier and obtaining the camera parameters and type configured in the camera component; and determining the camera position corresponding to the camera parameters and type configured in the camera component and the position of the dialogue character, according to the dialogue character configured in the target dialogue content.
[0127] In this embodiment of the invention, after determining the target character's position in the virtual dialogue scenario, to further accurately determine the camera position, a camera component matching the camera identifier is retrieved, thereby obtaining the pre-configured camera parameters and corresponding types within this camera component. Simultaneously, since the scenario configuration data specifies the dialogue characters in the target dialogue content, which may include a first dialogue character (i.e., the listener) and a second dialogue character (i.e., the speaker), before determining the camera position based on camera parameters and types, it is necessary to determine the dialogue characters in the target dialogue content, thereby determining the camera position corresponding to the camera parameters and types in the camera component according to the speaker's and listener's positions.
[0128] It should be noted that once the dialogue roles within the target audience are determined, including the speaker and listener, the speaker's and listener's corresponding standing distances and orientations are determined based on their position markers. At this point, when further determining the camera position, since camera parameters include camera position offset and camera focus parameters (where camera position offset is the offset distance from the camera position origin), after determining the speaker's and listener's positions, the camera position origin is determined based on the speaker's, or the positions of the speaker and listener combined, and the camera type corresponding to the camera markers. The camera position is then determined based on the camera position origin combined with the camera position offset and camera focus parameters. For example, as... Figure 6 In the over-the-shoulder shot type shown, the origin of the shot position is determined by connecting the skeletal models of the speaker and the listener. Based on the origin of the shot position, the position of the shot is determined by the offset of the shot position, and the focal position of the shot at that position is further determined by combining the lens focus parameters.
[0129] As shown in Table 4 below, the scenario configuration data is the data in the table. For the target dialogue content "Hello", the corresponding NPC list is configured as {NPC1, NPC2, NPC3} (i.e., all NPC characters in the target dialogue content. By configuring the NPC list in the scenario configuration data, all NPC characters involved in the target dialogue can be determined based on the scenario configuration data when generating the dialogue scenario). That is, the target characters in the virtual dialogue scenario include 3 NPCs, and the player does not participate in the dialogue; therefore, it is a 3-person dialogue. The first NPC in the NPC list is the origin NPC, i.e. NPC1 is defined as the origin NPC, and its position is preset in the game's virtual dialogue scenario. Since the target dialogue involves three people, position marker 3-1 is configured for this dialogue. Based on this position marker, the position distance and orientation of other NPCs (NPC2, NPC3) can be determined. Specifically, position marker 3-1 corresponds to two sets (A, α, β), which correspond to NPC2 and NPC3 respectively. Thus, the positions and orientations of NPC2 and NPC3 are determined. With this, the positions of all NPCs are determined, and consequently, the camera position is determined. Furthermore, based on the camera number (camera number 2), speaker (NPC1), and listener (NPC2) configured in the dialogue content, the position of the virtual camera is determined. Specifically, camera number 2 is an over-the-shoulder camera, that is, the camera position is determined based on the midpoint of the line connecting the head bones of the speaker and the listener and a fixed offset distance. This fixed offset distance is recorded in the camera component corresponding to camera number 2, and the focus position of the camera is determined based on the camera focus parameters in the camera component.
[0130] Table 4
[0131]
[0132]
[0133] In one embodiment of the present invention, for further illustration and limitation, such as Figure 12 As shown, after step 103 determines the camera position of the virtual camera based on the target character's position in the target virtual dialogue scenario and the camera marker, and then captures the target virtual dialogue scenario at the camera position using the virtual camera, it further includes:
[0134] 501. Obtain the scenario configuration data of the next dialogue content corresponding to the target dialogue content;
[0135] 502. When the scenario configuration data of the next dialogue content includes a starting role and an ending role, and the starting role and ending role of the next dialogue content are the same as the first dialogue role and the second dialogue role of the target dialogue content, and the starting role and ending role are in the same position when the target dialogue content and the next dialogue content are generated in the target virtual dialogue scenario, then the dialogue scenario of the next dialogue content is captured based on the virtual camera and lens position of the target dialogue content.
[0136] In this embodiment of the invention, since one dialogue content can be connected to the next dialogue content to form a complete virtual dialogue scenario, in order to achieve more efficient shot reuse and be more suitable for rapid shot configuration in virtual dialogue scenarios, scenario configuration data of the next dialogue content corresponding to the current target dialogue content can be obtained. At this time, when the next dialogue content is configured with a starter role and an end role, and the starter role and end role configured in the next dialogue content are the same as the listener and speaker of the target dialogue content. Furthermore, if the starter role and end role are in the same position when the target dialogue content and the next dialogue content occur in the target virtual dialogue scenario, it indicates that the positions of the configured starter role and end role (the first dialogue role as the listener and the second dialogue role as the speaker in the current target dialogue content) in the current target dialogue content and in the next dialogue content have not changed. That is, the starter role is in the same position when the target dialogue content and the next dialogue content occur in the dialogue scenario, and the end role is in the same position when the target dialogue content and the next dialogue content occur in the dialogue scenario. Regardless of whether the positions of others change, the dialogue scenario is captured based on the virtual camera and lens position of the current target dialogue content, realizing direct shot reuse. In this regard, to determine whether the positions have changed, the positions of the speaker and listener in the target dialogue content can be determined first, and then the positions of the starting role and the ending role in the virtual dialogue scenario in the next dialogue content can be determined to judge whether they are the same. This embodiment of the invention does not make specific limitations.
[0137] For example, as shown in Table 5 below, the target dialogue content is a three-person dialogue with three NPCs and no player participation. The next dialogue content is a four-person dialogue with three NPCs and one player participation. In this case, the starting character (i.e., the starting point NPC) and the ending character (i.e., the ending point NPC) configured in the next dialogue content are the same as the listener and speaker in the target dialogue content, respectively. At this time, if the position between NPC2 and NPC3 in the next dialogue content is unchanged from the position between NPC2 and NPC3 in the target dialogue content, then when filming the next dialogue content, the virtual camera of the target dialogue content is directly invoked and filmed at the corresponding lens position.
[0138] Table 5
[0139]
[0140]
[0141] In one embodiment of the present invention, for further explanation and limitation, step 103 of shooting the dialogue scene at the camera position using the virtual camera includes: obtaining the target configuration content corresponding to the target character configured in the scene configuration data; and shooting the target character displaying the target configuration content at the camera position using the virtual camera.
[0142] To enhance the diversity of virtual dialogue scenarios and make the characters more vivid and the dialogue more realistic, thereby improving the immersion in the storyline, target configuration content corresponding to the target character is obtained from the scenario configuration data. This allows for the generation of animated virtual dialogue scenarios during filming. The target configuration content characterizes the animation effects displayed by the target character in the virtual dialogue scenario. This can include, but is not limited to, special effects for specific animation content, character-specific facial effects, etc. For example, a heart-shaped effect can be added to the dialogue scenario when a specific word is spoken to express excitement, and the dialogue scenario can be captured and displayed using a virtual camera. Another example is configuring the speaking character's eyes to have a blinking effect. This embodiment of the invention does not impose specific limitations.
[0143] Correspondingly, when capturing a virtual dialogue scene of a target character displaying target configuration content using a virtual camera at the camera position, the target configuration content is bound to the target character, and the virtual camera is driven to capture a virtual dialogue scene of the target character bound to the target configuration content at the camera position, resulting in a virtual dialogue scene with more diverse animation effects.
[0144] This invention provides a method for generating dialogue scenarios. Compared with existing technologies, this invention obtains scenario configuration data corresponding to target dialogue content in a target virtual dialogue scenario. The scenario configuration data stores position identifiers and camera identifiers corresponding to the target dialogue content. Based on the position identifiers, the method determines the position parameters of a target character and, based on the position parameters, determines the position of the target character in the target virtual dialogue scenario. Based on the position of the target character in the target virtual dialogue scenario and the camera identifiers, the method determines the camera position of a virtual camera and, at the camera position, captures the target virtual dialogue scenario using the virtual camera. This achieves diverse dialogue scenario production effects and, based on the obtained scenario configuration data, satisfies the reusability requirements of the virtual camera, greatly reducing the configuration cost of the virtual camera. Furthermore, the virtual camera obtained by combining position parameters and camera parameters increases the dynamism of dialogue scenario production, thereby improving the efficiency of game dialogue scenario generation.
[0145] Furthermore, as a response to the above Figure 1 To implement the method shown, this embodiment of the invention provides a dialogue scenario generation device, such as... Figure 13 As shown, the device includes:
[0146] The acquisition module 61 is used to acquire scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content.
[0147] The first determining module 62 is used to determine the position parameters of the target character based on the position identifier, and to determine the position of the target character in the target virtual dialogue scenario based on the position parameters.
[0148] The second determining module 63 is used to determine the lens position of the virtual camera based on the position of the target character in the target virtual dialogue scenario and the lens identifier, and to take pictures of the target virtual dialogue scenario through the virtual camera at the lens position.
[0149] Furthermore, the device also includes:
[0150] The definition module is used to configure preset virtual dialogue scenarios with different numbers of participants, and to define the origin role that matches the preset virtual dialogue scenario.
[0151] The third determining module is used to determine the position parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario. The position parameters include position distance and position orientation.
[0152] The allocation module is used to generate a station component that matches the preset virtual dialogue scenario based on the station parameters, and to assign a station identifier to the station component.
[0153] Furthermore, the third determining module includes:
[0154] The first acquisition unit is used to acquire the scene distance between the origin character and the associated character, and to obtain the standing distance;
[0155] The binding unit is used to obtain the angle between the two directions corresponding to the origin character and the associated character, with the origin character as the reference direction, and bind the position orientation based on the reference direction and the angle.
[0156] Furthermore, the device also includes: a configuration module,
[0157] The configuration module is used to configure the lens parameters corresponding to each of multiple types of lens components. The lens parameters include lens position offset and lens focus parameters. The multiple types include over-the-shoulder lens type and close-up lens type.
[0158] The allocation module is also used to assign a lens identifier to each lens assembly.
[0159] Furthermore, the configuration module includes:
[0160] The second acquisition unit is used to acquire the character characteristics of a preset dialogue character, wherein the character characteristics include at least one of body shape characteristics, gender characteristics, and special effects characteristics;
[0161] The first determining unit is used to determine at least one shot parameter corresponding to the character characteristics under different shot types, wherein the shot types include over-the-shoulder shot type and close-up shot type;
[0162] A generation unit is configured to generate at least one camera component that matches the character characteristics based on the at least one camera parameter, and assign a unique camera identifier to the at least one camera component.
[0163] Furthermore, the first determining module includes:
[0164] The second determining unit is used to determine the target role corresponding to the target dialogue content and to retrieve the position component corresponding to the position identifier;
[0165] The third acquisition unit is used to acquire the position distance and position orientation in the position component, and determine the position of the target character based on the position distance and position orientation in the position component;
[0166] The second determining module includes:
[0167] The retrieval unit is used to retrieve the lens assembly that matches the lens identifier and obtain the lens parameters and type configured in the lens assembly;
[0168] The third determining unit is used to determine the camera position corresponding to the camera parameters and type configured in the camera component and the position of the dialogue character, based on the dialogue character configured in the target dialogue content.
[0169] Furthermore, the device also includes: a shooting module,
[0170] The acquisition module is also used to acquire scenario configuration data of the next dialogue content corresponding to the target dialogue content;
[0171] The shooting module is used to shoot the dialogue scene of the next dialogue content based on the virtual camera and lens position of the target dialogue content when the scenario configuration data of the next dialogue content is configured with a start role and an end role, and the start role and end role of the next dialogue content are the same as the first dialogue role and the second dialogue role of the target dialogue content, and the start role and end role are in the same position when the target dialogue content and the next dialogue content are generated in the target virtual dialogue scenario.
[0172] Furthermore, the shooting module includes:
[0173] The fourth acquisition unit is used to acquire the target configuration content corresponding to the target character configured in the scenario configuration data, wherein the target configuration content is used to characterize the animation effect displayed by the target character in the virtual dialogue scenario;
[0174] The delivery unit is used to photograph the target character displaying the target configuration content using the virtual camera at the lens position.
[0175] This invention provides a dialogue scenario generation device. Compared with the prior art, the embodiments of this invention acquire scenario configuration data corresponding to target dialogue content in a target virtual dialogue scenario. The scenario configuration data stores position identifiers and camera identifiers corresponding to the target dialogue content. Based on the position identifiers, the position parameters of the target character are determined, and based on the position parameters, the position of the target character in the target virtual dialogue scenario is determined. Based on the position of the target character in the target virtual dialogue scenario and the camera identifiers, the camera position of the virtual camera is determined, and the target virtual dialogue scenario is captured by the virtual camera at the camera position. This achieves diversified dialogue scenario production effects and meets the reusability requirements of the virtual camera based on the acquired scenario configuration data, greatly reducing the configuration cost of the virtual camera. At the same time, the virtual camera obtained by combining position parameters and camera parameters increases the dynamism of dialogue scenario production, thereby improving the generation efficiency of game dialogue scenarios.
[0176] According to one embodiment of the present invention, a storage medium is provided, the storage medium storing at least one executable instruction, the computer executable instruction being able to execute the dialogue scenario generation method in any of the above method embodiments.
[0177] Figure 14 The diagram shows a structural schematic of a terminal according to an embodiment of the present invention. The specific implementation of the terminal is not limited by the specific embodiments of the present invention.
[0178] like Figure 14 As shown, the terminal may include: a processor 702, a communications interface 704, a memory 706, and a communications bus 708.
[0179] The processor 702, communication interface 704, and memory 706 communicate with each other via communication bus 708.
[0180] The communication interface 704 is used to communicate with other network elements such as clients or other servers.
[0181] The processor 702 is used to execute program 710, specifically to perform the relevant steps in the above-described dialogue scenario generation method embodiment.
[0182] Specifically, program 710 may include program code that includes computer operation instructions.
[0183] The processor 702 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The terminal may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.
[0184] Memory 706 is used to store program 710. Memory 706 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0185] Specifically, program 710 can be used to cause processor 702 to perform the following operations:
[0186] Obtain scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content.
[0187] The target character's position parameters are determined based on the position identifier, and the target character's position in the target virtual dialogue scenario is determined based on the position parameters.
[0188] Based on the target character's position in the target virtual dialogue scenario and the camera marker, the camera position of the virtual camera is determined, and the target virtual dialogue scenario is filmed at the camera position using the virtual camera.
[0189] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0190] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for generating dialogue scenarios, characterized in that, include: Configure preset virtual dialogue scenarios with different number of participants, define the origin role matching the preset virtual dialogue scenario, determine the position parameters of at least one associated role relative to the origin role under the preset virtual dialogue scenario, generate a position component matching the preset virtual dialogue scenario based on the position parameters, and assign a position identifier to the position component. Configure lens parameters corresponding to each of multiple types of lens components, and assign a lens identifier to each lens component. The lens parameters are used to characterize the offset distance of the virtual camera relative to the lens position origin and the lens focus parameters. Obtain scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content. The target character's position parameters are determined by retrieving the position identifier and the position of the target character in the target virtual dialogue scenario based on the position parameters. The target character is all associated characters other than the origin character among all characters when the target dialogue content is generated. Based on the target character's position in the target virtual dialogue scenario and the lens parameters corresponding to the lens identifier, the lens position of the virtual camera is determined, and the target virtual dialogue scenario is filmed at the lens position using the virtual camera.
2. The method according to claim 1, characterized in that, The station parameters include station distance and station orientation.
3. The method according to claim 2, characterized in that, The determination of the positioning parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario includes: Obtain the scene distance between the origin character and the associated character to obtain the standing distance; Using the origin character as the reference direction, obtain the angle between the two corresponding directions of the origin character and the associated character, and bind the position orientation based on the reference direction and the angle.
4. The method according to claim 2, characterized in that, The lens parameters include lens position offset and lens focus parameters, and the multiple types include over-the-shoulder lens type and close-up lens type.
5. The method according to claim 4, characterized in that, The configuration of lens parameters corresponding to multiple types of lens components, and the assignment of lens identifiers to each lens component, include: Obtain the character characteristics of a preset dialogue character, wherein the character characteristics include at least one of body shape characteristics, gender characteristics, and special effects characteristics; Determine at least one shot parameter corresponding to the character characteristics under different shot types, wherein the shot types include over-the-shoulder shot type and close-up shot type; At least one camera component matching the character characteristics is generated based on the at least one camera parameter, and a unique camera identifier is assigned to the at least one camera component.
6. The method according to claim 2 or 4, characterized in that, The step of determining the target character's position parameters based on the position identifier, and determining the target character's position in the target virtual dialogue scenario based on the position parameters, includes: Determine the target role corresponding to the target dialogue content, and retrieve the position component corresponding to the position identifier; Obtain the position distance and position orientation from the position component, and determine the position of the target character based on the position distance and position orientation from the position component; Determining the virtual camera's position based on the target character's stance in the virtual dialogue scenario and the camera markers includes: Retrieve the lens component that matches the lens identifier, and obtain the lens parameters and type configured in the lens component; Based on the dialogue characters configured in the target dialogue content, determine the camera position corresponding to the camera parameters and type configured in the camera component and the position of the dialogue characters.
7. The method according to claim 1, characterized in that, After determining the virtual camera's lens position based on the target character's position in the target virtual dialogue scenario and the lens marker, and then capturing the target virtual dialogue scenario at the lens position using the virtual camera, the method further includes: Obtain the scenario configuration data for the next dialogue content corresponding to the target dialogue content; When the scenario configuration data of the next dialogue content includes a starting role and an ending role, and the starting role and ending role of the next dialogue content are the same as the first dialogue role and the second dialogue role of the target dialogue content, and the starting role and ending role are in the same position when the target dialogue content and the next dialogue content are generated in the target virtual dialogue scenario, then the dialogue scenario of the next dialogue content is captured based on the virtual camera and lens position of the target dialogue content.
8. The method according to claim 1, characterized in that, The process of capturing the dialogue scene using the virtual camera at the lens position includes: The target configuration content corresponding to the target character is configured in the scenario configuration data. The target configuration content is used to characterize the animation effects displayed by the target character in the virtual dialogue scenario. The target character displaying the target configuration content is photographed using the virtual camera at the camera position.
9. A dialogue scenario generation device, characterized in that, include: The acquisition module is used to acquire scenario configuration data corresponding to the target dialogue content in the target virtual dialogue scenario. The scenario configuration data stores the position identifier and camera identifier corresponding to the target dialogue content. The first determining module is used to retrieve the position component based on the position identifier to determine the position parameters of the target character, and to determine the position of the target character in the target virtual dialogue scenario based on the position parameters. The target character is all associated characters other than the origin character among all characters when the target dialogue content is generated. The second determining module is used to determine the lens position of the virtual camera based on the position of the target character in the target virtual dialogue scenario and the lens parameters corresponding to the lens identifier, and to shoot the target virtual dialogue scenario through the virtual camera at the lens position. The device further includes: The definition module is used to configure preset virtual dialogue scenarios with different numbers of participants, and to define the origin role that matches the preset virtual dialogue scenario. The third determining module is used to determine the position parameters of at least one associated character relative to the origin character in the preset virtual dialogue scenario. The allocation module is used to generate a station component that matches the preset virtual dialogue scenario based on the station parameters, and to assign a station identifier to the station component; The configuration module is used to configure the lens parameters for each of the various types of lens components. The allocation module is also used to assign a lens identifier to each lens assembly.
10. A storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the dialogue scenario generation method as described in any one of claims 1-8.
11. A terminal, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the dialogue scenario generation method as described in any one of claims 1-8.