CN112791396B - Shooting picture generation method and device, electronic equipment and storage medium - Google Patents

Shooting picture generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112791396B
CN112791396B CN202011621715.0A CN202011621715A CN112791396B CN 112791396 B CN112791396 B CN 112791396B CN 202011621715 A CN202011621715 A CN 202011621715A CN 112791396 B CN112791396 B CN 112791396B
Authority
CN
China
Prior art keywords
picture
target
shooting
preliminary
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011621715.0A
Other languages
Chinese (zh)
Other versions
CN112791396A (en
Inventor
胡婷婷
赵男
包炎
刘超
施一东
李鑫培
师锐
董一夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202011621715.0A priority Critical patent/CN112791396B/en
Publication of CN112791396A publication Critical patent/CN112791396A/en
Application granted granted Critical
Publication of CN112791396B publication Critical patent/CN112791396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/85Providing additional services to players

Abstract

The embodiment of the invention discloses a method and a device for generating a shooting picture, electronic equipment and a storage medium. After receiving the shooting instruction, acquiring target picture data corresponding to the shooting instruction, and determining important pictures in the current game scene and target picture data, so that important pictures are provided for players, and the players can capture important information; rendering the target picture data to obtain a preliminary shooting picture, determining a target picture processing mode corresponding to the preliminary shooting picture, finding out the corresponding target picture processing mode for different pictures, flexibly processing the preliminary shooting picture, further processing the preliminary shooting picture based on the target picture processing mode to obtain the target shooting picture, and enabling the obtained shooting picture to be more unique in style, substituting in sense and achieving the effect of improving the visual experience of players.

Description

Shooting picture generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to a computer technology, in particular to a method and a device for generating a shooting picture, electronic equipment and a storage medium.
Background
Currently, game screen shots are often manually operated by a player to intercept game screens. When the player needs to intercept the game picture, the current game picture is intercepted by manually triggering corresponding operation. After the game picture is intercepted manually, the game picture is generated and displayed to the player. Because of the complex game scene, players have different attention to the game scene, for example, the attention to interactive pictures of Player characters and Non-Player characters (NPCs), and specific pictures such as fight pictures of a bos or release skills in fight are higher, and the user cannot grasp the attention information by directly showing the intercepted game pictures, so that the experience of the players is poor.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a shooting picture, electronic equipment and a storage medium, so as to realize the effect of improving player experience.
In a first aspect, an embodiment of the present invention provides a method for generating a shooting picture, including:
receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;
rendering the target picture data to obtain a preliminary shooting picture;
And determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.
In a second aspect, an embodiment of the present invention further provides a device for generating a shot picture, where the device includes:
the target picture data acquisition module is used for receiving a shooting instruction and acquiring target picture data corresponding to the shooting instruction;
the preliminary shooting picture determining module is used for rendering the target picture data to obtain a preliminary shooting picture;
and the target shooting picture generation module is used for determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for generating a shot screen according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, implement the method for generating a photographic screen according to any one of the first aspects.
According to the technical scheme, after the shooting instruction is received, target picture data corresponding to the shooting instruction are acquired, important pictures in the current game scene can be determined, the target picture data are determined, important pictures are provided for players, and the players can capture important information; rendering the target picture data to obtain a preliminary shooting picture, determining a target picture processing mode corresponding to the preliminary shooting picture, finding out the corresponding target picture processing mode for different pictures, flexibly processing the preliminary shooting picture, further processing the preliminary shooting picture based on the target picture processing mode to obtain the target shooting picture, and enabling the obtained shooting picture to be more unique in style, substituting in sense and achieving the effect of improving the visual experience of players.
Drawings
Fig. 1 is a flowchart of a method for generating a shooting picture according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for generating a shooting picture according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for generating a shooting picture according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for generating a shooting picture according to a fourth embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a device for generating a shooting picture according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flow chart of a method for generating a shot picture according to an embodiment of the present invention, where the method may be performed by a shot picture generating device, and the device may be implemented by software and/or hardware and is generally integrated in an electronic device. Referring specifically to fig. 1, the method may include the steps of:
s110, receiving a shooting instruction and acquiring target picture data corresponding to the shooting instruction.
The shooting instruction is used for shooting each object contained in the game scene to obtain target picture data. Objects in a game scene include, but are not limited to, player-played characters, game monsters, game NPCs, scene buildings, warriors, and skill-release effects. Player manipulation characters may include characters and animals. Scene buildings include mountains, sky, grass, various types of buildings, surrounding facilities, and the like. Skills may be active skills, defensive skills, blood return skills, etc. released by a player manipulating a character or game monster.
The game scene may be a game screen displayed on the client of the player. For example, the game scenario may include an interaction scenario among multiple players, a combat scenario for different players, a dialogue scenario for players with the NPC, a scenario where players enjoy scenery, a scenario where players harvest combat items, etc. The target frame data may include frame data for a plurality of players in a game scene to commonly monster, combat data between players, and/or scene change data, among others.
The target picture data may be understood as picture data of a game scene to be photographed, and may be picture data of all or part of objects of the game scene. For example, the game scene includes a frame in which players fight and a frame in which players fight, data of the frame in which players fight may be set as target frame data, and data of the frame in which players fight may be set as target frame data.
Optionally, the method for generating the shooting instruction includes: and determining a target reference object to be shot in the game scene according to the shooting instruction, and generating the shooting instruction based on the cool value of the target reference object.
The cool value of the target reference object is used for measuring whether the target reference object reaches the shooting condition. The target reference may be a target subject, a target scene, or a combination of the target subject and the target scene. Taking a game scene as an example, the target subject may be a character, a monster, weather, a tree, or a building in the game scene, and taking a target subject as an example, the target subject may be a game character having a human attribute created in the game. Taking a game scene as an example, the target scene may be a scene picture including elements such as characters, monsters, weather, trees, or buildings.
Taking a target reference object as a target main body as an example, the method for acquiring target picture data comprises the following steps: and carrying out weighted summation processing on the cool value parameter value corresponding to the preset cool value parameter of the target main body to obtain the cool value of the target main body, and generating a shooting instruction if the cool value of the main body reaches the preset cool value threshold of the main body. Taking a target reference object as a target scene as an example, the method for acquiring target picture data comprises the following steps: and carrying out weighted summation processing based on a cool value parameter value corresponding to a preset scene cool value parameter to obtain a scene cool value of the target scene, and generating a shooting instruction if the scene cool value reaches a preset scene cool value threshold.
The body cool value parameter may include a behavior cool value parameter, a state cool value parameter, and/or a skill cool value parameter. The behavioural cool value parameters comprise, but are not limited to, distance parameters between two hands, distance parameters between two feet, upper body trunk bending angle parameters, triangular area parameters formed by pelvic bones and two feet and the like; status cool parameters include, but are not limited to, a person low blood volume cool parameter, a person full blood volume cool parameter, etc.; skill cool parameters include, but are not limited to, skill score, time of release, and scope of attack, among others. The scene cool value parameters comprise a wind field cool value parameter and/or a scene object cool value parameter, the wind field cool value parameter comprises but not limited to wind, rain, snow and hail, the scene object cool value parameter comprises but not limited to a cool value parameter of a game role, a cool value parameter of a teammate role, a cool value parameter of an enemy role and/or a cool value parameter of an NPC.
And S120, rendering the target picture data to obtain a preliminary shooting picture.
Wherein rendering refers to a series of processing procedures by which a computer draws a scene picture of a game from target picture data. Rendering may include performing spatial illumination calculations, rasterization and clipping, texture sampling, depth detection, transparent blending, etc. on the target picture data. Rendering requires the use of resources such as animation, texture mapping, etc. Texture maps refer to map files used in current game scenes that can make the scene pictures of the game more realistic, including three-dimensional texture maps and two-dimensional texture maps.
Optionally, rendering the target picture data to obtain a preliminary shooting picture, including: acquiring art pictures of objects in target picture data, performance parameters of a terminal where a game is located and energy change data of all the objects; and rendering the target picture data according to the art picture data, the performance parameters and the energy change data to obtain a preliminary shooting picture.
Specifically, determining the complexity of the art picture of the object according to the art picture of the object and determining the grade of the terminal according to the performance parameters of the terminal; determining the rendering grade of each object according to the complexity of the art picture, the grade of the terminal and the energy change data; and rendering the target picture data based on the rendering parameters corresponding to the rendering grades to obtain a preliminary shooting picture.
Illustratively, the same game is played and the same target picture data is acquired on device a and device B, respectively, where the target picture data of device a is interactive picture data of a player and the target picture data of device B is picture data of a plurality of players' combat with the BOSS. And if the artistic picture complexity of the player in the target picture data of the equipment A is smaller than the artistic picture complexity of the battle of a plurality of players and the BOSS in the target picture data of the equipment B, the performance level of the equipment A is smaller than the performance level of the equipment B, the energy change data in the target picture data of the equipment A is smaller than the energy change data in the target picture data of the equipment B, and the rendering level of the target picture data of the equipment A is determined to be smaller than the rendering level of the target picture data of the equipment B, rendering the target picture data on the equipment A and the equipment B based on rendering parameters corresponding to the rendering levels respectively, so as to obtain a preliminary shooting picture. By the method, the rendering mode can be determined in a self-adaptive mode, so that the terminal normally displays the rendered preliminary shooting picture, and the situation of clamping is avoided.
S130, determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.
In order to perform post-processing on the preliminary shot, after the preliminary shot is determined, a target picture processing manner corresponding to the preliminary shot may be determined based on an operation mode of the current operation game.
The running mode of the current running game comprises, but is not limited to, a promotion mode, a training mode, an entertainment mode and the like, and the processing styles of the shot pictures in different running modes can be different. The processing style includes, but is not limited to, the processing style of the ontology of each object, the processing style of skill release of each object, and/or the text style of each object. The subject ontology refers to the subject itself, including but not limited to, people, animals, mountains, sky, grass, various types of buildings, and surrounding facilities, etc.
Specifically, determining an operation mode of the preliminary shooting picture in the current operation game, selecting a corresponding processing style according to the operation mode, determining the image of the object body, the effect of skill release and the character font of the object in the preliminary shooting picture according to the processing style, and obtaining a target picture processing mode corresponding to the preliminary shooting picture.
For example, the target screen processing manner corresponding to the preliminary photographed screen may include: superposing the target scene element in the preliminary shooting picture; or, the target scene element is reduced or deleted in the preliminary photographing screen, or the like. For example, in a preliminary shot of a battle type, the number of monsters battled with a player can be increased around his or her control character. Or, the target scene elements on the player control character body, such as mud on the player control character face, which affect the beauty of the player control character, are reduced or deleted in the preliminary shooting picture.
Further, the preliminary shooting picture is processed based on a target picture processing mode, and a target shooting picture is obtained.
According to the technical scheme provided by the embodiment, after the shooting instruction is received, target picture data corresponding to the shooting instruction is acquired, the target picture data can be determined, the target picture data rich in information is provided for a player, and the player can grasp interesting data; rendering the target picture data, adaptively rendering the target picture data to obtain a preliminary shooting picture, determining a target picture processing mode corresponding to the preliminary shooting picture, finding out the corresponding target picture processing mode for different pictures, flexibly processing the preliminary shooting picture, further processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture, and enabling the obtained shooting picture to be more unique in style, substituting in sense and achieving the effect of improving the visual experience of players.
Example two
Fig. 2 is a flowchart of a method for generating a shooting picture according to a second embodiment of the present invention. The technical solution of the present embodiment is refined on the basis of the foregoing embodiment, and optionally, determining a target picture processing mode corresponding to the preliminary shot picture includes: and determining a target picture processing mode corresponding to the preliminary shooting picture based on the scene type of the preliminary shooting picture. For parts which are not described in detail in this method embodiment, reference is made to the above-described embodiments. Referring specifically to fig. 2, the method may include the steps of:
s210, receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction.
Optionally, the method for generating the shooting instruction includes: determining the picture importance of the sub-picture at least one position according to a preset importance parameter corresponding to the sub-picture at least one position in the current game scene; and adjusting the shooting angle of the shooting device according to the importance of the sub-picture, and generating a shooting instruction. The preset importance parameters may include the number of players in the sprite, energy variation values, and/or character types of the players.
Wherein, the picture importance degree can be used for measuring the attention degree of a player to the scene picture. The higher the screen importance, the higher the attention of the player. For example, if the number of players in the sprite is large, the energy variation value is large, and/or the character type of the player is an active type, it may be determined that the picture importance of the sprite at the position is high; otherwise, the importance of the picture is lower. The number of players in the sub-picture can include the number of players of the attacker and the number of players of the attacked party, the energy change value can include the total energy consumption of the attacker and the attacked party, and the character type can be selected according to the character types of the attacker and the attacked party.
The current game scene comprises a sub-picture of a plurality of players playing a group battle and a sub-picture of a single player playing a strange, the number of players in the sub-picture of the plurality of players playing the group battle is larger than that of players in the sub-picture of the single player playing the group battle, the energy change value in the sub-picture of the plurality of players playing the group battle is larger than that in the sub-picture of the single player playing the strange, the character types in the sub-picture of the plurality of players playing the group battle are main attack types, the character types in the sub-picture of the single player playing the strange are auxiliary types, the picture importance of the sub-picture of the plurality of players playing the group battle is determined to be larger than that of the sub-picture of the single player playing the strange, the shooting angle of the shooting device is further adjusted according to the picture importance of the sub-picture, and a shooting instruction is generated.
Further, a photographing operation is performed based on the photographing instruction, and a target photographing screen corresponding to the photographing instruction is acquired.
And S220, rendering the target picture data to obtain a preliminary shooting picture.
S230, determining a target picture processing mode corresponding to the preliminary shooting picture based on the scene type of the preliminary shooting picture.
Specifically, a target scene element corresponding to a scene type in the preliminary shooting picture can be acquired; further, a target screen processing method corresponding to the preliminary shot screen is determined based on the target scene element.
Wherein the scene types include, but are not limited to, a water surface scene, an in-fire scene, and an iceberg scene. The target scene element may be understood as a scene element to be processed in the scene type. Illustratively, the target scene elements include, but are not limited to, characters, animals, scenes, surrounding facilities, and skills of output, etc. Characters include player characters, NPCs, etc., animals include BOSS and various monsters, scenes include mountains, water, buildings, living, glaciers, etc., surrounding facilities may include guideboards, tables, chairs, garbage cans, etc., and output skills include special skills, attack skills, defense skills, etc.
Specifically, determining, based on the target scene element, a target picture processing manner corresponding to the preliminary shot picture, including: and determining a target action object of a target scene element in the preliminary shooting picture, and determining a target picture processing mode corresponding to the preliminary shooting picture based on the target scene element and the target action object. The determining, based on the target scene element and the target action object, a target picture processing mode corresponding to the preliminary shooting picture includes: and taking the picture effect generated when the target scene element acts on the target acting object as a target picture processing mode corresponding to the preliminary shooting picture.
The target action object may be an object on which the target scene element may act, and may be a person, a monster, a building, a scene, or the like in the preliminary shot picture. It is to be understood that roles may be understood as being superimposed or that the target scene element may have an effect on it, etc. For example, the target scene element is a fire element, and the target action object of the fire element may be an object that can be burned by a fire, such as flowers, plants, trees, and the like. At this time, the target screen processing method may be a case where flowers, plants, and trees are burned.
Specifically, the screen effect when the target scene element acts on the target acting object can be generated according to the category of the target scene element, the acting range of the target scene element and/or the position of the target acting object.
For example, if the initial shot screen includes a screen in which a player fights, the target scene element is a skill to release blue ice, the target action object may be an object to be hit by an object outputting the skill, and the blue ice is generated to act on the object outputting the skill and the screen effect when the hit object is hit according to the type of the output skill, the action range of the output skill, and the position of the target action object, so that a blue ice layer is generated on the body of the hit object, and the screen effect is used as the target screen processing mode.
By generating the picture effect when the target scene element acts on the target acting object according to the category of the target scene element, the acting range of the target scene element and/or the position of the target acting object, the picture effect when the target scene element acts on the target acting object can be determined in a self-adaptive manner, and an accurate target picture processing mode is obtained.
For example, if it is determined that the initial photographed picture includes a plurality of target scene elements derived from different scene objects, an energy weighted average of the target scene elements may be calculated based on energy values of the target scene elements corresponding to each of the scene objects, and a picture effect when the target scene elements act on the target action objects may be generated from the energy weighted average of each of the target scene elements.
For example, if the initial shot picture is that a player fights in fire, the scene type is that of fire, the target scene element is that of a plurality of players releasing sparks, the target acting object is that of a monster that is fighting, the energy value of the sparks released by different players is different, the weighted average value of the target scene elements corresponding to each player is calculated according to the energy value of the sparks released by each player, the blackness of sparks acting on the monster is generated according to the weighted average value of the target scene elements, the blackness of sparks acting on the monster is generated as a picture effect, and the picture effect is used as a target picture processing mode.
S240, processing the preliminary shooting picture based on a target picture processing mode to obtain a target shooting picture.
According to the technical scheme provided by the embodiment, the target scene elements corresponding to the scene types in the preliminary shooting pictures are obtained, the target action objects of the target scene elements in the preliminary shooting pictures are determined, the picture effect when the generated target scene elements act on the target action objects is used as the target picture processing mode corresponding to the preliminary shooting pictures, the target picture processing mode of the preliminary shooting pictures can be flexibly determined, the processing effect on the preliminary shooting pictures is improved based on the target picture processing mode, the obtained target shooting pictures are displayed to players, the visual experience degree of the players is improved, and the auxiliary players are facilitated to control the roles.
Example III
Fig. 3 is a flowchart of a method for generating a shooting picture according to a third embodiment of the present invention. The technical solution of the present embodiment is refined on the basis of the foregoing embodiment, and optionally, determining, based on the target scene element, a target picture processing manner corresponding to the preliminary shot picture includes: and superposing the target scene element in the preliminary shooting picture. For parts which are not described in detail in this method embodiment, reference is made to the above-described embodiments. Referring specifically to fig. 3, the method may include the steps of:
S310, receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction.
And S320, rendering the target picture data to obtain a preliminary shooting picture.
S330, acquiring a target scene element corresponding to the scene type in the preliminary shooting picture.
S340, overlapping the target scene elements in the preliminary shooting picture as a target picture processing mode.
The target scene elements may include static scene elements and dynamic scene elements, among others.
Optionally, if the target scene element is a static scene element, determining a type, a distribution range and a distance between the target scene element and a lens of the photographing device, and superposing the target scene element in the preliminary photographing picture according to the type, the distribution range and the distance of the target scene element. The lens of the shooting device can be positioned at the center of the primary shooting picture or at other positions.
Specifically, according to the type of the target scene element, the target scene element is overlapped in the distribution range, the overlapped density of the target scene element is determined according to the distance between the target scene element and the lens of the shooting device, and the overlapped target scene element is used as a target picture processing mode according to the operation of overlapping the target scene element.
Optionally, if the target scene element is a dynamic scene element, determining a form, a distribution range and a distance between the target scene element and a lens of the photographing device in a preset time period, and superposing the target scene element in the preliminary photographing picture according to the form, the distribution range and the distance of the target scene element in the preset time period.
Illustratively, if the initial shot screen includes a screen of a peach garden, the screen of the peach garden is a still screen, the peach garden is located at the upper right of the initial shot screen, the lens is located at the center of the screen, the target scene element is a peach flower on a peach tree in the initial shot screen, the distribution range is the peach garden, the further the peach tree is from the lens, the smaller the peach flower density of the peach tree is, the closer the peach tree is to the center of the initial shot screen is, the closer the peach tree is to the lens is, the peach flower density of the peach tree is larger, and the peach flowers are superimposed on different peach trees according to the different peach flower densities to operate the superimposed peach flowers as a target screen processing mode.
For example, if the initial shot image includes an image of a river, the image of the river is a dynamic image, the river is located above the initial shot image, the lens is located at the center of the image, the target scene element is water in the river in the initial shot image, the distribution range is a river boundary, the form of the water flow in a preset period is wavy, and wavy water flows with different densities are superimposed at different positions of the river according to the distances between the water flows at different positions and the lens, so that the operation of superimposing the wavy water flows is taken as a target image processing mode.
S350, processing the preliminary shooting picture based on a target picture processing mode to obtain a target shooting picture.
Specifically, the target scene element may be superimposed in the preliminary photographing screen. For example, a target superimposition object in a preliminary shot screen may be determined based on a target scene element, the target scene element being superimposed to the target superimposition object. It may also be that a target superimposition area in the preliminary shot picture is determined based on a target scene element, and the target scene element is superimposed to the target superimposition area.
Note that, the amount of superposition or the distribution density of the target scene element may be set according to actual requirements, and is not particularly limited herein.
According to the technical scheme provided by the embodiment, after the target scene element corresponding to the scene type in the preliminary shooting picture is obtained, the target scene element is overlapped in the preliminary shooting picture, the operation of overlapping the target scene element is used as a target picture processing mode, and the preliminary shooting picture is processed based on the target picture processing mode, so that the target shooting picture is obtained. The pictures obtained by shooting can be enabled to have substitution feeling and unique style, and the visual experience of players can be improved.
Example IV
Fig. 4 is a flowchart of a method for generating a shooting picture according to a fourth embodiment of the present invention. The technical solution of the present embodiment is refined on the basis of the foregoing embodiment, and optionally, the determining a target picture processing manner corresponding to the preliminary shot picture includes: if two or more than two preliminary shooting pictures corresponding to the same target scene are obtained, determining a target picture processing mode corresponding to the preliminary shooting pictures based on at least two preliminary shooting pictures, wherein the target picture processing mode comprises image fusion and/or image splicing. For parts which are not described in detail in this method embodiment, reference is made to the above-described embodiments. Referring specifically to fig. 4, the method may include the steps of:
s410, receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction.
And S420, rendering the target picture data to obtain a preliminary shooting picture.
S430, if two or more preliminary shooting pictures corresponding to the same target scene are obtained, determining a target picture processing mode corresponding to the preliminary shooting pictures based on at least two preliminary shooting pictures.
It should be noted that two or more preliminary photographing pictures may include the same picture or may include different pictures. For example, the target picture data includes a picture of the player passing through the 2 nd checkpoint, the preliminary shot picture is two shot pictures of different definition including the same object, or one picture in the preliminary shot picture is a picture of the player releasing skills, and the other picture is a picture of the checkpoint.
The target picture processing mode comprises image fusion and/or image splicing.
Optionally, if the target image processing mode is image fusion, at least two preliminary shooting images may be fused according to coordinates of each pixel point in the at least two preliminary shooting images. Specifically, the at least two preliminary photographing pictures are fused based on image information of each pixel point in the at least two preliminary photographing pictures. The image information includes, but is not limited to, pixel values, texture information, luminance information, and the like.
Optionally, if the target image processing mode is image stitching, at least two preliminary shooting images may be fused according to image information of edge pixels of the at least two preliminary shooting images. The image information includes, but is not limited to, pixel values, texture information, luminance information, and the like.
S440, processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.
According to the technical scheme provided by the embodiment, if two or more than two preliminary shooting pictures corresponding to the same target scene are obtained, a target picture processing mode corresponding to the preliminary shooting pictures is determined based on at least two preliminary shooting pictures, and the preliminary shooting pictures are processed based on the target picture processing mode, so that the target shooting pictures with complete information and special styles can be obtained, the pictures obtained through shooting can be provided with substitution feeling, and the visual experience of players is improved.
Example five
Fig. 5 is a schematic structural diagram of a device for generating a shooting picture according to a fifth embodiment of the present invention. Referring to fig. 5, the apparatus includes: a target picture data acquisition module 510, a preliminary photographed picture determination module 520, and a target photographed picture generation module 530.
The target picture data obtaining module 510 is configured to receive a shooting instruction and obtain target picture data corresponding to the shooting instruction;
the preliminary shooting picture determining module 520 is configured to render the target picture data to obtain a preliminary shooting picture;
The target shot frame generation module 530 is configured to determine a target frame processing manner corresponding to the preliminary shot frame, and process the preliminary shot frame based on the target frame processing manner to obtain a target shot frame.
According to the technical scheme provided by the embodiment, after the shooting instruction is received, target picture data corresponding to the shooting instruction is acquired, an important picture in a current game scene can be determined, the target picture data is determined, an important picture is provided for a player, and the player grabs important information; rendering the target picture data to obtain a preliminary shooting picture, determining a target picture processing mode corresponding to the preliminary shooting picture, finding out the corresponding target picture processing mode for different pictures, flexibly processing the preliminary shooting picture, further processing the preliminary shooting picture based on the target picture processing mode to obtain the target shooting picture, and enabling the obtained shooting picture to be more unique in style, substituting in sense and achieving the effect of improving the visual experience of players.
Based on the above aspects, the target shot frame generation module 530 is further configured to determine a target frame processing manner corresponding to the preliminary shot frame based on the scene type of the preliminary shot frame.
On the basis of the above technical solutions, the target shooting picture generation module 530 is further configured to obtain a target scene element corresponding to the scene type in the preliminary shooting picture;
and determining a target picture processing mode corresponding to the preliminary shooting picture based on the target scene element.
On the basis of the above technical solutions, the target shot frame generation module 530 is further configured to determine a target action object of the target scene element in the preliminary shot frame, and determine a target frame processing manner corresponding to the preliminary shot frame based on the target scene element and the target action object.
On the basis of the above aspects, the target shot screen generating module 530 is further configured to use, as a target screen processing method corresponding to the preliminary shot screen, a screen effect when the target scene element is generated to act on the target acting object.
On the basis of the above technical solutions, the target shot frame generation module 530 is further configured to superimpose the target scene element on the preliminary shot frame.
On the basis of the above technical solutions, the target shot frame generation module 530 is further configured to determine, if two or more preliminary shot frames corresponding to the same target scene are obtained, a target frame processing manner corresponding to the preliminary shot frames based on at least two preliminary shot frames, where the target frame processing manner includes image fusion and/or image stitching.
Example six
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. Fig. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set of program modules (e.g., a target picture data acquisition module 510, a preliminary shot picture determination module 520, and a target shot picture generation module 530) of a shot picture generation device, which are configured to perform the functions of the various embodiments of the invention.
The program/utility 44 having a set of program modules 46 (e.g., target picture data acquisition module 510, preliminary shot picture determination module 520, and target shot picture generation module 530) of a shot picture generation device may be stored in, for example, the system memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 46 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, to implement a method for generating a photographed picture provided by an embodiment of the present invention, the method including:
receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;
rendering the target picture data to obtain a preliminary shooting picture;
and determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, to realize a method of generating a photographed picture provided by an embodiment of the present invention.
Of course, it will be understood by those skilled in the art that the processor may also implement the technical scheme of the method for generating a shooting picture provided by any embodiment of the present invention.
Example seven
The seventh embodiment of the present invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method for generating a photographed picture as provided in the embodiment of the present invention, the method comprising:
Receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;
rendering the target picture data to obtain a preliminary shooting picture;
and determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture.
Of course, the computer-readable storage medium provided by the embodiments of the present invention, on which the computer program stored, is not limited to the above-described method operations, but may also perform related operations in the method for generating a photographing picture provided by any of the embodiments of the present invention.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
The computer-readable signal medium may be included in the target picture data, the preliminary shot picture, the target shot picture, or the like, in which the computer-readable program code is carried. Such propagated forms of target picture data, preliminary shot picture, target shot picture, and the like. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the embodiment of the apparatus for generating a photographed image, each included module is only divided according to the functional logic, but not limited to the above division, so long as the corresponding function can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (7)

1. A method for generating a photographed image, comprising:
receiving a shooting instruction, and acquiring target picture data corresponding to the shooting instruction;
Performing self-adaptive rendering on the target picture data to obtain a preliminary shooting picture;
determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture;
the determining the target picture processing mode corresponding to the preliminary shooting picture comprises the following steps:
determining a target picture processing mode corresponding to the preliminary shooting picture based on the scene type of the preliminary shooting picture;
the determining a target picture processing mode corresponding to the preliminary shooting picture based on the scene type of the preliminary shooting picture comprises the following steps:
acquiring a target scene element corresponding to the scene type in the preliminary shooting picture;
determining a target picture processing mode corresponding to the preliminary shooting picture based on the target scene element, wherein the target picture processing mode comprises the following steps:
superposing the target scene element in the preliminary shooting picture; or alternatively, the process may be performed,
reducing or deleting the target scene element in the preliminary shooting picture;
wherein the target scene element comprises a static scene element and a dynamic scene element;
the generation method of the shooting instruction comprises the following steps: determining the picture importance of the sub-picture at least one position according to a preset importance parameter corresponding to the sub-picture at least one position in the current game scene; according to the importance of the sub-picture, the shooting angle of the shooting device is adjusted, a target reference object to be shot in the game scene is determined, and a shooting instruction is generated based on the cool value of the target reference object.
2. The method according to claim 1, wherein the determining, based on the target scene element, a target picture processing manner corresponding to the preliminary shot picture includes:
and determining a target action object of the target scene element in the preliminary shooting picture, and determining a target picture processing mode corresponding to the preliminary shooting picture based on the target scene element and the target action object.
3. The method according to claim 2, wherein the determining a target picture processing manner corresponding to the preliminary shot picture based on the target scene element and the target action object includes:
and taking the picture effect generated when the target scene element acts on the target acting object as a target picture processing mode corresponding to the preliminary shooting picture.
4. The method according to claim 1, wherein the determining a target picture processing manner corresponding to the preliminary shot picture includes:
if two or more than two preliminary shooting pictures corresponding to the same target scene are obtained, determining a target picture processing mode corresponding to the preliminary shooting pictures based on at least two preliminary shooting pictures, wherein the target picture processing mode comprises image fusion and/or image splicing.
5. A device for generating a photographed image, comprising:
the target picture data acquisition module is used for receiving a shooting instruction and acquiring target picture data corresponding to the shooting instruction;
the generation method of the shooting instruction comprises the following steps: determining the picture importance of the sub-picture at least one position according to a preset importance parameter corresponding to the sub-picture at least one position in the current game scene; according to the importance of the sub-picture, adjusting the shooting angle of the shooting device, determining a target reference object to be shot in a game scene, and generating a shooting instruction based on the cool value of the target reference object;
the preliminary shooting picture determining module is used for carrying out self-adaptive rendering on the target picture data to obtain a preliminary shooting picture;
the target shooting picture generation module is used for determining a target picture processing mode corresponding to the preliminary shooting picture, and processing the preliminary shooting picture based on the target picture processing mode to obtain a target shooting picture;
the target shooting picture generation module is further used for determining a target picture processing mode corresponding to the preliminary shooting picture based on the scene type of the preliminary shooting picture;
The target shooting picture generation module is further used for acquiring target scene elements corresponding to the scene types in the preliminary shooting picture;
determining a target picture processing mode corresponding to the preliminary shooting picture based on the target scene element;
the target shooting picture generation module is further used for superposing the target scene element in the preliminary shooting picture or reducing or deleting the target scene element in the preliminary shooting picture; wherein the target scene element comprises a static scene element and a dynamic scene element.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of generating a photographic picture as claimed in any one of claims 1-4 when executing the computer program.
7. A storage medium containing computer executable instructions which, when executed by a computer processor, implement the method of generating a photographic picture as claimed in any one of claims 1 to 4.
CN202011621715.0A 2020-12-31 2020-12-31 Shooting picture generation method and device, electronic equipment and storage medium Active CN112791396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011621715.0A CN112791396B (en) 2020-12-31 2020-12-31 Shooting picture generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011621715.0A CN112791396B (en) 2020-12-31 2020-12-31 Shooting picture generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112791396A CN112791396A (en) 2021-05-14
CN112791396B true CN112791396B (en) 2023-05-30

Family

ID=75804991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011621715.0A Active CN112791396B (en) 2020-12-31 2020-12-31 Shooting picture generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112791396B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022301A (en) * 2017-11-23 2018-05-11 腾讯科技(上海)有限公司 A kind of image processing method, device and storage medium
CN108619720A (en) * 2018-04-11 2018-10-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of animation
CN109327691A (en) * 2018-10-23 2019-02-12 Oppo广东移动通信有限公司 Image capturing method, device, storage medium and mobile terminal
CN109379542A (en) * 2018-10-23 2019-02-22 深圳豪客互联网有限公司 A kind of shooting picture joining method, device and computer readable storage medium
CN110880204A (en) * 2019-11-21 2020-03-13 腾讯科技(深圳)有限公司 Virtual vegetation display method and device, computer equipment and storage medium
CN111888759A (en) * 2020-07-27 2020-11-06 腾讯科技(深圳)有限公司 Game skill release method, data processing method and device
CN112044064A (en) * 2020-09-02 2020-12-08 完美世界(北京)软件科技发展有限公司 Game skill display method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022301A (en) * 2017-11-23 2018-05-11 腾讯科技(上海)有限公司 A kind of image processing method, device and storage medium
CN108619720A (en) * 2018-04-11 2018-10-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of animation
CN109327691A (en) * 2018-10-23 2019-02-12 Oppo广东移动通信有限公司 Image capturing method, device, storage medium and mobile terminal
CN109379542A (en) * 2018-10-23 2019-02-22 深圳豪客互联网有限公司 A kind of shooting picture joining method, device and computer readable storage medium
CN110880204A (en) * 2019-11-21 2020-03-13 腾讯科技(深圳)有限公司 Virtual vegetation display method and device, computer equipment and storage medium
CN111888759A (en) * 2020-07-27 2020-11-06 腾讯科技(深圳)有限公司 Game skill release method, data processing method and device
CN112044064A (en) * 2020-09-02 2020-12-08 完美世界(北京)软件科技发展有限公司 Game skill display method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112791396A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
US11620800B2 (en) Three dimensional reconstruction of objects based on geolocation and image data
CN111185004A (en) Game control display method, electronic device, and storage medium
JP2024514752A (en) Method and device for controlling summoned objects in a virtual scene, electronic equipment and computer program
WO2023056799A1 (en) Control method and apparatus for object in virtual scene, and electronic device, storage medium and program product
CN113398601B (en) Information transmission method, information transmission device, computer-readable medium, and apparatus
WO2022237275A1 (en) Information processing method and apparatus and terminal device
JP7309917B2 (en) Information display method, device, equipment and program
US11130059B2 (en) Game system and method of providing information related to match-up game
CN111729307A (en) Virtual scene display method, device, equipment and storage medium
CN113181649A (en) Control method, device, equipment and storage medium for calling object in virtual scene
CN112642150B (en) Game picture shooting method, device, equipment and storage medium
CN112843693B (en) Method and device for shooting image, electronic equipment and storage medium
JP2008027064A (en) Program, information recording medium, and image forming system
CN112791396B (en) Shooting picture generation method and device, electronic equipment and storage medium
CN112866562B (en) Picture processing method and device, electronic equipment and storage medium
CN112774199B (en) Target scene picture restoration method and device, electronic equipment and storage medium
CN112807698B (en) Shooting position determining method and device, electronic equipment and storage medium
CN112843687B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112822396B (en) Shooting parameter determining method, device, equipment and storage medium
CN112843715B (en) Shooting visual angle determining method, device, equipment and storage medium
US20240139627A1 (en) Game display method and apparatus, and electronic device, and storage medium
CN112843712A (en) Shooting method, shooting device, electronic equipment and storage medium
Achenbach et al. StreetConqAR: Augmented Reality Anchoring in Pervasive Games
CN112843686A (en) Shooting position determining method and device, electronic equipment and storage medium
CN115243110A (en) Barrage display method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant