WO2023179292A1 - Virtual prop driving method and apparatus, electronic device and readable storage medium - Google Patents

Virtual prop driving method and apparatus, electronic device and readable storage medium Download PDF

Info

Publication number
WO2023179292A1
WO2023179292A1 PCT/CN2023/077873 CN2023077873W WO2023179292A1 WO 2023179292 A1 WO2023179292 A1 WO 2023179292A1 CN 2023077873 W CN2023077873 W CN 2023077873W WO 2023179292 A1 WO2023179292 A1 WO 2023179292A1
Authority
WO
WIPO (PCT)
Prior art keywords
driving information
information
virtual
virtual prop
driving
Prior art date
Application number
PCT/CN2023/077873
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 WO2023179292A1 publication Critical patent/WO2023179292A1/en

Links

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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • 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/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
    • 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

Definitions

  • the present disclosure relates to the field of virtual prop driving technology, and specifically, to a driving method, device, electronic device and storage medium for virtual props.
  • the main method of virtual live broadcast includes: obtaining control signals about the actor's (the person's) action expression data through a motion capture device, and driving the virtual image's movements.
  • the process of live broadcasting of a virtual image will involve interaction with virtual props.
  • the driving of virtual props is similar to the driving of virtual images. Movement data about real props are obtained through motion capture equipment and the movement of virtual props is driven.
  • Embodiments of the present disclosure at least provide a method, device, electronic device, and storage medium for driving virtual props, which can improve the driving effect of flexible virtual props.
  • Embodiments of the present disclosure provide a driving method for virtual props, including:
  • the virtual props are driven to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, the 3D rendering environment runs in the electronic device, and the 3D scene
  • the information includes virtual prop information, which is used to generate the virtual props after rendering.
  • each part of the flexible virtual prop is regarded as a target for driving. In this way, even when the flexible virtual prop is deformed, Under this condition, each part will also achieve the corresponding driving effect, so that the virtual props can display a complete driving effect, and the display form will not be distorted due to the deformation of a certain part, thus improving the performance of flexible virtual props under deformation. display effect.
  • the multi-segment driving information is obtained through a motion capture device, the multi-segment driving information corresponds to different target parts of the virtual prop, and the motion capture device is set at a corresponding position of the real prop, and the The corresponding position of the real prop corresponds to the target part of the virtual prop.
  • determining the complete driving information of the virtual prop based on the multiple pieces of driving information includes:
  • the multiple pieces of driving information are fused to obtain the complete driving information.
  • the obtained complete driving information can be more consistent with the attributes of the virtual prop, thereby improving the driving effect of the virtual prop.
  • the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. A sort of.
  • the multiple pieces of driving information are fused based on the attribute information of the virtual props to obtain the complete driving information, including:
  • the multiple pieces of target driving information are fused to obtain the complete driving information.
  • determining the complete driving information of the virtual prop based on the multiple pieces of driving information includes:
  • At least one target part lacks corresponding driving information
  • the complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
  • the missing driving information is determined based on the obtained driving information, in this way, the driving effect of the target part lacking the driving information can be coordinated with other target parts, improving the performance of the virtual props in the absence of driving information. display effect.
  • the multiple pieces of driving information are fused based on the attribute information of the virtual props to obtain the complete driving information, including:
  • the target data in the multiple segments of driving information are fitted to obtain the complete driving information.
  • the connection between each target part of the virtual props can be smoothly transitioned, so that the display effect of the virtual props is more consistent with the effect of the real props, and the user's viewing experience is improved.
  • An embodiment of the present disclosure provides a driving device for virtual props, including:
  • a driving information acquisition module used to obtain multiple pieces of driving information of virtual props; wherein the driving information is used to drive at least one part of the virtual props, and the virtual props are virtual props capable of deformation;
  • a driving information fusion module configured to determine the complete driving information of the virtual prop based on the multi-segment driving information
  • a virtual prop driving module used to drive the virtual props to move in a 3D scene based on the complete driving information; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs on the electronic In the device, the 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
  • the multi-segment driving information is obtained through a motion capture device, the multiple segments of driving information respectively correspond to different target parts of the virtual prop, and the motion capture device is set at a corresponding position of the real prop, so The corresponding position of the real prop corresponds to the target part of the virtual prop.
  • the driving information fusion module is specifically used to:
  • the multiple pieces of driving information are fused to obtain the complete driving information.
  • the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. A sort of.
  • the driving information fusion module is specifically used to:
  • the multiple pieces of target driving information are fused to obtain the complete driving information.
  • the driving information fusion module is specifically used to:
  • At least one target part lacks corresponding driving information
  • the complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
  • the driving information fusion module is specifically used to:
  • the target data in the multiple segments of driving information are fitted to obtain the complete driving information.
  • An embodiment of the present disclosure provides an electronic device, including: a processor, a memory, and a bus.
  • the memory stores machine-readable instructions executable by the processor.
  • the processor and the Memories communicate with each other through a bus, and when the machine-readable instructions are executed by the processor, the virtual prop driving method as described above is performed.
  • Embodiments of the present disclosure provide a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program executes the virtual prop driving method as described above.
  • Figure 1 shows a flow chart of a first virtual prop driving method provided by an embodiment of the present disclosure
  • Figure 2 shows a schematic diagram of the corresponding relationship between different parts of a virtual prop and each piece of driving information provided by an embodiment of the present disclosure
  • Figure 3 shows a schematic diagram of driving virtual props based on original multi-segment driving information provided by an embodiment of the present disclosure
  • Figure 4 shows a schematic diagram of driving virtual props based on fitted multi-segment driving information provided by an embodiment of the present disclosure
  • Figure 5 shows a flow chart of a method for merging multiple pieces of driving information provided by an embodiment of the present disclosure
  • Figure 6 shows a flow chart of another method for fusing multiple pieces of driving information provided by an embodiment of the present disclosure
  • Figure 7 shows a schematic structural diagram of a driving device for virtual props provided by an embodiment of the present disclosure
  • FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
  • a and/or B can mean: A alone exists, A and B exist simultaneously, and B alone exists. situation.
  • at least one herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, and C, which can mean including from A, Any one or more elements selected from the set composed of B and C.
  • the present disclosure provides a driving method for virtual props, including:
  • the virtual props are driven to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, the 3D rendering environment runs in the electronic device, and the 3D scene
  • the information includes virtual prop information, which is used to generate the virtual props after rendering.
  • each part of the flexible virtual prop is regarded as a target for driving.
  • each part will also achieve the corresponding driving effect, thus allowing the virtual props to display a complete driving effect.
  • the display form will not be distorted due to deformation of certain parts, thereby improving the display effect of flexible virtual props in a deformed state.
  • the execution subject of the virtual prop driving method provided by the embodiments of the present disclosure is generally an electronic device with certain computing capabilities.
  • the electronic device includes, for example, a terminal device or a server or other processing device.
  • the terminal device may be a user equipment (User Equipment).
  • UE user equipment
  • PDA Personal Digital Assistant
  • the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a basic cloud that provides cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms. Cloud server for computing services.
  • the driving method of the virtual prop can be implemented by the processor calling computer readable instructions stored in the memory.
  • the driving method for virtual props includes the following S101 to S103:
  • virtual props refer to objects that exist in a 3D scene and can interact with virtual objects.
  • the type of virtual props can be determined according to the specific plot involved in the specific performance content.
  • the virtual props can be fitness rings, bags, etc.
  • the virtual props in the embodiments of the present disclosure refer to flexible virtual props that can deform, that is, the form or shape of the virtual props can change.
  • the 3D scene is generated by rendering 3D scene information in a 3D rendering environment.
  • the 3D rendering environment runs in an electronic device.
  • the 3D scene information includes virtual object information and virtual prop information.
  • the virtual object information is A virtual object is generated after rendering, and the virtual prop information is used to generate the virtual prop after rendering.
  • the virtual object may include a virtual anchor or a digital person. Among them, the image of the virtual anchor can be an animation image or a cartoon image.
  • the 3D scene information can be run on the computer CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processor) and memory, which includes gridded model information and texture information.
  • virtual prop information or virtual object information includes, but is not limited to, gridded model data, voxel data, and texture data, or combinations thereof.
  • the mesh includes but is not limited to triangular mesh, quadrilateral mesh, other polygon mesh or combinations thereof. In the embodiment of the present disclosure, the mesh is a triangular mesh.
  • the 3D scene information is rendered in a 3D rendering environment to generate a 3D scene.
  • the 3D rendering environment may be a 3D engine running in an electronic device, capable of generating image information based on one or more perspectives based on the data to be rendered.
  • Virtual object information is a character model that exists in the 3D engine and can generate corresponding virtual objects after rendering.
  • Virtual prop information is a prop model that exists in the 3D engine and can generate corresponding virtual props after rendering.
  • one form of virtual objects is to capture the motion of an actor (the person), obtain control signals, and then drive the virtual object movements in the 3D engine. At the same time, the actor's voice is acquired, and the actor's voice is combined with the virtual object screen. Fusion to generate video data.
  • one form of virtual props is to obtain motion data of real props through motion capture of real props, and then obtain driving information based on the real motion data.
  • real props refer to the utensils used by real objects (actors) during the performance. The real props can interact with the real object to achieve the expected performance effect.
  • the real props used are also different.
  • multiple optical marking points can be set on the real props in advance (for example, they can be made of reflective materials), and then the position information of each optical marking point of the real props can be captured through optical equipment, and then the position information of the real props can be obtained.
  • the optical capture device includes at least one of an infrared camera, an RGB camera, and a depth camera. The embodiment of the present disclosure does not limit the type of the optical capture device.
  • real props and virtual props are used as fitness rings as an example for explanation.
  • the real props can be divided into several segments.
  • the real props fitness ring can be divided into "Segment 1" and “Segment 2". "Section”, “Section 3" and “Section 4", a total of four sections.
  • the virtual prop fitness ring is also divided into four parts: A part, B part, C part and D part.
  • each segment of the real prop corresponds one-to-one with each part of the virtual prop. That is, a motion capture device can be set up in segment 1, and the driving information of part A can be obtained through the motion capture device set in segment 1. In the same way, through The driving information obtained by the 4-segment motion capture device is used to drive the D part.
  • the multi-segment driving information is obtained through a motion capture device.
  • the multi-segment driving information respectively corresponds to different target parts of the virtual prop (such as part A or part B).
  • the motion capture device is arranged on the real prop.
  • the corresponding position (such as segment 1 or segment 2), the corresponding position of the real prop corresponds to the target part of the virtual prop.
  • the size of the virtual props can be the same as the size of the real props, or they can be different, as long as they are in proportion.
  • the complete driving information of the virtual prop can be determined based on the multiple pieces of driving information. It can be understood that in order to achieve better driving effects of virtual props, constraints need to be imposed during the fusion of multi-segment driving information to prevent abnormal situations from occurring. For example, in the specific fusion process, the position data in a certain piece of driving information can be selected based on the attribute information of the virtual prop, and the rotation data can be discarded. The specific data selection in the driving information needs to be determined according to the actual situation.
  • the multiple pieces of driving information can be fused based on the attribute information of the virtual prop to obtain the complete driving information.
  • the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop.
  • the structural form refers to structural characteristics and morphological characteristics.
  • the virtual props Based on the complete driving information, drive the virtual props to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs in the electronic device.
  • the 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
  • the virtual prop can be driven to move in the 3D scene based on the complete driving information, thereby realizing driving of the flexible virtual prop.
  • each part of the flexible virtual prop is regarded as a target for driving.
  • each part will also achieve the corresponding driving effect, so that the virtual props can display a complete driving effect, and the display form will not be distorted due to the deformation of certain parts, thereby improving the performance of flexible virtual props. Display effect under deformation state.
  • the following (1) to (2) when determining the complete driving information of the virtual prop based on the multi-segment driving information, the following (1) to (2) may be included:
  • the virtual prop is a bag as an example.
  • the virtual prop can then be driven.
  • Display there will be a connection point where two adjacent pieces of driving information are connected (such as S1 and S2, S2 and S3), which will cause the strap of the bag to show the driving effect as shown in Figure 3, thus affecting the user's viewing experience. .
  • the target data in the multi-segment driving information can be determined based on the attribute information of the virtual prop (bag strap), and then the multi-segment driving information can be The target data in the information is fitted to obtain the complete driving information.
  • data fitting is performed through multiple segments of data (as eigenvalues), so that the target data in the two adjacent segments of driving information transitions. connection, thereby achieving the soft effect of the bag strap.
  • step S102 when determining the complete driving information of the virtual prop based on the multi-segment driving information, the following S1021 to S1024 may be included:
  • S1022 Eliminate data that does not meet the preset conditions to obtain multiple pieces of target driving information.
  • step S1024 can be performed to directly merge the multiple pieces of driving information.
  • the driving information can be fused to obtain complete driving information; if there is data that does not meet the preset conditions in the multiple segments of driving information, step S1022 needs to be performed to eliminate the data that does not meet the preset conditions to obtain multiple segments of target driving information.
  • data that does not meet the preset conditions may exist in at least one piece of the multi-piece driving information, or data that does not meet the preset conditions may exist in each piece of the multi-piece driving information.
  • the preset conditions can be specifically determined based on the attribute information of the virtual props, and are not limited here.
  • the noise data in each piece of driving information can be regarded as data that does not meet the preset conditions, where the noise data refers to data that is not related to the virtual props.
  • the virtual prop is a table tennis ball
  • the motion area range of the table tennis ball can be determined based on the previous frame image.
  • the data in the driving information includes data outside the motion area range (such as data on the ground), then the motion area range of the table tennis ball can be determined based on the previous frame image. This data is determined to be noise data and needs to be removed.
  • data that does not meet the preset direction can be determined as data that does not meet the preset conditions
  • rotation data can also be determined as data that does not meet the preset conditions, which are not limited here.
  • the data that does not meet the preset conditions will be eliminated first and then fused. In this way, the accuracy of the complete driving information can be improved and the driving effect of the virtual props can be further improved.
  • the driver information corresponding to each part of the virtual prop is obtained.
  • some parts of the virtual prop lack corresponding drivers. Information situation occurs. Therefore, in order to ensure the integrity of the complete driving information of the virtual props, in some embodiments, for the above step S102, see Figure 6, based on the multiple pieces of driving information, determine the virtual props Complete driver information can include the following S102a ⁇ S102c:
  • S102a Determine whether the multi-segment driving information corresponds to the target part of the virtual prop.
  • the multi-segment driving information After obtaining the multi-segment driving information, it is necessary to determine whether the multi-segment driving information corresponds to the target part of the virtual prop. For example, whether the A target part has a corresponding 1-segment driving information. B. Whether there is a corresponding 2-segment driving information for the target part, and so on, until each target part of the virtual prop is confirmed.
  • S102b In the case where at least one target part lacks corresponding driving information, determine the first driving information of at least one first target part based on at least one part of the multi-segment driving information, and the first target part is missing Corresponds to the target part of the drive information.
  • the B target needs to be determined based on the existing 1-segment driving information and 3-segment driving information.
  • the first driving information of the part (the first target part). That is, the missing driving information (first driving information) can be determined based on the pieces of driving information that have been obtained.
  • a second target part that has a preset relationship (such as adjacent) with the first target part may be determined first, and then the determination may be based on the driving information corresponding to the second target part.
  • First driver information when determining the first driving information of the first target part, a second target part that has a preset relationship (such as adjacent) with the first target part may be determined first, and then the determination may be based on the driving information corresponding to the second target part.
  • S102c Obtain the complete driving information based on the multiple pieces of driving information and at least one piece of the first driving information.
  • each target part has corresponding driving information, and the complete driving information can be obtained based on the multiple segments of driving information and at least one segment of the first driving information.
  • the missing driving information is determined based on the obtained driving information, in this way, the driving effect of the target part lacking the driving information can be coordinated with other target parts, improving the performance of the virtual props in the absence of driving information. display effect.
  • the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possible The internal logic is determined.
  • the embodiments of the present disclosure also provide a driving device for virtual props corresponding to the driving method of the virtual props. Since the problem-solving principle of the device in the embodiments of the present disclosure is consistent with the driving method of the virtual props described above in the embodiments of the present disclosure, are similar, so the implementation of the device can refer to the implementation of the method, and repeated details will not be repeated.
  • FIG. 7 is a schematic diagram of a virtual prop driving device 500 provided by an embodiment of the present disclosure, the device includes:
  • a driving information acquisition module is used to obtain multi-segment driving information of virtual props; wherein the driving information is used to drive Move at least one part of the virtual prop, and the virtual prop is a virtual prop capable of deformation;
  • a driving information fusion module configured to determine the complete driving information of the virtual prop based on the multi-segment driving information
  • a virtual prop driving module used to drive the virtual props to move in the 3D scene based on the complete driving information; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs on the electronic In the device, the 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
  • the multi-segment driving information is obtained through a motion capture device, the multiple segments of driving information respectively correspond to different target parts of the virtual prop, and the motion capture device is set at a corresponding position of the real prop, so The corresponding position of the real prop corresponds to the target part of the virtual prop.
  • the driving information fusion module 502 is specifically used to:
  • the multiple pieces of driving information are fused to obtain the complete driving information.
  • the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. A sort of.
  • the driving information fusion module 502 is specifically used to:
  • the multiple pieces of target driving information are fused to obtain the complete driving information.
  • the driving information fusion module 502 is specifically used to:
  • At least one target part lacks corresponding driving information
  • the complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
  • the driving information fusion module 502 is specifically used to:
  • the target data in the multiple segments of driving information are fitted to obtain the complete driving information.
  • a schematic structural diagram of an electronic device 700 provided for an embodiment of the present disclosure includes a processor 701 , a memory 702 , and a bus 703 .
  • the memory 702 is used to store execution instructions, including the memory 7021 and the external memory 7022; the memory 7021 here is also called the internal memory, and is used to temporarily store the operation data in the processor 701, as well as the data exchanged with the external memory 7022 such as the hard disk,
  • the processor 701 exchanges data with the external memory 7022 through the memory 7021.
  • the memory 702 is specifically used to store application program code for executing the solution of the present application, and is controlled by the processor 701 for execution. That is, when the electronic device 700 is running, the processor 701 and the memory 702 communicate through the bus 703, so that the processor 701 executes the application code stored in the memory 702, and then executes the method described in any of the foregoing embodiments.
  • the memory 702 can be, but is not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), and can Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM read-only memory
  • PROM programmable read-only memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • the processor 701 may be an integrated circuit chip with signal processing capabilities.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DSP) or an application-specific integrated circuit (ASIC) , field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 700 .
  • the electronic device 700 may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • Embodiments of the present disclosure also provide a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the storage medium may be a volatile or non-volatile computer-readable storage medium.
  • Embodiments of the present disclosure also provide a computer program product.
  • the computer program product carries program code.
  • the instructions included in the program code can be used to execute the steps of the virtual prop driving method in the above method embodiment. For details, please refer to the above method. The embodiments will not be described again here.
  • the above-mentioned computer program product can be specifically implemented by hardware, software or a combination thereof.
  • the computer program product is embodied as a computer storage medium.
  • the computer program product is embodied as a software product, such as a Software Development Kit (SDK), etc. wait.
  • SDK Software Development Kit
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor.
  • the technical solution of the present disclosure is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present disclosure provides a virtual prop driving method and apparatus, an electronic device and a storage medium. The virtual prop driving method comprises: obtaining multi-segment driving information of a virtual prop, wherein the driving information is used for driving at least one part of the virtual prop, and the virtual prop is a virtual prop capable of deforming; determining complete driving information of the virtual prop on the basis of the multi-segment driving information; and on the basis of the complete driving information, driving the virtual prop to move in a 3D scene, wherein the 3D scene is generated after 3D scene information in a 3D rendering environment is rendered, the 3D rendering environment runs in an electronic device, the 3D scene information comprises virtual prop information, and the virtual prop information is used for generating the virtual prop after rendering. According to embodiments of the present application, the driving effect of a flexible virtual prop may be improved.

Description

虚拟道具的驱动方法、装置、电子设备及可读存储介质Driving method, device, electronic device and readable storage medium for virtual props
本申请要求于2022年03月21日提交中国专利局、申请号为202210279097.9、申请名称为“虚拟道具的驱动方法、装置、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on March 21, 2022, with the application number 202210279097.9 and the application name "Driving method, device, electronic device and readable storage medium for virtual props", all of which The contents are incorporated into this application by reference.
技术领域Technical field
本公开涉及虚拟道具驱动技术领域,具体而言,涉及一种虚拟道具的驱动方法、装置、电子设备和存储介质。The present disclosure relates to the field of virtual prop driving technology, and specifically, to a driving method, device, electronic device and storage medium for virtual props.
背景技术Background technique
相关技术中,虚拟直播的主要方法包括:通过动作捕捉设备获取关于演员(中之人)的动作表情数据的控制信号,并驱动虚拟形象动作。In related technologies, the main method of virtual live broadcast includes: obtaining control signals about the actor's (the person's) action expression data through a motion capture device, and driving the virtual image's movements.
在虚拟形象进行直播的过程中会涉及到与虚拟道具的互动,其中,虚拟道具的驱动与虚拟形象的驱动类似,通过动作捕捉设备获取关于真实道具的运动数据,并驱动虚拟道具运动。The process of live broadcasting of a virtual image will involve interaction with virtual props. The driving of virtual props is similar to the driving of virtual images. Movement data about real props are obtained through motion capture equipment and the movement of virtual props is driven.
然而,目前的虚拟道具通常为不会发生形变的刚性物体(如玻璃杯及话筒等),而针对能够发生形变的柔性虚拟道具(比如健身环),若仍采用刚性虚拟道具的动捕处理方式,将会导致一些动捕数据的丢失,进而导致柔性虚拟道具的展示形态失真。However, current virtual props are usually rigid objects that do not deform (such as glasses and microphones, etc.). For flexible virtual props that can deform (such as fitness rings), if the motion capture processing method of rigid virtual props is still used, , will lead to the loss of some motion capture data, which will lead to distortion of the display form of flexible virtual props.
发明内容Contents of the invention
本公开实施例至少提供一种虚拟道具的驱动方法、装置、电子设备及存储介质,可以提升柔性虚拟道具的驱动效果。Embodiments of the present disclosure at least provide a method, device, electronic device, and storage medium for driving virtual props, which can improve the driving effect of flexible virtual props.
本公开实施例提供了一种虚拟道具的驱动方法,包括:Embodiments of the present disclosure provide a driving method for virtual props, including:
获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具;Obtaining multiple pieces of driving information for virtual props; wherein the driving information is used to drive at least one part of the virtual props, and the virtual props are virtual props capable of deformation;
基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息;Based on the multiple pieces of driving information, determine the complete driving information of the virtual prop;
基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。Based on the complete driving information, the virtual props are driven to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, the 3D rendering environment runs in the electronic device, and the 3D scene The information includes virtual prop information, which is used to generate the virtual props after rendering.
本公开实施例中,由于虚拟道具的驱动完整驱动信息由多段驱动信息构成,也即,将柔性虚拟道具的各个部分分别视为一个目标来进行驱动,如此,即使在柔性虚拟道具发生形变的情况下,每个部分也会达到相应的驱动效果,进而使得虚拟道具展示完整的驱动效果,不会因为某部分发生形变而导致展示形态失真的情况发生,从而提升了柔性虚拟道具在发生形变状态下的展示效果。In the embodiment of the present disclosure, since the complete driving information of the virtual prop is composed of multiple segments of driving information, that is, each part of the flexible virtual prop is regarded as a target for driving. In this way, even when the flexible virtual prop is deformed, Under this condition, each part will also achieve the corresponding driving effect, so that the virtual props can display a complete driving effect, and the display form will not be distorted due to the deformation of a certain part, thus improving the performance of flexible virtual props under deformation. display effect.
在一种可能的实施方式中,所述多段驱动信息通过动作捕捉设备获取,所述多段驱动信息对应所述虚拟道具的不同目标部位,所述动作捕捉设备设置于真实道具的对应位置,所述真实道具的对应位置与所述虚拟道具的目标部位对应。In a possible implementation, the multi-segment driving information is obtained through a motion capture device, the multi-segment driving information corresponds to different target parts of the virtual prop, and the motion capture device is set at a corresponding position of the real prop, and the The corresponding position of the real prop corresponds to the target part of the virtual prop.
在一种可能的实施方式中,所述基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息,包括: In a possible implementation, determining the complete driving information of the virtual prop based on the multiple pieces of driving information includes:
基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息。Based on the attribute information of the virtual prop, the multiple pieces of driving information are fused to obtain the complete driving information.
本公开实施例中,基于所述虚拟道具的属性信息,可以使得得到的完整驱动信息与虚拟道具的属性更加符合,进而可以提升虚拟道具的驱动效果。In the embodiment of the present disclosure, based on the attribute information of the virtual prop, the obtained complete driving information can be more consistent with the attributes of the virtual prop, thereby improving the driving effect of the virtual prop.
在一种可能的实施方式中,所述虚拟道具的属性信息包括所述虚拟道具的类型、所述虚拟道具的形变方向、所述虚拟道具的形变范围、所述虚拟道具的结构形态中的至少一种。In a possible implementation, the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. A sort of.
在一种可能的实施方式中,所述基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息,包括:In a possible implementation, the multiple pieces of driving information are fused based on the attribute information of the virtual props to obtain the complete driving information, including:
基于所述虚拟道具的属性信息,确定所述多段驱动信息中的数据是否符合预设条件;Based on the attribute information of the virtual prop, determine whether the data in the multi-segment driving information meets the preset conditions;
将不符合所述预设条件的数据剔除,得到多段目标驱动信息;Eliminate data that does not meet the preset conditions to obtain multiple segments of target drive information;
将所述多段目标驱动信息进行融合,得到所述完整驱动信息。The multiple pieces of target driving information are fused to obtain the complete driving information.
本公开实施例中,在对多段驱动信息进行融合之前,先确定多段驱动信息中是否存在不符合预设条件的数据,若存在,则先将不符合预设条件的数据剔除,然后再进行融合,如此,可以提升完整驱动信息的准确性,进一步提升虚拟道具的驱动效果。In the embodiment of the present disclosure, before merging multiple segments of drive information, it is first determined whether there is data that does not meet the preset conditions in the multiple segments of drive information. If there is, the data that does not meet the preset conditions is first eliminated, and then the fusion is performed. , In this way, the accuracy of the complete driving information can be improved, and the driving effect of the virtual props can be further improved.
在一种可能的实施方式中,所述基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息,包括:In a possible implementation, determining the complete driving information of the virtual prop based on the multiple pieces of driving information includes:
确定所述多段驱动信息是否与所述虚拟道具的目标部位一一对应;Determine whether the multiple pieces of driving information correspond to the target part of the virtual prop;
在存在至少一个目标部位缺少对应的驱动信息的情况下,基于所述多段驱动信息中的至少一个部分,确定至少一个第一目标部位的第一驱动信息,所述第一目标部位为缺少对应驱动信息的目标部位;In the case where at least one target part lacks corresponding driving information, determine first driving information of at least one first target part based on at least one part of the plurality of pieces of driving information, and the first target part lacks corresponding driving information. The target part of the information;
基于所述多段驱动信息以及至少一段所述第一驱动信息,得到所述完整驱动信息。The complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
本公开实施例中,由于缺少的驱动信息是根据获得的驱动信息来确定的,如此,可以使得缺少驱动信息的目标部位的驱动效果与其他目标部位协调,提升了虚拟道具在缺少驱动信息情况下的展示效果。In the embodiment of the present disclosure, since the missing driving information is determined based on the obtained driving information, in this way, the driving effect of the target part lacking the driving information can be coordinated with other target parts, improving the performance of the virtual props in the absence of driving information. display effect.
在一种可能的实施方式中,所述基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息,包括:In a possible implementation, the multiple pieces of driving information are fused based on the attribute information of the virtual props to obtain the complete driving information, including:
基于所述虚拟道具的属性信息,确定所述多段驱动信息中的目标数据;Based on the attribute information of the virtual prop, determine the target data in the multi-segment driving information;
将所述多段驱动信息中的目标数据进行拟合,得到所述完整驱动信息。The target data in the multiple segments of driving information are fitted to obtain the complete driving information.
本公开实施例中,通过数据拟合,可以使得虚拟道具的各个目标部位之间的衔接平滑过渡,使得虚拟道具的展示效果更加贴合真实道具的效果,提升了用户的观看体验。In the embodiments of the present disclosure, through data fitting, the connection between each target part of the virtual props can be smoothly transitioned, so that the display effect of the virtual props is more consistent with the effect of the real props, and the user's viewing experience is improved.
本公开实施例提供了一种虚拟道具的驱动装置,包括:An embodiment of the present disclosure provides a driving device for virtual props, including:
驱动信息获取模块,用于获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具;A driving information acquisition module, used to obtain multiple pieces of driving information of virtual props; wherein the driving information is used to drive at least one part of the virtual props, and the virtual props are virtual props capable of deformation;
驱动信息融合模块,用于基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息;A driving information fusion module, configured to determine the complete driving information of the virtual prop based on the multi-segment driving information;
虚拟道具驱动模块,用于基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。 A virtual prop driving module, used to drive the virtual props to move in a 3D scene based on the complete driving information; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs on the electronic In the device, the 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
在一种可能的实施方式中,所述多段驱动信息通过动作捕捉设备获取,所述多段驱动信息分别对应所述虚拟道具的不同目标部位,所述动作捕捉设备设置于真实道具的对应位置,所述真实道具的对应位置与所述虚拟道具的目标部位对应。In a possible implementation, the multi-segment driving information is obtained through a motion capture device, the multiple segments of driving information respectively correspond to different target parts of the virtual prop, and the motion capture device is set at a corresponding position of the real prop, so The corresponding position of the real prop corresponds to the target part of the virtual prop.
在一种可能的实施方式中,所述驱动信息融合模块具体用于:In a possible implementation, the driving information fusion module is specifically used to:
基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息。Based on the attribute information of the virtual prop, the multiple pieces of driving information are fused to obtain the complete driving information.
在一种可能的实施方式中,所述虚拟道具的属性信息包括所述虚拟道具的类型、所述虚拟道具的形变方向、所述虚拟道具的形变范围、所述虚拟道具的结构形态中的至少一种。In a possible implementation, the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. A sort of.
在一种可能的实施方式中,所述驱动信息融合模块具体用于:In a possible implementation, the driving information fusion module is specifically used to:
基于所述虚拟道具的属性信息,确定所述多段驱动信息中的数据是否符合预设条件;Based on the attribute information of the virtual prop, determine whether the data in the multi-segment driving information meets the preset conditions;
将不符合所述预设条件的数据剔除,得到多段目标驱动信息;Eliminate data that does not meet the preset conditions to obtain multiple segments of target drive information;
将所述多段目标驱动信息进行融合,得到所述完整驱动信息。The multiple pieces of target driving information are fused to obtain the complete driving information.
在一种可能的实施方式中,所述驱动信息融合模块具体用于:In a possible implementation, the driving information fusion module is specifically used to:
确定所述多段驱动信息是否与所述虚拟道具的目标部位一一对应;Determine whether the multiple pieces of driving information correspond to the target part of the virtual prop;
在存在至少一个目标部位缺少对应的驱动信息的情况下,基于所述多段驱动信息中的至少一个部分,确定至少一个第一目标部位的第一驱动信息,所述第一目标部位为缺少对应驱动信息的目标部位;In the case where at least one target part lacks corresponding driving information, determine first driving information of at least one first target part based on at least one part of the plurality of pieces of driving information, and the first target part lacks corresponding driving information. The target part of the information;
基于所述多段驱动信息以及至少一段所述第一驱动信息,得到所述完整驱动信息。The complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
在一种可能的实施方式中,所述驱动信息融合模块具体用于:In a possible implementation, the driving information fusion module is specifically used to:
基于所述虚拟道具的属性信息,确定所述多段驱动信息中的目标数据;Based on the attribute information of the virtual prop, determine the target data in the multi-segment driving information;
将所述多段驱动信息中的目标数据进行拟合,得到所述完整驱动信息。The target data in the multiple segments of driving information are fitted to obtain the complete driving information.
本公开实施例提供了一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如上所述的虚拟道具的驱动方法。An embodiment of the present disclosure provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the Memories communicate with each other through a bus, and when the machine-readable instructions are executed by the processor, the virtual prop driving method as described above is performed.
本公开实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如上所述的虚拟道具的驱动方法。Embodiments of the present disclosure provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the computer program executes the virtual prop driving method as described above.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and understandable, preferred embodiments are given below and described in detail with reference to the accompanying drawings.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the drawings required to be used in the embodiments will be briefly introduced below. The drawings here are incorporated into the specification and constitute a part of this specification. These drawings are The drawings illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, without exerting creative efforts, they can also Other relevant drawings are obtained based on these drawings.
图1示出了本公开实施例所提供的第一种虚拟道具的驱动方法的流程图; Figure 1 shows a flow chart of a first virtual prop driving method provided by an embodiment of the present disclosure;
图2示出了本公开实施例所提供的一种虚拟道具的不同部位和各段驱动信息的对应关系示意图;Figure 2 shows a schematic diagram of the corresponding relationship between different parts of a virtual prop and each piece of driving information provided by an embodiment of the present disclosure;
图3示出了本公开实施例所提供的一种基于原始的多段驱动信息驱动虚拟道具的示意图;Figure 3 shows a schematic diagram of driving virtual props based on original multi-segment driving information provided by an embodiment of the present disclosure;
图4示出了本公开实施例所提供的一种基于拟合后的多段驱动信息驱动虚拟道具的示意图;Figure 4 shows a schematic diagram of driving virtual props based on fitted multi-segment driving information provided by an embodiment of the present disclosure;
图5示出了本公开实施例所提供的一种融合多段驱动信息的方法流程图;Figure 5 shows a flow chart of a method for merging multiple pieces of driving information provided by an embodiment of the present disclosure;
图6示出了本公开实施例所提供的另一种融合多段驱动信息的方法流程图;Figure 6 shows a flow chart of another method for fusing multiple pieces of driving information provided by an embodiment of the present disclosure;
图7示出了本公开实施例所提供的一种虚拟道具的驱动装置的结构示意图;Figure 7 shows a schematic structural diagram of a driving device for virtual props provided by an embodiment of the present disclosure;
图8示出了本公开实施例所提供的一种电子设备的示意图。FIG. 8 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some embodiments of the present disclosure, but not all embodiments. The components of the embodiments of the present disclosure generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the disclosure provided in the appended drawings is not intended to limit the scope of the claimed disclosure, but rather to represent selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without any creative efforts shall fall within the scope of protection of the present disclosure.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that similar reference numerals and letters represent similar items in the following figures, therefore, once an item is defined in one figure, it does not need further definition and explanation in subsequent figures.
本文中术语“和/或”,仅仅是描述一种关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article only describes an association relationship, indicating that three relationships can exist. For example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B alone exists. situation. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, and C, which can mean including from A, Any one or more elements selected from the set composed of B and C.
在虚拟形象直播场景中,通常会涉及到虚拟人物以及虚拟道具的动作驱动。目前的虚拟道具通常为不会发生形变的刚性物体(如玻璃杯及话筒等),而针对能够发生形变的柔性虚拟道具(比如健身环),若仍采用刚性虚拟道具的动捕处理方式,将导致柔性虚拟道具的展示形态失真。因此,如何提升针对柔性虚拟道具的驱动效果,是业界一直追求的目标。In a virtual image live broadcast scenario, it usually involves the action drive of virtual characters and virtual props. Current virtual props are usually rigid objects that do not deform (such as glasses and microphones, etc.). For flexible virtual props that can deform (such as fitness rings), if the motion capture processing method of rigid virtual props is still used, it will Resulting in distortion of the display form of flexible virtual props. Therefore, how to improve the driving effect of flexible virtual props is a goal that the industry has been pursuing.
本公开提供了一种虚拟道具的驱动方法,包括:The present disclosure provides a driving method for virtual props, including:
获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具;Obtaining multiple pieces of driving information for virtual props; wherein the driving information is used to drive at least one part of the virtual props, and the virtual props are virtual props capable of deformation;
基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息;Based on the multiple pieces of driving information, determine the complete driving information of the virtual prop;
基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。Based on the complete driving information, the virtual props are driven to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, the 3D rendering environment runs in the electronic device, and the 3D scene The information includes virtual prop information, which is used to generate the virtual props after rendering.
本公开实施例中,由于虚拟道具的驱动完整驱动信息由多段驱动信息构成,也即,将柔性虚拟道具的各个部分分别视为一个目标来进行驱动,如此,即使在柔性虚拟道具发生形变的情况下,每个部分也会达到相应的驱动效果,进而使得虚拟道具展示完整的驱动效 果,不会因为某部分发生形变而导致展示形态失真的情况发生,从而提升了柔性虚拟道具在发生形变状态下的展示效果。In the embodiment of the present disclosure, since the complete driving information of the virtual prop is composed of multiple segments of driving information, that is, each part of the flexible virtual prop is regarded as a target for driving. In this way, even when the flexible virtual prop is deformed, Next, each part will also achieve the corresponding driving effect, thus allowing the virtual props to display a complete driving effect. As a result, the display form will not be distorted due to deformation of certain parts, thereby improving the display effect of flexible virtual props in a deformed state.
本公开实施例所提供的虚拟道具的驱动方法的执行主体一般为具有一定计算能力的电子设备,该电子设备例如包括:终端设备或服务器或其它处理设备,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字处理(Personal Digital Assistant,PDA)、手持设备、车载设备、可穿戴设备等。该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云存储、大数据和人工智能平台等基础云计算服务的云服务器。此外,该虚拟道具的驱动方法可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。The execution subject of the virtual prop driving method provided by the embodiments of the present disclosure is generally an electronic device with certain computing capabilities. The electronic device includes, for example, a terminal device or a server or other processing device. The terminal device may be a user equipment (User Equipment). UE), mobile devices, user terminals, terminals, cellular phones, cordless phones, Personal Digital Assistant (PDA), handheld devices, vehicle-mounted devices, wearable devices, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a basic cloud that provides cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms. Cloud server for computing services. In addition, the driving method of the virtual prop can be implemented by the processor calling computer readable instructions stored in the memory.
参见图1所示,为本公开实施例提供的一种虚拟道具的驱动方法的流程图,该虚拟道具的驱动方法包括以下S101~S103:Referring to FIG. 1 , a flow chart of a driving method for virtual props provided by an embodiment of the present disclosure is shown. The driving method for virtual props includes the following S101 to S103:
S101,获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具。S101. Obtain multiple pieces of driving information of a virtual prop; wherein the driving information is used to drive at least one part of the virtual prop, and the virtual prop is a virtual prop capable of deformation.
示例性地,虚拟道具是指存在于3D场景中且能够与虚拟对象进行互动的物体。具体的,虚拟道具的类型可以根据具体演出内容所涉及到的具体情节而定,比如,虚拟道具可以是健身环、拎包等。另外,本公开实施例中的虚拟道具是指能够发生形变的柔性虚拟道具,也即,该虚拟道具的形态或者形状会发生改变。For example, virtual props refer to objects that exist in a 3D scene and can interact with virtual objects. Specifically, the type of virtual props can be determined according to the specific plot involved in the specific performance content. For example, the virtual props can be fitness rings, bags, etc. In addition, the virtual props in the embodiments of the present disclosure refer to flexible virtual props that can deform, that is, the form or shape of the virtual props can change.
其中,所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟对象信息以及虚拟道具信息,所述虚拟对象信息用于渲染后生成虚拟对象,所述虚拟道具信息用于渲染后生成所述虚拟道具,虚拟对象可以包括虚拟主播或者数字人。其中,虚拟主播的形象可以是动漫形象也可以是卡通形象。Wherein, the 3D scene is generated by rendering 3D scene information in a 3D rendering environment. The 3D rendering environment runs in an electronic device. The 3D scene information includes virtual object information and virtual prop information. The virtual object information is A virtual object is generated after rendering, and the virtual prop information is used to generate the virtual prop after rendering. The virtual object may include a virtual anchor or a digital person. Among them, the image of the virtual anchor can be an animation image or a cartoon image.
示例性地,3D场景信息可以运行于计算机CPU(Central Processing Uni,中央处理器)、GPU(Graphics Processing Unit,图形处理器)以及存储器中,其包含网格化的模型信息以及和贴图纹理信息。相应地,作为示例,虚拟道具信息或者虚拟对象信息包含但不限于网格化的模型数据、体素数据及贴图纹理数据或者其组合。其中,网格包括但不限于三角形网格、四边形网格、其他多边形网格或者其组合。本公开实施例中,网格为三角形网格。For example, the 3D scene information can be run on the computer CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit, graphics processor) and memory, which includes gridded model information and texture information. Accordingly, as an example, virtual prop information or virtual object information includes, but is not limited to, gridded model data, voxel data, and texture data, or combinations thereof. Among them, the mesh includes but is not limited to triangular mesh, quadrilateral mesh, other polygon mesh or combinations thereof. In the embodiment of the present disclosure, the mesh is a triangular mesh.
3D场景信息在3D渲染环境下进行渲染,可以生成3D场景。3D渲染环境可以是运行于电子设备中的3D引擎,能够基于待渲染数据生成基于一个或者多个视角的影像信息。虚拟对象信息是存在于3D引擎中的角色模型,能够在渲染后生成相应的虚拟对象。虚拟道具信息是存在于3D引擎中的道具模型,能够在渲染后生成相应的虚拟道具。The 3D scene information is rendered in a 3D rendering environment to generate a 3D scene. The 3D rendering environment may be a 3D engine running in an electronic device, capable of generating image information based on one or more perspectives based on the data to be rendered. Virtual object information is a character model that exists in the 3D engine and can generate corresponding virtual objects after rendering. Virtual prop information is a prop model that exists in the 3D engine and can generate corresponding virtual props after rendering.
在一些实施方式中,虚拟对象的一种形态是对演员(中之人)进行动作捕捉,获取控制信号,进而驱动3D引擎中的虚拟对象动作,同时获取演员声音,将演员声音与虚拟对象画面融合,生成视频数据。In some embodiments, one form of virtual objects is to capture the motion of an actor (the person), obtain control signals, and then drive the virtual object movements in the 3D engine. At the same time, the actor's voice is acquired, and the actor's voice is combined with the virtual object screen. Fusion to generate video data.
类似地,虚拟道具的一种形态是通过对真实道具进行动作捕捉,获取真实道具的运动数据,进而基于该真实运动数据得到驱动信息。其中,真实道具是指真实对象(演员)在表演过程中所使用的器物。该真实道具能够与该真实对象进行互动配合,进而达到预期的 演出效果。此外,针对不同的演出场景演出内容,所述使用的真实道具也不同。Similarly, one form of virtual props is to obtain motion data of real props through motion capture of real props, and then obtain driving information based on the real motion data. Among them, real props refer to the utensils used by real objects (actors) during the performance. The real props can interact with the real object to achieve the expected performance effect. In addition, for different performance scenes and content, the real props used are also different.
在一些实施方式中,可以预先在真实道具上设置多个光学标记点(比如可以由反光材料制成),然后可以通过光学设备捕捉真实道具的各个光学标记点的位置信息,进而获取真实道具的真实运动数据。其中,光学捕捉设备包括红外相机、RGB相机和深度相机中的至少一种,本公开实施例对光学捕捉设备的类型不加以限定。In some implementations, multiple optical marking points can be set on the real props in advance (for example, they can be made of reflective materials), and then the position information of each optical marking point of the real props can be captured through optical equipment, and then the position information of the real props can be obtained. Real sports data. The optical capture device includes at least one of an infrared camera, an RGB camera, and a depth camera. The embodiment of the present disclosure does not limit the type of the optical capture device.
示例性地,以真实道具和虚拟道具为健身环为例来进行说明,如图2所示,可以将真实道具划分为若干段,例如,将真实道具健身环划分为“1段”、“2段”、“3段”及“4段”,共四段,相应地,虚拟道具健身环相应的也划分为A部位、B部位、C部位及D部位四个部位。其中,真实道具的每个段与虚拟道具的每个部位一一对应,也即,可以在1段设置动作捕捉设备,通过1段设置的动作捕捉设备获取A部位的驱动信息,同理,通过4段设置的动作捕捉设备所获取的驱动信息来驱动D部位。For example, real props and virtual props are used as fitness rings as an example for explanation. As shown in Figure 2, the real props can be divided into several segments. For example, the real props fitness ring can be divided into "Segment 1" and "Segment 2". "Section", "Section 3" and "Section 4", a total of four sections. Correspondingly, the virtual prop fitness ring is also divided into four parts: A part, B part, C part and D part. Among them, each segment of the real prop corresponds one-to-one with each part of the virtual prop. That is, a motion capture device can be set up in segment 1, and the driving information of part A can be obtained through the motion capture device set in segment 1. In the same way, through The driving information obtained by the 4-segment motion capture device is used to drive the D part.
因此,在本实施方式中,所述多段驱动信息通过动作捕捉设备获取,多段驱动信息分别对应所述虚拟道具的不同目标部位(如A部位或者B部位),所述动作捕捉设备设置于真实道具的对应位置(如1段或者2段),所述真实道具的对应位置与所述虚拟道具的目标部位对应。Therefore, in this embodiment, the multi-segment driving information is obtained through a motion capture device. The multi-segment driving information respectively corresponds to different target parts of the virtual prop (such as part A or part B). The motion capture device is arranged on the real prop. The corresponding position (such as segment 1 or segment 2), the corresponding position of the real prop corresponds to the target part of the virtual prop.
需要说明的是,虚拟道具的尺寸与真实道具的尺寸可以相同,也可以不同,只要成比例即可。It should be noted that the size of the virtual props can be the same as the size of the real props, or they can be different, as long as they are in proportion.
S102,基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息。S102. Based on the multi-segment driving information, determine the complete driving information of the virtual prop.
示例性地,在获取到多段驱动信息之后,即可基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息。可以理解,为实现虚拟道具更好的驱动效果,在多段驱动信息融合的过程中需要进行约束,以防止异常情况发生。比如,在具体的融合过程中,可以根据虚拟道具的属性信息选取某一段驱动信息中的位置数据、丢掉旋转数据,具体的驱动信息中的数据取舍需要根据实际情况而定。For example, after obtaining multiple pieces of driving information, the complete driving information of the virtual prop can be determined based on the multiple pieces of driving information. It can be understood that in order to achieve better driving effects of virtual props, constraints need to be imposed during the fusion of multi-segment driving information to prevent abnormal situations from occurring. For example, in the specific fusion process, the position data in a certain piece of driving information can be selected based on the attribute information of the virtual prop, and the rotation data can be discarded. The specific data selection in the driving information needs to be determined according to the actual situation.
因此,在一些实施方式中,可以基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息。其中,所述虚拟道具的属性信息包括所述虚拟道具的类型、所述虚拟道具的形变方向、所述虚拟道具的形变范围、所述虚拟道具的结构形态中的至少一种。其中,该结构形态是指结构特征以及形态特征。Therefore, in some implementations, the multiple pieces of driving information can be fused based on the attribute information of the virtual prop to obtain the complete driving information. The attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. Among them, the structural form refers to structural characteristics and morphological characteristics.
示例性地,以健身环为例,请再次参阅图2,根据该虚拟道具的类型,确定该健身环在外力的作用下,只能沿着F方向向内凹陷,而不会向与F方向相反的方向发生形变,因此,在多段驱动信息进行融合时,将A部位对应的驱动信息中的不符合要求(与F方向相反的数据)的数据剔除,然后再进行融合,得到完整驱动信息。For example, taking a fitness ring as an example, please refer to Figure 2 again. According to the type of the virtual prop, it is determined that the fitness ring can only dent inward along the F direction under the action of external force, but not in the F direction. Deformation occurs in the opposite direction. Therefore, when merging multiple segments of drive information, the data that does not meet the requirements (data opposite to the direction of F) in the drive information corresponding to part A is removed, and then fused to obtain complete drive information.
S103,基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。S103. Based on the complete driving information, drive the virtual props to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs in the electronic device. The 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
示例性地,在得到虚拟道具的完整驱动信息之后,即可基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动,进而实现对柔性虚拟道具的驱动。For example, after obtaining the complete driving information of the virtual prop, the virtual prop can be driven to move in the 3D scene based on the complete driving information, thereby realizing driving of the flexible virtual prop.
本公开实施例中,由于虚拟道具的驱动完整驱动信息由多段驱动信息构成,也即,将柔性虚拟道具的各个部分分别视为一个目标来进行驱动,如此,即使在柔性虚拟道具发生 形变的情况下,每个部分也会达到相应的驱动效果,进而使得虚拟道具展示完整的驱动效果,不会因为某部分发生形变而导致展示形态失真的情况发生,从而提升了柔性虚拟道具在发生形变状态下的展示效果。In the embodiment of the present disclosure, since the complete driving information of the virtual prop is composed of multiple pieces of driving information, that is, each part of the flexible virtual prop is regarded as a target for driving. In this way, even if the flexible virtual prop occurs, In the case of deformation, each part will also achieve the corresponding driving effect, so that the virtual props can display a complete driving effect, and the display form will not be distorted due to the deformation of certain parts, thereby improving the performance of flexible virtual props. Display effect under deformation state.
在一些实施方式中,针对上述步骤S102,在基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息时,可以包括以下(1)~(2):In some embodiments, for the above step S102, when determining the complete driving information of the virtual prop based on the multi-segment driving information, the following (1) to (2) may be included:
(1)基于所述虚拟道具的属性信息,确定所述多段驱动信息中的目标数据;(1) Based on the attribute information of the virtual prop, determine the target data in the multi-segment driving information;
(2)将所述多段驱动信息中的目标数据进行拟合,得到所述完整驱动信息。(2) Fit the target data in the multi-segment driving information to obtain the complete driving information.
示例性地,以虚拟道具为拎包为例来进行说明,参见图3所示,在获取到多段驱动信息S1~S6后,若直接将多段驱动信息进行融合得到完整驱动信息,进而驱动虚拟道具进行展示,则会在相邻的两段驱动信息衔接的地方(比如S1与S2,S2与S3)出现衔接点,进而使得拎包的带子呈现如图3所示的驱动效果,进而影响用户的观看体验。For example, the virtual prop is a bag as an example. As shown in Figure 3, after obtaining multiple segments of drive information S1 to S6, if the multiple segments of drive information are directly fused to obtain complete drive information, the virtual prop can then be driven. Display, there will be a connection point where two adjacent pieces of driving information are connected (such as S1 and S2, S2 and S3), which will cause the strap of the bag to show the driving effect as shown in Figure 3, thus affecting the user's viewing experience. .
因此,为了提升带子的展示效果,以达到和真实拎包带子的效果类似,可以基于所述虚拟道具(拎包带子)的属性信息,确定所述多段驱动信息中的目标数据,然后将所述多段驱动信息中的目标数据进行拟合,得到所述完整驱动信息,如此,参见图4所示,通过多段数据(作为特征值)进行数据拟合,使得相邻的两段驱动信息中的目标数据过渡衔接,进而实现拎包带子柔软的效果。Therefore, in order to improve the display effect of the strap to achieve an effect similar to that of a real bag strap, the target data in the multi-segment driving information can be determined based on the attribute information of the virtual prop (bag strap), and then the multi-segment driving information can be The target data in the information is fitted to obtain the complete driving information. In this way, as shown in Figure 4, data fitting is performed through multiple segments of data (as eigenvalues), so that the target data in the two adjacent segments of driving information transitions. connection, thereby achieving the soft effect of the bag strap.
在另一些实施例中,参见图5所示,针对上述步骤S102,在基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息时,可以包括以下S1021~S1024:In other embodiments, as shown in FIG. 5 , for the above step S102, when determining the complete driving information of the virtual prop based on the multi-segment driving information, the following S1021 to S1024 may be included:
S1021,基于所述虚拟道具的属性信息,确定所述多段驱动信息中的数据是否存在不符合预设条件的数据;若是,则执行步骤S1022;若否,则执行步骤S1024。S1021. Based on the attribute information of the virtual prop, determine whether the data in the multi-segment driving information contains data that does not meet the preset conditions; if yes, execute step S1022; if not, execute step S1024.
S1022,将不符合所述预设条件的数据剔除,得到多段目标驱动信息。S1022: Eliminate data that does not meet the preset conditions to obtain multiple pieces of target driving information.
S1023,将所述多段目标驱动信息进行融合,得到所述完整驱动信息。S1023: Fusion of the multiple pieces of target drive information to obtain the complete drive information.
S1024,将所述多段驱动信息进行融合,得到所述完整驱动信息。S1024: Fusion of the multiple pieces of driving information to obtain the complete driving information.
示例性地,在对多段驱动信息进行融合之前,需要确定多段驱动信息中的数据是否都符合预设条件,若多段驱动信息中的数据都符合预设条件,则可以执行步骤S1024,直接将多段驱动信息进行融合即可,得到完整驱动信息;若多段驱动信息中,存在不符合预设条件的数据,则需要执行步骤S1022,将不符合预设条件的数据剔除,得到多段目标驱动信息。For example, before fusing multiple pieces of driving information, it is necessary to determine whether the data in the multiple pieces of driving information all meet the preset conditions. If the data in the multiple pieces of driving information all meet the preset conditions, step S1024 can be performed to directly merge the multiple pieces of driving information. The driving information can be fused to obtain complete driving information; if there is data that does not meet the preset conditions in the multiple segments of driving information, step S1022 needs to be performed to eliminate the data that does not meet the preset conditions to obtain multiple segments of target driving information.
需要说明的是,可以是多段驱动信息中的至少一段驱动信息中存在不符合预设条件的数据,也可以是多段驱动信息中的每段驱动信息中都存在不符合预设条件的数据。It should be noted that data that does not meet the preset conditions may exist in at least one piece of the multi-piece driving information, or data that does not meet the preset conditions may exist in each piece of the multi-piece driving information.
其中,预设条件可以根据虚拟道具的属性信息来具体确定,在此不做限定。例如,可以将每段驱动信息中的噪点数据,视为不符合预设条件的数据,其中,噪点数据是指与所述虚拟道具不相关的数据。若虚拟道具为乒乓球,则根据可以根据前帧图像确定乒乓球的运动区域范围,此时,若驱动信息中的数据包括运动区域范围之外的数据(如地面上的数据),则可以将该数据确定为噪点数据,需要剔除。Among them, the preset conditions can be specifically determined based on the attribute information of the virtual props, and are not limited here. For example, the noise data in each piece of driving information can be regarded as data that does not meet the preset conditions, where the noise data refers to data that is not related to the virtual props. If the virtual prop is a table tennis ball, the motion area range of the table tennis ball can be determined based on the previous frame image. At this time, if the data in the driving information includes data outside the motion area range (such as data on the ground), then the motion area range of the table tennis ball can be determined based on the previous frame image. This data is determined to be noise data and needs to be removed.
又例如,可以将不符合预设方向的数据确定为不符合预设条件的数据,还可以将旋转数据确定为不符合预设条件的数据,在此不做限定。For another example, data that does not meet the preset direction can be determined as data that does not meet the preset conditions, and rotation data can also be determined as data that does not meet the preset conditions, which are not limited here.
本公开实施例中,在对多段驱动信息进行融合之前,先确定多段驱动信息中是否存在 不符合预设条件的数据,若存在,则先将不符合预设条件的数据剔除,然后再进行融合,如此,可以提升完整驱动信息的准确性,进一步提升虚拟道具的驱动效果。In the embodiment of the present disclosure, before fusing multiple pieces of driving information, it is first determined whether there are If the data that does not meet the preset conditions exists, the data that does not meet the preset conditions will be eliminated first and then fused. In this way, the accuracy of the complete driving information can be improved and the driving effect of the virtual props can be further improved.
通常情况下,会获取到虚拟道具的每个部位对应的驱动信息,然而,在一些情况下,由于动作捕捉设备异常,或者信息传输过程中出现异常,都会导致虚拟道具的一些部位缺少对应的驱动信息的情况发生,因此,为了保证虚拟道具的完整驱动信息的完整性,在一些实施方式中,针对上述步骤S102,参见图6所示,在基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息时,可以包括以下S102a~S102c:Normally, the driver information corresponding to each part of the virtual prop is obtained. However, in some cases, due to abnormalities in the motion capture device or abnormalities in the information transmission process, some parts of the virtual prop lack corresponding drivers. Information situation occurs. Therefore, in order to ensure the integrity of the complete driving information of the virtual props, in some embodiments, for the above step S102, see Figure 6, based on the multiple pieces of driving information, determine the virtual props Complete driver information can include the following S102a~S102c:
S102a,确定所述多段驱动信息是否与所述虚拟道具的目标部位一一对应。S102a. Determine whether the multi-segment driving information corresponds to the target part of the virtual prop.
示例性地,请再次参阅图2,在获取到多段驱动信息后,需要确定多段驱动信息是否与所述虚拟道具的目标部位一一对应,比如,A目标部位是否有对应的1段驱动信息,B目标部位是否存在对应的2段驱动信息,以此类推,直到虚拟道具的每个目标部位都确认完成。For example, please refer to Figure 2 again. After obtaining the multi-segment driving information, it is necessary to determine whether the multi-segment driving information corresponds to the target part of the virtual prop. For example, whether the A target part has a corresponding 1-segment driving information. B. Whether there is a corresponding 2-segment driving information for the target part, and so on, until each target part of the virtual prop is confirmed.
S102b,在存在至少一个目标部位缺少对应的驱动信息的情况下,基于所述多段驱动信息中的至少一个部分,确定至少一个第一目标部位的第一驱动信息,所述第一目标部位为缺少对应驱动信息的目标部位。S102b: In the case where at least one target part lacks corresponding driving information, determine the first driving information of at least one first target part based on at least one part of the multi-segment driving information, and the first target part is missing Corresponds to the target part of the drive information.
示例性地,若存在至少一个目标部位缺少对应的驱动信息,比如,若B目标部位缺少对应的2段驱动信息,则需要基于已有的1段驱动信息及3段驱动信息,来确定B目标部位(第一目标部位)的第一驱动信息。也即,可以根据已经获得的各段驱动信息来确定缺少的驱动信息(第一驱动信息)。For example, if there is at least one target part that lacks corresponding driving information, for example, if the B target part lacks the corresponding 2-segment driving information, then the B target needs to be determined based on the existing 1-segment driving information and 3-segment driving information. The first driving information of the part (the first target part). That is, the missing driving information (first driving information) can be determined based on the pieces of driving information that have been obtained.
因此,在确定第一目标部位的第一驱动信息时,可以先确定与第一目标部位存在预设关系(比如相邻)的第二目标部位,然后基于第二目标部位对应的驱动信息来确定第一驱动信息。Therefore, when determining the first driving information of the first target part, a second target part that has a preset relationship (such as adjacent) with the first target part may be determined first, and then the determination may be based on the driving information corresponding to the second target part. First driver information.
S102c,基于所述多段驱动信息以及至少一段所述第一驱动信息,得到所述完整驱动信息。S102c: Obtain the complete driving information based on the multiple pieces of driving information and at least one piece of the first driving information.
可以理解,在确定第一驱动信息后,每个目标部位都有了对应的驱动信息,可以根据基于所述多段驱动信息以及至少一段所述第一驱动信息,得到所述完整驱动信息。It can be understood that after the first driving information is determined, each target part has corresponding driving information, and the complete driving information can be obtained based on the multiple segments of driving information and at least one segment of the first driving information.
本公开实施例中,由于缺少的驱动信息是根据获得的驱动信息来确定的,如此,可以使得缺少驱动信息的目标部位的驱动效果与其他目标部位协调,提升了虚拟道具在缺少驱动信息情况下的展示效果。In the embodiment of the present disclosure, since the missing driving information is determined based on the obtained driving information, in this way, the driving effect of the target part lacking the driving information can be coordinated with other target parts, improving the performance of the virtual props in the absence of driving information. display effect.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned methods of specific embodiments, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be based on its function and possible The internal logic is determined.
基于同一技术构思,本公开实施例中还提供了与虚拟道具的驱动方法对应的虚拟道具的驱动装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述虚拟道具的驱动方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same technical concept, the embodiments of the present disclosure also provide a driving device for virtual props corresponding to the driving method of the virtual props. Since the problem-solving principle of the device in the embodiments of the present disclosure is consistent with the driving method of the virtual props described above in the embodiments of the present disclosure, are similar, so the implementation of the device can refer to the implementation of the method, and repeated details will not be repeated.
参照图7所示,为本公开实施例提供的一种虚拟道具的驱动装置500的示意图,所述装置包括:Referring to FIG. 7 , which is a schematic diagram of a virtual prop driving device 500 provided by an embodiment of the present disclosure, the device includes:
驱动信息获取模块,用于获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱 动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具;A driving information acquisition module is used to obtain multi-segment driving information of virtual props; wherein the driving information is used to drive Move at least one part of the virtual prop, and the virtual prop is a virtual prop capable of deformation;
驱动信息融合模块,用于基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息;A driving information fusion module, configured to determine the complete driving information of the virtual prop based on the multi-segment driving information;
虚拟道具驱动模块,用于基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。A virtual prop driving module, used to drive the virtual props to move in the 3D scene based on the complete driving information; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs on the electronic In the device, the 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
在一种可能的实施方式中,所述多段驱动信息通过动作捕捉设备获取,所述多段驱动信息分别对应所述虚拟道具的不同目标部位,所述动作捕捉设备设置于真实道具的对应位置,所述真实道具的对应位置与所述虚拟道具的目标部位对应。In a possible implementation, the multi-segment driving information is obtained through a motion capture device, the multiple segments of driving information respectively correspond to different target parts of the virtual prop, and the motion capture device is set at a corresponding position of the real prop, so The corresponding position of the real prop corresponds to the target part of the virtual prop.
在一种可能的实施方式中,所述驱动信息融合模块502具体用于:In a possible implementation, the driving information fusion module 502 is specifically used to:
基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息。Based on the attribute information of the virtual prop, the multiple pieces of driving information are fused to obtain the complete driving information.
在一种可能的实施方式中,所述虚拟道具的属性信息包括所述虚拟道具的类型、所述虚拟道具的形变方向、所述虚拟道具的形变范围、所述虚拟道具的结构形态中的至少一种。In a possible implementation, the attribute information of the virtual prop includes at least one of the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. A sort of.
在一种可能的实施方式中,所述驱动信息融合模块502具体用于:In a possible implementation, the driving information fusion module 502 is specifically used to:
基于所述虚拟道具的属性信息,确定所述多段驱动信息中的数据是否符合预设条件;Based on the attribute information of the virtual prop, determine whether the data in the multi-segment driving information meets the preset conditions;
将不符合所述预设条件的数据剔除,得到多段目标驱动信息;Eliminate data that does not meet the preset conditions to obtain multiple segments of target drive information;
将所述多段目标驱动信息进行融合,得到所述完整驱动信息。The multiple pieces of target driving information are fused to obtain the complete driving information.
在一种可能的实施方式中,所述驱动信息融合模块502具体用于:In a possible implementation, the driving information fusion module 502 is specifically used to:
确定所述多段驱动信息是否与所述虚拟道具的目标部位一一对应;Determine whether the multiple pieces of driving information correspond to the target part of the virtual prop;
在存在至少一个目标部位缺少对应的驱动信息的情况下,基于所述多段驱动信息中的至少一个部分,确定至少一个第一目标部位的第一驱动信息,所述第一目标部位为缺少对应驱动信息的目标部位;In the case where at least one target part lacks corresponding driving information, determine first driving information of at least one first target part based on at least one part of the plurality of pieces of driving information, and the first target part lacks corresponding driving information. The target part of the information;
基于所述多段驱动信息以及至少一段所述第一驱动信息,得到所述完整驱动信息。The complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
在一种可能的实施方式中,所述驱动信息融合模块502具体用于:In a possible implementation, the driving information fusion module 502 is specifically used to:
基于所述虚拟道具的属性信息,确定所述多段驱动信息中的目标数据;Based on the attribute information of the virtual prop, determine the target data in the multi-segment driving information;
将所述多段驱动信息中的目标数据进行拟合,得到所述完整驱动信息。The target data in the multiple segments of driving information are fitted to obtain the complete driving information.
关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For a description of the processing flow of each module in the device and the interaction flow between the modules, please refer to the relevant descriptions in the above method embodiments, and will not be described in detail here.
基于同一技术构思,本公开实施例还提供了一种电子设备。参照图8所示,为本公开实施例提供的电子设备700的结构示意图,包括处理器701、存储器702、和总线703。其中,存储器702用于存储执行指令,包括内存7021和外部存储器7022;这里的内存7021也称内存储器,用于暂时存放处理器701中的运算数据,以及与硬盘等外部存储器7022交换的数据,处理器701通过内存7021与外部存储器7022进行数据交换。Based on the same technical concept, embodiments of the present disclosure also provide an electronic device. Referring to FIG. 8 , a schematic structural diagram of an electronic device 700 provided for an embodiment of the present disclosure includes a processor 701 , a memory 702 , and a bus 703 . Among them, the memory 702 is used to store execution instructions, including the memory 7021 and the external memory 7022; the memory 7021 here is also called the internal memory, and is used to temporarily store the operation data in the processor 701, as well as the data exchanged with the external memory 7022 such as the hard disk, The processor 701 exchanges data with the external memory 7022 through the memory 7021.
本申请实施例中,存储器702具体用于存储执行本申请方案的应用程序代码,并由处理器701来控制执行。也即,当电子设备700运行时,处理器701与存储器702之间通过总线703通信,使得处理器701执行存储器702中存储的应用程序代码,进而执行前述任一实施例中所述的方法。 In the embodiment of the present application, the memory 702 is specifically used to store application program code for executing the solution of the present application, and is controlled by the processor 701 for execution. That is, when the electronic device 700 is running, the processor 701 and the memory 702 communicate through the bus 703, so that the processor 701 executes the application code stored in the memory 702, and then executes the method described in any of the foregoing embodiments.
其中,存储器702可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。Among them, the memory 702 can be, but is not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), and can Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc.
处理器701可能是一种集成电路芯片,具有信号的处理能力。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 701 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (DSP) or an application-specific integrated circuit (ASIC) , field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logical block diagram disclosed in the embodiment of the present invention can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备700的具体限定。在本申请另一些实施例中,电子设备700可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 700 . In other embodiments of the present application, the electronic device 700 may include more or less components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中的虚拟道具的驱动方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the virtual prop driving method in the above method embodiment are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.
本公开实施例还提供一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行上述方法实施例中的虚拟道具的驱动方法的步骤,具体可参见上述方法实施例,在此不再赘述。Embodiments of the present disclosure also provide a computer program product. The computer program product carries program code. The instructions included in the program code can be used to execute the steps of the virtual prop driving method in the above method embodiment. For details, please refer to the above method. The embodiments will not be described again here.
其中,上述计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。Among them, the above-mentioned computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium. In another optional embodiment, the computer program product is embodied as a software product, such as a Software Development Kit (SDK), etc. wait.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here. In the several embodiments provided in this disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some communication interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。 In addition, each functional unit in various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。 Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure and are used to illustrate the technical solutions of the present disclosure rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although refer to the foregoing The embodiments describe the present disclosure in detail. Those of ordinary skill in the art should understand that any person familiar with the technical field can still modify the technical solutions recorded in the foregoing embodiments within the technical scope disclosed in the present disclosure. Changes may be easily imagined, or equivalent substitutions may be made to some of the technical features; and these modifications, changes or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and shall be included in the present disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be determined by the protection scope of the claims.

Claims (11)

  1. 一种虚拟道具的驱动方法,包括:A driving method for virtual props, including:
    获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具;Obtaining multiple pieces of driving information for virtual props; wherein the driving information is used to drive at least one part of the virtual props, and the virtual props are virtual props capable of deformation;
    基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息;Based on the multiple pieces of driving information, determine the complete driving information of the virtual prop;
    基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。Based on the complete driving information, the virtual props are driven to move in the 3D scene; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, the 3D rendering environment runs in the electronic device, and the 3D scene The information includes virtual prop information, which is used to generate the virtual props after rendering.
  2. 根据权利要求1所述的方法,其中,所述多段驱动信息通过动作捕捉设备获取,所述多段驱动信息对应所述虚拟道具的不同目标部位,所述动作捕捉设备设置于真实道具的对应位置,所述真实道具的对应位置与所述虚拟道具的目标部位对应。The method according to claim 1, wherein the multi-segment driving information is obtained through a motion capture device, the multi-segment driving information corresponds to different target parts of the virtual prop, and the motion capture device is arranged at a corresponding position of the real prop, The corresponding position of the real prop corresponds to the target part of the virtual prop.
  3. 根据权利要求1所述的方法,其中,所述基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息,包括:The method according to claim 1, wherein determining the complete driving information of the virtual prop based on the multiple pieces of driving information includes:
    基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息。Based on the attribute information of the virtual prop, the multiple pieces of driving information are fused to obtain the complete driving information.
  4. 根据权利要求3所述的方法,其中,所述虚拟道具的属性信息包括所述虚拟道具的类型、所述虚拟道具的形变方向、所述虚拟道具的形变范围、所述虚拟道具的结构形态中的至少一种。The method according to claim 3, wherein the attribute information of the virtual prop includes the type of the virtual prop, the deformation direction of the virtual prop, the deformation range of the virtual prop, and the structural form of the virtual prop. of at least one.
  5. 根据权利要求3所述的方法,其中,所述基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息,包括:The method according to claim 3, wherein the multiple pieces of driving information are fused based on the attribute information of the virtual prop to obtain the complete driving information, including:
    基于所述虚拟道具的属性信息,确定所述多段驱动信息中的数据是否符合预设条件;Based on the attribute information of the virtual prop, determine whether the data in the multi-segment driving information meets the preset conditions;
    将不符合所述预设条件的数据剔除,得到多段目标驱动信息;Eliminate data that does not meet the preset conditions to obtain multiple segments of target drive information;
    将所述多段目标驱动信息进行融合,得到所述完整驱动信息。The multiple pieces of target driving information are fused to obtain the complete driving information.
  6. 根据权利要求2所述的方法,其中,所述基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息,包括:The method of claim 2, wherein determining the complete driving information of the virtual prop based on the multiple segments of driving information includes:
    确定所述多段驱动信息是否与所述虚拟道具的目标部位一一对应;Determine whether the multiple pieces of driving information correspond to the target part of the virtual prop;
    在存在至少一个目标部位缺少对应的驱动信息的情况下,基于所述多段驱动信息中的至少一个部分,确定至少一个第一目标部位的第一驱动信息,所述第一目标部位为缺少对应驱动信息的目标部位;In the case where at least one target part lacks corresponding driving information, determine first driving information of at least one first target part based on at least one part of the plurality of pieces of driving information, and the first target part lacks corresponding driving information. The target part of the information;
    基于所述多段驱动信息以及至少一段所述第一驱动信息,得到所述完整驱动信息。The complete driving information is obtained based on the plurality of pieces of driving information and at least one piece of the first driving information.
  7. 根据权利要求3所述的方法,其中,所述基于所述虚拟道具的属性信息,将所述多段驱动信息进行融合,得到所述完整驱动信息,包括:The method according to claim 3, wherein the multiple pieces of driving information are fused based on the attribute information of the virtual prop to obtain the complete driving information, including:
    基于所述虚拟道具的属性信息,确定所述多段驱动信息中的目标数据;Based on the attribute information of the virtual prop, determine the target data in the multi-segment driving information;
    将所述多段驱动信息中的目标数据进行拟合,得到所述完整驱动信息。The target data in the multiple segments of driving information are fitted to obtain the complete driving information.
  8. 一种虚拟道具的驱动装置,包括:A driving device for virtual props, including:
    驱动信息获取模块,用于获取虚拟道具的多段驱动信息;其中,所述驱动信息用于驱动所述虚拟道具的至少一个部分,且所述虚拟道具为能够发生形变的虚拟道具; A driving information acquisition module, used to obtain multiple pieces of driving information of virtual props; wherein the driving information is used to drive at least one part of the virtual props, and the virtual props are virtual props capable of deformation;
    驱动信息融合模块,用于基于所述多段驱动信息,确定所述虚拟道具的完整驱动信息;A driving information fusion module, configured to determine the complete driving information of the virtual prop based on the multi-segment driving information;
    虚拟道具驱动模块,用于基于所述完整驱动信息,驱动所述虚拟道具在3D场景中运动;所述3D场景由3D渲染环境中的3D场景信息渲染后生成,所述3D渲染环境运行于电子设备中,所述3D场景信息包含虚拟道具信息,所述虚拟道具信息用于渲染后生成所述虚拟道具。A virtual prop driving module, used to drive the virtual props to move in a 3D scene based on the complete driving information; the 3D scene is generated by rendering the 3D scene information in the 3D rendering environment, and the 3D rendering environment runs on the electronic In the device, the 3D scene information includes virtual prop information, and the virtual prop information is used to generate the virtual props after rendering.
  9. 一种电子设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当所述电子设备运行时,所述处理器与所述存储器之间通过所述总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1-7任一所述的虚拟道具的驱动方法。An electronic device includes: a processor, a memory and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the memory are connected via When the bus communication and the machine-readable instructions are executed by the processor, the virtual prop driving method according to any one of claims 1-7 is executed.
  10. 一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1-7任一所述的虚拟道具的驱动方法。A computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the computer program executes the virtual prop driving method according to any one of claims 1-7.
  11. 一种计算机程序产品,该计算机程序产品承载有程序代码,所述程序代码包括的指令可用于执行如权利要求1至7任意一项所述的虚拟道具的驱动方法的步骤。 A computer program product, the computer program product carries a program code, and the instructions included in the program code can be used to execute the steps of the virtual prop driving method according to any one of claims 1 to 7.
PCT/CN2023/077873 2022-03-21 2023-02-23 Virtual prop driving method and apparatus, electronic device and readable storage medium WO2023179292A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210279097.9 2022-03-21
CN202210279097.9A CN114618163A (en) 2022-03-21 2022-03-21 Driving method and device of virtual prop, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023179292A1 true WO2023179292A1 (en) 2023-09-28

Family

ID=81904209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/077873 WO2023179292A1 (en) 2022-03-21 2023-02-23 Virtual prop driving method and apparatus, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN114618163A (en)
WO (1) WO2023179292A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114618163A (en) * 2022-03-21 2022-06-14 北京字跳网络技术有限公司 Driving method and device of virtual prop, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129793A (en) * 1993-11-02 1995-05-19 Canon Inc Device and method for image processing
WO2019109343A1 (en) * 2017-12-08 2019-06-13 深圳先进技术研究院 Target contour extraction method, apparatus and device, and storage medium
CN110705094A (en) * 2019-09-29 2020-01-17 深圳市商汤科技有限公司 Flexible body simulation method and device, electronic equipment and computer readable storage medium
CN111760284A (en) * 2020-08-12 2020-10-13 腾讯科技(深圳)有限公司 Virtual item control method, device, equipment and storage medium
CN112233253A (en) * 2020-12-14 2021-01-15 成都完美时空网络技术有限公司 Virtual sphere deformation control method and device, electronic equipment and storage medium
CN112587927A (en) * 2020-12-29 2021-04-02 苏州幻塔网络科技有限公司 Prop control method and device, electronic equipment and storage medium
CN113713383A (en) * 2021-09-10 2021-11-30 腾讯科技(深圳)有限公司 Throwing prop control method and device, computer equipment and storage medium
CN114618163A (en) * 2022-03-21 2022-06-14 北京字跳网络技术有限公司 Driving method and device of virtual prop, electronic equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109978975A (en) * 2019-03-12 2019-07-05 深圳市商汤科技有限公司 A kind of moving method and device, computer equipment of movement
CN110557625A (en) * 2019-09-17 2019-12-10 北京达佳互联信息技术有限公司 live virtual image broadcasting method, terminal, computer equipment and storage medium
CN111760265B (en) * 2020-06-24 2024-03-22 抖音视界有限公司 Operation control method and device
CN111880720B (en) * 2020-07-31 2022-05-27 北京市商汤科技开发有限公司 Virtual display method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129793A (en) * 1993-11-02 1995-05-19 Canon Inc Device and method for image processing
WO2019109343A1 (en) * 2017-12-08 2019-06-13 深圳先进技术研究院 Target contour extraction method, apparatus and device, and storage medium
CN110705094A (en) * 2019-09-29 2020-01-17 深圳市商汤科技有限公司 Flexible body simulation method and device, electronic equipment and computer readable storage medium
CN111760284A (en) * 2020-08-12 2020-10-13 腾讯科技(深圳)有限公司 Virtual item control method, device, equipment and storage medium
CN112233253A (en) * 2020-12-14 2021-01-15 成都完美时空网络技术有限公司 Virtual sphere deformation control method and device, electronic equipment and storage medium
CN112587927A (en) * 2020-12-29 2021-04-02 苏州幻塔网络科技有限公司 Prop control method and device, electronic equipment and storage medium
CN113713383A (en) * 2021-09-10 2021-11-30 腾讯科技(深圳)有限公司 Throwing prop control method and device, computer equipment and storage medium
CN114618163A (en) * 2022-03-21 2022-06-14 北京字跳网络技术有限公司 Driving method and device of virtual prop, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114618163A (en) 2022-06-14

Similar Documents

Publication Publication Date Title
US9852513B2 (en) Tracking regions of interest across video frames with corresponding depth maps
US11488346B2 (en) Picture rendering method and apparatus, storage medium, and electronic apparatus
US11557081B2 (en) Image processing apparatus, control method for an image processing apparatus, and medium
KR20210013150A (en) Lighting estimation
AU2019477545B2 (en) Methods for handling occlusion in augmented reality applications using memory and device tracking and related apparatus
WO2023179292A1 (en) Virtual prop driving method and apparatus, electronic device and readable storage medium
CN107851321A (en) Image processing method and dual camera system
US20190335162A1 (en) System that generates virtual viewpoint image, method and storage medium
US11044398B2 (en) Panoramic light field capture, processing, and display
CN108665415B (en) Image quality improving method and device based on deep learning
WO2022021217A1 (en) Multi-camera person association via pair-wise matching in continuous frames for immersive video
CN113426112A (en) Game picture display method and device, storage medium and electronic equipment
CN114697703A (en) Video data generation method and device, electronic equipment and storage medium
US20140161173A1 (en) System and method for controlling video encoding using content information
CN112714263B (en) Video generation method, device, equipment and storage medium
US10650488B2 (en) Apparatus, method, and computer program code for producing composite image
WO2022033162A1 (en) Model loading method and related apparatus
US20230131418A1 (en) Two-dimensional (2d) feature database generation
CN111754635B (en) Texture fusion method and device, electronic equipment and storage medium
US11295453B2 (en) Image processing apparatus, transmission method, and storage medium
US11471773B2 (en) Occlusion in mobile client rendered augmented reality environments
CN112752131B (en) Barrage information display method and device, storage medium and electronic device
US11830140B2 (en) Methods and systems for 3D modeling of an object by merging voxelized representations of the object
US20230177767A1 (en) Image processing apparatus, image processing method, and storage medium
WO2024087971A1 (en) Method and apparatus for image processing, and storage medium

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: 23773543

Country of ref document: EP

Kind code of ref document: A1