WO2022267326A1 - Virtual picture rendering method and apparatus, storage medium, and electronic apparatus - Google Patents

Virtual picture rendering method and apparatus, storage medium, and electronic apparatus Download PDF

Info

Publication number
WO2022267326A1
WO2022267326A1 PCT/CN2021/132549 CN2021132549W WO2022267326A1 WO 2022267326 A1 WO2022267326 A1 WO 2022267326A1 CN 2021132549 W CN2021132549 W CN 2021132549W WO 2022267326 A1 WO2022267326 A1 WO 2022267326A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
picture
target
virtual object
state
Prior art date
Application number
PCT/CN2021/132549
Other languages
French (fr)
Chinese (zh)
Inventor
夏小凡
Original Assignee
完美世界(重庆)互动科技有限公司
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 完美世界(重庆)互动科技有限公司 filed Critical 完美世界(重庆)互动科技有限公司
Publication of WO2022267326A1 publication Critical patent/WO2022267326A1/en

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/55Controlling game characters or game objects based on the game progress
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Definitions

  • the present invention relates to the field of computers, in particular to a rendering method, device, storage medium, electronic device and computer program product of a virtual picture.
  • the way of rendering the picture is relatively simple, and generally the picture under a certain angle of view is intercepted from the virtual scene for direct rendering.
  • the content displayed in the virtual scene is relatively rich.
  • the virtual object may be releasing skills, using props, showing certain actions, simulating certain events, and so on.
  • the general rendering process cannot highlight the key points, and the rendering method is not flexible enough to reflect the changeable effects. For example: when rendering the battle screen in the game, it is only the action of rendering character skills on the same level, and the flexibility of screen scheduling is relatively low. Poor, making the rendering of the battle process not vivid enough.
  • the present invention provides a virtual picture rendering method, device, storage medium, electronic device and computer program product, to at least solve the technical problem of poor flexibility in rendering virtual pictures in the related art.
  • a method for rendering a virtual picture including: during the process of rendering the first virtual picture in the first picture state, acquiring picture state switching information, the picture state switching information is used Instructing to convert the first virtual picture in the first picture state into a second virtual picture in the second picture state, the second virtual picture is used to render the target event triggered on the target virtual object, the first
  • the virtual object rendered in a virtual screen includes the target virtual object; in response to the screen state switching information, the virtual object including other virtual objects in the first virtual screen except the target virtual object is rendered through the first virtual camera A third virtual picture; superimposing on the third virtual picture the virtual picture including the target virtual object rendered by the second virtual camera to obtain the second virtual picture in the second picture state; and in the second virtual picture
  • the target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera.
  • a virtual picture rendering device including: an acquisition module, configured to acquire picture state switching information during the process of rendering the first virtual picture in the first picture state, The screen state switching information is used to indicate that the first virtual screen in the first screen state is converted to a second virtual screen in the second screen state, and the second virtual screen is used for rendering triggers on the target virtual object A target event, the virtual object rendered in the first virtual screen includes the target virtual object; the first rendering module is configured to respond to the screen state switching information and render the virtual object included in the first virtual screen through the first virtual camera A third virtual picture of other virtual objects other than the target virtual object; a second rendering module, configured to superimpose on the third virtual picture a virtual picture including the target virtual object rendered by a second virtual camera , to obtain the second virtual picture in the second picture state; and a first rendering module, configured to render the second virtual picture triggered on the target virtual object through the second virtual camera on the second virtual picture target event.
  • a storage medium includes a stored program, and the above method is executed when the program runs.
  • an electronic device including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the above-mentioned method through the computer program.
  • a computer program product including a computer program, and when the computer program is executed by a processor, the foregoing method is implemented.
  • the picture state switching information is acquired, and the picture state switching information is used to indicate that the first virtual picture in the first picture state is converted to
  • the second virtual screen in the second screen state the second virtual screen is used to render and trigger the target event on the target virtual object, the virtual object rendered in the first virtual screen includes the target virtual object; in response to the screen state switching information, through the first
  • the virtual camera renders a third virtual picture that includes other virtual objects in the first virtual picture except the target virtual object; superimposes on the third virtual picture the virtual picture that includes the target virtual object rendered by the second virtual camera, and obtains the virtual picture in the first virtual picture.
  • the second virtual screen in the state of two screens; the method of rendering the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, if the virtual screen in a certain screen state is rendered, the screen state needs to be
  • a virtual camera is used to render the virtual screens of other virtual objects in the virtual screen except the target virtual object.
  • the target virtual object and the target event triggered on the target virtual object are rendered emphatically, thereby realizing the technical effect of improving the flexibility of rendering the virtual image, and further solving the technical problem of poor flexibility of rendering the virtual image.
  • FIG. 1 is a schematic diagram of a hardware environment of a method for rendering a virtual picture according to an embodiment of the present invention
  • Fig. 2 is a schematic flow diagram of a rendering method of a virtual picture according to an embodiment of the present invention
  • Fig. 3 is a schematic diagram of a rendering process of a virtual picture according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another virtual picture rendering process according to an embodiment of the present invention.
  • Fig. 5 is a schematic diagram of a rendering device for a virtual picture according to an embodiment of the present invention.
  • Fig. 6 is a schematic structural block diagram of an electronic device according to an embodiment of the present invention.
  • Fig. 7 is a schematic structural block diagram of a computer program product according to an embodiment of the present invention.
  • a method for rendering a virtual picture is provided.
  • the above method for rendering a virtual image may be applied in a hardware environment composed of a terminal 101 and a server 103 as shown in FIG. 1 .
  • the server 103 is connected to the terminal 101 through the network, and can be used to provide services (such as virtual services, application services, etc.) for the terminal or the client installed on the terminal, and the database can be set on the server or independently of the server
  • the above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like.
  • the method for rendering a virtual screen in the embodiment of the present invention may be executed by the server 103 , may also be executed by the terminal 101 , or may be executed jointly by the server 103 and the terminal 101 .
  • the rendering method of the virtual screen in the embodiment of the present invention executed by the terminal 101 may also be executed by a client installed on it.
  • Fig. 2 is a flowchart of a method for rendering a virtual image according to an embodiment of the present invention. As shown in Fig. 2 , the method may include the following steps: step S202, step S204, step S206 and step S208.
  • step S202 during the process of rendering the first virtual picture in the first picture state, the picture state switching information is obtained, and the picture state switching information is used to indicate that the first virtual picture in the first picture state is converted into A second virtual screen in a second screen state, the second virtual screen is used to render and trigger a target event on a target virtual object, and the virtual objects rendered in the first virtual screen include the target virtual object.
  • step S204 in response to the screen state switching information, a third virtual screen including other virtual objects in the first virtual screen except the target virtual object is rendered through the first virtual camera.
  • step S206 the virtual picture rendered by the second virtual camera including the target virtual object is superimposed on the third virtual picture to obtain the second virtual picture in the second picture state.
  • step S208 the target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera.
  • the rendering method of the above-mentioned virtual screen can be applied to, but not limited to, any type of virtual screen rendering scene, such as: game screen rendering, animation film and television screen rendering, virtual reality (VR) screen rendering, etc. Wait.
  • any type of virtual screen rendering scene such as: game screen rendering, animation film and television screen rendering, virtual reality (VR) screen rendering, etc. Wait.
  • the above-mentioned second screen state may, but is not limited to, include screen states that need to focus on rendering virtual objects and events, such as: combat state, action close-up state, and so on.
  • the aforementioned first screen state may include, but is not limited to, other screen states except the second screen state, and the other screen states are allowed to be transformed into the second screen state. For example: combat readiness status, plot description status, sports readiness status, etc.
  • the virtual objects in the virtual screen may include, but are not limited to: virtual characters (such as: player characters, NPC characters), virtual props (such as: weapons, vehicles, consumables), virtual buildings, virtual plants, Virtual landscapes, virtual obstacles and more.
  • the target event may include, but is not limited to: releasing a skill, showing an action, showing an animation, and the like.
  • releasing a skill For example: player characters or NPC characters release skills, vehicles drive, animation characters perform actions, and so on.
  • the screen state switching information is used to indicate to switch the first virtual screen to the second virtual screen in the second screen state.
  • the screen state switching information may be, but not limited to, triggered actively or passively.
  • the active triggering method can be but not limited to triggering by detecting user operations
  • the passive triggering method can be but not limited to triggering by detecting the running status.
  • acquiring the screen state switching information includes one of the following: step S11 and step S12.
  • step S11 it is determined that the screen state switching information has been acquired when a target operation performed on the first virtual screen is detected, and the target operation is used to trigger the target event.
  • step S12 when it is detected that the target virtual object on the first virtual screen has switched from being in the first object state to being in the second object state, it is determined that the screen state switching information has been acquired, allowing the target virtual object to be in the second object state.
  • the virtual object in the second object state triggers the target event.
  • the target operation is used to trigger a target event, and the target operation may be, but not limited to, an operation performed on the target virtual object, or an operation performed on a control corresponding to the target virtual object.
  • the player controls the process of the game character releasing the skill. The player can click or drag the game character to trigger the skill, or click the skill button to trigger the skill.
  • the above-mentioned first object state may be, but not limited to, any object state that can be transformed into a second object state, and the second object state is a state that is allowed to trigger a target event.
  • the target virtual object may be an NPC in the game, or a game prop controlled automatically by the system. can be identified as the target virtual object.
  • the screen state switching information may be, but not limited to, triggered by a target operation performed by a user, or may be triggered by a transition of an object state of a virtual object in a virtual screen.
  • a target operation performed by a user
  • the screen state switching information may be, but not limited to, triggered by a target operation performed by a user, or may be triggered by a transition of an object state of a virtual object in a virtual screen.
  • the method when the target operation performed on the first virtual screen is detected, before determining that the screen state switching information is acquired, the method further includes: Step S21 and Step S22.
  • step S21 when it is detected that the first virtual object among the virtual objects belonging to the first camp included in the first virtual screen is switched from the waiting state to the operating state, the virtual button corresponding to the first virtual object is detected In the trigger operation performed on , the virtual object belonging to the first camp is a virtual object that is allowed to be controlled by the target account.
  • step S22 when it is detected that the trigger operation is performed on the target button among the virtual buttons corresponding to the first virtual object, the target virtual object and the target are determined according to the button attribute of the target button event, the target operation includes the operation of determining the target virtual object and the target event according to the button attribute of the target button.
  • the virtual object belonging to the first camp is a virtual object allowed to be controlled by the target account
  • the target account may be but not limited to the game account of the game player
  • the virtual object belonging to the first camp may include but not limited to: the player's Characters, player props, player vehicles, and other game objects that players can control through their accounts.
  • the target account can also be, but not limited to, a video playback account
  • the virtual objects belonging to the first camp can include but not limited to: characters in the video, props, etc., objects in the video that video viewers can control through the account.
  • virtual buttons corresponding to the first virtual object may be displayed on the virtual screen, and these virtual buttons may be but not limited to Used to trigger the operation that allows the first virtual object to be triggered.
  • the target virtual object and the target event that need to be rendered by the second virtual camera are determined according to the button attribute of the target button.
  • the virtual object being in the waiting state means that the target account is not allowed to control the virtual object, and the target account is allowed to control the virtual object only when the virtual object is in the operating state.
  • the button attribute of the target button may include, but is not limited to, an operation object of the target button, an operation range of the target button, and the like. For example: it can be determined according to the operation object of the target button whether the target virtual object includes which or which virtual objects besides the first virtual object, and the virtual objects falling within its operation range can also be determined according to the operation range of the target button as The target dummy.
  • determining the target virtual object and the target event according to the button attribute of the target button includes: step S31, step S32 and step S33.
  • step S31 it is determined whether there is a virtual object corresponding to the target button.
  • step S32 if there is a virtual object corresponding to the target button, the selection operation performed on the virtual object corresponding to the target button is detected, and the virtual object corresponding to the target button includes: the first A virtual object of a camp, and/or a virtual object belonging to a second camp, the virtual object belonging to the second camp is a virtual object that is not allowed to be controlled by the target account; when the virtual object corresponding to the target button is detected
  • the selection operation is performed on the second virtual object in , determine the first virtual object and the second virtual object as the target virtual object, and pair the first virtual object with the The execution of the first operation corresponding to the target button by the second virtual object is determined as the target event.
  • step S33 if there is no virtual object corresponding to the target button, the first virtual object is determined as the target virtual object, and the first virtual object executes the first virtual object corresponding to the target button. An operation is identified as the target event.
  • the button attributes of the target button may include, but are not limited to, whether there is a virtual object corresponding to the target button, and if so, which virtual objects the target button corresponds to, and the like.
  • the target account may perform a selection operation on the virtual object corresponding to the target button to select the second virtual object, and the first virtual object and the second virtual object are both It is determined as the target virtual object, and the first operation corresponding to the target button performed by the first virtual object on the second virtual object is determined as the target event.
  • the virtual object corresponding to the target button may include, but is not limited to: a virtual object belonging to the first camp, and/or a virtual object belonging to the second camp, and the virtual object belonging to the first camp is the target account Controlled virtual objects, virtual objects belonging to the second camp are virtual objects that are not allowed to be controlled by the target account. That is to say, the operation corresponding to the target button can be released on the virtual objects belonging to the first camp, or can be released on the virtual objects belonging to the second camp, or can be released on both the virtual objects belonging to the first camp and the virtual objects belonging to the second camp. Dummy objects that fall into the second camp are freed.
  • the skills corresponding to the target button can be released to the characters of the own camp (such as gain skills), or can be released to the characters of the hostile camp (such as NPC, the character of the enemy player, etc. ) (such as damage and debilitating skills), or it can be released simultaneously on the characters of one’s own camp and the characters of the enemy camp (such as: indiscriminate damage skills, indiscriminate buff skills, etc.).
  • the first virtual object is directly determined as the target virtual object, and the execution of the first operation corresponding to the target button by the first virtual object is determined as the target event.
  • FIG. 3 is a schematic diagram of a rendering process of a virtual screen according to an embodiment of the present invention.
  • the battle screen includes There are virtual objects belonging to the first camp: player characters Player1 and Player2, virtual objects belonging to the second camp: the character NPC1 controlled by the system, and the scene elements sun and mountain.
  • the target event is determined as the target event. It can be determined that the picture state switching information has been obtained, and then the third virtual picture (indicated by a dotted line in FIG. 3 ) including Player1, scene elements sun and mountain peaks is rendered through the first virtual camera.
  • the third virtual picture render the virtual picture comprising Player2 and NPC1 (indicated by a solid line in FIG. 3 ) by the second virtual camera rendering, obtain the second virtual picture in the second picture state, render the second virtual picture, and pass The second virtual camera renders on Player2 and NPC1 to trigger a target event that Player2 releases skill 2 on NPC1.
  • step S41 when it is detected that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state, before it is determined that the screen state switching information is acquired, It also includes: step S41 and step S42.
  • step S41 when it is detected that the third virtual object among the virtual objects included in the first virtual screen is switched from the waiting state to the automatic fighting state, the second operation triggered by the automatic fighting state is obtained.
  • step S42 the target virtual object and the target event are determined according to the operation attribute of the second operation, the first object state includes the waiting state, and the second object state includes the automatic combat state.
  • the virtual objects allowed to be in the automatic combat state may be, but not limited to, virtual objects belonging to the first camp, and/or, virtual objects belonging to the second camp, that is to say, virtual objects that are allowed to be controlled by players and Virtual objects that are not allowed to be controlled by players can be played in automatic combat mode.
  • the automatic combat mode if it is detected that a third virtual object is switched from the waiting state to the automatic combat state, the second operation triggered by the automatic combat state is obtained, that is, the skill released by the automatic combat state is obtained, and the controlled props, etc., and then determine the target virtual object and the target event according to the operation attribute of the second operation.
  • the virtual object being in the waiting state means that the virtual object is not allowed to perform operations, and the virtual object is allowed to perform automatic fighting operations only when the virtual object is in the automatic fighting state.
  • the operation attribute of the second operation may include, but is not limited to, an operation object of the second operation, an operation scope of the second operation, and the like. For example: according to the operation object of the second operation, it can be determined whether the target virtual object includes which or which virtual objects besides the third virtual object, and the virtual objects falling within its operation range can also be selected according to the operation range of the second operation identified as the target virtual object.
  • determining the target virtual object and the target event according to the operation attribute of the second operation includes: step S51 , step S52 and step S53 .
  • step S51 it is determined whether there is a virtual object corresponding to the second operation.
  • step S52 if there is a virtual object corresponding to the second operation, a fourth virtual object is obtained from the virtual object corresponding to the second operation; the third virtual object and the fourth virtual The object is determined as the target virtual object, and the execution of the second operation on the fourth virtual object by the third virtual object is determined as the target event.
  • step S53 if there is no virtual object corresponding to the second operation, the third virtual object is determined as the target virtual object, and the third virtual object is determined to perform the second operation for the target event.
  • the operational attributes of the second operation may include, but are not limited to, whether there is a virtual object corresponding to the second operation, and if so, which virtual objects the second operation corresponds to, and so on.
  • the fourth virtual object can be acquired from the virtual object corresponding to the second operation (the acquisition method can be randomly acquired or acquired according to some preset rules) , determining the third virtual object and the fourth virtual object as the target virtual object, and determining the execution of the second operation on the fourth virtual object by the third virtual object as the target event.
  • the virtual object corresponding to the second operation may include, but is not limited to: a virtual object belonging to the first camp, and/or a virtual object belonging to the second camp, and the virtual object belonging to the first camp is an allowed target
  • the virtual objects belonging to the second camp are virtual objects that are not allowed to be controlled by the target account. That is to say, the second operation can be released on the virtual objects belonging to the first camp, or can be released on the virtual objects belonging to the second camp, or can be released on the virtual objects belonging to the first camp and the virtual objects belonging to the second camp at the same time.
  • the React dummy object is freed.
  • the skill corresponding to the second operation can be released on the characters of the own camp (such as gain skills), or it can be released on the characters of the hostile camp (such as NPC, the character of the enemy player, etc. etc.) (such as damage-type, debilitating-type skills), or it can be released on the characters of one's own camp and the characters of the enemy camp at the same time (such as: indiscriminate damage-type skills, indiscriminate gain-type skills, etc.) .
  • the third virtual object is directly determined as the target virtual object, and execution of the second operation by the third virtual object is determined as the target event.
  • FIG. 4 is a schematic diagram of another virtual screen rendering process according to an embodiment of the present invention.
  • the included virtual objects include virtual objects belonging to the first camp: player characters Player1 and Player2, virtual objects belonging to the second camp: character NPC1 controlled by the system, scene elements sun and mountain.
  • NPC1 switches from the waiting state to the automatic combat state
  • the second operation triggered by acquiring the automatic combat state is to launch an attack, and judge whether there is a virtual object corresponding to the launched attack.
  • the fourth virtual object as Player1 from the virtual object corresponding to the launched attack, determine NPC1 and Player1 as target virtual objects, and perform a second operation on Player1 by NPC1
  • the corresponding attack is identified as the target event. It can be determined that the picture state switching information has been obtained, and then the third virtual picture (indicated by a dotted line in FIG. 4 ) including Player2, scene elements sun and mountain peaks is rendered through the first virtual camera. On the third virtual picture, render the virtual picture comprising Player1 and NPC1 (indicated by a solid line in FIG.
  • the process of rendering the first virtual picture in the first picture state further includes: Step S61.
  • step S61 the first virtual picture in the first picture state is rendered by the second virtual camera.
  • the method After rendering the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, the method further includes: Step S62.
  • step S62 when it is detected that the second virtual picture is transformed into a virtual picture in the third picture state, the virtual picture in the third picture state is rendered by the second virtual camera.
  • the first virtual picture in the first picture state is rendered by the second virtual camera.
  • the target event triggered on the target virtual object is rendered by the second virtual camera on the second virtual screen, if it is detected that the second virtual screen is converted to a virtual screen in the third screen state, render by the second virtual camera The virtual screen in the third screen state.
  • the virtual picture in the second picture state can be rendered by the above-mentioned multi-camera rendering method, and the virtual pictures in other picture states except the second picture state are all rendered by the above-mentioned second camera.
  • the above rendering process of the virtual screen further includes: Step S71 and Step S72.
  • step S71 if it is detected that the first virtual picture is transformed into a virtual picture in the fourth picture state, the shooting mode of the second virtual camera is changed from the orthogonal mode to the perspective mode.
  • step S72 rendering the virtual picture in the fourth picture state through the second virtual camera in the perspective mode.
  • the virtual picture in the fourth picture state may include, but is not limited to, a virtual picture that requires stereo rendering of picture content, such as a picture that needs to show an overall scene.
  • the virtual camera in the perspective mode can render a 3D picture effect, thereby showing a more three-dimensional overall scene.
  • the camera mode adopted by the second virtual camera during rendering of the first virtual frame in the first frame state may be an orthogonal mode.
  • the virtual camera in the orthogonal mode can render a 2D picture effect.
  • the camera mode of the second virtual camera is converted from an orthogonal mode to a perspective mode, so that The picture displayed is even more shocking.
  • the camera mode adopted when the first virtual camera renders the third virtual picture may be an orthogonal mode. That is, the third virtual picture may be a 2D picture.
  • other virtual objects in the first virtual image except the target virtual object are rendered in the third virtual image, and the rendering process may be, but not limited to, executed on the first virtual camera.
  • Other virtual objects are all virtual objects except the target virtual object in the first virtual screen, for example: there are character 1, character 2, prop 1, prop 2 and prop 3 in a virtual scene, and the target virtual objects are character 1 and prop 2, other virtual objects can be character 2, prop 1, prop 3 and the virtual scene.
  • rendering the third virtual frame including other virtual objects in the first virtual frame except the target virtual object through the first virtual camera includes: Step S81 and Step S82.
  • step S81 the virtual scene in the first virtual picture and other virtual characters in the first virtual picture except the target virtual character are acquired through the first virtual camera, and the target virtual The object includes the target virtual character, and the other virtual objects include the virtual scene and the other virtual characters.
  • step S82 the other virtual characters in the virtual scene are rendered to obtain the third virtual picture.
  • the target virtual object may include, but is not limited to, the target virtual character, and other virtual objects include the virtual scene where the target virtual object is located and other virtual characters in the virtual scene.
  • the virtual scene in the first virtual picture and other virtual characters are acquired through the first virtual camera, it can also be said that the virtual scene in the first virtual picture is acquired from the perspective of the first virtual camera, and other virtual character. Then render other virtual characters in the virtual scene, so as to obtain the third virtual picture.
  • rendering the other virtual characters in the virtual scene to obtain the third virtual picture includes: step S91, step S92 and step S93.
  • step S91 the virtual scene is rendered to obtain a scene picture.
  • step S92 the other virtual character is rendered on the scene picture to obtain a fourth virtual picture.
  • step S93 perform blurring processing on the fourth virtual picture to obtain the third virtual picture.
  • blurring in the process of rendering the third virtual picture, blurring can be performed on the rendered fourth virtual picture showing other virtual characters on the scene picture to obtain the third virtual picture as the display background of the target event, Thus, the display of the target event is more vivid and prominent.
  • the manner of blurring the fourth virtual picture may be, but not limited to, adding a blur effect on the fourth virtual picture, such as Gaussian blur with 7 layers vertically and 7 layers horizontally.
  • the camera mode adopted by the second virtual camera when rendering the second virtual picture may be an orthogonal mode. That is, the second virtual picture may be a 2D picture.
  • the target virtual object is rendered on the third virtual screen, and the rendering process may be, but not limited to, executed on the second virtual camera. That is, the target virtual object is rendered under the perspective of the second virtual camera.
  • rendering the virtual picture including the target virtual object through the second virtual camera on the third virtual picture, and obtaining the second virtual picture in the second picture state includes: Step S101, Step S102 and step S103.
  • step S101 a fifth virtual frame including the target virtual object is rendered by the second virtual camera.
  • step S102 the fifth virtual picture is superimposed on the third virtual picture to obtain a sixth virtual picture.
  • step S103 a target virtual element is added to the sixth virtual screen to obtain the second virtual screen in the second screen state, and the target virtual element is used to indicate screen information of the second virtual screen.
  • the fifth virtual picture including the target virtual object is rendered from the perspective of the second virtual camera, and superimposed on the third virtual picture, and then added to the obtained sixth virtual picture for Indicating the target virtual element of the screen information of the second virtual screen, the second virtual screen in the second screen state can be obtained.
  • the target virtual element is used to indicate the screen information of the second virtual screen, and the target virtual element may include, but is not limited to, screen elements such as an operation bar, an avatar of a character, and a function button.
  • step S208 the target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera, and the target event triggered on the target virtual object is highlighted and rendered on the screen through the second virtual camera, Make the rendering process of the target event more vivid.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make an electronic device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present invention.
  • FIG. 5 is a schematic diagram of a virtual screen rendering device according to an embodiment of the present invention. As shown in Fig. 5, the device may include: an acquisition module 52, a first rendering module 54, a second rendering module 56 and a first rendering module 58.
  • the acquiring module 52 is configured to acquire picture state switching information during the process of rendering the first virtual picture in the first picture state, and the picture state switching information is used to indicate the first virtual picture that will be in the first picture state Converting to a second virtual screen in a second screen state, the second virtual screen is used to render and trigger a target event on a target virtual object, and the virtual objects rendered in the first virtual screen include the target virtual object.
  • the first rendering module 54 is configured to render a third virtual image including other virtual objects in the first virtual image except the target virtual object through the first virtual camera in response to the image state switching information.
  • the second rendering module 56 is configured to superimpose the virtual picture including the target virtual object rendered by the second virtual camera on the third virtual picture to obtain the second virtual picture in the second picture state.
  • the first rendering module 58 is configured to render the target event triggered on the target virtual object on the second virtual screen through the second virtual camera.
  • the acquiring module 52 in this embodiment can be used to execute step S202 in the embodiment of the present invention
  • the first rendering module 54 in this embodiment can be used to execute step S204 in the embodiment of the present invention
  • the The second rendering module 56 in this embodiment can be used to execute step S206 in this embodiment of the present invention
  • the first rendering module 58 in this embodiment can be used to execute step S208 in this embodiment of the present invention.
  • the above-mentioned modules can run in the hardware environment shown in FIG. 1 , and can be implemented by software or by hardware.
  • the obtaining module includes one of the following: a first determining unit, configured to determine that the screen state switching information has been obtained when a target operation performed on the first virtual screen is detected, The target operation is used to trigger the target event; the second determination unit is used to detect that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state Next, it is determined that the screen state switching information is acquired, and the virtual object in the second object state is allowed to trigger the target event.
  • the device further includes: a detection module, configured to determine that the screen state switching information is acquired before the detection of the target operation performed on the first virtual screen.
  • a detection module configured to determine that the screen state switching information is acquired before the detection of the target operation performed on the first virtual screen.
  • the first determining module includes: a first judging unit, configured to judge whether there is a virtual object corresponding to the target button; a first processing unit, configured to determine whether there is a virtual object corresponding to the target button In the case of , the selection operation performed on the virtual object corresponding to the target button is detected, and the virtual object corresponding to the target button includes: the virtual object belonging to the first camp, and/or, the virtual object belonging to the second camp A virtual object, the virtual object belonging to the second camp is a virtual object that is not allowed to be controlled by the target account; it is detected that the selection operation is performed on the second virtual object among the virtual objects corresponding to the target button In this case, the first virtual object and the second virtual object are determined as the target virtual object, and the first virtual object performs the first operation corresponding to the target button on the second virtual object determined as the target event; a second processing unit, configured to determine the first virtual object as the target virtual object when there is no virtual object corresponding to the target button, and set the first The first operation corresponding
  • the device further includes: a second determining module, configured to detect that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state In this case, before it is determined that the screen state switching information is acquired, if it is detected that the third virtual object among the virtual objects included in the first virtual screen is switched from being in a waiting state to being in an automatic fighting state, the automatic fighting state is acquired.
  • the second operation triggered by the combat state
  • a third determination module configured to determine the target virtual object and the target event according to the operation attribute of the second operation, the first object state includes the waiting state, and the The second object state includes the automatic combat state.
  • the third determining module includes: a second judging unit, configured to judge whether there is a virtual object corresponding to the second operation; a third processing unit, configured to determine whether there is a virtual object corresponding to the second operation In the case of a virtual object, a fourth virtual object is obtained from the virtual object corresponding to the second operation; the third virtual object and the fourth virtual object are determined as the target virtual object, and the The execution of the second operation on the fourth virtual object by the third virtual object is determined as the target event; the fourth processing unit is configured to, if there is no virtual object corresponding to the second operation, convert the A third virtual object is determined as the target virtual object, and execution of the second operation by the third virtual object is determined as the target event.
  • the first rendering module includes: an acquisition unit, configured to acquire the virtual scene in the first virtual picture through the first virtual camera, and the virtual character included in the first virtual picture Other virtual characters except the target virtual character, the target virtual object includes the target virtual character, and the other virtual objects include the virtual scene and the other virtual characters; a first rendering unit, configured to render the virtual character in the target virtual character the other virtual characters in the virtual scene to obtain the third virtual picture.
  • the first rendering unit is configured to: render the virtual scene to obtain a scene picture; render the other virtual characters on the scene picture to obtain a fourth virtual picture; The picture is blurred to obtain the third virtual picture.
  • the second rendering module includes: a second rendering unit, configured to render a fifth virtual frame including the target virtual object through the second virtual camera; The fifth virtual picture is superimposed on the third virtual picture to obtain a sixth virtual picture; an adding unit is configured to add a target virtual element on the sixth virtual picture to obtain the second virtual picture in the state of the second picture , the target virtual element is used to indicate the screen information of the second virtual screen.
  • the device further includes: a second rendering module, configured to render the first virtual image in the first image state through the second virtual camera during the process of displaying the first virtual image in the first image state A virtual screen; a third rendering module, configured to render the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, after detecting the second virtual When the picture is converted into a virtual picture in the third picture state, the virtual picture in the third picture state is rendered by the second virtual camera.
  • a second rendering module configured to render the first virtual image in the first image state through the second virtual camera during the process of displaying the first virtual image in the first image state A virtual screen
  • a third rendering module configured to render the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, after detecting the second virtual
  • the device further includes: a switching module, configured to change the shooting mode of the second virtual camera to Converting from the orthogonal mode to the perspective mode; a fourth rendering module, configured to render the virtual picture in the fourth picture state in the perspective mode through the second virtual camera.
  • the above modules can run in the hardware environment shown in FIG. 1 , and can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
  • the various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device for rendering a virtual picture according to an embodiment of the present invention.
  • DSP digital signal processor
  • the present invention can also be implemented as programs/instructions (eg, computer programs/instructions and computer program products) of devices or means for performing part or all of the methods described herein.
  • Such programs/instructions for implementing the present invention may be stored on a computer-readable medium, or may exist in the form of one or more signals, such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any form Available in other formats.
  • Computer-readable media including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information.
  • Information may be computer readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM Electrically Er
  • FIG. 6 schematically shows an electronic device that can implement the method for rendering a virtual picture according to the present invention
  • the electronic device includes a processor 610 and a computer-readable medium in the form of a memory 620 .
  • Memory 620 is one example of a computer readable medium having storage space 630 for storing computer programs/instructions 631 .
  • the computer program/instruction 631 is executed by the processor 610, various steps in the method for rendering a virtual picture described above can be realized.
  • Fig. 7 schematically shows a block diagram of a computer program product implementing the method according to the invention.
  • the computer program product includes a computer program/instruction 710.
  • a processor such as the processor 610 shown in FIG. each step in the .

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to a virtual picture rendering method and apparatus, a storage medium, an electronic apparatus, and a computer program product. The method comprises: in the process of rendering a first virtual picture in a first picture state, obtaining picture state switching information; in response to the picture state switching information, rendering, by means of a first virtual camera, a third virtual picture comprising virtual objects in the first virtual picture other than a target virtual object; superposing, on the third virtual picture, a virtual picture which is rendered by a second virtual camera and comprises the target virtual object, to obtain a second virtual picture in a second picture state; and rendering, on the second virtual picture and by means of the second virtual camera, a target event triggered on the target virtual object. The present invention solves the technical problem of poor flexibility in rendering virtual pictures.

Description

一种虚拟画面的渲染方法、装置、存储介质和电子装置A rendering method, device, storage medium and electronic device of a virtual image
交叉引用cross reference
本申请要求2021年6月25日递交的、申请号为“202110711719.6”、发明名称为“一种虚拟画面的渲染方法、装置、存储介质和电子装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted on June 25, 2021 with the application number "202110711719.6" and the title of the invention "a virtual screen rendering method, device, storage medium and electronic device", the entire content of which Incorporated in this application by reference.
技术领域technical field
本发明涉及计算机领域,尤其涉及一种虚拟画面的渲染方法、装置、存储介质、电子装置和计算机程序产品。The present invention relates to the field of computers, in particular to a rendering method, device, storage medium, electronic device and computer program product of a virtual picture.
背景技术Background technique
目前的技术中,对虚拟画面进行渲染时,画面渲染的方式都比较单一,一般都是从虚拟场景中截取一定视角下的画面直接进行渲染。In the current technology, when rendering a virtual picture, the way of rendering the picture is relatively simple, and generally the picture under a certain angle of view is intercepted from the virtual scene for direct rendering.
但是,在虚拟场景中展示的内容是较为丰富的,虚拟对象可能在释放技能,可能会使用道具,也可能在展示某些动作,模拟某些事件等等。一般的渲染过程无法突出重点,渲染方式不够灵活,无法体现出多变的效果,比如:在游戏中渲染战斗画面时,只是单纯在同一层面上的渲染角色技能的动作,画面调度的灵活性较差,使得战斗过程的渲染不够生动形象。However, the content displayed in the virtual scene is relatively rich. The virtual object may be releasing skills, using props, showing certain actions, simulating certain events, and so on. The general rendering process cannot highlight the key points, and the rendering method is not flexible enough to reflect the changeable effects. For example: when rendering the battle screen in the game, it is only the action of rendering character skills on the same level, and the flexibility of screen scheduling is relatively low. Poor, making the rendering of the battle process not vivid enough.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容Contents of the invention
本发明提供了一种虚拟画面的渲染方法、装置、存储介质、电子装置和计算机程序产品,以至少解决相关技术中渲染虚拟画面的灵活性较差的技术问题。The present invention provides a virtual picture rendering method, device, storage medium, electronic device and computer program product, to at least solve the technical problem of poor flexibility in rendering virtual pictures in the related art.
根据本发明实施例的一个方面,提供了一种虚拟画面的渲染方法,包括:在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,所述画面状态切换信息用于指示将处于第一画面状态的所述第一虚拟画面转换为处于第二画面状态的第二虚拟画面,所述第二虚拟画面用于渲染在目标虚拟对象上触发的目标事件,所述第一虚拟画面中渲染的虚拟对象包括所述目标虚拟对象;响应所述画面状态切换信息,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面;在所述第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面;以及在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件。According to an aspect of an embodiment of the present invention, a method for rendering a virtual picture is provided, including: during the process of rendering the first virtual picture in the first picture state, acquiring picture state switching information, the picture state switching information is used Instructing to convert the first virtual picture in the first picture state into a second virtual picture in the second picture state, the second virtual picture is used to render the target event triggered on the target virtual object, the first The virtual object rendered in a virtual screen includes the target virtual object; in response to the screen state switching information, the virtual object including other virtual objects in the first virtual screen except the target virtual object is rendered through the first virtual camera A third virtual picture; superimposing on the third virtual picture the virtual picture including the target virtual object rendered by the second virtual camera to obtain the second virtual picture in the second picture state; and in the second virtual picture The target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera.
根据本发明实施例的另一个方面,还提供了一种虚拟画面的渲染装置,包括:获取模块,用于在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,所述画面状态切换信息用于指示将处于第一画面状态的所述第一虚拟画面转换为处于第二画面状态的第二虚拟画面,所述第二虚拟画面用于渲染在目标虚拟对象上触发 目标事件,所述第一虚拟画面中渲染的虚拟对象包括所述目标虚拟对象;第一渲染模块,用于响应所述画面状态切换信息,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面;第二渲染模块,用于在所述第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面;以及第一渲染模块,用于在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件。According to another aspect of the embodiments of the present invention, there is also provided a virtual picture rendering device, including: an acquisition module, configured to acquire picture state switching information during the process of rendering the first virtual picture in the first picture state, The screen state switching information is used to indicate that the first virtual screen in the first screen state is converted to a second virtual screen in the second screen state, and the second virtual screen is used for rendering triggers on the target virtual object A target event, the virtual object rendered in the first virtual screen includes the target virtual object; the first rendering module is configured to respond to the screen state switching information and render the virtual object included in the first virtual screen through the first virtual camera A third virtual picture of other virtual objects other than the target virtual object; a second rendering module, configured to superimpose on the third virtual picture a virtual picture including the target virtual object rendered by a second virtual camera , to obtain the second virtual picture in the second picture state; and a first rendering module, configured to render the second virtual picture triggered on the target virtual object through the second virtual camera on the second virtual picture target event.
根据本发明实施例的又一个方面,还提供了一种存储介质,该存储介质包括存储的程序,程序运行时执行上述的方法。According to still another aspect of the embodiments of the present invention, there is also provided a storage medium, the storage medium includes a stored program, and the above method is executed when the program runs.
根据本发明实施例的再一个方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器通过计算机程序执行上述的方法。According to yet another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the above-mentioned method through the computer program.
根据本发明实施例的再一个方面,还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述的方法。According to yet another aspect of the embodiments of the present invention, there is also provided a computer program product, including a computer program, and when the computer program is executed by a processor, the foregoing method is implemented.
在本发明实施例中,采用在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,画面状态切换信息用于指示将处于第一画面状态的第一虚拟画面转换为处于第二画面状态的第二虚拟画面,第二虚拟画面用于渲染在目标虚拟对象上触发目标事件,第一虚拟画面中渲染的虚拟对象包括目标虚拟对象;响应画面状态切换信息,通过第一虚拟摄像机渲染包括第一虚拟画面中除目标虚拟对象之外的其他虚拟对象的第三虚拟画面;在第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括目标虚拟对象的虚拟画面,得到处于第二画面状态的第二虚拟画面;在第二虚拟画面上通过第二虚拟摄像机渲染在目标虚拟对象上触发的目标事件的方式,如果在渲染处于某画面状态的虚拟画面时,需要将该画面状态的虚拟画面转换为另一画面状态的虚拟画面,则通过一个虚拟摄像机渲染虚拟画面中除目标虚拟对象之外的其他虚拟对象的虚拟画面。再在渲染其他虚拟对象的虚拟画面上叠加通过另一个虚拟摄像机渲染的包括目标虚拟对象的虚拟画面,在该虚拟画面上通过上述渲染目标虚拟对象的虚拟摄像机渲染在目标虚拟对象上触发的目标事件。进而重点渲染出目标虚拟对象以及目标虚拟对象上触发的目标事件,从而实现了提高渲染虚拟画面的灵活性的技术效果,进而解决了渲染虚拟画面的灵活性较差的技术问题。In the embodiment of the present invention, during the process of rendering the first virtual picture in the first picture state, the picture state switching information is acquired, and the picture state switching information is used to indicate that the first virtual picture in the first picture state is converted to The second virtual screen in the second screen state, the second virtual screen is used to render and trigger the target event on the target virtual object, the virtual object rendered in the first virtual screen includes the target virtual object; in response to the screen state switching information, through the first The virtual camera renders a third virtual picture that includes other virtual objects in the first virtual picture except the target virtual object; superimposes on the third virtual picture the virtual picture that includes the target virtual object rendered by the second virtual camera, and obtains the virtual picture in the first virtual picture. The second virtual screen in the state of two screens; the method of rendering the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, if the virtual screen in a certain screen state is rendered, the screen state needs to be If the virtual screen of the virtual screen is converted into a virtual screen in another screen state, a virtual camera is used to render the virtual screens of other virtual objects in the virtual screen except the target virtual object. Then superimpose the virtual picture including the target virtual object rendered by another virtual camera on the virtual picture rendering other virtual objects, and render the target event triggered on the target virtual object through the above-mentioned virtual camera rendering the target virtual object on the virtual picture . Furthermore, the target virtual object and the target event triggered on the target virtual object are rendered emphatically, thereby realizing the technical effect of improving the flexibility of rendering the virtual image, and further solving the technical problem of poor flexibility of rendering the virtual image.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1是根据本发明实施例的虚拟画面的渲染方法的硬件环境的示意图;FIG. 1 is a schematic diagram of a hardware environment of a method for rendering a virtual picture according to an embodiment of the present invention;
图2是根据本发明实施例的一种虚拟画面的渲染方法的流程示意 图;Fig. 2 is a schematic flow diagram of a rendering method of a virtual picture according to an embodiment of the present invention;
图3是根据本发明实施例的一种虚拟画面的渲染过程的示意图;Fig. 3 is a schematic diagram of a rendering process of a virtual picture according to an embodiment of the present invention;
图4是根据本发明实施例的另一种虚拟画面的渲染过程的示意图;4 is a schematic diagram of another virtual picture rendering process according to an embodiment of the present invention;
图5是根据本发明实施例的一种虚拟画面的渲染装置的示意图;Fig. 5 is a schematic diagram of a rendering device for a virtual picture according to an embodiment of the present invention;
图6是根据本发明实施例的一种电子装置的示意性结构框图;Fig. 6 is a schematic structural block diagram of an electronic device according to an embodiment of the present invention;
图7是根据本发明实施例的一种计算机程序产品的示意性结构框图。Fig. 7 is a schematic structural block diagram of a computer program product according to an embodiment of the present invention.
具体实施例specific embodiment
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
根据本发明实施例的一个方面,提供了一种虚拟画面的渲染的方法。According to an aspect of an embodiment of the present invention, a method for rendering a virtual picture is provided.
在一些实施例中,上述虚拟画面的渲染方法可以应用于如图1所示的由终端101和服务器103所构成的硬件环境中。如图1所示,服务器103通过网络与终端101进行连接,可用于为终端或终端上安装的客户端提供服务(如虚拟服务、应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器103提供数据存储服务,上述网络包括但不限于:广域网、城域网或局域网,终端101并不限定于PC、手机、平板电脑等。本发明实施例的虚拟画面的渲染方法可以由服务器103来执行,也可以由终端101来执行,还可以是由服务器103和终端101共同执行。其中,终端101执行本发明实施例的虚拟画面的渲染方法也可以是由安装在其上的客户端来执行。In some embodiments, the above method for rendering a virtual image may be applied in a hardware environment composed of a terminal 101 and a server 103 as shown in FIG. 1 . As shown in Figure 1, the server 103 is connected to the terminal 101 through the network, and can be used to provide services (such as virtual services, application services, etc.) for the terminal or the client installed on the terminal, and the database can be set on the server or independently of the server For providing data storage services for the server 103, the above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like. The method for rendering a virtual screen in the embodiment of the present invention may be executed by the server 103 , may also be executed by the terminal 101 , or may be executed jointly by the server 103 and the terminal 101 . Wherein, the rendering method of the virtual screen in the embodiment of the present invention executed by the terminal 101 may also be executed by a client installed on it.
图2是根据本发明实施例的一种虚拟画面的渲染方法的流程图,如图2所示,该方法可以包括以下步骤:步骤S202、步骤S204、步骤S206和步骤S208。Fig. 2 is a flowchart of a method for rendering a virtual image according to an embodiment of the present invention. As shown in Fig. 2 , the method may include the following steps: step S202, step S204, step S206 and step S208.
在步骤S202,在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,所述画面状态切换信息用于指示将处于第一画面状态的所述第一虚拟画面转换为处于第二画面状态的第二虚拟画面,所述第二虚拟画面用于渲染在目标虚拟对象上触发目标事件,所述第一虚拟画面中渲染的虚拟对象包括所述目标虚拟对象。In step S202, during the process of rendering the first virtual picture in the first picture state, the picture state switching information is obtained, and the picture state switching information is used to indicate that the first virtual picture in the first picture state is converted into A second virtual screen in a second screen state, the second virtual screen is used to render and trigger a target event on a target virtual object, and the virtual objects rendered in the first virtual screen include the target virtual object.
在步骤S204,响应所述画面状态切换信息,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面。In step S204, in response to the screen state switching information, a third virtual screen including other virtual objects in the first virtual screen except the target virtual object is rendered through the first virtual camera.
在步骤S206,在所述第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面。In step S206, the virtual picture rendered by the second virtual camera including the target virtual object is superimposed on the third virtual picture to obtain the second virtual picture in the second picture state.
在步骤S208,在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件。In step S208, the target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera.
通过上述步骤S202至步骤S208,如果在渲染处于某画面状态的虚拟画面时,需要将该画面状态的虚拟画面转换为另一画面状态的虚拟画面,则通过一个虚拟摄像机渲染虚拟画面中除目标虚拟对象之外的其他虚拟对象的虚拟画面。再在渲染其他虚拟对象的虚拟画面上叠加通过另一个虚拟摄像机渲染包括目标虚拟对象的虚拟画面,在该虚拟画面上通过上述渲染目标虚拟对象的虚拟摄像机渲染在目标虚拟对象上触发的目标事件。进而重点渲染出目标虚拟对象以及目标虚拟对象上触发的目标事件,从而实现了提高渲染虚拟画面的灵活性的技术效果,进而解决了渲染虚拟画面的灵活性较差的技术问题。Through the above steps S202 to S208, if when rendering a virtual picture in a certain picture state, it is necessary to convert the virtual picture in this picture state to a virtual picture in another picture state, then use a virtual camera to render the virtual picture except the target virtual picture. Virtual screens of virtual objects other than objects. Then superimpose on the virtual screen for rendering other virtual objects the virtual screen including the target virtual object rendered by another virtual camera, and the target event triggered on the target virtual object is rendered on the virtual screen by the above-mentioned virtual camera for rendering the target virtual object. Furthermore, the target virtual object and the target event triggered on the target virtual object are rendered emphatically, thereby realizing the technical effect of improving the flexibility of rendering the virtual image, and further solving the technical problem of poor flexibility of rendering the virtual image.
在一些实施例中,上述虚拟画面的渲染方法可以但不限于应用于对任何类型的虚拟画面进行渲染的场景中,比如:游戏画面渲染,动漫影视画面渲染,虚拟现实(VR)画面的渲染等等。In some embodiments, the rendering method of the above-mentioned virtual screen can be applied to, but not limited to, any type of virtual screen rendering scene, such as: game screen rendering, animation film and television screen rendering, virtual reality (VR) screen rendering, etc. Wait.
在步骤S202提供的技术方案中,上述第二画面状态可以但不限于包括需要着重渲染虚拟对象和事件的画面状态,比如:战斗状态,动作特写状态等等。上述第一画面状态可以但不限于包括除第二画面状态外其他画面状态,该其他画面状态是允许转换为第二画面状态的。比如:战斗准备状态,剧情描述状态,运动准备状态等等。In the technical solution provided in step S202, the above-mentioned second screen state may, but is not limited to, include screen states that need to focus on rendering virtual objects and events, such as: combat state, action close-up state, and so on. The aforementioned first screen state may include, but is not limited to, other screen states except the second screen state, and the other screen states are allowed to be transformed into the second screen state. For example: combat readiness status, plot description status, sports readiness status, etc.
在一些实施例中,虚拟画面中的虚拟对象可以但不限于包括:虚拟角色(比如:玩家角色,NPC角色),虚拟道具(比如:武器,载具,消耗品),虚拟建筑,虚拟植物,虚拟景观,虚拟障碍物等等。In some embodiments, the virtual objects in the virtual screen may include, but are not limited to: virtual characters (such as: player characters, NPC characters), virtual props (such as: weapons, vehicles, consumables), virtual buildings, virtual plants, Virtual landscapes, virtual obstacles and more.
在一些实施例中,目标事件可以但不限于包括:释放技能,展示动作,展示动画等。比如:玩家角色或者NPC角色释放技能,车辆行驶,动漫角色执行动作等等。In some embodiments, the target event may include, but is not limited to: releasing a skill, showing an action, showing an animation, and the like. For example: player characters or NPC characters release skills, vehicles drive, animation characters perform actions, and so on.
在一些实施例中,画面状态切换信息用于指示将第一虚拟画面转换为处于第二画面状态的第二虚拟画面。该画面状态切换信息可以但不限于是主动触发的,也可以是被动触发的。比如:主动触发的方式可以但不限于为通过检测用户操作来触发,被动触发的方式可以但不限于为通过检测运行状态来触发。In some embodiments, the screen state switching information is used to indicate to switch the first virtual screen to the second virtual screen in the second screen state. The screen state switching information may be, but not limited to, triggered actively or passively. For example, the active triggering method can be but not limited to triggering by detecting user operations, and the passive triggering method can be but not limited to triggering by detecting the running status.
在一些实施例中,获取所述画面状态切换信息包括以下之一:步骤S11和步骤S12。In some embodiments, acquiring the screen state switching information includes one of the following: step S11 and step S12.
在步骤S11,在检测到所述第一虚拟画面上执行的目标操作的情况下,确定获取到所述画面状态切换信息,所述目标操作用于触发所述目标事件。In step S11, it is determined that the screen state switching information has been acquired when a target operation performed on the first virtual screen is detected, and the target operation is used to trigger the target event.
在步骤S12,在检测到所述第一虚拟画面上的所述目标虚拟对象从处于第一对象状态转换为处于第二对象状态的情况下,确定获取到所述画面状态切换信息,允许处于所述第二对象状态的虚拟对象触发所 述目标事件。In step S12, when it is detected that the target virtual object on the first virtual screen has switched from being in the first object state to being in the second object state, it is determined that the screen state switching information has been acquired, allowing the target virtual object to be in the second object state. The virtual object in the second object state triggers the target event.
在一些实施例中,目标操作用于触发目标事件,目标操作可以但不限于是对目标虚拟对象执行的操作,或者也可以是对目标虚拟对象对应的控件执行的操作。比如:玩家控制游戏角色释放技能的过程,玩家可以通过点击或者拖拽游戏角色来触发技能,也可以通过点击技能按钮来触发技能。In some embodiments, the target operation is used to trigger a target event, and the target operation may be, but not limited to, an operation performed on the target virtual object, or an operation performed on a control corresponding to the target virtual object. For example: the player controls the process of the game character releasing the skill. The player can click or drag the game character to trigger the skill, or click the skill button to trigger the skill.
在一些实施例中,上述第一对象状态可以但不限于为能够转换成第二对象状态的任意对象状态,第二对象状态为被允许触发目标事件的状态。比如:目标虚拟对象可能是游戏中的NPC,或者由系统自动控制的游戏道具,在战斗场景中,当检测到NPC由战斗准备状态转换为战斗状态的情况下,该NPC和其释放技能的对象可以被确定为目标虚拟对象。In some embodiments, the above-mentioned first object state may be, but not limited to, any object state that can be transformed into a second object state, and the second object state is a state that is allowed to trigger a target event. For example: the target virtual object may be an NPC in the game, or a game prop controlled automatically by the system. can be identified as the target virtual object.
在一些实施例中,画面状态切换信息可以但不限于是通过用户执行的目标操作触发的,也可以是通过虚拟画面中虚拟对象的对象状态的转换触发的。比如:在战斗准备状态下玩家点击虚拟角色的技能按钮或者点击虚拟道具触发了虚拟角色的技能释放或者虚拟道具的功能时,相当于获取到画面状态切换信息,该画面状态切换信息属于用户通过操作触发的。再比如:在战斗准备状态下按照释放技能的顺序轮到NPC角色释放技能时,相当于获取到画面状态切换信息,该画面状态切换信息属于通过虚拟画面中渲染的内容触发的。In some embodiments, the screen state switching information may be, but not limited to, triggered by a target operation performed by a user, or may be triggered by a transition of an object state of a virtual object in a virtual screen. For example: when the player clicks the skill button of the virtual character or clicks on the virtual prop to trigger the release of the skill of the virtual character or the function of the virtual prop in the state of combat preparation, it is equivalent to obtaining the screen state switching information, which belongs to the user through the operation. triggered. Another example: when it is the NPC character's turn to release the skills in the order of releasing the skills in the battle preparation state, it is equivalent to obtaining the screen state switching information, which is triggered by the content rendered in the virtual screen.
在一些实施例中,在检测到所述第一虚拟画面上执行的目标操作的情况下,确定获取到所述画面状态切换信息之前,还包括:步骤S21和步骤S22。In some embodiments, when the target operation performed on the first virtual screen is detected, before determining that the screen state switching information is acquired, the method further includes: Step S21 and Step S22.
在步骤S21,在检测到所述第一虚拟画面包括的属于第一阵营的虚拟对象中的第一虚拟对象从等待状态转换到操作状态的情况下,检测所述第一虚拟对象对应的虚拟按钮上执行的触发操作,所述属于第一阵营的虚拟对象是允许目标帐号控制的虚拟对象。In step S21, when it is detected that the first virtual object among the virtual objects belonging to the first camp included in the first virtual screen is switched from the waiting state to the operating state, the virtual button corresponding to the first virtual object is detected In the trigger operation performed on , the virtual object belonging to the first camp is a virtual object that is allowed to be controlled by the target account.
在步骤S22,在检测到所述第一虚拟对象对应的虚拟按钮中的目标按钮上执行了所述触发操作的情况下,根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件,所述目标操作包括所述根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件的操作。In step S22, when it is detected that the trigger operation is performed on the target button among the virtual buttons corresponding to the first virtual object, the target virtual object and the target are determined according to the button attribute of the target button event, the target operation includes the operation of determining the target virtual object and the target event according to the button attribute of the target button.
在一些实施例中,属于第一阵营的虚拟对象是允许目标帐号控制的虚拟对象,目标帐号可以但不限于是游戏玩家的游戏帐号,属于第一阵营的虚拟对象可以但不限于包括:玩家的角色,玩家的道具,玩家的载具等等玩家可以通过帐号控制的游戏对象。目标帐号也可以但不限于是视频播放帐号,属于第一阵营的虚拟对象可以但不限于包括:视频中的角色,道具等等视频观看者可以通过帐号控制的视频中的对象。In some embodiments, the virtual object belonging to the first camp is a virtual object allowed to be controlled by the target account, the target account may be but not limited to the game account of the game player, and the virtual object belonging to the first camp may include but not limited to: the player's Characters, player props, player vehicles, and other game objects that players can control through their accounts. The target account can also be, but not limited to, a video playback account, and the virtual objects belonging to the first camp can include but not limited to: characters in the video, props, etc., objects in the video that video viewers can control through the account.
在一些实施例中,当属于第一阵营的虚拟对象中的第一虚拟对象从等待状态转换到操作状态时,虚拟画面上可以显示第一虚拟对象对应的虚拟按钮,这些虚拟按钮可以但不限于用于触发允许第一虚拟对象触发的操作。当检测到这些虚拟按钮中的目标按钮上执行了触发操作时,根据目标按钮的按钮属性确定需要使用第二虚拟摄像机进行渲 染的目标虚拟对象和目标事件。In some embodiments, when the first virtual object among the virtual objects belonging to the first camp transitions from the waiting state to the operating state, virtual buttons corresponding to the first virtual object may be displayed on the virtual screen, and these virtual buttons may be but not limited to Used to trigger the operation that allows the first virtual object to be triggered. When it is detected that a trigger operation is performed on the target button among the virtual buttons, the target virtual object and the target event that need to be rendered by the second virtual camera are determined according to the button attribute of the target button.
在一些实施例中,虚拟对象处于等待状态表示不允许目标帐号对虚拟对象进行控制,当虚拟对象处于操作状态时才允许目标帐号对虚拟对象进行控制。In some embodiments, the virtual object being in the waiting state means that the target account is not allowed to control the virtual object, and the target account is allowed to control the virtual object only when the virtual object is in the operating state.
在一些实施例中,目标按钮的按钮属性可以但不限于包括目标按钮的操作对象和目标按钮的操作范围等等。比如:可以根据目标按钮的操作对象来确定目标虚拟对象除第一虚拟对象外是否还包括哪些或者哪个虚拟对象,也可以根据目标按钮的操作范围来将落入其操作范围内的虚拟对象确定为目标虚拟对象。In some embodiments, the button attribute of the target button may include, but is not limited to, an operation object of the target button, an operation range of the target button, and the like. For example: it can be determined according to the operation object of the target button whether the target virtual object includes which or which virtual objects besides the first virtual object, and the virtual objects falling within its operation range can also be determined according to the operation range of the target button as The target dummy.
在一些实施例中,根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件包括:步骤S31、步骤S32和步骤S33。In some embodiments, determining the target virtual object and the target event according to the button attribute of the target button includes: step S31, step S32 and step S33.
在步骤S31,判断是否存在所述目标按钮对应的虚拟对象。In step S31, it is determined whether there is a virtual object corresponding to the target button.
在步骤S32,在存在所述目标按钮对应的虚拟对象的情况下,检测所述目标按钮所对应的虚拟对象上执行的选择操作,所述目标按钮所对应的虚拟对象包括:所述属于第一阵营的虚拟对象,和/或,属于第二阵营的虚拟对象,所述属于第二阵营的虚拟对象是不允许所述目标帐号控制的虚拟对象;在检测到所述目标按钮所对应的虚拟对象中的第二虚拟对象上执行了所述选择操作的情况下,将所述第一虚拟对象和所述第二虚拟对象确定为所述目标虚拟对象,并将所述第一虚拟对象对所述第二虚拟对象执行所述目标按钮对应的第一操作确定为所述目标事件。In step S32, if there is a virtual object corresponding to the target button, the selection operation performed on the virtual object corresponding to the target button is detected, and the virtual object corresponding to the target button includes: the first A virtual object of a camp, and/or a virtual object belonging to a second camp, the virtual object belonging to the second camp is a virtual object that is not allowed to be controlled by the target account; when the virtual object corresponding to the target button is detected When the selection operation is performed on the second virtual object in , determine the first virtual object and the second virtual object as the target virtual object, and pair the first virtual object with the The execution of the first operation corresponding to the target button by the second virtual object is determined as the target event.
在步骤S33,在不存在所述目标按钮对应的虚拟对象的情况下,将所述第一虚拟对象确定为所述目标虚拟对象,并将所述第一虚拟对象执行所述目标按钮对应的第一操作确定为所述目标事件。In step S33, if there is no virtual object corresponding to the target button, the first virtual object is determined as the target virtual object, and the first virtual object executes the first virtual object corresponding to the target button. An operation is identified as the target event.
在一些实施例中,目标按钮的按钮属性可以但不限于包括是否存在目标按钮对应的虚拟对象以及如果存在的话目标按钮对应了哪些虚拟对象等等。In some embodiments, the button attributes of the target button may include, but are not limited to, whether there is a virtual object corresponding to the target button, and if so, which virtual objects the target button corresponds to, and the like.
在一些实施例中,如果存在目标按钮对应的虚拟对象,则可以由目标帐号对目标按钮所对应的虚拟对象执行选择操作来选出第二虚拟对象,将第一虚拟对象和第二虚拟对象均确定为目标虚拟对象,并将第一虚拟对象对第二虚拟对象执行目标按钮对应的第一操作确定为目标事件。In some embodiments, if there is a virtual object corresponding to the target button, the target account may perform a selection operation on the virtual object corresponding to the target button to select the second virtual object, and the first virtual object and the second virtual object are both It is determined as the target virtual object, and the first operation corresponding to the target button performed by the first virtual object on the second virtual object is determined as the target event.
在一些实施例中,目标按钮所对应的虚拟对象可以但不限于包括:属于第一阵营的虚拟对象,和/或,属于第二阵营的虚拟对象,属于第一阵营的虚拟对象是允许目标帐号控制的虚拟对象,属于第二阵营的虚拟对象是不允许目标帐号控制的虚拟对象。也就是说,目标按钮所对应的操作可以是对属于第一阵营的虚拟对象释放的,或者可以是对属于第二阵营的虚拟对象释放的,也可以是同时对属于第一阵营的虚拟对象和属于第二阵营的虚拟对象释放的。比如:在游戏的战斗画面中,目标按钮所对应的技能可以是对己方阵营的角色释放的(例如增益类技能),或者可以是对敌对阵营的角色(例如NPC,敌方玩家的角色等等)释放的(例如伤害类,衰弱类的技能),也可以是对己方阵营的角色和敌对阵营的角色同时释放的(比如:无差别的伤害类技能,无差别的增益类技能等等)。In some embodiments, the virtual object corresponding to the target button may include, but is not limited to: a virtual object belonging to the first camp, and/or a virtual object belonging to the second camp, and the virtual object belonging to the first camp is the target account Controlled virtual objects, virtual objects belonging to the second camp are virtual objects that are not allowed to be controlled by the target account. That is to say, the operation corresponding to the target button can be released on the virtual objects belonging to the first camp, or can be released on the virtual objects belonging to the second camp, or can be released on both the virtual objects belonging to the first camp and the virtual objects belonging to the second camp. Dummy objects that fall into the second camp are freed. For example: in the battle screen of the game, the skills corresponding to the target button can be released to the characters of the own camp (such as gain skills), or can be released to the characters of the hostile camp (such as NPC, the character of the enemy player, etc. ) (such as damage and debilitating skills), or it can be released simultaneously on the characters of one’s own camp and the characters of the enemy camp (such as: indiscriminate damage skills, indiscriminate buff skills, etc.).
在一些实施例中,如果不存在目标按钮对应的虚拟对象,则直接将第一虚拟对象确定为目标虚拟对象,并将第一虚拟对象执行目标按钮对应的第一操作确定为目标事件。In some embodiments, if there is no virtual object corresponding to the target button, the first virtual object is directly determined as the target virtual object, and the execution of the first operation corresponding to the target button by the first virtual object is determined as the target event.
在一些实施例中,提供了一种游戏战斗中控制玩家角色释放技能的过程,图3是根据本发明实施例的一种虚拟画面的渲染过程的示意图,如图3所示,战斗画面中包括的虚拟对象有属于第一阵营的虚拟对象:玩家角色Player1和Player2,属于第二阵营的虚拟对象:系统控制的角色NPC1,场景元素太阳和山峰。当玩家角色中的Player2从等待状态转换到操作状态时,检测第一虚拟对象对应的虚拟按钮(技能1的按钮和技能2的按钮)上执行的触发操作,如果检测到技能2的按钮上执行了触发操作,则判断是否存在目标按钮对应的虚拟对象,比如存在目标按钮对应的虚拟对象,则检测目标按钮所对应的虚拟对象上执行的选择操作。如果检测到目标按钮所对应的虚拟对象中的NPC1上执行了选择操作,则将Player2和NPC1确定为目标虚拟对象,并将Player2对NPC1执行技能2的按钮对应的第一操作(即释放技能2)确定为目标事件。可以确定获取到画面状态切换信息,则通过第一虚拟摄像机渲染包括Player1、场景元素太阳和山峰的第三虚拟画面(在图3中用点划线表示)。在第三虚拟画面上通过第二虚拟摄像机渲染包括Player2和NPC1的虚拟画面(在图3中用实线表示),得到处于第二画面状态的第二虚拟画面,渲染第二虚拟画面,并通过第二虚拟摄像机渲染在Player2和NPC1上触发Player2对NPC1释放技能2的目标事件。In some embodiments, a process of controlling player characters to release skills in a game battle is provided. FIG. 3 is a schematic diagram of a rendering process of a virtual screen according to an embodiment of the present invention. As shown in FIG. 3 , the battle screen includes There are virtual objects belonging to the first camp: player characters Player1 and Player2, virtual objects belonging to the second camp: the character NPC1 controlled by the system, and the scene elements sun and mountain. When Player2 in the player character transitions from the waiting state to the operating state, detect the trigger operation performed on the virtual button (the button of skill 1 and the button of skill 2) corresponding to the first virtual object, if it is detected that the button of skill 2 is executed If there is a trigger operation, it is judged whether there is a virtual object corresponding to the target button, for example, if there is a virtual object corresponding to the target button, then the selection operation performed on the virtual object corresponding to the target button is detected. If it is detected that a selection operation is performed on NPC1 in the virtual object corresponding to the target button, Player2 and NPC1 are determined as the target virtual object, and Player2 performs the first operation corresponding to the button of skill 2 on NPC1 (i.e. release skill 2 ) is determined as the target event. It can be determined that the picture state switching information has been obtained, and then the third virtual picture (indicated by a dotted line in FIG. 3 ) including Player1, scene elements sun and mountain peaks is rendered through the first virtual camera. On the third virtual picture, render the virtual picture comprising Player2 and NPC1 (indicated by a solid line in FIG. 3 ) by the second virtual camera rendering, obtain the second virtual picture in the second picture state, render the second virtual picture, and pass The second virtual camera renders on Player2 and NPC1 to trigger a target event that Player2 releases skill 2 on NPC1.
在一些实施例中,在检测到所述第一虚拟画面上的所述目标虚拟对象从处于第一对象状态转换为处于第二对象状态的情况下,确定获取到所述画面状态切换信息之前,还包括:步骤S41和步骤S42。In some embodiments, when it is detected that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state, before it is determined that the screen state switching information is acquired, It also includes: step S41 and step S42.
在步骤S41,在检测到所述第一虚拟画面包括的虚拟对象中的第三虚拟对象从处于等待状态转换为处于自动战斗状态的情况下,获取所述自动战斗状态所触发的第二操作。In step S41, when it is detected that the third virtual object among the virtual objects included in the first virtual screen is switched from the waiting state to the automatic fighting state, the second operation triggered by the automatic fighting state is obtained.
在步骤S42,根据所述第二操作的操作属性确定所述目标虚拟对象和所述目标事件,所述第一对象状态包括所述等待状态,所述第二对象状态包括所述自动战斗状态。In step S42, the target virtual object and the target event are determined according to the operation attribute of the second operation, the first object state includes the waiting state, and the second object state includes the automatic combat state.
在一些实施例中,允许处于自动战斗状态的虚拟对象可以但不限于为属于第一阵营的虚拟对象,和/或,属于第二阵营的虚拟对象,也就是说,允许玩家控制的虚拟对象和不允许玩家控制的虚拟对象均可以采用自动战斗模式进行游戏。在自动战斗模式下如果检测到某个第三虚拟对象从处于等待状态转换为处于自动战斗状态,则获取自动战斗状态所触发的第二操作,即获取该自动战斗状态所释放的技能,控制的道具等等,再根据第二操作的操作属性确定目标虚拟对象和目标事件。In some embodiments, the virtual objects allowed to be in the automatic combat state may be, but not limited to, virtual objects belonging to the first camp, and/or, virtual objects belonging to the second camp, that is to say, virtual objects that are allowed to be controlled by players and Virtual objects that are not allowed to be controlled by players can be played in automatic combat mode. In the automatic combat mode, if it is detected that a third virtual object is switched from the waiting state to the automatic combat state, the second operation triggered by the automatic combat state is obtained, that is, the skill released by the automatic combat state is obtained, and the controlled props, etc., and then determine the target virtual object and the target event according to the operation attribute of the second operation.
在一些实施例中,虚拟对象处于等待状态表示不允许虚拟对象执行操作,当虚拟对象处于自动战斗状态时才允许虚拟对象进行自动战斗的操作。In some embodiments, the virtual object being in the waiting state means that the virtual object is not allowed to perform operations, and the virtual object is allowed to perform automatic fighting operations only when the virtual object is in the automatic fighting state.
在一些实施例中,第二操作的操作属性可以但不限于包括第二操作的操作对象和第二操作的操作范围等等。比如:可以根据第二操作 的操作对象来确定目标虚拟对象除第三虚拟对象外是否还包括哪些或者哪个虚拟对象,也可以根据第二操作的操作范围来将落入其操作范围内的虚拟对象确定为目标虚拟对象。In some embodiments, the operation attribute of the second operation may include, but is not limited to, an operation object of the second operation, an operation scope of the second operation, and the like. For example: according to the operation object of the second operation, it can be determined whether the target virtual object includes which or which virtual objects besides the third virtual object, and the virtual objects falling within its operation range can also be selected according to the operation range of the second operation identified as the target virtual object.
在一些实施例中,根据所述第二操作的操作属性确定所述目标虚拟对象和所述目标事件包括:步骤S51、步骤S52和步骤S53。In some embodiments, determining the target virtual object and the target event according to the operation attribute of the second operation includes: step S51 , step S52 and step S53 .
在步骤S51,判断是否存在所述第二操作对应的虚拟对象。In step S51, it is determined whether there is a virtual object corresponding to the second operation.
在步骤S52,在存在所述第二操作对应的虚拟对象的情况下,从所述第二操作所对应的虚拟对象中获取第四虚拟对象;将所述第三虚拟对象和所述第四虚拟对象确定为所述目标虚拟对象,并将所述第三虚拟对象对所述第四虚拟对象执行所述第二操作确定为所述目标事件。In step S52, if there is a virtual object corresponding to the second operation, a fourth virtual object is obtained from the virtual object corresponding to the second operation; the third virtual object and the fourth virtual The object is determined as the target virtual object, and the execution of the second operation on the fourth virtual object by the third virtual object is determined as the target event.
在步骤S53,在不存在所述第二操作对应的虚拟对象的情况下,将所述第三虚拟对象确定为所述目标虚拟对象,并将所述第三虚拟对象执行所述第二操作确定为所述目标事件。In step S53, if there is no virtual object corresponding to the second operation, the third virtual object is determined as the target virtual object, and the third virtual object is determined to perform the second operation for the target event.
在一些实施例中,第二操作的操作属性可以但不限于包括是否存在第二操作对应的虚拟对象以及如果存在的话第二操作对应了哪些虚拟对象等等。In some embodiments, the operational attributes of the second operation may include, but are not limited to, whether there is a virtual object corresponding to the second operation, and if so, which virtual objects the second operation corresponds to, and so on.
在一些实施例中,如果存在第二操作对应的虚拟对象,则可以从第二操作所对应的虚拟对象中获取第四虚拟对象(获取方式可以是随机获取或者按照某些预设的规则获取),将第三虚拟对象和第四虚拟对象确定为目标虚拟对象,并将第三虚拟对象对第四虚拟对象执行第二操作确定为目标事件。In some embodiments, if there is a virtual object corresponding to the second operation, the fourth virtual object can be acquired from the virtual object corresponding to the second operation (the acquisition method can be randomly acquired or acquired according to some preset rules) , determining the third virtual object and the fourth virtual object as the target virtual object, and determining the execution of the second operation on the fourth virtual object by the third virtual object as the target event.
在一些实施例中,第二操作所对应的虚拟对象可以但不限于包括:属于第一阵营的虚拟对象,和/或,属于第二阵营的虚拟对象,属于第一阵营的虚拟对象是允许目标帐号控制的虚拟对象,属于第二阵营的虚拟对象是不允许目标帐号控制的虚拟对象。也就是说,第二操作可以是对属于第一阵营的虚拟对象释放的,或者可以是对属于第二阵营的虚拟对象释放的,也可以是同时对属于第一阵营的虚拟对象和属于第二阵营的虚拟对象释放的。比如:在游戏的战斗画面中,第二操作所对应的技能可以是对己方阵营的角色释放的(例如增益类技能),或者可以是对敌对阵营的角色(例如NPC,敌方玩家的角色等等)释放的(例如伤害类,衰弱类的技能),也可以是对己方阵营的角色和敌对阵营的角色同时释放的(比如:无差别的伤害类技能,无差别的增益类技能等等)。In some embodiments, the virtual object corresponding to the second operation may include, but is not limited to: a virtual object belonging to the first camp, and/or a virtual object belonging to the second camp, and the virtual object belonging to the first camp is an allowed target For the virtual objects controlled by the account, the virtual objects belonging to the second camp are virtual objects that are not allowed to be controlled by the target account. That is to say, the second operation can be released on the virtual objects belonging to the first camp, or can be released on the virtual objects belonging to the second camp, or can be released on the virtual objects belonging to the first camp and the virtual objects belonging to the second camp at the same time. The React dummy object is freed. For example: in the battle screen of the game, the skill corresponding to the second operation can be released on the characters of the own camp (such as gain skills), or it can be released on the characters of the hostile camp (such as NPC, the character of the enemy player, etc. etc.) (such as damage-type, debilitating-type skills), or it can be released on the characters of one's own camp and the characters of the enemy camp at the same time (such as: indiscriminate damage-type skills, indiscriminate gain-type skills, etc.) .
在一些实施例中,如果不存在第二操作对应的虚拟对象,则直接将第三虚拟对象确定为目标虚拟对象,并将第三虚拟对象执行第二操作确定为目标事件。In some embodiments, if there is no virtual object corresponding to the second operation, the third virtual object is directly determined as the target virtual object, and execution of the second operation by the third virtual object is determined as the target event.
在一些实施例中,提供了一种游戏战斗中虚拟角色自动释放技能的过程,图4是根据本发明实施例的另一种虚拟画面的渲染过程的示意图,如图4所示,战斗画面中包括的虚拟对象有属于第一阵营的虚拟对象:玩家角色Player1和Player2,属于第二阵营的虚拟对象:系统控制的角色NPC1,场景元素太阳和山峰。当NPC1从等待状态转换到自动战斗状态时,获取到本次自动战斗状态所触发的第二操作为发起攻击,判断是否存在发起的攻击对应的虚拟对象。在存在发起的攻击对应的虚拟对象的情况下,从发起的攻击所对应的虚拟对象中获取第 四虚拟对象为Player1,将NPC1和Player1确定为目标虚拟对象,并将NPC1对Player1执行第二操作对应的攻击确定为目标事件。可以确定获取到画面状态切换信息,则通过第一虚拟摄像机渲染包括Player2、场景元素太阳和山峰的第三虚拟画面(在图4中用点划线表示)。在第三虚拟画面上通过第二虚拟摄像机渲染包括Player1和NPC1的虚拟画面(在图4中用实线表示),得到处于第二画面状态的第二虚拟画面,渲染第二虚拟画面,并通过第二虚拟摄像机渲染在Player1和NPC1上触发NPC1对Player1执行第二操作对应的攻击的目标事件。In some embodiments, a process of automatically releasing skills of a virtual character in a game battle is provided. FIG. 4 is a schematic diagram of another virtual screen rendering process according to an embodiment of the present invention. As shown in FIG. 4 , in the battle screen The included virtual objects include virtual objects belonging to the first camp: player characters Player1 and Player2, virtual objects belonging to the second camp: character NPC1 controlled by the system, scene elements sun and mountain. When NPC1 switches from the waiting state to the automatic combat state, the second operation triggered by acquiring the automatic combat state is to launch an attack, and judge whether there is a virtual object corresponding to the launched attack. If there is a virtual object corresponding to the launched attack, obtain the fourth virtual object as Player1 from the virtual object corresponding to the launched attack, determine NPC1 and Player1 as target virtual objects, and perform a second operation on Player1 by NPC1 The corresponding attack is identified as the target event. It can be determined that the picture state switching information has been obtained, and then the third virtual picture (indicated by a dotted line in FIG. 4 ) including Player2, scene elements sun and mountain peaks is rendered through the first virtual camera. On the third virtual picture, render the virtual picture comprising Player1 and NPC1 (indicated by a solid line in FIG. 4 ) by the second virtual camera rendering, obtain the second virtual picture in the second picture state, render the second virtual picture, and pass The second virtual camera renders a target event on Player1 and NPC1 that triggers an attack corresponding to the second operation performed by NPC1 on Player1.
在一些实施例中,在渲染处于第一画面状态的第一虚拟画面的过程中,还包括:步骤S61。In some embodiments, the process of rendering the first virtual picture in the first picture state further includes: Step S61.
在步骤S61,通过所述第二虚拟摄像机渲染处于第一画面状态的第一虚拟画面。In step S61, the first virtual picture in the first picture state is rendered by the second virtual camera.
在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件之后,还包括:步骤S62。After rendering the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, the method further includes: Step S62.
在步骤S62,在检测到所述第二虚拟画面转换为处于第三画面状态的虚拟画面的情况下,通过所述第二虚拟摄像机渲染处于所述第三画面状态的虚拟画面。In step S62, when it is detected that the second virtual picture is transformed into a virtual picture in the third picture state, the virtual picture in the third picture state is rendered by the second virtual camera.
在一些实施例中,在渲染处于第一画面状态的第一虚拟画面的过程中,通过第二虚拟摄像机渲染处于第一画面状态的第一虚拟画面。在第二虚拟画面上通过第二虚拟摄像机渲染在目标虚拟对象上触发的目标事件之后,如果检测到第二虚拟画面转换为处于第三画面状态的虚拟画面的情况下,通过第二虚拟摄像机渲染处于第三画面状态的虚拟画面。In some embodiments, during the process of rendering the first virtual picture in the first picture state, the first virtual picture in the first picture state is rendered by the second virtual camera. After the target event triggered on the target virtual object is rendered by the second virtual camera on the second virtual screen, if it is detected that the second virtual screen is converted to a virtual screen in the third screen state, render by the second virtual camera The virtual screen in the third screen state.
在一些实施例中,可以对处于第二画面状态的虚拟画面采用上述多摄像机渲染的方式进行渲染,除第二画面状态外的其他画面状态的虚拟画面均采用上述第二摄像机进行渲染。In some embodiments, the virtual picture in the second picture state can be rendered by the above-mentioned multi-camera rendering method, and the virtual pictures in other picture states except the second picture state are all rendered by the above-mentioned second camera.
在一些实施例中,上述虚拟画面的渲染过程还包括:步骤S71和步骤S72。In some embodiments, the above rendering process of the virtual screen further includes: Step S71 and Step S72.
在步骤S71,在检测到所述第一虚拟画面转换为处于第四画面状态的虚拟画面的情况下,将所述第二虚拟摄像机的摄像模式从正交模式转换为透视模式。In step S71 , if it is detected that the first virtual picture is transformed into a virtual picture in the fourth picture state, the shooting mode of the second virtual camera is changed from the orthogonal mode to the perspective mode.
在步骤S72,通过所述第二虚拟摄像机在所述透视模式下渲染所述处于第四画面状态的虚拟画面。In step S72, rendering the virtual picture in the fourth picture state through the second virtual camera in the perspective mode.
在一些实施例中,第四画面状态的虚拟画面可以但不限于包括需要立体渲染画面内容的虚拟画面,比如:需要展现整体场面的画面。透视模式的虚拟摄像机可以渲染出3D的画面效果,从而展现出更加立体的整体场面。In some embodiments, the virtual picture in the fourth picture state may include, but is not limited to, a virtual picture that requires stereo rendering of picture content, such as a picture that needs to show an overall scene. The virtual camera in the perspective mode can render a 3D picture effect, thereby showing a more three-dimensional overall scene.
在一些实施例中,第二虚拟摄像机在渲染处于第一画面状态的第一虚拟画面的过程中采用的摄像模式可以为正交模式。正交模式的虚拟摄像机可以渲染出2D的画面效果。In some embodiments, the camera mode adopted by the second virtual camera during rendering of the first virtual frame in the first frame state may be an orthogonal mode. The virtual camera in the orthogonal mode can render a 2D picture effect.
比如:当游戏画面从2D视角转换为3D视角时(例如从渲染横向移动或静止的场景转换为渲染纵向移动的场景),第二虚拟摄像机的摄像模式从正交模式转换为透视模式,从而使得展现的画面更加震撼。For example: when the game screen is converted from a 2D perspective to a 3D perspective (for example, from rendering a horizontally moving or static scene to rendering a vertically moving scene), the camera mode of the second virtual camera is converted from an orthogonal mode to a perspective mode, so that The picture displayed is even more shocking.
在步骤S204提供的技术方案中,第一虚拟摄像机渲染第三虚拟画 面时采用的摄像模式可以为正交模式。即第三虚拟画面可以为2D画面。In the technical solution provided in step S204, the camera mode adopted when the first virtual camera renders the third virtual picture may be an orthogonal mode. That is, the third virtual picture may be a 2D picture.
在一些实施例中,在第三虚拟画面中渲染出第一虚拟画面中除目标虚拟对象之外的其他虚拟对象,渲染过程可以但不限于在第一虚拟摄像机上执行。其他虚拟对象是第一虚拟画面中除目标虚拟对象之外的全部虚拟对象,比如:某虚拟场景中有角色1,角色2,道具1,道具2和道具3,目标虚拟对象为角色1和道具2,则其他虚拟对象可以为角色2,道具1,道具3和该虚拟场景。In some embodiments, other virtual objects in the first virtual image except the target virtual object are rendered in the third virtual image, and the rendering process may be, but not limited to, executed on the first virtual camera. Other virtual objects are all virtual objects except the target virtual object in the first virtual screen, for example: there are character 1, character 2, prop 1, prop 2 and prop 3 in a virtual scene, and the target virtual objects are character 1 and prop 2, other virtual objects can be character 2, prop 1, prop 3 and the virtual scene.
在一些实施例中,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面包括:步骤S81和步骤S82。In some embodiments, rendering the third virtual frame including other virtual objects in the first virtual frame except the target virtual object through the first virtual camera includes: Step S81 and Step S82.
在步骤S81,通过所述第一虚拟摄像机获取所述第一虚拟画面中的虚拟场景,以及所述第一虚拟画面包括的虚拟角色中除目标虚拟角色之外的其他虚拟角色,所述目标虚拟对象包括所述目标虚拟角色,所述其他虚拟对象包括所述虚拟场景和所述其他虚拟角色。In step S81, the virtual scene in the first virtual picture and other virtual characters in the first virtual picture except the target virtual character are acquired through the first virtual camera, and the target virtual The object includes the target virtual character, and the other virtual objects include the virtual scene and the other virtual characters.
在步骤S82,渲染在所述虚拟场景中的所述其他虚拟角色,得到所述第三虚拟画面。In step S82, the other virtual characters in the virtual scene are rendered to obtain the third virtual picture.
在一些实施例中,目标虚拟对象可以但不限于包括目标虚拟角色,则其他虚拟对象包括目标虚拟对象所在的虚拟场景和该虚拟场景中的其他虚拟角色。In some embodiments, the target virtual object may include, but is not limited to, the target virtual character, and other virtual objects include the virtual scene where the target virtual object is located and other virtual characters in the virtual scene.
在一些实施例中,通过第一虚拟摄像机获取第一虚拟画面中的虚拟场景,以及其他虚拟角色,也可以说,在第一虚拟摄像机的视角下获取第一虚拟画面中的虚拟场景,以及其他虚拟角色。再渲染在虚拟场景中的其他虚拟角色,从而得到第三虚拟画面。In some embodiments, the virtual scene in the first virtual picture and other virtual characters are acquired through the first virtual camera, it can also be said that the virtual scene in the first virtual picture is acquired from the perspective of the first virtual camera, and other virtual character. Then render other virtual characters in the virtual scene, so as to obtain the third virtual picture.
在一些实施例中,渲染在所述虚拟场景中的所述其他虚拟角色,得到所述第三虚拟画面包括:步骤S91、步骤S92和步骤S93。In some embodiments, rendering the other virtual characters in the virtual scene to obtain the third virtual picture includes: step S91, step S92 and step S93.
在步骤S91,渲染所述虚拟场景,得到场景画面。In step S91, the virtual scene is rendered to obtain a scene picture.
在步骤S92,在所述场景画面上渲染所述其他虚拟角色,得到第四虚拟画面。In step S92, the other virtual character is rendered on the scene picture to obtain a fourth virtual picture.
在步骤S93,对所述第四虚拟画面进行虚化处理,得到所述第三虚拟画面。In step S93, perform blurring processing on the fourth virtual picture to obtain the third virtual picture.
在一些实施例中,在渲染第三虚拟画面的过程中可以对渲染出的展示场景画面上的其他虚拟角色的第四虚拟画面进行虚化处理,得到第三虚拟画面作为目标事件的展示背景,从而使得目标事件的展示更加的生动突出。In some embodiments, in the process of rendering the third virtual picture, blurring can be performed on the rendered fourth virtual picture showing other virtual characters on the scene picture to obtain the third virtual picture as the display background of the target event, Thus, the display of the target event is more vivid and prominent.
在一些实施例中,对第四虚拟画面进行虚化处理的方式可以但不限于为在第四虚拟画面上添加模糊效果,比如:垂直7层,水平7层的高斯模糊。In some embodiments, the manner of blurring the fourth virtual picture may be, but not limited to, adding a blur effect on the fourth virtual picture, such as Gaussian blur with 7 layers vertically and 7 layers horizontally.
在步骤S206提供的技术方案中,第二虚拟摄像机渲染第二虚拟画面时采用的摄像模式可以为正交模式。即第二虚拟画面可以为2D画面。In the technical solution provided in step S206, the camera mode adopted by the second virtual camera when rendering the second virtual picture may be an orthogonal mode. That is, the second virtual picture may be a 2D picture.
在一些实施例中,在第三虚拟画面上渲染出目标虚拟对象,渲染过程可以但不限于在第二虚拟摄像机上执行。即在第二虚拟摄像机的视角下渲染目标虚拟对象。In some embodiments, the target virtual object is rendered on the third virtual screen, and the rendering process may be, but not limited to, executed on the second virtual camera. That is, the target virtual object is rendered under the perspective of the second virtual camera.
在一些实施例中,在所述第三虚拟画面上通过第二虚拟摄像机渲染包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面包括:步骤S101、步骤S102和步骤S103。In some embodiments, rendering the virtual picture including the target virtual object through the second virtual camera on the third virtual picture, and obtaining the second virtual picture in the second picture state includes: Step S101, Step S102 and step S103.
在步骤S101,通过所述第二虚拟摄像机渲染包括所述目标虚拟对象的第五虚拟画面。In step S101, a fifth virtual frame including the target virtual object is rendered by the second virtual camera.
在步骤S102,将所述第五虚拟画面叠加到所述第三虚拟画面上,得到第六虚拟画面。In step S102, the fifth virtual picture is superimposed on the third virtual picture to obtain a sixth virtual picture.
在步骤S103,在所述第六虚拟画面上添加目标虚拟元素,得到所述处于第二画面状态的第二虚拟画面,所述目标虚拟元素用于指示所述第二虚拟画面的画面信息。In step S103, a target virtual element is added to the sixth virtual screen to obtain the second virtual screen in the second screen state, and the target virtual element is used to indicate screen information of the second virtual screen.
在一些实施例中,在第二虚拟摄像机的视角下渲染出包括目标虚拟对象的第五虚拟画面,并将其叠加到第三虚拟画面上,再在得到的第六虚拟画面上添加上用于指示第二虚拟画面的画面信息的目标虚拟元素,即可得到处于第二画面状态的第二虚拟画面。In some embodiments, the fifth virtual picture including the target virtual object is rendered from the perspective of the second virtual camera, and superimposed on the third virtual picture, and then added to the obtained sixth virtual picture for Indicating the target virtual element of the screen information of the second virtual screen, the second virtual screen in the second screen state can be obtained.
在一些实施例中,目标虚拟元素用于指示第二虚拟画面的画面信息,目标虚拟元素可以但不限于包括操作栏,角色头像,功能按钮等等画面元素。In some embodiments, the target virtual element is used to indicate the screen information of the second virtual screen, and the target virtual element may include, but is not limited to, screen elements such as an operation bar, an avatar of a character, and a function button.
在步骤S208提供的技术方案中,在第二虚拟画面上通过第二虚拟摄像机渲染在目标虚拟对象上触发的目标事件,画面上通过第二虚拟摄像机突出渲染了目标虚拟对象上触发的目标事件,使得目标事件的渲染过程更加的生动。In the technical solution provided in step S208, the target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera, and the target event triggered on the target virtual object is highlighted and rendered on the screen through the second virtual camera, Make the rendering process of the target event more vivid.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make an electronic device (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present invention.
根据本发明实施例的另一个方面,还提供了一种用于实施上述虚拟画面的渲染方法的虚拟画面的渲染装置。图5是根据本发明实施例的一种虚拟画面的渲染装置的示意图,如图5所示,该装置可以包括:获取模块52、第一渲染模块54、第二渲染模块56和第一渲染模块58。According to another aspect of the embodiments of the present invention, there is also provided an apparatus for rendering a virtual image for implementing the above virtual image rendering method. Fig. 5 is a schematic diagram of a virtual screen rendering device according to an embodiment of the present invention. As shown in Fig. 5, the device may include: an acquisition module 52, a first rendering module 54, a second rendering module 56 and a first rendering module 58.
获取模块52,用于在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,所述画面状态切换信息用于指示将处于第一画面状态的所述第一虚拟画面转换为处于第二画面状态的第二虚拟画面,所述第二虚拟画面用于渲染在目标虚拟对象上触发目标事件,所述第一虚拟画面中渲染的虚拟对象包括所述目标虚拟对象。The acquiring module 52 is configured to acquire picture state switching information during the process of rendering the first virtual picture in the first picture state, and the picture state switching information is used to indicate the first virtual picture that will be in the first picture state Converting to a second virtual screen in a second screen state, the second virtual screen is used to render and trigger a target event on a target virtual object, and the virtual objects rendered in the first virtual screen include the target virtual object.
第一渲染模块54,用于响应所述画面状态切换信息,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面。The first rendering module 54 is configured to render a third virtual image including other virtual objects in the first virtual image except the target virtual object through the first virtual camera in response to the image state switching information.
第二渲染模块56,用于在所述第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面。The second rendering module 56 is configured to superimpose the virtual picture including the target virtual object rendered by the second virtual camera on the third virtual picture to obtain the second virtual picture in the second picture state.
第一渲染模块58,用于在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件。The first rendering module 58 is configured to render the target event triggered on the target virtual object on the second virtual screen through the second virtual camera.
需要说明的是,该实施例中的获取模块52可以用于执行本发明实施例中的步骤S202,该实施例中的第一渲染模块54可以用于执行本发明实施例中的步骤S204,该实施例中的第二渲染模块56可以用于执行本发明实施例中的步骤S206,该实施例中的第一渲染模块58可以用于执行本发明实施例中的步骤S208。It should be noted that the acquiring module 52 in this embodiment can be used to execute step S202 in the embodiment of the present invention, and the first rendering module 54 in this embodiment can be used to execute step S204 in the embodiment of the present invention, the The second rendering module 56 in this embodiment can be used to execute step S206 in this embodiment of the present invention, and the first rendering module 58 in this embodiment can be used to execute step S208 in this embodiment of the present invention.
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现。It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should be noted that, as a part of the device, the above-mentioned modules can run in the hardware environment shown in FIG. 1 , and can be implemented by software or by hardware.
通过上述模块,如果在渲染处于某画面状态的虚拟画面时,需要将该画面状态的虚拟画面转换为另一画面状态的虚拟画面,则通过一个虚拟摄像机渲染虚拟画面中除目标虚拟对象之外的其他虚拟对象的虚拟画面。再在渲染其他虚拟对象的虚拟画面上叠加通过另一个虚拟摄像机渲染包括目标虚拟对象的虚拟画面,在该虚拟画面上通过上述渲染目标虚拟对象的虚拟摄像机渲染在目标虚拟对象上触发的目标事件。进而重点渲染出目标虚拟对象以及目标虚拟对象上触发的目标事件,从而实现了提高渲染虚拟画面的灵活性的技术效果,进而解决了渲染虚拟画面的灵活性较差的技术问题。Through the above modules, if when rendering a virtual picture in a certain picture state, it is necessary to convert the virtual picture in this picture state to a virtual picture in another picture state, then use a virtual camera to render the virtual picture in the virtual picture other than the target virtual object Virtual screens of other virtual objects. Then superimpose on the virtual screen for rendering other virtual objects the virtual screen including the target virtual object rendered by another virtual camera, and the target event triggered on the target virtual object is rendered on the virtual screen by the above-mentioned virtual camera for rendering the target virtual object. Furthermore, the target virtual object and the target event triggered on the target virtual object are rendered emphatically, thereby realizing the technical effect of improving the flexibility of rendering the virtual image, and further solving the technical problem of poor flexibility of rendering the virtual image.
在一些实施例中,所述获取模块包括以下之一:第一确定单元,用于在检测到所述第一虚拟画面上执行的目标操作的情况下,确定获取到所述画面状态切换信息,所述目标操作用于触发所述目标事件;第二确定单元,用于在检测到所述第一虚拟画面上的所述目标虚拟对象从处于第一对象状态转换为处于第二对象状态的情况下,确定获取到所述画面状态切换信息,允许处于所述第二对象状态的虚拟对象触发所述目标事件。In some embodiments, the obtaining module includes one of the following: a first determining unit, configured to determine that the screen state switching information has been obtained when a target operation performed on the first virtual screen is detected, The target operation is used to trigger the target event; the second determination unit is used to detect that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state Next, it is determined that the screen state switching information is acquired, and the virtual object in the second object state is allowed to trigger the target event.
在一些实施例中,所述装置还包括:检测模块,用于在检测到所述第一虚拟画面上执行的目标操作的情况下,确定获取到所述画面状态切换信息之前,在检测到所述第一虚拟画面包括的属于第一阵营的虚拟对象中的第一虚拟对象从等待状态转换到操作状态的情况下,检测所述第一虚拟对象对应的虚拟按钮上执行的触发操作,所述属于第一阵营的虚拟对象是允许目标帐号控制的虚拟对象;第一确定模块,用于在检测到所述第一虚拟对象对应的虚拟按钮中的目标按钮上执行了所述触发操作的情况下,根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件,所述目标操作包括所述根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件的操作。In some embodiments, the device further includes: a detection module, configured to determine that the screen state switching information is acquired before the detection of the target operation performed on the first virtual screen. When a first virtual object among the virtual objects belonging to the first camp included in the first virtual screen transitions from a waiting state to an operating state, detect a trigger operation performed on a virtual button corresponding to the first virtual object, and the The virtual object belonging to the first camp is a virtual object that is allowed to be controlled by the target account; the first determination module is configured to detect that the trigger operation is performed on the target button among the virtual buttons corresponding to the first virtual object , determining the target virtual object and the target event according to the button attribute of the target button, wherein the target operation includes the operation of determining the target virtual object and the target event according to the button attribute of the target button.
在一些实施例中,所述第一确定模块包括:第一判断单元,用于 判断是否存在所述目标按钮对应的虚拟对象;第一处理单元,用于在存在所述目标按钮对应的虚拟对象的情况下,检测所述目标按钮所对应的虚拟对象上执行的选择操作,所述目标按钮所对应的虚拟对象包括:所述属于第一阵营的虚拟对象,和/或,属于第二阵营的虚拟对象,所述属于第二阵营的虚拟对象是不允许所述目标帐号控制的虚拟对象;在检测到所述目标按钮所对应的虚拟对象中的第二虚拟对象上执行了所述选择操作的情况下,将所述第一虚拟对象和所述第二虚拟对象确定为所述目标虚拟对象,并将所述第一虚拟对象对所述第二虚拟对象执行所述目标按钮对应的第一操作确定为所述目标事件;第二处理单元,用于在不存在所述目标按钮对应的虚拟对象的情况下,将所述第一虚拟对象确定为所述目标虚拟对象,并将所述第一虚拟对象执行所述目标按钮对应的第一操作确定为所述目标事件。In some embodiments, the first determining module includes: a first judging unit, configured to judge whether there is a virtual object corresponding to the target button; a first processing unit, configured to determine whether there is a virtual object corresponding to the target button In the case of , the selection operation performed on the virtual object corresponding to the target button is detected, and the virtual object corresponding to the target button includes: the virtual object belonging to the first camp, and/or, the virtual object belonging to the second camp A virtual object, the virtual object belonging to the second camp is a virtual object that is not allowed to be controlled by the target account; it is detected that the selection operation is performed on the second virtual object among the virtual objects corresponding to the target button In this case, the first virtual object and the second virtual object are determined as the target virtual object, and the first virtual object performs the first operation corresponding to the target button on the second virtual object determined as the target event; a second processing unit, configured to determine the first virtual object as the target virtual object when there is no virtual object corresponding to the target button, and set the first The first operation corresponding to the target button executed by the virtual object is determined as the target event.
在一些实施例中,所述装置还包括:第二确定模块,用于在检测到所述第一虚拟画面上的所述目标虚拟对象从处于第一对象状态转换为处于第二对象状态的情况下,确定获取到所述画面状态切换信息之前,在检测到所述第一虚拟画面包括的虚拟对象中的第三虚拟对象从处于等待状态转换为处于自动战斗状态的情况下,获取所述自动战斗状态所触发的第二操作;第三确定模块,用于根据所述第二操作的操作属性确定所述目标虚拟对象和所述目标事件,所述第一对象状态包括所述等待状态,所述第二对象状态包括所述自动战斗状态。In some embodiments, the device further includes: a second determining module, configured to detect that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state In this case, before it is determined that the screen state switching information is acquired, if it is detected that the third virtual object among the virtual objects included in the first virtual screen is switched from being in a waiting state to being in an automatic fighting state, the automatic fighting state is acquired. The second operation triggered by the combat state; a third determination module, configured to determine the target virtual object and the target event according to the operation attribute of the second operation, the first object state includes the waiting state, and the The second object state includes the automatic combat state.
在一些实施例中,所述第三确定模块包括:第二判断单元,用于判断是否存在所述第二操作对应的虚拟对象;第三处理单元,用于在存在所述第二操作对应的虚拟对象的情况下,从所述第二操作所对应的虚拟对象中获取第四虚拟对象;将所述第三虚拟对象和所述第四虚拟对象确定为所述目标虚拟对象,并将所述第三虚拟对象对所述第四虚拟对象执行所述第二操作确定为所述目标事件;第四处理单元,用于在不存在所述第二操作对应的虚拟对象的情况下,将所述第三虚拟对象确定为所述目标虚拟对象,并将所述第三虚拟对象执行所述第二操作确定为所述目标事件。In some embodiments, the third determining module includes: a second judging unit, configured to judge whether there is a virtual object corresponding to the second operation; a third processing unit, configured to determine whether there is a virtual object corresponding to the second operation In the case of a virtual object, a fourth virtual object is obtained from the virtual object corresponding to the second operation; the third virtual object and the fourth virtual object are determined as the target virtual object, and the The execution of the second operation on the fourth virtual object by the third virtual object is determined as the target event; the fourth processing unit is configured to, if there is no virtual object corresponding to the second operation, convert the A third virtual object is determined as the target virtual object, and execution of the second operation by the third virtual object is determined as the target event.
在一些实施例中,所述第一渲染模块包括:获取单元,用于通过所述第一虚拟摄像机获取所述第一虚拟画面中的虚拟场景,以及所述第一虚拟画面包括的虚拟角色中除目标虚拟角色之外的其他虚拟角色,所述目标虚拟对象包括所述目标虚拟角色,所述其他虚拟对象包括所述虚拟场景和所述其他虚拟角色;第一渲染单元,用于渲染在所述虚拟场景中的所述其他虚拟角色,得到所述第三虚拟画面。In some embodiments, the first rendering module includes: an acquisition unit, configured to acquire the virtual scene in the first virtual picture through the first virtual camera, and the virtual character included in the first virtual picture Other virtual characters except the target virtual character, the target virtual object includes the target virtual character, and the other virtual objects include the virtual scene and the other virtual characters; a first rendering unit, configured to render the virtual character in the target virtual character the other virtual characters in the virtual scene to obtain the third virtual picture.
在一些实施例中,所述第一渲染单元用于:渲染所述虚拟场景,得到场景画面;在所述场景画面上渲染所述其他虚拟角色,得到第四虚拟画面;对所述第四虚拟画面进行虚化处理,得到所述第三虚拟画面。In some embodiments, the first rendering unit is configured to: render the virtual scene to obtain a scene picture; render the other virtual characters on the scene picture to obtain a fourth virtual picture; The picture is blurred to obtain the third virtual picture.
在一些实施例中,所述第二渲染模块包括:第二渲染单元,用于通过所述第二虚拟摄像机渲染包括所述目标虚拟对象的第五虚拟画面;叠加单元,用于将所述第五虚拟画面叠加到所述第三虚拟画面上,得到第六虚拟画面;添加单元,用于在所述第六虚拟画面上添加目标虚拟元素,得到所述处于第二画面状态的第二虚拟画面,所述目标虚 拟元素用于指示所述第二虚拟画面的画面信息。In some embodiments, the second rendering module includes: a second rendering unit, configured to render a fifth virtual frame including the target virtual object through the second virtual camera; The fifth virtual picture is superimposed on the third virtual picture to obtain a sixth virtual picture; an adding unit is configured to add a target virtual element on the sixth virtual picture to obtain the second virtual picture in the state of the second picture , the target virtual element is used to indicate the screen information of the second virtual screen.
在一些实施例中,所述装置还包括:第二渲染模块,用于在展示处于第一画面状态的第一虚拟画面的过程中,通过所述第二虚拟摄像机渲染处于第一画面状态的第一虚拟画面;第三渲染模块,用于在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件之后,在检测到所述第二虚拟画面转换为处于第三画面状态的虚拟画面的情况下,通过所述第二虚拟摄像机渲染处于所述第三画面状态的虚拟画面。In some embodiments, the device further includes: a second rendering module, configured to render the first virtual image in the first image state through the second virtual camera during the process of displaying the first virtual image in the first image state A virtual screen; a third rendering module, configured to render the target event triggered on the target virtual object through the second virtual camera on the second virtual screen, after detecting the second virtual When the picture is converted into a virtual picture in the third picture state, the virtual picture in the third picture state is rendered by the second virtual camera.
在一些实施例中,所述装置还包括:转换模块,用于在检测到所述第一虚拟画面转换为处于第四画面状态的虚拟画面的情况下,将所述第二虚拟摄像机的摄像模式从正交模式转换为透视模式;第四渲染模块,用于通过所述第二虚拟摄像机在所述透视模式下渲染所述处于第四画面状态的虚拟画面。In some embodiments, the device further includes: a switching module, configured to change the shooting mode of the second virtual camera to Converting from the orthogonal mode to the perspective mode; a fourth rendering module, configured to render the virtual picture in the fourth picture state in the perspective mode through the second virtual camera.
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所发明的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。It should be noted here that the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents invented by the above-mentioned embodiments. It should be noted that, as a part of the device, the above modules can run in the hardware environment shown in FIG. 1 , and can be implemented by software or by hardware, wherein the hardware environment includes a network environment.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的虚拟画面的渲染装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置的程序/指令(例如,计算机程序/指令和计算机程序产品)。这样的实现本发明的程序/指令可以存储在计算机可读介质上,或者可以一个或者多个信号的形式存在,这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in the device for rendering a virtual picture according to an embodiment of the present invention. The present invention can also be implemented as programs/instructions (eg, computer programs/instructions and computer program products) of devices or means for performing part or all of the methods described herein. Such programs/instructions for implementing the present invention may be stored on a computer-readable medium, or may exist in the form of one or more signals, such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any form Available in other formats.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by computing devices.
图6示意性地示出了可以实现根据本发明的虚拟画面的渲染方法的电子装置,该电子装置包括处理器610和以存储器620形式的计算机可读介质。存储器620是计算机可读介质的一个示例,其具有用于存储计算机程序/指令631的存储空间630。当所述计算机程序/指令631由处理器610执行时,可实现上文所描述的虚拟画面的渲染方法中的各个步骤。FIG. 6 schematically shows an electronic device that can implement the method for rendering a virtual picture according to the present invention, the electronic device includes a processor 610 and a computer-readable medium in the form of a memory 620 . Memory 620 is one example of a computer readable medium having storage space 630 for storing computer programs/instructions 631 . When the computer program/instruction 631 is executed by the processor 610, various steps in the method for rendering a virtual picture described above can be realized.
图7示意性地示出了实现根据本发明的方法的计算机程序产品的 框图。所述计算机程序产品包括计算机程序/指令710,当所述计算机程序/指令710被诸如图6所示的处理器610之类的处理器执行时,可实现上文所描述的虚拟画面的渲染方法中的各个步骤。Fig. 7 schematically shows a block diagram of a computer program product implementing the method according to the invention. The computer program product includes a computer program/instruction 710. When the computer program/instruction 710 is executed by a processor such as the processor 610 shown in FIG. each step in the .
上文对本说明书特定实施例进行了描述,其与其它实施例一并涵盖于所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定遵循示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可行的或者有利的。The foregoing describes certain embodiments of the specification which, together with other embodiments, are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily follow the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or advantageous in certain embodiments.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
应可理解,以上所述实施例仅为举例说明本发明之目的而并非对本发明进行限制。在不脱离本发明基本精神及特性的前提下,本领域技术人员还可以通过其他方式来实施本发明。本发明的范围当以后附的权利要求为准,凡在本说明书一个或多个实施例的精神和原则之内所做的任何修改、等同替换、改进等,皆应涵盖其中。It should be understood that the above-mentioned embodiments are only for the purpose of illustrating the present invention rather than limiting the present invention. Without departing from the basic spirit and characteristics of the present invention, those skilled in the art can implement the present invention in other ways. The scope of the present invention shall be based on the appended claims, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be covered therein.

Claims (15)

  1. 一种虚拟画面的渲染方法,包括:A method for rendering a virtual screen, comprising:
    在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,所述画面状态切换信息用于指示将处于第一画面状态的所述第一虚拟画面转换为处于第二画面状态的第二虚拟画面,所述第二虚拟画面用于渲染在目标虚拟对象上触发的目标事件,所述第一虚拟画面中渲染的虚拟对象包括所述目标虚拟对象;In the process of rendering the first virtual picture in the first picture state, the picture state switching information is obtained, and the picture state switching information is used to indicate that the first virtual picture in the first picture state is converted to the second picture A second virtual screen in a state, the second virtual screen is used to render a target event triggered on a target virtual object, and the virtual objects rendered in the first virtual screen include the target virtual object;
    响应所述画面状态切换信息,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面;In response to the screen state switching information, render a third virtual screen including other virtual objects in the first virtual screen except the target virtual object through the first virtual camera;
    在所述第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面;以及superimposing on the third virtual picture the virtual picture including the target virtual object rendered by the second virtual camera to obtain the second virtual picture in the second picture state; and
    在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件。The target event triggered on the target virtual object is rendered on the second virtual screen through the second virtual camera.
  2. 根据权利要求1所述的方法,其中,获取所述画面状态切换信息包括以下之一:The method according to claim 1, wherein obtaining the screen state switching information includes one of the following:
    在检测到所述第一虚拟画面上执行的目标操作的情况下,确定获取到所述画面状态切换信息,所述目标操作用于触发所述目标事件;If a target operation performed on the first virtual screen is detected, it is determined that the screen state switching information is acquired, and the target operation is used to trigger the target event;
    在检测到所述第一虚拟画面上的所述目标虚拟对象从处于第一对象状态转换为处于第二对象状态的情况下,确定获取到所述画面状态切换信息,允许处于所述第二对象状态的虚拟对象触发所述目标事件。When it is detected that the target virtual object on the first virtual screen is switched from being in the first object state to being in the second object state, it is determined that the screen state switching information is acquired, and the target virtual object is allowed to be in the second object state The state of the dummy triggers the target event.
  3. 根据权利要求2所述的方法,其中,在检测到所述第一虚拟画面上执行的目标操作的情况下,确定获取到所述画面状态切换信息之前,所述方法还包括:The method according to claim 2, wherein, in the case of detecting the target operation performed on the first virtual screen, before determining that the screen state switching information is obtained, the method further comprises:
    在检测到所述第一虚拟画面包括的属于第一阵营的虚拟对象中的第一虚拟对象从等待状态转换到操作状态的情况下,检测所述第一虚拟对象对应的虚拟按钮上执行的触发操作,所述属于第一阵营的虚拟对象是允许目标帐号控制的虚拟对象;When it is detected that the first virtual object among the virtual objects belonging to the first camp included in the first virtual screen has transitioned from the waiting state to the operating state, detect the triggering performed on the virtual button corresponding to the first virtual object Operation, the virtual object belonging to the first camp is a virtual object allowed to be controlled by the target account;
    在检测到所述第一虚拟对象对应的虚拟按钮中的目标按钮上执行了所述触发操作的情况下,根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件,所述目标操作包括所述根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件的操作。When it is detected that the trigger operation is performed on a target button among the virtual buttons corresponding to the first virtual object, determining the target virtual object and the target event according to the button attribute of the target button, the The target operation includes the operation of determining the target virtual object and the target event according to the button attribute of the target button.
  4. 根据权利要求3所述的方法,其中,根据所述目标按钮的按钮属性确定所述目标虚拟对象和所述目标事件包括:The method according to claim 3, wherein determining the target virtual object and the target event according to the button attribute of the target button comprises:
    判断是否存在所述目标按钮对应的虚拟对象;judging whether there is a virtual object corresponding to the target button;
    在存在所述目标按钮对应的虚拟对象的情况下,检测所述目标按钮所对应的虚拟对象上执行的选择操作,所述目标按钮所对应的虚拟对象包括:所述属于第一阵营的虚拟对象,和/或,属于第二阵营的虚拟对象,所述属于第二阵营的虚拟对象是不允许所述目标帐号控制的虚拟对象;在检测到所述目标按钮所对应的虚拟对象中的第二虚拟对象上执行了所述选择操作的情况下,将所述第一虚拟对象和所述第二虚拟对象确定为所述目标虚拟对象,并将所述第一虚拟对象对所述第二 虚拟对象执行所述目标按钮对应的第一操作确定为所述目标事件;If there is a virtual object corresponding to the target button, detecting a selection operation performed on the virtual object corresponding to the target button, where the virtual object corresponding to the target button includes: the virtual object belonging to the first camp , and/or, a virtual object belonging to the second camp, where the virtual object belonging to the second camp is a virtual object that is not allowed to be controlled by the target account; the second in the virtual object corresponding to the target button is detected When the selection operation is performed on the virtual object, determining the first virtual object and the second virtual object as the target virtual object, and comparing the first virtual object to the second virtual object Executing the first operation corresponding to the target button is determined as the target event;
    在不存在所述目标按钮对应的虚拟对象的情况下,将所述第一虚拟对象确定为所述目标虚拟对象,并将所述第一虚拟对象执行所述目标按钮对应的第一操作确定为所述目标事件。If there is no virtual object corresponding to the target button, determining the first virtual object as the target virtual object, and determining the execution of the first operation corresponding to the target button by the first virtual object as The target event.
  5. 根据权利要求2所述的方法,其中,在检测到所述第一虚拟画面上的所述目标虚拟对象从处于第一对象状态转换为处于第二对象状态的情况下,确定获取到所述画面状态切换信息之前,所述方法还包括:The method according to claim 2, wherein, when it is detected that the target virtual object on the first virtual screen changes from being in the first object state to being in the second object state, it is determined that the screen is acquired Before the state switching information, the method also includes:
    在检测到所述第一虚拟画面包括的虚拟对象中的第三虚拟对象从处于等待状态转换为处于自动战斗状态的情况下,获取所述自动战斗状态所触发的第二操作;When it is detected that the third virtual object among the virtual objects included in the first virtual screen is switched from being in a waiting state to being in an automatic fighting state, acquiring a second operation triggered by the automatic fighting state;
    根据所述第二操作的操作属性确定所述目标虚拟对象和所述目标事件,所述第一对象状态包括所述等待状态,所述第二对象状态包括所述自动战斗状态。The target virtual object and the target event are determined according to the operation attribute of the second operation, the first object state includes the waiting state, and the second object state includes the automatic combat state.
  6. 根据权利要求5所述的方法,其中,根据所述第二操作的操作属性确定所述目标虚拟对象和所述目标事件包括:The method according to claim 5, wherein determining the target virtual object and the target event according to the operational attribute of the second operation comprises:
    判断是否存在所述第二操作对应的虚拟对象;judging whether there is a virtual object corresponding to the second operation;
    在存在所述第二操作对应的虚拟对象的情况下,从所述第二操作所对应的虚拟对象中获取第四虚拟对象;将所述第三虚拟对象和所述第四虚拟对象确定为所述目标虚拟对象,并将所述第三虚拟对象对所述第四虚拟对象执行所述第二操作确定为所述目标事件;If there is a virtual object corresponding to the second operation, acquiring a fourth virtual object from the virtual objects corresponding to the second operation; determining the third virtual object and the fourth virtual object as the the target virtual object, and determining that the third virtual object executes the second operation on the fourth virtual object as the target event;
    在不存在所述第二操作对应的虚拟对象的情况下,将所述第三虚拟对象确定为所述目标虚拟对象,并将所述第三虚拟对象执行所述第二操作确定为所述目标事件。If there is no virtual object corresponding to the second operation, determining the third virtual object as the target virtual object, and determining the execution of the second operation by the third virtual object as the target event.
  7. 根据权利要求1所述的方法,其中,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面包括:The method according to claim 1, wherein rendering a third virtual picture including other virtual objects in the first virtual picture except the target virtual object through the first virtual camera comprises:
    通过所述第一虚拟摄像机获取所述第一虚拟画面中的虚拟场景,以及所述第一虚拟画面包括的虚拟角色中除目标虚拟角色之外的其他虚拟角色,所述目标虚拟对象包括所述目标虚拟角色,所述其他虚拟对象包括所述虚拟场景和所述其他虚拟角色;Obtain the virtual scene in the first virtual screen through the first virtual camera, and other virtual characters in the virtual characters included in the first virtual screen except the target virtual character, and the target virtual object includes the The target virtual character, the other virtual objects include the virtual scene and the other virtual characters;
    渲染在所述虚拟场景中的所述其他虚拟角色,得到所述第三虚拟画面。rendering the other virtual characters in the virtual scene to obtain the third virtual picture.
  8. 根据权利要求7所述的方法,其中,渲染在所述虚拟场景中的所述其他虚拟角色,得到所述第三虚拟画面包括:The method according to claim 7, wherein rendering the other virtual characters in the virtual scene and obtaining the third virtual picture comprises:
    渲染所述虚拟场景,得到场景画面;Rendering the virtual scene to obtain a scene picture;
    在所述场景画面上渲染所述其他虚拟角色,得到第四虚拟画面;rendering the other virtual characters on the scene picture to obtain a fourth virtual picture;
    对所述第四虚拟画面进行虚化处理,得到所述第三虚拟画面。Perform blurring processing on the fourth virtual picture to obtain the third virtual picture.
  9. 根据权利要求1所述的方法,其中,在所述第三虚拟画面上通过第二虚拟摄像机渲染包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面包括:The method according to claim 1, wherein rendering the virtual picture including the target virtual object through a second virtual camera on the third virtual picture, and obtaining the second virtual picture in the second picture state comprises:
    通过所述第二虚拟摄像机渲染包括所述目标虚拟对象的第五虚拟画面;rendering a fifth virtual frame including the target virtual object through the second virtual camera;
    将所述第五虚拟画面叠加到所述第三虚拟画面上,得到第六虚拟画面;superimposing the fifth virtual picture on the third virtual picture to obtain a sixth virtual picture;
    在所述第六虚拟画面上添加目标虚拟元素,得到所述处于第二画面状态的第二虚拟画面,所述目标虚拟元素用于指示所述第二虚拟画面的画面信息。Adding a target virtual element on the sixth virtual picture to obtain the second virtual picture in the second picture state, where the target virtual element is used to indicate picture information of the second virtual picture.
  10. 根据权利要求1所述的方法,其中,The method according to claim 1, wherein,
    在渲染处于第一画面状态的第一虚拟画面的过程中,所述方法还包括:通过所述第二虚拟摄像机渲染处于第一画面状态的第一虚拟画面;In the process of rendering the first virtual picture in the first picture state, the method further includes: rendering the first virtual picture in the first picture state through the second virtual camera;
    在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件之后,所述方法还包括:在检测到所述第二虚拟画面转换为处于第三画面状态的虚拟画面的情况下,通过所述第二虚拟摄像机渲染处于所述第三画面状态的虚拟画面。After the target event triggered on the target virtual object is rendered by the second virtual camera on the second virtual screen, the method further includes: after detecting that the second virtual screen is switched to be in the first In the case of a virtual picture in a three-picture state, the virtual picture in the third picture state is rendered by the second virtual camera.
  11. 根据权利要求1所述的方法,其中,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在检测到所述第一虚拟画面转换为处于第四画面状态的虚拟画面的情况下,将所述第二虚拟摄像机的摄像模式从正交模式转换为透视模式;In the case of detecting that the first virtual picture is transformed into a virtual picture in a fourth picture state, converting the camera mode of the second virtual camera from an orthogonal mode to a perspective mode;
    通过所述第二虚拟摄像机在所述透视模式下渲染所述处于第四画面状态的虚拟画面。Rendering the virtual picture in the fourth picture state through the second virtual camera in the perspective mode.
  12. 一种虚拟画面的渲染装置,包括:A rendering device for a virtual picture, comprising:
    获取模块,用于在渲染处于第一画面状态的第一虚拟画面的过程中,获取画面状态切换信息,所述画面状态切换信息用于指示将处于第一画面状态的所述第一虚拟画面转换为处于第二画面状态的第二虚拟画面,所述第二虚拟画面用于渲染在目标虚拟对象上触发的目标事件,所述第一虚拟画面中渲染的虚拟对象包括所述目标虚拟对象;An acquisition module, configured to acquire picture state switching information during the process of rendering the first virtual picture in the first picture state, the picture state switching information being used to indicate that the first virtual picture in the first picture state is to be converted is a second virtual screen in a second screen state, the second virtual screen is used to render a target event triggered on a target virtual object, and the virtual objects rendered in the first virtual screen include the target virtual object;
    第一渲染模块,用于响应所述画面状态切换信息,通过第一虚拟摄像机渲染包括所述第一虚拟画面中除所述目标虚拟对象之外的其他虚拟对象的第三虚拟画面;A first rendering module, configured to respond to the screen state switching information, and render a third virtual screen including other virtual objects in the first virtual screen except the target virtual object through the first virtual camera;
    第二渲染模块,用于在所述第三虚拟画面上叠加通过第二虚拟摄像机渲染的包括所述目标虚拟对象的虚拟画面,得到所述处于第二画面状态的第二虚拟画面;以及A second rendering module, configured to superimpose on the third virtual picture the virtual picture including the target virtual object rendered by the second virtual camera, to obtain the second virtual picture in the second picture state; and
    第一渲染模块,用于在所述第二虚拟画面上通过所述第二虚拟摄像机渲染在所述目标虚拟对象上触发的所述目标事件。The first rendering module is configured to render the target event triggered on the target virtual object on the second virtual screen through the second virtual camera.
  13. 一种存储介质,所述存储介质包括存储的程序,所述程序运行时执行上述权利要求1至11任一项中所述的方法。A storage medium, the storage medium includes a stored program, and the program executes the method described in any one of claims 1 to 11 when running.
  14. 一种电子装置,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器通过所述计算机程序执行上述权利要求1至11任一项中所述的方法。An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executes any one of claims 1 to 11 through the computer program the method described.
  15. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1至11中任一项所述的方法的步骤。A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 11.
PCT/CN2021/132549 2021-06-25 2021-11-23 Virtual picture rendering method and apparatus, storage medium, and electronic apparatus WO2022267326A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110711719.6 2021-06-25
CN202110711719.6A CN113440851B (en) 2021-06-25 2021-06-25 Virtual picture rendering method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2022267326A1 true WO2022267326A1 (en) 2022-12-29

Family

ID=77813002

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132549 WO2022267326A1 (en) 2021-06-25 2021-11-23 Virtual picture rendering method and apparatus, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN113440851B (en)
WO (1) WO2022267326A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113440851B (en) * 2021-06-25 2022-10-04 完美世界(重庆)互动科技有限公司 Virtual picture rendering method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050194A1 (en) * 2011-08-31 2013-02-28 Nintendo Co., Ltd. Information processing program, information processing system, information processing apparatus, and information processing method, utilizing augmented reality technique
CN108619720A (en) * 2018-04-11 2018-10-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of animation
CN110624248A (en) * 2019-09-18 2019-12-31 网易(杭州)网络有限公司 Game control method, device, electronic equipment and storage medium
CN111586317A (en) * 2020-05-27 2020-08-25 上海姝嫣文化传播中心 Picture scene switching method and device, computer equipment and storage medium
CN111589121A (en) * 2020-04-03 2020-08-28 北京冰封互娱科技有限公司 Information display method and device, storage medium and electronic device
US10768776B1 (en) * 2017-08-24 2020-09-08 Amazon Technologies, Inc. Streaming virtual objects for incorporation in virtual environments
CN113440851A (en) * 2021-06-25 2021-09-28 完美世界(重庆)互动科技有限公司 Virtual picture rendering method and device, storage medium and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4459993B2 (en) * 2007-10-03 2010-04-28 株式会社スクウェア・エニックス Image generating apparatus, image generating program, and image generating program recording medium
CN111467802B (en) * 2020-04-09 2022-02-22 腾讯科技(深圳)有限公司 Method, device, equipment and medium for displaying picture of virtual environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130050194A1 (en) * 2011-08-31 2013-02-28 Nintendo Co., Ltd. Information processing program, information processing system, information processing apparatus, and information processing method, utilizing augmented reality technique
US10768776B1 (en) * 2017-08-24 2020-09-08 Amazon Technologies, Inc. Streaming virtual objects for incorporation in virtual environments
CN108619720A (en) * 2018-04-11 2018-10-09 腾讯科技(深圳)有限公司 Playing method and device, storage medium, the electronic device of animation
CN110624248A (en) * 2019-09-18 2019-12-31 网易(杭州)网络有限公司 Game control method, device, electronic equipment and storage medium
CN111589121A (en) * 2020-04-03 2020-08-28 北京冰封互娱科技有限公司 Information display method and device, storage medium and electronic device
CN111586317A (en) * 2020-05-27 2020-08-25 上海姝嫣文化传播中心 Picture scene switching method and device, computer equipment and storage medium
CN113440851A (en) * 2021-06-25 2021-09-28 完美世界(重庆)互动科技有限公司 Virtual picture rendering method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113440851B (en) 2022-10-04
CN113440851A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN110062271B (en) Scene switching method, device, terminal and storage medium
CN113384879B (en) Game data display method and device
CN110798735A (en) Video processing method and device and electronic equipment
CN110800310A (en) Subtitle processing method and director system for sports game video
CN111031293B (en) Panoramic monitoring display method, device and system and computer readable storage medium
US20160321833A1 (en) Method and apparatus for generating moving photograph based on moving effect
CN112827172B (en) Shooting method, shooting device, electronic equipment and storage medium
CN105721947A (en) Method for providing target multi-user interaction video and server
CN105657517A (en) Method and equipment used for playing multi-user interactive video
US20170142389A1 (en) Method and device for displaying panoramic videos
WO2022267326A1 (en) Virtual picture rendering method and apparatus, storage medium, and electronic apparatus
JP2022000180A (en) Game processing program, game processing method, and game processing device
CN112044064A (en) Game skill display method, device, equipment and storage medium
US20170225077A1 (en) Special video generation system for game play situation
CN111045777A (en) Rendering method, rendering device, storage medium and electronic equipment
JP2019050576A5 (en)
WO2018000613A1 (en) Method for sharing image data and electronic device
CN114191823A (en) Multi-view game live broadcast method and device and electronic equipment
WO2022257365A1 (en) Video generation method and apparatus, storage medium, and electronic apparatus
CN109947506A (en) Interface switching method, device and electronic equipment
US20200409479A1 (en) Method, device and equipment for launching an application
CN112843733A (en) Method and device for shooting image, electronic equipment and storage medium
CN111277866B (en) Method and related device for controlling VR video playing
WO2023130610A9 (en) Game interaction method and apparatus, and electronic device and storage medium
JP2023547721A (en) Screen display methods, devices, equipment, and programs in virtual scenes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21946804

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21946804

Country of ref document: EP

Kind code of ref document: A1