A game projection video generation method, device, equipment and medium

CN117339214BActive Publication Date: 2026-10-20MIGU DIGITAL MEDIA CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311347079.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2026-10-20
Estimated Expiration
2043-10-18

AI Technical Summary

Technical Problem

[0003]本申请实施例提供一种游戏投影视频生成方法、装置、设备及介质,以解决现有的游戏投影视频生成方法的灵活性较低的问题

Benefits of technology

[0063]本申请实施例的游戏投影视频生成方法,该方法包括获取玩家的位置信息和所述玩家所选择剧本的关键信息,所述关键信息包括N个证物和第一目标建筑物;根据所述位置信息和所述第一目标建筑物,构建所述剧本的剧情场景;根据所述剧情场景中固定物的位置、所述N个证物的摆放规则和所述剧本的内容,确定所述N个证物在所述剧情场景的摆放位置;根据所述剧情场景和所述N个证物在所述剧情场景中的摆放位置,生成游戏投影视频。该方法根据玩家的位置信息,构建剧情场景,并动态地确定证物在剧情场景中的摆放位置,提高了游戏投影视频生成方法的灵活性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117339214B_ABST
    Figure CN117339214B_ABST
Patent Text Reader

Abstract

The application provides a game projection video generation method and device, equipment and medium, which are applied to the virtual reality interaction field. The method comprises the following steps: acquiring position information of a player and key information of a script selected by the player, wherein the key information comprises N pieces of evidence and a first target building; constructing a plot scene of the script according to the position information and the first target building; determining the placement position of the N pieces of evidence in the plot scene according to the position of a fixed object in the plot scene, the placement rule of the N pieces of evidence and the content of the script; and generating a game projection video according to the plot scene and the placement position of the N pieces of evidence in the plot scene. According to the position information of the player, the plot scene is constructed, and the placement position of the evidence in the plot scene is dynamically determined, so that the flexibility of the game projection video generation method is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of virtual reality interaction, and more particularly to a method, apparatus, device, and medium for generating game projection videos. Background Technology

[0002] The creation of existing Augmented Reality (AR) interactive scene projection videos based on murder mystery games typically requires pre-determining the scene background and conducting detailed scene planning according to the script. This includes confirming the evidence to be placed in the scene, its corresponding position, orientation, size, etc., and finally outputting the constructed game projection video. Once the existing game projection videos are built, they cannot be modified. That is, regardless of where the player is playing the game, the scene background corresponding to the same script remains unchanged, thus the existing game projection video generation methods have low flexibility. Summary of the Invention

[0003] This application provides a method, apparatus, device, and medium for generating game projection videos, in order to solve the problem of low flexibility in existing game projection video generation methods.

[0004] To solve the above-mentioned technical problems, this application is implemented as follows:

[0005] In a first aspect, embodiments of this application provide a method for generating game projection video, the method comprising:

[0006] Obtain the player's location information and key information of the scenario selected by the player, including N pieces of evidence and the first target building;

[0007] Based on the location information and the first target building, construct the plot scene of the script;

[0008] Based on the positions of fixed objects in the plot scene, the placement rules of the N pieces of evidence, and the content of the script, determine the placement positions of the N pieces of evidence in the plot scene;

[0009] Based on the plot scene and the placement of the N pieces of evidence within the plot scene, a game projection video is generated.

[0010] Optionally, constructing the plot scene of the script based on the location information and the first target building includes:

[0011] Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively;

[0012] If a match is successful, a first target building list is determined from the list of multiple buildings, wherein the building characteristics of the first target building list are the same as those of the first target building.

[0013] Identify the second target building, which is the building in the first target building list that is closest to the player;

[0014] Based on the area where the second target building is located, construct the plot scene of the script.

[0015] Optionally, constructing the plot scene of the script based on the location information and the first target building includes:

[0016] Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively;

[0017] In the event of a failed match, a second target building list is determined from the list of multiple buildings, wherein the building features of the second target building list are most similar to the features of the first target building;

[0018] Identify a third target building, which is the building in the second target building list that is closest to the player;

[0019] Based on the area where the third target building is located, the plot scene of the script is constructed.

[0020] Optionally, the N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the position of a fixed object in the scene, the placement rules of the N pieces of evidence, and the content of the script includes:

[0021] If evidence has already been placed before the first piece of evidence is placed, the placement position of the first piece of evidence in the plot scene is determined based on the position of fixed objects in the plot scene, the position of the already placed evidence, the placement rules of the first piece of evidence, and the content of the script.

[0022] Optionally, the N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the position of a fixed object in the scene, the placement rules of the N pieces of evidence, and the content of the script includes:

[0023] Get the M first positions in the story scene;

[0024] Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0025] Based on the M first probabilities, the placement rules of the first evidence, and the content of the script, the placement position of the first evidence in the plot scene is selected from the M first positions in the plot scene.

[0026] Optionally, the N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the position of a fixed object in the scene, the placement rules of the N pieces of evidence, and the content of the script includes:

[0027] Get the M first positions in the story scene;

[0028] Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0029] The gamma function is used to fit each first position to the position of the placed evidence to determine the second probability of the first evidence being placed in each first position.

[0030] Based on the first distance, the second distance, and the placement rules of the first evidence, a third probability is determined for placing the first evidence in each of the first positions. The first distance is the distance between each of the first positions and the fixed object, and the second distance is the distance between each of the first positions and the placed evidence.

[0031] Based on M first probabilities, M second probabilities, M third probabilities, and the content of the script, the placement position of the first piece of evidence in the plot scene is selected from M first positions in the plot scene.

[0032] Optionally, the placement rule of the first evidence is determined based on at least one of the volume of the first evidence, the volume of the fixed object, and the volume of the placed evidence.

[0033] Secondly, embodiments of this application also provide a game projection video generation apparatus, which includes:

[0034] The first acquisition module is used to acquire the player's location information and key information of the script selected by the player. The key information includes N pieces of evidence and the first target building.

[0035] The first construction module is used to construct the plot scene of the script based on the location information and the first target building;

[0036] The first determining module is used to determine the placement position of the N pieces of evidence in the plot scene based on the position of the fixed object in the plot scene, the placement rules of the N pieces of evidence, and the content of the script.

[0037] The first generation module is used to generate a game projection video based on the plot scene and the placement of the N pieces of evidence in the plot scene.

[0038] Optionally, the first building module includes:

[0039] The first matching unit is configured to match the first target building with a list of multiple buildings corresponding to the location information based on the characteristics of the first target building.

[0040] The first determining unit is configured to determine a first target building list from the plurality of building lists when a match is successful, wherein the building characteristics of the first target building list are the same as those of the first target building;

[0041] The second determining unit is used to determine the second target building, which is the building in the first target building list that is closest to the player;

[0042] The first construction unit is used to construct the plot scene of the script based on the area where the second target building is located.

[0043] Optionally, the first building module includes:

[0044] The first matching unit is configured to match the first target building with a list of multiple buildings corresponding to the location information based on the characteristics of the first target building.

[0045] The third determining unit is used to determine a second target building list in the case of a matching failure, wherein the building features of the second target building list are most similar to the features of the first target building;

[0046] The fourth determining unit is used to determine the third target building, which is the building in the second target building list that is closest to the player;

[0047] The second construction unit is used to construct the plot scene of the script based on the area where the third target building is located.

[0048] Optionally, the N pieces of evidence include a first piece of evidence, and the first determining module includes:

[0049] The fifth determining unit is used to determine the placement position of the first evidence in the plot scene based on the position of the fixed object in the plot scene, the position of the already placed evidence, the placement rules of the first evidence, and the content of the script, when evidence has already been placed before the first evidence is placed.

[0050] Optionally, the N pieces of evidence include a first piece of evidence, and the first determining module includes:

[0051] The first acquisition unit is used to acquire M first positions in the story scene;

[0052] The sixth determining unit is used to fit each first position to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0053] The first screening unit is used to select the placement position of the first evidence in the plot scene from M first positions in the plot scene based on M first probabilities, the placement rules of the first evidence, and the content of the script.

[0054] Optionally, the N pieces of evidence include a first piece of evidence, and the first determining module includes:

[0055] The first acquisition unit is used to acquire M first positions in the story scene;

[0056] The seventh determining unit is used to fit each first position to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0057] The eighth determining unit is used to fit each first position with the position of the placed evidence using the gamma function to determine the second probability of the first evidence being placed in each first position;

[0058] The ninth determining unit is used to determine a third probability of placing the first evidence in each of the first positions based on the first distance, the second distance, and the placement rules of the first evidence, wherein the first distance is the distance between each of the first positions and the fixed object, and the second distance is the distance between each of the first positions and the placed evidence;

[0059] The second screening unit is used to select the placement position of the first evidence in the plot scene from M first positions in the plot scene based on M first probabilities, M second probabilities, M third probabilities and the content of the script.

[0060] Optionally, the placement rule of the first evidence is determined based on at least one of the volume of the first evidence, the volume of the fixed object, and the volume of the placed evidence.

[0061] Thirdly, embodiments of this application also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the above-described game projection video generation method.

[0062] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described game projection video generation method.

[0063] This application's embodiment of the game projection video generation method includes obtaining player location information and key information of the script selected by the player, the key information including N pieces of evidence and a first target building; constructing a plot scene of the script based on the location information and the first target building; determining the placement positions of the N pieces of evidence in the plot scene based on the positions of fixed objects in the plot scene, the placement rules of the N pieces of evidence, and the content of the script; and generating a game projection video based on the plot scene and the placement positions of the N pieces of evidence in the plot scene. This method constructs a plot scene based on the player's location information and dynamically determines the placement positions of the evidence in the plot scene, improving the flexibility of the game projection video generation method. Attached Figure Description

[0064] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0065] Figure 1 This is a flowchart of the game projection video generation method provided in the embodiments of this application;

[0066] Figure 2 This is a schematic diagram of a plot scene provided in an embodiment of this application;

[0067] Figure 3 This is one of the schematic diagrams showing the placement of evidence in a story scene according to an embodiment of this application;

[0068] Figure 4 This is the second schematic diagram showing the placement of evidence in a story scene according to the embodiments of this application;

[0069] Figure 5 This is the third illustration of the placement of evidence in a story scene according to the embodiments of this application;

[0070] Figure 6 This is the fourth illustration of the placement of evidence in a story scene according to the embodiments of this application;

[0071] Figure 7 This is a structural diagram of a game projection video generation apparatus provided in one embodiment of this application;

[0072] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0073] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0074] This application provides a method for generating game projection videos. See also... Figure 1 , Figure 1 This is a flowchart of the game projection video generation method provided in the embodiments of this application, such as... Figure 1 As shown, it includes the following steps:

[0075] Step 101: Obtain the player's location information and key information of the script selected by the player. The key information includes N pieces of evidence and the first target building.

[0076] In this step, the player's location information is first obtained through the Global Positioning System (GPS). Then, map information is queried based on the player's location information to determine the name of the player's location. For example, the name of the player's location is determined to be "West Lake" based on the player's location information. When the player is in "West Lake," the selected scenario is: "Zhang San and Li Si are arguing on a high tower. During the scuffle, Li Si pushes Zhang San off the tower. Zhang San's clothes are partially torn and caught on the railing. Li Si flees in panic, leaving a watch on the stairs." Key information is extracted from the scenario. Key information may include evidence and the primary target building. Referring to the aforementioned scenario, evidence may be a watch, clothing, etc., and the primary target building may be the high tower.

[0077] Specifically, key information in the script can be extracted using the following procedure:

[0078] storyInfoList:

[0079] { [

[0081] {

[0082] "name":"Zhang San",

[0083] "tag":0, / / 0 corpse 1 evidence 2 murder weapon

[0084] "localtion":"high tower",

[0085] "details":"ground",

[0086] "position":0, / / Up 0|Down 1|Forward 2|Backward 3|Left 4|Right 5

[0087] "isMain": true

[0088] },

[0089] {

[0090] "name":"Clothing section",

[0091] "tag":1, / / 0 corpse 1 evidence 2 murder weapon

[0092] "localtion":"high tower",

[0093] "details":"fence",

[0094] "position":0, / / Up 0|Down 1|Forward 2|Backward 3|Left 4|Right 5

[0095] "isMain": false

[0096] },

[0097] {

[0098] "name":"watch",

[0099] "tag":2, / / 0 bodies, 1 piece of evidence, 2 murder weapons

[0100] "localtion":"high tower",

[0101] "details":"stairs",

[0102] "position":0, / / Up 0|Down 1|Forward 2|Backward 3|Left 4|Right 5

[0103] "isMain": false

[0104] }, ]

[0106] }

[0107] Step 102: Based on the location information and the first target building, construct the plot scene of the script;

[0108] In this step, referring to the example in step 101, based on the player's location "West Lake" and the first target building in the script, "The Tower," a "List of Towers" is obtained around "West Lake." The distance between each tower in the "List of Towers" and the player is calculated, and the nearest "Leifeng Tower" is selected as the location where the plot takes place. Using the area within 100 meters of Leifeng Tower as a filtering criterion, detailed images of the area within 100 meters of Leifeng Tower are obtained through web scraping. Combined with a neural radiation field network, relevant 3D building models are output to construct the plot scene of the script.

[0109] Step 103: Based on the position of the fixed object in the plot scene, the placement rules of the N pieces of evidence, and the content of the script, determine the placement position of the N pieces of evidence in the plot scene, wherein the first piece of evidence is any one of the N pieces of evidence that is not placed.

[0110] In this step, referring to the example in step 101, the fixed objects in the above plot scene can be understood as Leifeng Pagoda, the ground, mountains, etc. The placement rule of the above N pieces of evidence can be understood as smaller objects needing to be placed on larger objects. Then, combined with the content of the script, the placement position of the N pieces of evidence in the plot scene is determined.

[0111] Step 104: Generate a game projection video based on the plot scene and the placement of the N pieces of evidence in the plot scene.

[0112] In this step, after determining the plot scene and the placement of N pieces of evidence within the plot scene, the game projection video is output.

[0113] In the game projection video generation method of this application embodiment, a plot scene is constructed based on the player's position information, and the placement position of the evidence in the plot scene is dynamically determined, which improves the flexibility of the game projection video generation method.

[0114] Optionally, constructing the plot scene of the script based on the location information and the first target building includes:

[0115] Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively;

[0116] If a match is successful, a first target building list is determined from the list of multiple buildings, wherein the building characteristics of the first target building list are the same as those of the first target building.

[0117] Identify the second target building, which is the building in the first target building list that is closest to the player;

[0118] Based on the area where the second target building is located, construct the plot scene of the script.

[0119] In the game projection video generation method of this application embodiment, referring to the foregoing embodiment, the first target building is determined to be a "tower". The player's location, "West Lake", stores multiple lists of surrounding buildings, such as a list of towers, a list of mountains, etc. Based on the characteristics of "tower", the first target building list is determined to be a list of towers. In the list of towers, the second target building is determined to be "Leifeng Pagoda", which is closest to the player. Using the area within 100 meters of Leifeng Pagoda as a filtering condition, detailed images within 100 meters of Leifeng Pagoda are obtained through web crawling. Combined with a neural radiation field network, relevant 3D building models are output to construct the plot scene of the script. See also Figure 2 , Figure 2 This is a simplified illustration of the generated story scene. Specifically, this embodiment can be implemented by constructing the following program:

[0120] 1. Based on the player's location data, obtain the name of the player's location, var0 = "West Lake";

[0121] 2. Search for the data object in storyInfoList where isMain is true, and obtain the keyword var1 = "Tower";

[0122] 3. By combining var0 and var1, we obtain a list of towers along West Lake, resList, which contains the name of each tower and its specific GPS coordinates.

[0123] 4. Calculate the distance between each tower in resList and the player's current location, and select the nearest tower as the crime scene. In this example, venue="Leifeng Tower" is selected.

[0124] 5. Using "venue" as the keyword and a distance of 100m as the filter, crawl detailed images within 100 meters of "Leifeng Pagoda";

[0125] 6. Obtain the elevation DEM based on the current location and generate a terrain model;

[0126] 7. Based on detailed images and combined with neural radiation networks, output relevant 3D building models (Leifeng Pagoda) and vegetation (such as lotus ponds), and place them in specific locations based on open GPS map information.

[0127] In this embodiment, a plot scene is constructed based on the player's location information and the script. When the player's location information changes, the plot scene can also be dynamically adjusted accordingly. Then, a game projection video is generated based on the plot scene, which improves the flexibility of the game projection video generation method.

[0128] Optionally, constructing the plot scene of the script based on the location information and the first target building includes:

[0129] Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively;

[0130] In the event of a failed match, a second target building list is determined from the list of multiple buildings, wherein the building features of the second target building list are most similar to the features of the first target building;

[0131] Identify a third target building, which is the building in the second target building list that is closest to the player;

[0132] Based on the area where the third target building is located, the plot scene of the script is constructed.

[0133] In the game projection video generation method of this application embodiment, referring to the aforementioned embodiment, the first target building is determined to be a "tower". If the player's location changes to "Xixi Wetland", there is no list of buildings with the same characteristics as "tower" in the multiple building lists corresponding to "Xixi Wetland". Then, the list of buildings with the closest characteristics to "tower", namely "the list of tall buildings near Xixi Wetland", is determined as the second target building list. In the list of tall buildings near Xixi Wetland, the third target building is determined to be "Xixi Ginza Building A", which is closest to the player. Using the area within 100 meters of Xixi Ginza Building A as a filtering condition, detailed images within 100 meters of Xixi Ginza Building A are obtained through web crawling. Combined with a neural radiation field network, relevant 3D building models are output to construct the plot scene of the script. Specifically, this embodiment can be implemented by constructing the following program:

[0134] 1. Based on the player's location data, obtain the name of the player's location, var0 = "Xixi Wetland";

[0135] 2. Search for the data object in storyInfoList where isMain is true, and obtain the keyword var1 = "Tower";

[0136] 3. Since no results were found related to "tall tower" in the search, the detailed description of "tall tower" was obtained based on semantic analysis: var2 = "tall" and var3 = "building".

[0137] 4. By combining var0, var2, and var3, a list of tall buildings along the edge of Xixi Wetland, resList, is obtained. The list contains the names of all tall buildings and their specific GPS coordinates.

[0138] 5. Calculate the distance between each tall building in resList and the player's current location, and select the tallest building closest to the player. In this example, select venue="Xixi Ginza Building A";

[0139] 6. Using "venue" as the keyword and a distance of 100m as the filter, crawl detailed images within 100 meters of "Xixi Yinzhuo Building A";

[0140] 7. Obtain the elevation DEM based on the current location and generate a terrain model;

[0141] 8. Based on detailed images and combined with neural radiation networks, output a relevant 3D building model (Xixi Ginza Block A), and place it in a specific location based on available GPS map information;

[0142] 9. Replace all tower content in the script with Xixi Ginza Building A, and refresh storyInfoList.

[0143] In this embodiment, a plot scene is constructed based on the player's location information and the script. When the player's location information changes, the plot scene can also be dynamically adjusted accordingly. Then, a game projection video is generated based on the plot scene, which improves the flexibility of the game projection video generation method.

[0144] Optionally, the N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the position of a fixed object in the scene, the placement rules of the N pieces of evidence, and the content of the script includes:

[0145] If evidence has already been placed before the first piece of evidence is placed, the placement position of the first piece of evidence in the plot scene is determined based on the position of fixed objects in the plot scene, the position of the already placed evidence, the placement rules of the first piece of evidence, and the content of the script.

[0146] In this embodiment, if evidence has already been placed, it can be considered a fixed object in the story scene. Combining its placement, the position of the fixed object in the story scene, the placement rules of the first piece of evidence, and the content of the script, the placement position of the first piece of evidence in the story scene is determined. This embodiment, based on the story scene previously arranged according to the player's position information, further dynamically determines the placement position of the evidence, improving the flexibility of evidence placement determination while also improving the accuracy of evidence placement determination by referring to the position of fixed objects.

[0147] Optionally, the N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the position of a fixed object in the scene, the placement rules of the N pieces of evidence, and the content of the script includes:

[0148] Get the M first positions in the story scene;

[0149] Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0150] Based on the M first probabilities, the placement rules of the first evidence, and the content of the script, the placement position of the first evidence in the plot scene is selected from the M first positions in the plot scene.

[0151] In the embodiments of this application, reference is made to Figure 3 In the story scenario, M first positions are obtained. For example, position P is selected from these M first positions for explanation. In this story scenario, there are k fixed objects {K1, K2, ... K}. K}, then by fitting the result using a gamma function, the first probability of placing the first piece of evidence at position P is: Then, combining the placement rules of the first piece of evidence, such as small pieces of evidence needing to be placed against larger objects, and the content of the script, such as whether the first piece of evidence is suitable to be placed at position P, the placement position of the first piece of evidence in the plot scene is selected from the M first positions in the plot scene.

[0152] In this embodiment of the application, based on the position of the fixed object, the first probability of placing the first evidence in each of the first positions is calculated by fitting the gamma function, and combined with the placement rules of the first evidence, the placement position of the first evidence in the plot scene is selected from M first positions, thereby improving the accuracy of determining the placement position of the evidence.

[0153] Optionally, the N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the position of a fixed object in the scene, the placement rules of the N pieces of evidence, and the content of the script includes:

[0154] Get the M first positions in the story scene;

[0155] Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0156] The gamma function is used to fit each first position to the position of the placed evidence to determine the second probability of the first evidence being placed in each first position.

[0157] Based on the first distance, the second distance, and the placement rules of the first evidence, a third probability is determined for placing the first evidence in each of the first positions. The first distance is the distance between each of the first positions and the fixed object, and the second distance is the distance between each of the first positions and the placed evidence.

[0158] Based on M first probabilities, M second probabilities, M third probabilities, and the content of the script, the placement position of the first piece of evidence in the plot scene is selected from M first positions in the plot scene.

[0159] In this application embodiment, based on the above embodiments, further see... Figure 4 The second probability of placing the first piece of evidence i at position P can be determined based on the already placed piece of evidence j. This is achieved by fitting the position P to the position of the already placed piece of evidence j using a gamma function.

[0160]

[0161] The placement of the first piece of evidence also needs to refer to the rules for placing the first piece of evidence to determine the position of P and the relationship between each fixed object K. k The set of distances to each of the placed evidence pieces Xj is t{T1, T2, ..., T}. t It is generally believed that smaller objects need to be placed alongside larger objects. Based on this placement rule, evaluation criteria are derived. Where V(Xi) is the volume of the first piece of evidence, and V(S) is the sum of the volumes of the fixed objects and the already placed evidence. Based on the position of P and the various fixed objects K... k and each of the placed evidence items X j The distance and the evaluation index α are used to determine the third probability as follows. in, Where Tmin is the minimum distance in the distance set, and Tmax is the maximum distance in the distance set.

[0162] Based on the obtained first, second, and third probabilities, see [link / reference] Figure 5 We can first select H first positions from M first positions.

[0163] Then, based on the script content, determine the placement of the first piece of evidence in the plot scene from H first positions. Specifically, referring to the script content of the aforementioned embodiment, obtain the location, details, and position corresponding to the first piece of evidence from the storyInfoList extracted from the script content as input. Based on the existing trained model, obtain the following selection criteria for the first piece of evidence: collision scalar r0: 0 no collision, 1 collision; collision object type r1: 0 fixed object, 1 prop; collision object label r2: "fence" in the above example; collision method r3: 0 fit, 1 penetrate. If the first piece of evidence is a corpse, then r0 = 0, r1 = 0, r2 = "ground", r3 = 0. See also... Figure 6 The optimal placement position is determined from H first positions, and this is used as the optimal placement position for the first piece of evidence.

[0164] This application embodiment determines the placement position of the first piece of evidence based on multiple dimensions, thereby improving the accuracy of determining the placement position of the first piece of evidence.

[0165] Optionally, the placement rule of the first evidence is determined based on at least one of the volume of the first evidence, the volume of the fixed object, and the volume of the placed evidence.

[0166] In this embodiment, smaller objects generally need to be placed alongside larger objects. Therefore, when determining the placement rules for the first piece of evidence, it is necessary to consider the volume of the first piece of evidence and the volume of fixed objects in the scene. If evidence has already been placed, it is also necessary to comprehensively determine the placement based on the volume of the placed evidence. This embodiment further improves the accuracy of determining the placement position of evidence based on practical considerations.

[0167] See Figure 7 , Figure 7 This is a structural diagram of a game projection video generation device provided in another embodiment of this application.

[0168] like Figure 7 As shown, the game projection video generation device 700 includes:

[0169] The first acquisition module 701 is used to acquire the player's location information and key information of the script selected by the player. The key information includes N pieces of evidence and a first target building.

[0170] The first construction module 702 is used to construct the plot scene of the script based on the location information and the first target building;

[0171] The first determining module 703 is used to determine the placement position of the N pieces of evidence in the plot scene based on the position of the fixed object in the plot scene, the placement rules of the N pieces of evidence, and the content of the script.

[0172] The first generation module 704 is used to generate a game projection video based on the plot scene and the placement of the N pieces of evidence in the plot scene.

[0173] Optionally, the first building module includes:

[0174] The first matching unit is configured to match the first target building with a list of multiple buildings corresponding to the location information based on the characteristics of the first target building.

[0175] The first determining unit is configured to determine a first target building list from the plurality of building lists when a match is successful, wherein the building characteristics of the first target building list are the same as those of the first target building;

[0176] The second determining unit is used to determine the second target building, which is the building in the first target building list that is closest to the player;

[0177] The first construction unit is used to construct the plot scene of the script based on the area where the second target building is located.

[0178] Optionally, the first building module includes:

[0179] The first matching unit is configured to match the first target building with a list of multiple buildings corresponding to the location information based on the characteristics of the first target building.

[0180] The third determining unit is used to determine a second target building list in the case of a matching failure, wherein the building features of the second target building list are most similar to the features of the first target building;

[0181] The fourth determining unit is used to determine the third target building, which is the building in the second target building list that is closest to the player;

[0182] The second construction unit is used to construct the plot scene of the script based on the area where the third target building is located.

[0183] Optionally, the N pieces of evidence include a first piece of evidence, and the first determining module includes:

[0184] The fifth determining unit is used to determine the placement position of the first evidence in the plot scene based on the position of the fixed object in the plot scene, the position of the already placed evidence, the placement rules of the first evidence, and the content of the script, when evidence has already been placed before the first evidence is placed.

[0185] Optionally, the N pieces of evidence include a first piece of evidence, and the first determining module includes:

[0186] The first acquisition unit is used to acquire M first positions in the story scene;

[0187] The sixth determining unit is used to fit each first position to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0188] The first screening unit is used to select the placement position of the first evidence in the plot scene from M first positions in the plot scene based on M first probabilities, the placement rules of the first evidence, and the content of the script.

[0189] Optionally, the N pieces of evidence include a first piece of evidence, and the first determining module includes:

[0190] The first acquisition unit is used to acquire M first positions in the story scene;

[0191] The seventh determining unit is used to fit each first position to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0192] The eighth determining unit is used to fit each first position with the position of the placed evidence using the gamma function to determine the second probability of the first evidence being placed in each first position;

[0193] The ninth determining unit is used to determine a third probability of placing the first evidence in each of the first positions based on the first distance, the second distance, and the placement rules of the first evidence, wherein the first distance is the distance between each of the first positions and the fixed object, and the second distance is the distance between each of the first positions and the placed evidence;

[0194] The second screening unit is used to select the placement position of the first evidence in the plot scene from M first positions in the plot scene based on M first probabilities, M second probabilities, M third probabilities and the content of the script.

[0195] Optionally, the placement rule of the first evidence is determined based on at least one of the volume of the first evidence, the volume of the fixed object, and the volume of the placed evidence.

[0196] Please see Figure 8 , Figure 8 This is a structural diagram of an electronic device provided in an embodiment of this application, such as... Figure 8 As shown, the electronic device includes: a processor 800, a memory 820, and a program or instructions stored in the memory 820 and executable on the processor 800. The processor 800 is used to read the program or instructions from the memory 820. The electronic device also includes a bus interface and a transceiver 810.

[0197] Transceiver 810 is used to receive and send data under the control of processor 800.

[0198] Among them, Figure 8 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 600) and memory (memory 820). The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 810 can be multiple elements, including transmitters and transceivers, providing a unit for communicating with various other devices over a transmission medium. The processor 800 is responsible for managing the bus architecture and general processing, and the memory 820 can store data used by the processor 800 during operation.

[0199] The processor 800 is used to read programs or instructions from the memory 820 and execute the following steps:

[0200] Obtain the player's location information and key information of the scenario selected by the player, including N pieces of evidence and the first target building;

[0201] Based on the location information and the first target building, construct the plot scene of the script;

[0202] Based on the positions of fixed objects in the plot scene, the placement rules of the N pieces of evidence, and the content of the script, determine the placement positions of the N pieces of evidence in the plot scene;

[0203] Based on the plot scene and the placement of the N pieces of evidence within the plot scene, a game projection video is generated.

[0204] Optionally, the processor 800 is configured to read a program or instruction from the memory 820 and perform the following steps:

[0205] Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively;

[0206] If a match is successful, a first target building list is determined from the list of multiple buildings, wherein the building characteristics of the first target building list are the same as those of the first target building.

[0207] Identify the second target building, which is the building in the first target building list that is closest to the player;

[0208] Based on the area where the second target building is located, construct the plot scene of the script.

[0209] Optionally, the processor 800 is configured to read a program or instruction from the memory 820 and perform the following steps:

[0210] Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively;

[0211] In the event of a failed match, a second target building list is determined from the list of multiple buildings, wherein the building features of the second target building list are most similar to the features of the first target building;

[0212] Identify a third target building, which is the building in the second target building list that is closest to the player;

[0213] Based on the area where the third target building is located, the plot scene of the script is constructed.

[0214] Optionally, the N pieces of evidence include a first piece of evidence, and a processor 800, configured to read programs or instructions from the memory 820 and perform the following steps:

[0215] If evidence has already been placed before the first piece of evidence is placed, the placement position of the first piece of evidence in the plot scene is determined based on the position of fixed objects in the plot scene, the position of the already placed evidence, the placement rules of the first piece of evidence, and the content of the script.

[0216] Optionally, the N pieces of evidence include a first piece of evidence, and a processor 800, configured to read programs or instructions from the memory 820 and perform the following steps:

[0217] Get the M first positions in the story scene;

[0218] Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0219] Based on the M first probabilities, the placement rules of the first evidence, and the content of the script, the placement position of the first evidence in the plot scene is selected from the M first positions in the plot scene.

[0220] Optionally, the N pieces of evidence include a first piece of evidence, and a processor 800, configured to read programs or instructions from the memory 820 and perform the following steps:

[0221] Get the M first positions in the story scene;

[0222] Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position;

[0223] The gamma function is used to fit each first position to the position of the placed evidence to determine the second probability of the first evidence being placed in each first position.

[0224] Based on the first distance, the second distance, and the placement rules of the first evidence, a third probability is determined for placing the first evidence in each of the first positions. The first distance is the distance between each of the first positions and the fixed object, and the second distance is the distance between each of the first positions and the placed evidence.

[0225] Based on M first probabilities, M second probabilities, M third probabilities, and the content of the script, the placement position of the first piece of evidence in the plot scene is selected from M first positions in the plot scene.

[0226] Optionally, the placement rule of the first evidence is determined based on at least one of the volume of the first evidence, the volume of the fixed object, and the volume of the placed evidence.

[0227] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described game projection video generation method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0228] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0229] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0230] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for generating game projection video, characterized in that, The method includes: Obtain the player's location information and key information of the scenario selected by the player, including N pieces of evidence and the first target building; Based on the location information and the first target building, construct the plot scene of the script; Based on the positions of fixed objects in the plot scene, the placement rules of the N pieces of evidence, and the content of the script, determine the placement positions of the N pieces of evidence in the plot scene; Based on the plot scene and the placement of the N pieces of evidence within the plot scene, a game projection video is generated.

2. The game projection video generation method according to claim 1, characterized in that, The step of constructing the plot scene of the script based on the location information and the first target building includes: Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively; If a match is successful, a first target building list is determined from the list of multiple buildings, wherein the building characteristics of the first target building list are the same as those of the first target building. Identify the second target building, which is the building in the first target building list that is closest to the player; Based on the area where the second target building is located, construct the plot scene of the script.

3. The method for generating game projection video according to claim 1 or 2, characterized in that, The step of constructing the plot scene of the script based on the location information and the first target building includes: Based on the characteristics of the first target building, the first target building is matched with multiple building lists corresponding to the location information respectively; In the event of a failed match, a second target building list is determined from the list of multiple buildings, wherein the building features of the second target building list are most similar to the features of the first target building; Identify a third target building, which is the building in the second target building list that is closest to the player; Based on the area where the third target building is located, the plot scene of the script is constructed.

4. The game projection video generation method according to claim 1, characterized in that, The N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the positions of fixed objects in the scene, the placement rules of the N pieces of evidence, and the content of the script includes: If evidence has already been placed before the first piece of evidence is placed, the placement position of the first piece of evidence in the plot scene is determined based on the position of fixed objects in the plot scene, the position of the already placed evidence, the placement rules of the first piece of evidence, and the content of the script.

5. The method for generating game projection video according to claim 1, characterized in that, The N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the positions of fixed objects in the scene, the placement rules of the N pieces of evidence, and the content of the script includes: Get the M first positions in the story scene; Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position; Based on the M first probabilities, the placement rules of the first evidence, and the content of the script, the placement position of the first evidence in the plot scene is selected from the M first positions in the plot scene.

6. The method for generating game projection video according to claim 1, characterized in that, The N pieces of evidence include a first piece of evidence. Determining the placement of the N pieces of evidence in the plot scene based on the positions of fixed objects in the scene, the placement rules of the N pieces of evidence, and the content of the script includes: Get the M first positions in the story scene; Each first position is fitted to the position of the fixed object using a gamma function to determine the first probability of placing the first evidence at each first position; The gamma function is used to fit each first position to the position of the placed evidence to determine the second probability of the first evidence being placed in each first position. Based on the first distance, the second distance, and the placement rules of the first evidence, a third probability is determined for placing the first evidence in each of the first positions. The first distance is the distance between each of the first positions and the fixed object, and the second distance is the distance between each of the first positions and the placed evidence. Based on M first probabilities, M second probabilities, M third probabilities, and the content of the script, the placement position of the first piece of evidence in the plot scene is selected from M first positions in the plot scene.

7. The method for generating game projection video according to claim 5, characterized in that, The placement rules for the first piece of evidence are determined based on at least one of the volume of the first piece of evidence, the volume of the fixed object, and the volume of the already placed evidence.

8. A device for generating game projection video, characterized in that, The device includes: The first acquisition module is used to acquire the player's location information and key information of the script selected by the player. The key information includes N pieces of evidence and the first target building. The first construction module is used to construct the plot scene of the script based on the location information and the first target building; The first determining module is used to determine the placement position of the N pieces of evidence in the plot scene based on the position of the fixed object in the plot scene, the placement rules of the N pieces of evidence, and the content of the script. The first generation module is used to generate a game projection video based on the plot scene and the placement of the N pieces of evidence in the plot scene.

9. An electronic device, characterized in that, The method includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the game projection video generation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the game projection video generation method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Board game interaction method and system and storage medium

    CN115396715A

  • Game interaction method, device and system and electronic equipment

    CN116808598A