+

CN116320520A - Model animation rendering method and device, computer storage medium, electronic equipment - Google Patents

Model animation rendering method and device, computer storage medium, electronic equipment Download PDF

Info

Publication number
CN116320520A
CN116320520A CN202310294006.3A CN202310294006A CN116320520A CN 116320520 A CN116320520 A CN 116320520A CN 202310294006 A CN202310294006 A CN 202310294006A CN 116320520 A CN116320520 A CN 116320520A
Authority
CN
China
Prior art keywords
model
target
attribute
value
audio frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310294006.3A
Other languages
Chinese (zh)
Other versions
CN116320520B (en
Inventor
林哲生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202310294006.3A priority Critical patent/CN116320520B/en
Publication of CN116320520A publication Critical patent/CN116320520A/en
Application granted granted Critical
Publication of CN116320520B publication Critical patent/CN116320520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4852End-user interface for client configuration for modifying audio parameters, e.g. switching between mono and stereo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The disclosure belongs to the technical field of model animation rendering, and relates to a model animation rendering method and device, a computer storage medium and electronic equipment. The method comprises the following steps: obtaining model resource data of a target three-dimensional model, and analyzing a target audio frequency band corresponding to model attributes of the target three-dimensional model from the model resource data; collecting an audio stream corresponding to a target anchor in a live broadcasting room, and analyzing the audio stream to obtain model driving values corresponding to different audio frequency segments; and determining a target driving value corresponding to the target audio frequency band from the model driving values, and rendering model animation corresponding to the target three-dimensional model in the live broadcasting room based on the target driving value and the model resource data. In the method, the model animation is rendered based on the target model driving value and the model resource data, so that the correlation exists between the rendering of the model animation and the sound of the target anchor, the rendering effect of the model animation in the voice live broadcasting room is improved, and the visual experience of audiences is enhanced.

Description

模型动画渲染方法及装置、计算机存储介质、电子设备Model animation rendering method and device, computer storage medium, electronic equipment

技术领域technical field

本公开涉及模型动画渲染技术领域,尤其涉及一种模型动画渲染方法与模型动画渲染装置、计算机可读存储介质及电子设备。The present disclosure relates to the technical field of model animation rendering, and in particular, to a model animation rendering method, a model animation rendering device, a computer-readable storage medium, and electronic equipment.

背景技术Background technique

随着直播技术的发展,语音直播已经成为了一种主流直播方式。然而在语音直播过程中,往往会忽略观众视觉方面的感受。With the development of live broadcast technology, voice live broadcast has become a mainstream live broadcast method. However, in the process of live voice broadcast, the audience's visual experience is often ignored.

在相关技术中,通常使用特定的语音文件来驱动动画的显示,然而,这种方式显示出的动画效果与主播之间并不存在关联,且显示出的动画效果差,进而无法提高观众在语音直播间中的视觉感受。In related technologies, specific audio files are usually used to drive the display of animations. However, the animation effects displayed in this way are not related to the host, and the animation effects displayed are poor, which cannot improve the audience's voice awareness. The visual experience in the live broadcast room.

鉴于此,本领域亟需开发一种新的模型动画渲染方法及装置。In view of this, there is an urgent need in the art to develop a new method and device for rendering model animation.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above background section is only for enhancing the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.

发明内容Contents of the invention

本公开的目的在于提供一种模型动画渲染方法、模型动画渲染装置、计算机可读存储介质及电子设备,进而至少在一定程度上克服由于相关技术导致的观众在语音直播间中视觉感受差的问题。The purpose of the present disclosure is to provide a model animation rendering method, a model animation rendering device, a computer-readable storage medium, and an electronic device, so as to overcome at least to a certain extent the problem of poor visual experience of viewers in a voice broadcast room caused by related technologies .

本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or in part, be learned by practice of the present disclosure.

根据本发明实施例的第一个方面,提供一种模型动画渲染方法,所述方法包括:获取目标三维模型的模型资源数据,从所述模型资源数据中解析出与所述目标三维模型的模型属性对应的目标音频频段;采集与直播间中的目标主播对应的音频流,对所述音频流进行分析得到与不同音频频段对应的模型驱动值;在所述模型驱动值中确定出与所述目标音频频段对应的目标驱动值,基于所述目标驱动值以及所述模型资源数据,在所述直播间中渲染出与所述目标三维模型对应的模型动画。According to the first aspect of the embodiments of the present invention, there is provided a model animation rendering method, the method comprising: acquiring model resource data of a target 3D model, and parsing out a model corresponding to the target 3D model from the model resource data The target audio frequency band corresponding to the attribute; collect the audio stream corresponding to the target anchor in the live broadcast room, analyze the audio stream to obtain the model driving value corresponding to different audio frequency bands; determine the model driving value corresponding to the described model driving value The target driving value corresponding to the target audio frequency band, based on the target driving value and the model resource data, a model animation corresponding to the target three-dimensional model is rendered in the live broadcast room.

根据本发明实施例的第二个方面,提供一种模型资源数据生成方法,所述方法包括:导入目标三维模型,显示与所述目标三维模型对应的配置界面;所述配置界面中包括与所述目标三维模型的模型属性对应的第一配置区域以及与所述模型属性对应的目标音频频段的第二配置区域;响应作用于所述第一配置区域中的第一选择操作,得到与所述第一选择操作对应的所述模型属性;响应作用于所述第二配置区域中的第二选择操作,得到与所述第二选择操作对应的所述目标音频频段;基于所述模型属性以及所述目标音频频段,生成与所述目标三维模型对应的模型资源数据。According to the second aspect of the embodiments of the present invention, there is provided a method for generating model resource data, the method comprising: importing a target three-dimensional model, and displaying a configuration interface corresponding to the target three-dimensional model; the configuration interface includes information related to the target three-dimensional model The first configuration area corresponding to the model attribute of the target three-dimensional model and the second configuration area of the target audio frequency band corresponding to the model attribute; in response to the first selection operation acting on the first configuration area, obtain the The model attribute corresponding to the first selection operation; in response to the second selection operation acting on the second configuration area, the target audio frequency band corresponding to the second selection operation is obtained; based on the model attribute and the The target audio frequency band is used to generate model resource data corresponding to the target three-dimensional model.

根据本发明实施例的第三个方面,提供一种模型动画渲染装置,所述装置包括:解析模块,被配置为获取目标三维模型的模型资源数据,从所述模型资源数据中解析出与所述三维模型的模型属性对应的目标音频频段;采集模块,被配置为采集与直播间中的目标主播对应的音频流,对所述音频流进行分析得到与不同音频频段对应的模型驱动值;渲染模块,被配置为在所述模型驱动值中确定出与所述目标音频频段对应的目标驱动值,基于所述目标驱动值以及所述模型资源数据,在所述直播间中渲染出与所述目标三维模型对应的模型动画。According to a third aspect of the embodiments of the present invention, there is provided a model animation rendering device, the device comprising: an analysis module configured to acquire model resource data of a target 3D model, and analyze from the model resource data the data related to the model animation The target audio frequency band corresponding to the model attribute of the three-dimensional model; the collection module is configured to collect the audio stream corresponding to the target anchor in the live broadcast room, and analyze the audio stream to obtain the model driving value corresponding to different audio frequency bands; rendering A module configured to determine a target driving value corresponding to the target audio frequency band from the model driving values, and based on the target driving value and the model resource data, render a The model animation corresponding to the target 3D model.

根据本发明实施例的第四个方面,提供一种模型资源数据生成装置,所述装置包括:导入模块,被配置为导入目标三维模型,显示与所述目标三维模型对应的配置界面;所述配置界面中包括与所述目标三维模型的模型属性对应的第一配置区域以及与所述模型属性对应的目标音频频段的第二配置区域;第一响应模块,被配置为响应作用于所述第一配置区域中的第一选择操作,得到与所述第一选择操作对应的所述模型属性;第二响应模块,被配置为响应作用于所述第二配置区域中的第二选择操作,得到与所述第二选择操作对应的所述目标音频频段;生成模块,被配置为基于所述模型属性以及所述目标音频频段,生成与所述目标三维模型对应的模型资源数据。According to a fourth aspect of the embodiments of the present invention, there is provided a device for generating model resource data, the device comprising: an import module configured to import a target 3D model and display a configuration interface corresponding to the target 3D model; The configuration interface includes a first configuration area corresponding to the model attribute of the target three-dimensional model and a second configuration area corresponding to the target audio frequency band corresponding to the model attribute; the first response module is configured to respond to the first configuration area A first selection operation in a configuration area, to obtain the model attribute corresponding to the first selection operation; a second response module configured to respond to a second selection operation acting on the second configuration area, to obtain The target audio frequency band corresponding to the second selection operation; a generating module configured to generate model resource data corresponding to the target three-dimensional model based on the model attribute and the target audio frequency band.

根据本发明实施例的第五个方面,提供一种电子设备,包括:处理器和存储器;其中,存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时实现上述任意示例性实施例的方法。According to a fifth aspect of the embodiments of the present invention, there is provided an electronic device, including: a processor and a memory; wherein, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the above-mentioned The method of any of the exemplary embodiments.

根据本发明实施例的第六个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意示例性实施例中的方法。According to a sixth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method in any of the foregoing exemplary embodiments is implemented.

由上述技术方案可知,本发明示例性实施例中的模型动画渲染方法、模型动画渲染装置、计算机存储介质及电子设备至少具备以下优点和积极效果:It can be seen from the above technical solutions that the model animation rendering method, model animation rendering device, computer storage medium and electronic equipment in the exemplary embodiments of the present invention have at least the following advantages and positive effects:

在本公开的示例性实施例提供的方法及装置中,基于目标模型驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画,由于目标模型驱动值是对目标主播的音频流进行分析得到的,进而一方面,使得渲染出的模型动画与目标主播的声音之间存在关联性;另一方面,渲染出的模型动画为目标三维模型的动画,提高了语音直播间中模型动画的渲染效果,增强了观众的视觉体验。In the method and device provided by the exemplary embodiments of the present disclosure, based on the target model driving value and model resource data, the model animation corresponding to the target 3D model is rendered in the live broadcast room, because the target model driving value is the target anchor On the one hand, there is a correlation between the rendered model animation and the voice of the target anchor; on the other hand, the rendered model animation is the animation of the target 3D model, which improves the performance of the voice broadcast room. The rendering effect of model animation enhances the visual experience of the audience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Apparently, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can obtain other drawings according to these drawings without creative efforts.

图1示意性示出本公开实施例中模型动画渲染方法的流程示意图;FIG. 1 schematically shows a schematic flowchart of a model animation rendering method in an embodiment of the present disclosure;

图2示意性示出本公开实施例中模型动画渲染方法中对音频流进行分析得到与不同音频频段对应的模型驱动值的流程示意图;FIG. 2 schematically shows a schematic flow diagram of analyzing an audio stream to obtain model driving values corresponding to different audio frequency bands in a model animation rendering method in an embodiment of the present disclosure;

图3示意性示出本公开实施例中模型动画渲染方法中对音频流进行频域划分,得到初始振幅数据的流程示意图;FIG. 3 schematically shows a flow diagram of dividing an audio stream in the frequency domain to obtain initial amplitude data in a model animation rendering method in an embodiment of the present disclosure;

图4示意性示出本公开实施例中模型动画渲染方法中对更新后的振幅数据队列中的目标振幅数据进行计算得到模型驱动值的流程示意图;Fig. 4 schematically shows a schematic flowchart of calculating the target amplitude data in the updated amplitude data queue to obtain the model driving value in the model animation rendering method in the embodiment of the present disclosure;

图5示意性示出本公开实施例中模型动画渲染方法中基于目标驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画的流程示意图;FIG. 5 schematically shows a schematic flow diagram of rendering a model animation corresponding to a target 3D model in a live broadcast room based on a target driving value and model resource data in a model animation rendering method in an embodiment of the present disclosure;

图6示意性示出本公开实施例中模型动画渲染方法中在直播间中渲染出与目标三维模型对应的模型动画的流程示意图;FIG. 6 schematically shows a schematic flowchart of rendering a model animation corresponding to a target 3D model in a live broadcast room in a model animation rendering method in an embodiment of the present disclosure;

图7示意性示出本公开实施例中模型资源数据生成方法的流程示意图;FIG. 7 schematically shows a schematic flowchart of a method for generating model resource data in an embodiment of the present disclosure;

图8示意性示出本公开实施例中模型资源数据生成方法中更改模型资源数据的流程示意图;Fig. 8 schematically shows a schematic flow chart of changing model resource data in a method for generating model resource data in an embodiment of the present disclosure;

图9示意性示出本公开实施例中一种用于模型动画渲染方法的装置;FIG. 9 schematically shows an apparatus for a model animation rendering method in an embodiment of the present disclosure;

图10示意性示出本公开实施例中一种用于模型资源数据生成方法的装置;FIG. 10 schematically shows an apparatus for a method for generating model resource data in an embodiment of the present disclosure;

图11示意性示出本公开实施例中一种电子设备;Fig. 11 schematically shows an electronic device in an embodiment of the present disclosure;

图12示意性示出本公开实施例中一种计算机可读存储介质。Fig. 12 schematically shows a computer-readable storage medium in an embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details being omitted, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.

本说明书中使用用语“一个”、“一”、“该”和“所述”用以表示存在一个或多个要素/组成部分/等;用语“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;用语“第一”和“第二”等仅作为标记使用,不是对其对象的数量限制。The terms "a", "an", "the" and "the" are used in this specification to indicate the existence of one or more elements/components/etc.; the terms "comprising" and "having" are used to indicate an open Included means and means that there may be additional elements/components/etc. in addition to the listed elements/components/etc; the terms "first" and "second" etc. The number of its objects is limited.

此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities.

针对相关技术中存在的问题,本公开提出了一种模型动画渲染方法。图1示出了模型动画渲染方法的流程示意图,如图1所示,模型动画渲染方法至少包括以下步骤:Aiming at the problems existing in related technologies, the present disclosure proposes a model animation rendering method. Fig. 1 shows a schematic flow chart of a model animation rendering method. As shown in Fig. 1, the model animation rendering method at least includes the following steps:

步骤S110.获取目标三维模型的模型资源数据,从模型资源数据中解析出与目标三维模型的模型属性对应的目标音频频段。Step S110. Obtain model resource data of the target 3D model, and analyze the target audio frequency band corresponding to the model attribute of the target 3D model from the model resource data.

步骤S120.采集与直播间中的目标主播对应的音频流,对音频流进行分析得到与不同音频频段对应的模型驱动值。Step S120. Collect the audio stream corresponding to the target anchor in the live broadcast room, and analyze the audio stream to obtain model driving values corresponding to different audio frequency bands.

步骤S130.在模型驱动值中确定出与目标音频频段对应的目标驱动值,基于目标驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。Step S130. Determine the target driving value corresponding to the target audio frequency band from the model driving values, and render a model animation corresponding to the target 3D model in the live broadcast room based on the target driving value and model resource data.

在本公开的示例性实施例提供的方法及装置中,基于目标驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画,由于目标驱动值是对目标主播的音频流进行分析得到的,进而一方面,使得渲染出的模型动画与目标主播的声音之间存在关联性;另一方面,渲染出的模型动画为目标三维模型的动画,提高了直播间中模型动画的渲染效果,增强了观众的视觉体验。In the method and device provided by the exemplary embodiments of the present disclosure, based on the target driving value and model resource data, the model animation corresponding to the target 3D model is rendered in the live broadcast room, since the target driving value is the audio stream of the target anchor On the one hand, there is a correlation between the rendered model animation and the voice of the target anchor; on the other hand, the rendered model animation is the animation of the target 3D model, which improves the accuracy of the model animation in the live broadcast room. Rendering effects that enhance the viewer's visual experience.

下面对模型动画渲染方法的各个步骤进行详细说明。Each step of the model animation rendering method will be described in detail below.

在步骤S110中,获取目标三维模型的模型资源数据,从模型资源数据中解析出与目标三维模型的模型属性对应的目标音频频段。In step S110, the model resource data of the target three-dimensional model is obtained, and the target audio frequency band corresponding to the model attribute of the target three-dimensional model is analyzed from the model resource data.

在本公开的示例性实施例中,目标三维模型为需要在直播间中渲染出的模型,并且,目标三维模型区别于平面模型,是一种具有立体渲染效果的模型。目标三维模型可以是预设的三维模型,也可以是与主播之间存在一一映射关系的三维模型,本示例性实施例对此不做特殊限定。In an exemplary embodiment of the present disclosure, the target three-dimensional model is a model that needs to be rendered in a live broadcast room, and the target three-dimensional model is different from a plane model, and is a model with a three-dimensional rendering effect. The target 3D model may be a preset 3D model, or a 3D model that has a one-to-one mapping relationship with the host, which is not specifically limited in this exemplary embodiment.

模型资源数据指的是渲染目标三维模型时所必须的数据,具体地,模型资源数据中可以包括以图形语言传输格式保存的目标三维模型,还可以包括纹理文件(用于确定出目标三维模型所具有的纹理),还可以包括动画参数配置文件。其中,在动画参数配置文件中包括目标三维模型所具有的模型属性,还包括计算模型属性的属性值时所需要使用到的目标音频频段。The model resource data refers to the data necessary for rendering the target 3D model. Specifically, the model resource data may include the target 3D model saved in the graphics language transmission format, and may also include texture files (used to determine the target 3D model) have textures), and can also include animation parameter profiles. Wherein, the animation parameter configuration file includes the model attributes of the target three-dimensional model, and also includes the target audio frequency band that needs to be used when calculating the attribute values of the model attributes.

基于此,在获取到目标三维模型的模型资源数据之后,可以对模型资源数据进行解析,进而确定出模型资源数据中所包括的目标三维模型所具有的模型属性以及确定模型属性的属性值所需要使用到的目标音频频段。Based on this, after the model resource data of the target 3D model is obtained, the model resource data can be analyzed, and then the model attributes of the target 3D model included in the model resource data and the attributes required for determining the attribute values of the model attributes can be determined. The target audio frequency band to use.

在本示例性实施例中,一方面,获取的是具有立体渲染效果的目标三维模型,有助于后续渲染出视觉效果更好的模型动画;另一方面,对模型资源数据进行解析可以得到与目标三维模型的模型属性对应的目标音频频段,这为后续确定出目标驱动值,以根据目标驱动值以及模型资源数据,渲染出与目标三维模型对应的模型动画奠定了基础。In this exemplary embodiment, on the one hand, what is acquired is the target 3D model with a stereoscopic rendering effect, which is helpful for subsequent rendering of model animations with better visual effects; on the other hand, parsing the model resource data can obtain the The target audio frequency band corresponding to the model attribute of the target 3D model lays the foundation for subsequent determination of the target driving value to render the model animation corresponding to the target 3D model according to the target driving value and model resource data.

在步骤S120中,采集与直播间中的目标主播对应的音频流,对音频流进行分析得到与不同音频频段对应的模型驱动值。In step S120, the audio stream corresponding to the target host in the live broadcast room is collected, and the audio stream is analyzed to obtain model driving values corresponding to different audio frequency bands.

在本公开的示例性实施例中,无论是语音直播还是视频直播,在直播过程中,目标主播都会产生语音,进而终端可以对这些语音进行采集,以得到与目标主播对应的音频流。In an exemplary embodiment of the present disclosure, no matter it is a voice live broadcast or a video live broadcast, the target host will generate voices during the live broadcast, and the terminal can collect these voices to obtain an audio stream corresponding to the target host.

通过对音频流进行分析,可以分析出目标主播所发出的声音的强度的变化。不同的音频频段对应着不同的声音强度。例如,此时在语音直播间中发出声音的是目标主播A,进而,对目标主播A的声音进行采集,以得到与目标主播A对应的音频流L-1。对音频流L-1进行分析,可以得到与音频流L-1对应的声音频率以及与声音频率对应的频率振幅。基于此,可以确定出在这些频率振幅中属于高音频频段的频率振幅值,属于中音频频段的频率振幅值以及属于低音频频段的频率振幅值。By analyzing the audio stream, it is possible to analyze the change in the intensity of the sound made by the target anchor. Different audio frequency bands correspond to different sound intensities. For example, at this time, it is the target anchor A that makes a sound in the voice live broadcast room, and then, the voice of the target anchor A is collected to obtain the audio stream L-1 corresponding to the target anchor A. By analyzing the audio stream L-1, the sound frequency corresponding to the audio stream L-1 and the frequency amplitude corresponding to the sound frequency can be obtained. Based on this, among these frequency amplitudes, the frequency amplitude values belonging to the treble frequency range, the frequency amplitude values belonging to the middle frequency range and the frequency amplitude values belonging to the low frequency range can be determined.

对属于高音频频段的频率振幅值、属于中音频频段的频率振幅值以及属于低音频频段的频率振幅值分别进行计算,就可以得到模型驱动值。模型驱动值具体由三个数值组成,其中,第一个数值为对属于低音频频段的频率振幅值进行计算后所得到的计算结果,第二个数值为对属于中音频频段的频率振幅值进行计算后所得到的计算结果,第三个数值属于高音频频段的频率振幅值进行计算后所得到的计算结果。The model driving values can be obtained by calculating the frequency amplitude values belonging to the high frequency band, the frequency amplitude values belonging to the middle frequency band and the frequency amplitude values belonging to the low frequency band respectively. The model driving value is specifically composed of three values, among which, the first value is the calculation result obtained after calculating the frequency amplitude value belonging to the bass frequency band, and the second value is the calculation result obtained after calculating the frequency amplitude value belonging to the middle audio frequency band. The calculation result obtained after the calculation, the third value belongs to the calculation result obtained after the frequency amplitude value of the treble frequency band is calculated.

在可选的实施例中,图2示出了模型动画渲染方法中对音频流进行分析得到与不同音频频段对应的模型驱动值的流程示意图,如图2所示,该方法至少包括以下步骤:在步骤S210中,对音频流进行频段划分,得到初始振幅数据,初始振幅数据中包括处于不同音频频段的初始振幅值。In an optional embodiment, FIG. 2 shows a schematic flowchart of analyzing the audio stream in the model animation rendering method to obtain model driving values corresponding to different audio frequency bands. As shown in FIG. 2, the method at least includes the following steps: In step S210, the audio stream is divided into frequency bands to obtain initial amplitude data, which includes initial amplitude values in different audio frequency bands.

其中,举例而言,每秒会采集到30份音频流,对这30份音频流按照采集的时间依次分别进行频段划分,就可以先后得到30份初始振幅数据。每一份初始振幅数据中都包括处于不同音频频段的多个初始振幅值。举例而言,对每秒采集到的30份音频流进行频段划分,可以得到初始振幅数据。具体地初始振幅数据可以由处于不同音频频段的45个初始振幅组成。Wherein, for example, 30 audio streams are collected per second, and the 30 audio streams are divided into frequency bands according to the time of collection, and 30 initial amplitude data can be successively obtained. Each piece of initial amplitude data includes multiple initial amplitude values in different audio frequency bands. For example, the initial amplitude data can be obtained by performing frequency band division on 30 audio streams collected per second. Specifically, the initial amplitude data may consist of 45 initial amplitudes in different audio frequency bands.

在步骤S220中,对初始振幅数据中属于相同音频频段的初始振幅值进行计算,得到目标振幅数据,以将目标振幅数据加入振幅数据队列。In step S220, the initial amplitude values belonging to the same audio frequency band in the initial amplitude data are calculated to obtain target amplitude data, so as to add the target amplitude data into the amplitude data queue.

其中,初始振幅数据是由处于不同音频频段的初始振幅值所组成,例如,在初始振幅数据中包括处于低音频频段的初始振幅值,还包括处于中音频频段的初始振幅值,还包括处于高音频频段的初始振幅值。对处于低音频频段的初始振幅值进行平均值计算可以得到数值N-1,对处于中音频频段的初始振幅值进行平均值计算可以得到数值N-2,对处于高音频频段的初始振幅值进行平均值计算可以得到数值N-3。此时,目标振幅数据就由数值N-1、数值N-2以及数值N-3组成。在计算出目标振幅数据后,将目标振幅数据加入至振幅数据队列之中。Wherein, the initial amplitude data is composed of initial amplitude values in different audio frequency bands, for example, the initial amplitude data includes initial amplitude values in the low audio frequency band, also includes initial amplitude values in the middle The initial amplitude value of the audio band. The average value of the initial amplitude value in the low audio frequency band can be calculated to obtain the value N-1, the average value of the initial amplitude value in the middle audio frequency band can be calculated to obtain the value N-2, and the initial amplitude value in the high audio frequency band can be obtained. The average calculation results in the value N-3. At this time, the target amplitude data is composed of a value N−1, a value N−2, and a value N−3. After the target amplitude data is calculated, the target amplitude data is added to the amplitude data queue.

在步骤S230中,对振幅数据队列中的目标振幅数据进行插值处理,得到更新后的振幅数据队列。In step S230, an interpolation process is performed on the target amplitude data in the amplitude data queue to obtain an updated amplitude data queue.

其中,在将目标振幅数据加入振幅数据队列之后,需要对目标振幅数据进行插值处理。之所以需要对目标振幅数据进行插值处理,是因为每秒钟通常可以获取到Z-1份音频流,进而每秒中可以使得Z-1份目标振幅数据加入至振幅数据队列中,然而,在后续渲染与目标三维模型对应的模型动画的过程中,渲染速度为每秒Z-2帧。由于Z-2与Z-1不同,无法保证模型动画的渲染效果。Wherein, after the target amplitude data is added to the amplitude data queue, interpolation processing needs to be performed on the target amplitude data. The reason why the target amplitude data needs to be interpolated is because Z-1 audio streams can usually be obtained per second, and then Z-1 target amplitude data can be added to the amplitude data queue per second. However, in During the subsequent rendering of the model animation corresponding to the target 3D model, the rendering speed is Z-2 frames per second. Since the Z-2 is different from the Z-1, the rendering effect of the model animation cannot be guaranteed.

基于此,需要通过对目标振幅数据进行插值处理,以保证在振幅数据队列中每秒存在Z-2份目标振幅数据。Based on this, it is necessary to perform interpolation processing on the target amplitude data to ensure that there are Z-2 pieces of target amplitude data per second in the amplitude data queue.

具体地,对目标振幅数据进行插值处理的过程如下:每得到一份新的目标振幅数据C-0时,将该目标振幅数据C-0与振幅数据队列中的最后一个目标振幅数据进行计算,以生成目标振幅数据C-1。将目标振幅数据C-1和目标振幅数据C-0先后加入振幅数据对列中,以得到更新后的振幅数据队列。Specifically, the process of interpolating the target amplitude data is as follows: each time a new target amplitude data C-0 is obtained, the target amplitude data C-0 is calculated with the last target amplitude data in the amplitude data queue, to generate target amplitude data C-1. The target amplitude data C-1 and the target amplitude data C-0 are sequentially added to the amplitude data queue to obtain an updated amplitude data queue.

在步骤S240,对更新后的振幅数据队列中的目标振幅数据进行计算,得到与不同音频频段对应的模型驱动值。In step S240, calculate the target amplitude data in the updated amplitude data queue to obtain model driving values corresponding to different audio frequency bands.

其中,在目标振幅数据中包括目标振幅值,将目标振幅值与其对应的振幅阈值进行计算,可以得到不同音频频段对应的模型驱动值。Wherein, the target amplitude data includes the target amplitude value, and the target amplitude value and its corresponding amplitude threshold are calculated to obtain model driving values corresponding to different audio frequency bands.

在本示例性实施例中,对与目标主播对应的音频流进行频段划分,可以得到处于不同音频频段的初始振幅值,进而可以得到与不同音频频段对应的模型驱动值,用于后续对模型动画的渲染,以建立目标主播的声音与模型渲染之间的联系,增强了观众在直播间中的视觉体验;另一方面,对振幅数据队列中的目标振幅数据进行插值处理,以使得更新后的振幅数据队列满足模型动画渲染的需求,保证了模型动画渲染的效果。In this exemplary embodiment, the audio stream corresponding to the target host is divided into frequency bands to obtain initial amplitude values in different audio frequency bands, and then to obtain model driving values corresponding to different audio frequency bands for subsequent animation of the model to establish the connection between the sound of the target anchor and the rendering of the model, and enhance the audience's visual experience in the live broadcast room; The amplitude data queue meets the requirements of model animation rendering and ensures the effect of model animation rendering.

在可选的实施例中,图3示出了模型动画渲染方法中对音频流进行频域划分,得到初始振幅数据的流程示意图,如图3所示,该方法至少包括以下步骤:在步骤S310中,对音频流进行频域分析,得到与音频流对应的多个频率以及与所述多个频率分别对应的多个频率振幅。In an optional embodiment, FIG. 3 shows a schematic flow diagram of dividing the audio stream in the frequency domain in the model animation rendering method to obtain initial amplitude data. As shown in FIG. 3 , the method at least includes the following steps: in step S310 In the method, frequency domain analysis is performed on the audio stream to obtain multiple frequencies corresponding to the audio stream and multiple frequency amplitudes respectively corresponding to the multiple frequencies.

其中,通常采集到的音频流为处于时域的音频流,为了可以对音频流进行频带划分,需要将对音频流进行频域分析,以将音频流从时域转化为频域,进而得到与音频流对应的多个频率以及与多个频率对应的频率振幅。具体地,可以对音频流进行快速傅里叶变换,以对音频流进行频域分析,也可以利用其他方式对音频流进行频域分析,本示例性实施例对此不做特殊限定。Among them, the usually collected audio stream is an audio stream in the time domain. In order to divide the frequency band of the audio stream, it is necessary to analyze the frequency domain of the audio stream to convert the audio stream from the time domain to the frequency domain, and then obtain the Multiple frequencies corresponding to the audio stream and frequency amplitudes corresponding to the multiple frequencies. Specifically, a fast Fourier transform may be performed on the audio stream to perform frequency domain analysis on the audio stream, or other methods may be used to perform frequency domain analysis on the audio stream, which is not particularly limited in this exemplary embodiment.

在步骤S320中,对多个频率振幅进行频带划分,得到初始振幅数据;初始振幅数据包括处于不同音频频段的初始振幅值。In step S320, the multiple frequency amplitudes are divided into frequency bands to obtain initial amplitude data; the initial amplitude data include initial amplitude values in different audio frequency bands.

其中,在得到多个频率振幅后,可以对多个频率振幅进行频带划分,以得到处于低音频频段的初始振幅值,处于中音频频段的初始值振幅值以及处于高音频频段的初始振幅值。这些处于不同音频频段的初始振幅值组成了初始振幅数据。Wherein, after obtaining multiple frequency amplitudes, the multiple frequency amplitudes can be divided into frequency bands to obtain the initial amplitude value in the bass frequency range, the initial value amplitude value in the middle frequency range and the initial amplitude value in the high frequency range. These initial amplitude values in different audio frequency bands constitute the initial amplitude data.

在本示例性实施例中,一方面,对与目标主播对应的音频流进行频域分析,有助于得到与目标主播声音对应的多个频率以及与频率对应的多个频率振幅;另一方面,对多个频率振幅进行频带划分,以得到初始振幅数据,这使得后续可以根据初始振幅数据得到与目标主播音频流对应的模型驱动值,建立了模型驱动值与目标主播声音之间的联系,提高了后续渲染出的与目标三维模型对应的模型动画的效果。In this exemplary embodiment, on the one hand, performing frequency domain analysis on the audio stream corresponding to the target anchor will help to obtain multiple frequencies corresponding to the sound of the target anchor and multiple frequency amplitudes corresponding to the frequency; on the other hand , divide multiple frequency amplitudes into frequency bands to obtain initial amplitude data, which makes it possible to obtain the model driving value corresponding to the audio stream of the target anchor according to the initial amplitude data, and establishes the relationship between the model driving value and the sound of the target anchor, Improved the effect of the subsequent rendered model animation corresponding to the target 3D model.

在可选的实施例中,图4示出了模型动画渲染方法中对更新后的振幅数据队列中的目标振幅数据进行计算得到模型驱动值的流程示意图,目标振幅数据中包括目标振幅值,如图4所示,该方法至少包括以下步骤:在步骤S410中,确定与更新后的振幅数据队列中的目标振幅数据对应的振幅阈值。In an optional embodiment, FIG. 4 shows a schematic flow chart of calculating the target amplitude data in the updated amplitude data queue to obtain the model driving value in the model animation rendering method. The target amplitude data includes the target amplitude value, such as As shown in FIG. 4 , the method at least includes the following steps: In step S410 , determining an amplitude threshold corresponding to the target amplitude data in the updated amplitude data queue.

其中,目标振幅数据由处于不同音频频段的目标振幅值组成。振幅阈指的是用于限定目标振幅值的临界值。Wherein, the target amplitude data consists of target amplitude values in different audio frequency bands. The amplitude threshold refers to a critical value for defining a target amplitude value.

在步骤S420中,若目标振幅数据中的目标振幅值大于或等于振幅阈值,则将目标振幅值替换为第一模型驱动值。In step S420, if the target amplitude value in the target amplitude data is greater than or equal to the amplitude threshold, then replace the target amplitude value with the first model driving value.

其中,第一模型驱动值指的是一个预设值,具体地,第一模型驱动值可以为1。举例而言,振幅阈值为200,目标振幅数据为[D-1,D-2,D-3]。由于D-1和D-2大于200,因此,将D-1和D-2都替换为1。Wherein, the first model driving value refers to a preset value, specifically, the first model driving value may be 1. For example, the amplitude threshold is 200, and the target amplitude data is [D-1, D-2, D-3]. Since D-1 and D-2 are greater than 200, both D-1 and D-2 are replaced with 1.

在步骤S430中,若目标振幅数据中的目标振幅值小于振幅阈值,则对目标振幅值和振幅阈值进行计算,得到第二模型驱动值。In step S430, if the target amplitude value in the target amplitude data is smaller than the amplitude threshold value, the target amplitude value and the amplitude threshold value are calculated to obtain the second model driving value.

其中,当目标振幅数据中的目标振幅值小于振幅阈值时,对目标振幅值和振幅阈值进行除法计算,得到第二模型驱动值。Wherein, when the target amplitude value in the target amplitude data is smaller than the amplitude threshold value, the target amplitude value and the amplitude threshold value are divided and calculated to obtain the second model driving value.

举例而言,由于D-3小于200,因此,对D-3和200进行除法计算,若计算结果为0.5,则将D-3替换为0.5,此时得到的目标振幅数据为[1,1,0.5]。For example, since D-3 is less than 200, divide D-3 and 200, if the calculation result is 0.5, replace D-3 with 0.5, and the target amplitude data obtained at this time is [1,1 ,0.5].

在本示例性实施例中,通过对目标振幅值与振幅阈值进行比较,可以得到模型驱动值,以增加后续利用模型驱动值计算出模型属性的属性值的便利性。In this exemplary embodiment, the model driving value can be obtained by comparing the target amplitude value with the amplitude threshold value, so as to increase the convenience of subsequently calculating the attribute value of the model attribute by using the model driving value.

在步骤S130中,在模型驱动值中确定出与目标音频频段对应的目标驱动值,基于目标驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。In step S130, a target driving value corresponding to the target audio frequency band is determined from the model driving values, and a model animation corresponding to the target 3D model is rendered in the live broadcast room based on the target driving value and model resource data.

在本公开的示例性实施例中,模型驱动值中具体包括三个数值,分别为与低音频频段对应的驱动值,与中音频频段对应的驱动值以及与高音频频段对应的驱动值。若目标音频频段为高音频频段,则可以将模型驱动值中与高音频频段对应的驱动值确定为目标驱动值。In an exemplary embodiment of the present disclosure, the model driving value specifically includes three numerical values, which are respectively a driving value corresponding to a bass frequency range, a driving value corresponding to a middle frequency range and a driving value corresponding to a high frequency range. If the target audio frequency band is a high audio frequency band, the driving value corresponding to the high audio frequency band among the model driving values may be determined as the target driving value.

在确定出目标驱动值后,可以利用目标驱动值对与目标三维模型的模型属性对应的属性值进行计算,进而基于所得到的计算结果以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。After the target driving value is determined, the target driving value can be used to calculate the attribute value corresponding to the model attribute of the target 3D model, and then based on the obtained calculation result and model resource data, the target 3D model can be rendered in the live broadcast room Corresponding model animation.

值得说明的是,目标三维模型可以是由多个模型节点组成,对于每一个模型节点,都存在与之对应的模型属性。具体的,模型属性包括模型节点的旋转属性,模型节点的缩放属性,模型节点的偏移属性,模型节点处贴图的缩放属性,模型节点处贴图的旋转属性,模型节点处贴图的偏移属性,模型节点处材质的自放光强度属性,模型节点处材质的透明度属性,本示例性实施例对此不做特殊限定。It is worth noting that the target 3D model may be composed of multiple model nodes, and each model node has a corresponding model attribute. Specifically, the model attributes include the rotation attribute of the model node, the scaling attribute of the model node, the offset attribute of the model node, the scaling attribute of the texture at the model node, the rotation attribute of the texture at the model node, the offset attribute of the texture at the model node, The self-emitting light intensity attribute of the material at the model node and the transparency attribute of the material at the model node are not specifically limited in this exemplary embodiment.

在可选的实施例中,图5示出了模型动画渲染方法中基于目标驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画的流程示意图,模型资源数据中包括驱动值调整因子,如图5所示,该方法至少包括以下步骤:在步骤S510中,确实与当前帧对应的模型属性的当前属性值、驱动值调整因子、目标驱动值以及与第一帧对应的模型属性的第一属性值之间的第一计算公式;当前帧与第一帧之间相差一个帧间隔。In an optional embodiment, FIG. 5 shows a schematic flowchart of rendering a model animation corresponding to the target 3D model in the live broadcast room based on the target driving value and model resource data in the model animation rendering method. The model resource data includes The driving value adjustment factor, as shown in Figure 5, the method at least includes the following steps: In step S510, the current attribute value of the model attribute corresponding to the current frame, the driving value adjustment factor, the target driving value and the corresponding to the first frame The first calculation formula between the first attribute values of the model attributes; the difference between the current frame and the first frame is one frame interval.

其中,在模型资源数据中还包括驱动值调整因子,驱动值调整因子用于确定目标驱动值对与模型属性对应的属性值的影响程度。Wherein, the model resource data also includes a driving value adjustment factor, and the driving value adjustment factor is used to determine the influence degree of the target driving value on the attribute value corresponding to the model attribute.

值得说明的是,每旋转360度,会使得模型节点以及模型节点处的贴图恢复到初始位置,因此,可以模型节点的旋转属性以及模型节点处贴图的旋转属性可以划分为L-1类型属性。同理,模型节点的偏移属性以及模型节点处贴图的偏移属性也具有上述特性,因此,模型节点的偏移属性以及模型节点处贴图的偏移属性也属于L-1类型属性。It is worth noting that every 360-degree rotation will restore the model node and the texture at the model node to their original positions. Therefore, the rotation attribute of the model node and the rotation attribute of the texture at the model node can be divided into L-1 type attributes. Similarly, the offset attribute of the model node and the offset attribute of the texture at the model node also have the above characteristics, therefore, the offset attribute of the model node and the offset attribute of the texture at the model node also belong to the L-1 type attribute.

除此之外的其他模型属性,并不具备上述特性,因此可以划分为第一类型属性。不论是属于L-1类型属性还是属于第一类型属性,都可以通过确定第一计算公式的方式,来计算出当前属性值。Other model attributes besides this do not have the above-mentioned characteristics, so they can be classified as the first type of attributes. Whether it belongs to the L-1 type attribute or the first type attribute, the current attribute value can be calculated by determining the first calculation formula.

举例而言,针对于模型节点的旋转属性而言,所确定出的第一计算公式如公式(1)所示。For example, for the rotation attribute of the model node, the determined first calculation formula is shown as formula (1).

模型节点当前帧的旋转角度值=模型节点第一帧的旋转角度值The rotation angle value of the current frame of the model node = the rotation angle value of the first frame of the model node

+驱动值调整因子×目标驱动值(1)+drive value adjustment factor x target drive value(1)

其中,模型节点当前帧的旋转角度值即为当前属性值,模型节点第一帧的旋转角度值即为第一属性值。假设,模型驱动值为[1,1,0.5],若与模型节点的旋转角度属性对应的目标音频频段为低音频频段,则公式(1)中的目标驱动值为1。Wherein, the rotation angle value of the current frame of the model node is the current attribute value, and the rotation angle value of the first frame of the model node is the first attribute value. Assuming that the model driving value is [1,1,0.5], if the target audio frequency band corresponding to the rotation angle attribute of the model node is a low audio frequency band, then the target driving value in formula (1) is 1.

在步骤S520中,基于第一计算公式,对驱动值调整因子、目标驱动值和第一属性值进行计算,得到当前属性值。In step S520, based on the first calculation formula, the driving value adjustment factor, the target driving value and the first property value are calculated to obtain the current property value.

其中,在确定出第一计算公式之后,将驱动值调整因子、目标驱动值以及第一属性值代入第一计算公式,既可以计算出与当前帧对应的模型属性的当前属性值。Wherein, after the first calculation formula is determined, the driving value adjustment factor, the target driving value and the first attribute value are substituted into the first calculation formula to calculate the current attribute value of the model attribute corresponding to the current frame.

举例而言,确定出的目标驱动值为1,第一属性值为30度,驱动值调整因子为数值a,基于第一计算公式,可以计算出模型节点在当前帧的旋转角度值为30+a。For example, the determined target driving value is 1, the first attribute value is 30 degrees, and the driving value adjustment factor is a value a. Based on the first calculation formula, the rotation angle value of the model node in the current frame can be calculated as 30+ a.

在步骤S530中,基于当前属性值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。In step S530, based on the current attribute value and model resource data, a model animation corresponding to the target 3D model is rendered in the live broadcast room.

其中,在确定出当前属性值后,根据当前属性值和模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。Wherein, after the current attribute value is determined, a model animation corresponding to the target 3D model is rendered in the live broadcast room according to the current attribute value and model resource data.

举例而言,确定出的当前属性包括当前帧的旋转角度60,当前帧的缩放值1.2。若目标三维模型为一个立体的花朵,则在直播间中渲染出的模型动画为一个扩大的,并且旋转60度的立体花朵。For example, the determined current attributes include a rotation angle of 60 in the current frame and a scaling value of 1.2 in the current frame. If the target 3D model is a three-dimensional flower, the model animation rendered in the live broadcast room will be an enlarged three-dimensional flower rotated 60 degrees.

在本示例性实施例中,基于第一计算公式,对第一属性值、目标驱动值以及驱动调整因子进行计算,可以得到当前属性值,以便后续基于当前属性值,在直播间中渲染出模型动画,以提高观众的视觉感受。In this exemplary embodiment, based on the first calculation formula, the first attribute value, the target driving value, and the driving adjustment factor are calculated to obtain the current attribute value, so that the model can be rendered in the live broadcast room based on the current attribute value Animations to enhance the visual experience of the audience.

在可选的实施例中,图6示出了模型动画渲染方法中在直播间中渲染出与目标三维模型对应的模型动画的流程示意图,模型资源数据中包括第一驱动值调整因子;模型属性包括第一类型属性,如图6所示,该方法至少包括以下步骤:在步骤S610中,确定与第一类型属性对应的第一属性阈值以及第二属性阈值,确定第一属性阈值和第二属性阈值之间的阈值差。In an optional embodiment, FIG. 6 shows a schematic flowchart of rendering a model animation corresponding to the target 3D model in the live broadcast room in the model animation rendering method. The model resource data includes the first driving value adjustment factor; the model attribute Including the first type of attribute, as shown in Figure 6, the method at least includes the following steps: In step S610, determine the first attribute threshold and the second attribute threshold corresponding to the first type of attribute, determine the first attribute threshold and the second attribute threshold Threshold difference between attribute thresholds.

其中,对于第一类型属性而言,其属性值必须在一个预设范围内。该预设范围的上限值即为第一属性阈值,该预设范围的下限值即为第二属性阈值。阈值差即为对第一属性阈值和第二属性阈值进行差值计算后所得到的计算结果。Wherein, for the first type of attribute, its attribute value must be within a preset range. The upper limit of the preset range is the first attribute threshold, and the lower limit of the preset range is the second attribute threshold. The threshold difference is a calculation result obtained after calculating the difference between the first attribute threshold and the second attribute threshold.

在步骤S620中,确定第一属性阈值、目标驱动值、阈值差、与当前帧对应的第一类型属性的第一当前属性值、与第二帧对应的第一类型属性的第二属性值以及第一驱动值调整因子之间的第二计算公式;当前帧与第二帧之间相差一个帧间隔。In step S620, determine the first attribute threshold, the target driving value, the threshold difference, the first current attribute value of the first type attribute corresponding to the current frame, the second attribute value of the first type attribute corresponding to the second frame, and The second calculation formula between the first driving value adjustment factors; the difference between the current frame and the second frame is one frame interval.

其中,计算第一类型属性时,所用到的计算公式为第二计算公式。举例而言,第一类型属性为模型节点的缩放属性,则确定出第二计算公式如公式(2)所示。Wherein, when calculating the first type of attribute, the calculation formula used is the second calculation formula. For example, if the first type of attribute is the scaling attribute of the model node, then the second calculation formula is determined as shown in formula (2).

模型节点当前帧的缩放值=模型节点的最小缩放值+模型节点的缩放范围×(目标驱动值×第一驱动值调整因子+(模型节点在上一帧的缩放值-模型节点的最小缩放值)/模型节点的缩放范围×(1-The scaling value of the current frame of the model node = the minimum scaling value of the model node + the scaling range of the model node × (the target driving value × the first driving value adjustment factor + (the scaling value of the model node in the previous frame - the minimum scaling value of the model node )/Zoom range of the model node×(1-

第一驱动值调整因子))(2)First drive value adjustment factor))(2)

其中,模型节点当前帧的缩放值即为第一当前属性值,模型节点的最小缩放值即为第二属性阈值,模型节点的缩放范围即为阈值差。Wherein, the zoom value of the current frame of the model node is the first current attribute value, the minimum zoom value of the model node is the second attribute threshold, and the zoom range of the model node is the threshold difference.

在步骤S630中,基于第二计算公式,对第一属性阈值、目标驱动值、阈值差、第二属性值以及第一驱动值调整因子进行计算,得到第一当前属性值。In step S630, based on the second calculation formula, the first property threshold, the target driving value, the threshold difference, the second property value and the first driving value adjustment factor are calculated to obtain the first current property value.

其中,按照第二计算公式,对第一属性阈值、目标驱动值、阈值差、第二属性值以及第一驱动值调整因子进行计算,即可以得到第一当前属性值。Wherein, the first current attribute value can be obtained by calculating the first attribute threshold, the target driving value, the threshold difference, the second attribute value and the first driving value adjustment factor according to the second calculation formula.

在步骤S640中,基于第一当前属性值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。In step S640, based on the first current attribute value and model resource data, a model animation corresponding to the target 3D model is rendered in the live broadcast room.

其中,在计算出第一当前属性值之后,按照第一当前属性值,在直播间中渲染出与目标三维模型对应的模型动画。Wherein, after the first current attribute value is calculated, a model animation corresponding to the target three-dimensional model is rendered in the live broadcast room according to the first current attribute value.

在本示例性实施例中,基于第二计算公式,计算出第一当前属性值,以便后续基于第一当前属性值,在直播间中渲染出模型动画,以提高观众的视觉感受。In this exemplary embodiment, the first current attribute value is calculated based on the second calculation formula, so that the model animation is rendered in the live broadcast room based on the first current attribute value, so as to improve the visual experience of the audience.

在本示例性实施例中,基于目标模型驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画,由于目标模型驱动值是对目标主播的音频流进行分析得到的,进而一方面,使得渲染出的模型动画与目标主播的声音之间存在关联性;另一方面,渲染出的模型动画为目标三维模型的动画,提高了语音直播间中模型动画的渲染效果,增强了观众的视觉体验。In this exemplary embodiment, based on the driving value of the target model and the model resource data, the model animation corresponding to the target 3D model is rendered in the live broadcast room. Since the driving value of the target model is obtained by analyzing the audio stream of the target anchor, Furthermore, on the one hand, there is a correlation between the rendered model animation and the voice of the target anchor; on the other hand, the rendered model animation is the animation of the target 3D model, which improves the rendering effect of the model animation in the live voice room and enhances the viewer's visual experience.

针对相关技术中存在的问题,本公开提出了一种模型资源数据生成方法。图7示出了模型资源数据生成方法的流程示意图,如图7所示,模型资源数据生成方法至少包括以下步骤:Aiming at the problems existing in related technologies, the present disclosure proposes a method for generating model resource data. Fig. 7 shows a schematic flowchart of a method for generating model resource data. As shown in Fig. 7, the method for generating model resource data includes at least the following steps:

步骤S710.导入目标三维模型,显示与目标三维模型对应的配置界面;配置界面中包括与目标三维模型的模型属性对应的第一配置区域以及与模型属性对应的目标音频频段的第二配置区域。Step S710. Import the target 3D model, and display the configuration interface corresponding to the target 3D model; the configuration interface includes a first configuration area corresponding to the model attribute of the target 3D model and a second configuration area corresponding to the target audio frequency band corresponding to the model attribute.

步骤S720.响应作用于第一配置区域中的第一选择操作,得到与第一选择操作对应的模型属性。Step S720. Obtain the model attribute corresponding to the first selection operation in response to the first selection operation in the first configuration area.

步骤S730.响应作用于第二配置区域中的第二选择操作,得到与第二选择操作对应的目标音频频段。Step S730. Obtain the target audio frequency band corresponding to the second selection operation in response to the second selection operation in the second configuration area.

在步骤S740.基于模型属性以及目标音频频段,生成与目标三维模型对应的模型资源数据。In step S740. Based on the model attributes and the target audio frequency band, generate model resource data corresponding to the target three-dimensional model.

在本公开的示例性实施例提供的方法及装置中,显示与目标三维模型对应的配置界面,并且,在配置界面中存在与模型属性对应的第一配置区域以及与目标音频频段对应的第二配置区域,其中,目标音频频段与模型属性对应,这使得当需要对模型动画进行调整时,不再依赖于设计师,而是通过在配置界面中进行对应的配置,即可以调整模型动画的渲染效果,增加了调整模型动画渲染效果的便利性和灵活度。In the method and device provided by the exemplary embodiments of the present disclosure, the configuration interface corresponding to the target three-dimensional model is displayed, and there is a first configuration area corresponding to the model attribute and a second configuration area corresponding to the target audio frequency band in the configuration interface. Configuration area, where the target audio frequency band corresponds to the model properties, which makes it no longer dependent on the designer when the model animation needs to be adjusted, but can adjust the rendering of the model animation by performing corresponding configurations in the configuration interface Effect, which increases the convenience and flexibility of adjusting the rendering effect of model animation.

下面对模型资源数据生成方法的各个步骤进行详细说明。Each step of the method for generating model resource data will be described in detail below.

在步骤S710中,导入目标三维模型,显示与目标三维模型对应的配置界面;配置界面中包括与目标三维模型的模型属性对应的第一配置区域以及与模型属性对应的目标音频频段的第二配置区域。In step S710, the target three-dimensional model is imported, and a configuration interface corresponding to the target three-dimensional model is displayed; the configuration interface includes a first configuration area corresponding to the model attribute of the target three-dimensional model and a second configuration of the target audio frequency band corresponding to the model attribute area.

其中,将目标三维模型导入,即可以在终端中显示出配置界面,该配置界面用于配置与目标三维模型对应的模型属性以及与模型属性对应的目标音频频段。Wherein, by importing the target 3D model, a configuration interface may be displayed in the terminal, and the configuration interface is used to configure model attributes corresponding to the target 3D model and target audio frequency bands corresponding to the model attributes.

值得说明的是,在配置界面中存在用于配置模型属性的第一配置区域,在配置界面中还存在用于配置与模型属性对应的目标音频频段的第二配置区域。It is worth noting that there is a first configuration area for configuring model properties in the configuration interface, and a second configuration area for configuring target audio frequency bands corresponding to the model properties in the configuration interface.

在步骤S720中,响应作用于第一配置区域中的第一选择操作,得到与第一选择操作对应的模型属性。In step S720, in response to the first selection operation acting on the first configuration area, the model attribute corresponding to the first selection operation is obtained.

其中,第一选择操作即选择需要配置的模型属性的操作,第一选择操作可以是点击操作,可以是双击操作,可以是长按操作,还可以是任何一种触控操作,本示例性实施例对此不做特殊限定。Wherein, the first selection operation is the operation of selecting the model attribute to be configured. The first selection operation may be a click operation, a double-click operation, a long press operation, or any kind of touch operation. This exemplary implementation There is no special limitation for this example.

当在第一配置区域中进行第一选择操作后,将会得到与第一选择操作对应的模型属性,例如,当在第一配置区域中对模型节点K的旋转角度这一模型属性进行点击操作时,将会得到模型节点K的旋转角度这一模型属性。After the first selection operation is performed in the first configuration area, the model attribute corresponding to the first selection operation will be obtained, for example, when the model attribute of the rotation angle of the model node K is clicked in the first configuration area , the model attribute of the rotation angle of the model node K will be obtained.

在步骤S730中,响应作用于第二配置区域中的第二选择操作,得到与第二选择操作对应的目标音频频段。In step S730, in response to the second selection operation acting on the second configuration area, the target audio frequency band corresponding to the second selection operation is obtained.

其中,当在第二配置区域进行第二选择操作时,将会得到一个目标音频频段。举例而言,当在第二配置区域中对高音频频段进行点击操作时,得到的目标音频频段即为高音频频段,此时,高音频频段与模型节点K的旋转角度这一模型属性之间存在对应关系。Wherein, when the second selection operation is performed in the second configuration area, a target audio frequency band will be obtained. For example, when the high audio frequency band is clicked in the second configuration area, the obtained target audio frequency band is the high audio frequency band. At this time, the relationship between the high audio frequency band and the model attribute of the rotation angle of the model node K There is a corresponding relationship.

在步骤S740中,基于模型属性以及目标音频频段,生成与目标三维模型对应的模型资源数据。In step S740, model resource data corresponding to the target 3D model is generated based on the model attributes and the target audio frequency band.

其中,在确定出模型属性和目标音频频段之后,就可以生成与目标三维模型对应的模型资源数据,以根据模型资源数据,在直播间中渲染出目标三维模型。Wherein, after the model attribute and the target audio frequency band are determined, model resource data corresponding to the target 3D model can be generated, so as to render the target 3D model in the live broadcast room according to the model resource data.

在可选的实施例中,图8示出了模型资源数据生成方法中更改模型资源数据的流程示意图,如图8所示,该方法至少包括以下步骤:在步骤S810中,响应作用于第一配置区域中第一更改操作,得到与第一更改操作对应的更改模型属性。In an optional embodiment, FIG. 8 shows a schematic flowchart of changing model resource data in the method for generating model resource data. As shown in FIG. 8 , the method at least includes the following steps: The first change operation in the configuration area obtains the change model attribute corresponding to the first change operation.

其中,第一更改操作指的是对所选择的模型属性进行更改的操作,当在第一配置区域中进行第一更改操作时,与第一更改操作对应的模型属性即为更改模型属性。Wherein, the first modification operation refers to an operation of modifying the selected model attribute. When the first modification operation is performed in the first configuration area, the model attribute corresponding to the first modification operation is the modified model attribute.

在步骤S820中,响应作用于第二配置区域中的第二更改操作,得到与第二更改操作对应的更改目标音频频段。In step S820, in response to the second modification operation acting on the second configuration area, a modification target audio frequency band corresponding to the second modification operation is obtained.

其中,可以对模型属性进行更改,也可以对目标音频频段进行更改。当在第二配置区域中进行第二更改操作时,可以得到与第二更改操作对应的目标音频频段即为更改目标音频频段。Among them, changes can be made to the model properties, as well as to the target audio frequency band. When the second modification operation is performed in the second configuration area, the target audio frequency band corresponding to the second modification operation can be obtained as the modification target audio frequency band.

在步骤S830中,基于更改模型属性以及更改目标音频频段,更改模型资源数据。In step S830, the model resource data is changed based on changing the model attribute and changing the target audio frequency band.

其中,根据更改模型属性以及更改目标音频频段,对模型资源数据进行更改。Among them, the model resource data is changed according to changing the model properties and changing the target audio frequency band.

举例而言,在第二配置区域中进行点击操作,此时,与该点击操作对应的更改目标音频频段为低音频频段,则基于模型节点K的旋转角度这一模型属性以及低音频频段,对模型资源数据进行更改。For example, if a click operation is performed in the second configuration area, at this time, the target audio frequency band corresponding to the click operation is changed to the low audio frequency band, then based on the model attribute of the rotation angle of the model node K and the low audio frequency band, the Model resource data changes.

在本示例性实施例中,显示与目标三维模型对应的配置界面,并且,在配置界面中存在与模型属性对应的第一配置区域以及与目标音频频段对应的第二配置区域,其中,目标音频频段与模型属性对应,这使得当需要对模型动画进行调整时,不再依赖于设计师,而是通过在配置界面中进行对应的配置,即可以调整模型动画的渲染效果,增加了调整模型动画渲染效果的便利性和灵活度。In this exemplary embodiment, a configuration interface corresponding to the target three-dimensional model is displayed, and there is a first configuration area corresponding to the model attribute and a second configuration area corresponding to the target audio frequency band in the configuration interface, wherein the target audio The frequency band corresponds to the model attribute, which makes it no longer dependent on the designer when the model animation needs to be adjusted, but through the corresponding configuration in the configuration interface, the rendering effect of the model animation can be adjusted, and the adjustment model animation is added. Convenience and flexibility of rendering effects.

下面结合一应用场景对本公开实施例中模型动画渲染方法做出详细说明。The model animation rendering method in the embodiment of the present disclosure will be described in detail below in conjunction with an application scenario.

获取与“立体球”这一目标三维模型对应的模型资源数据,对该模型资源数据进行解析可以得到目标三维模型中的模型属性S-1和模型属性S-2,还可以得到与模型属性S-1对应的目标音频频段(具体为低音频频段)以及与模型属性S-2对应的目标音频频段(即中音频频段)。Obtain the model resource data corresponding to the target 3D model of "three-dimensional ball", and analyze the model resource data to obtain the model attribute S-1 and model attribute S-2 in the target 3D model, and also obtain the model attribute S The target audio frequency band corresponding to -1 (specifically, the low audio frequency band) and the target audio frequency band corresponding to the model attribute S-2 (ie, the middle audio frequency band).

采集与直播间的主播G对应的音频流,并对音频流进行分析得到模型驱动值[1,0.2,0.5],其中,1与低音频频段对应,0.2与中音频频段对应,0.5与高音频频段对应。Collect the audio stream corresponding to the anchor G in the live broadcast room, and analyze the audio stream to obtain the model driving value [1,0.2,0.5], where 1 corresponds to the low audio frequency band, 0.2 corresponds to the middle audio frequency band, and 0.5 corresponds to the high audio frequency band corresponding to the frequency band.

由于目标音频频段为中音频频段,因此,确定出的目标驱动值为0.2,基于目标驱动值为0.2和模型资源数据,在直播间中渲染出与“立体球”对应的模型动画。Since the target audio frequency band is the middle audio frequency band, the determined target driving value is 0.2. Based on the target driving value of 0.2 and the model resource data, the model animation corresponding to the "stereo ball" is rendered in the live broadcast room.

在本应用场景中,基于目标模型驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画,由于目标模型驱动值是对目标主播的音频流进行分析得到的,进而一方面,使得渲染出的模型动画与目标主播的声音之间存在关联性;另一方面,渲染出的模型动画为目标三维模型的动画,提高了语音直播间中模型动画的渲染效果,增强了观众的视觉体验。下面对模型动画渲染方法的各个步骤进行详细说明。In this application scenario, based on the driving value of the target model and the model resource data, the model animation corresponding to the target 3D model is rendered in the live broadcast room. Since the driving value of the target model is obtained by analyzing the audio stream of the target anchor, further On the one hand, there is a correlation between the rendered model animation and the voice of the target anchor; on the other hand, the rendered model animation is the animation of the target 3D model, which improves the rendering effect of the model animation in the live voice room and enhances the audience visual experience. Each step of the model animation rendering method will be described in detail below.

此外,在本公开的示例性实施例中,还提供一种模型动画渲染装置。图9示出了模型动画渲染装置的结构示意图,如图9所示,模型动画渲染装置900可以包括:解析模块910、采集模块920以及渲染模块930。其中:In addition, in an exemplary embodiment of the present disclosure, a model animation rendering device is also provided. FIG. 9 shows a schematic structural diagram of a model animation rendering device. As shown in FIG. 9 , the model animation rendering device 900 may include: an analysis module 910 , a collection module 920 and a rendering module 930 . in:

解析模块910,被配置为获取目标三维模型的模型资源数据,从模型资源数据中解析出与目标三维模型的模型属性对应的目标音频频段;采集模块920,被配置为采集与直播间中的目标主播对应的音频流,对音频流进行分析得到与不同音频频段对应的模型驱动值;渲染模块930,被配置为在模型驱动值中确定出与目标音频频段对应的目标驱动值,基于目标驱动值以及模型资源数据,在直播间中渲染出与目标三维模型对应的模型动画。The analysis module 910 is configured to obtain the model resource data of the target three-dimensional model, and parses out the target audio frequency band corresponding to the model attribute of the target three-dimensional model from the model resource data; the acquisition module 920 is configured to acquire the target audio frequency band in the live broadcast room The audio stream corresponding to the anchor, analyze the audio stream to obtain the model driving value corresponding to different audio frequency bands; the rendering module 930 is configured to determine the target driving value corresponding to the target audio frequency band from the model driving value, based on the target driving value As well as model resource data, the model animation corresponding to the target 3D model is rendered in the live broadcast room.

在本公开的示例性实施例中,还提供一种模型资源数据生成装置。图10示出了模型资源数据生成装置的结构示意图,如图10所示,模型资源数据生成装置1000可以包括:导入模块1010、第一响应模块1020、第二响应模块1030以及生成模块1040。其中:In an exemplary embodiment of the present disclosure, a device for generating model resource data is also provided. FIG. 10 shows a schematic structural diagram of a model resource data generation device. As shown in FIG. 10 , the model resource data generation device 1000 may include: an import module 1010 , a first response module 1020 , a second response module 1030 and a generation module 1040 . in:

导入模块1010,被配置为导入目标三维模型,显示与目标三维模型对应的配置界面;配置界面中包括与目标三维模型的模型属性对应的第一配置区域以及与模型属性对应的目标音频频段的第二配置区域;第一响应模块1020,被配置为响应作用于第一配置区域中的第一选择操作,得到与第一选择操作对应的模型属性;第二响应模块1030,被配置为响应作用于第二配置区域中的第二选择操作,得到与第二选择操作对应的目标音频频段;生成模块1040,被配置为基于模型属性以及目标音频频段,生成与目标三维模型对应的模型资源数据。The import module 1010 is configured to import the target three-dimensional model, and display a configuration interface corresponding to the target three-dimensional model; the configuration interface includes a first configuration area corresponding to the model attribute of the target three-dimensional model and a first configuration area corresponding to the target audio frequency band corresponding to the model attribute. Two configuration areas; the first response module 1020 is configured to respond to the first selection operation acting on the first configuration area, and obtain the model attribute corresponding to the first selection operation; the second response module 1030 is configured to respond to the first selection operation The second selection operation in the second configuration area obtains the target audio frequency band corresponding to the second selection operation; the generating module 1040 is configured to generate model resource data corresponding to the target 3D model based on the model attribute and the target audio frequency band.

上述模型动画渲染装置900以及模型资源数据生成装置1000的具体细节已经在对应的方法中进行了详细的描述,因此此处不再赘述。The specific details of the model animation rendering apparatus 900 and the model resource data generating apparatus 1000 have been described in detail in the corresponding methods, so details are not repeated here.

应当注意,尽管在上文详细描述中提及模型动画渲染装置900和模型资源数据生成装置1000的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the model animation rendering device 900 and the model resource data generating device 1000 are mentioned in the above detailed description, this division is not mandatory. Actually, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided to be embodied by a plurality of modules or units.

此外,在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

下面参照图11来描述根据本发明的这种实施例的电子设备1100。图11显示的电子设备1100仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。An electronic device 1100 according to such an embodiment of the present invention is described below with reference to FIG. 11 . The electronic device 1100 shown in FIG. 11 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention.

如图11所示,电子设备1100以通用计算设备的形式表现。电子设备1100的组件可以包括但不限于:上述至少一个处理单元1110、上述至少一个存储单元1120、连接不同系统组件(包括存储单元1120和处理单元1110)的总线1130、显示单元1140。As shown in FIG. 11 , electronic device 1100 takes the form of a general-purpose computing device. The components of the electronic device 1100 may include, but are not limited to: at least one processing unit 1110, at least one storage unit 1120, a bus 1130 connecting different system components (including the storage unit 1120 and the processing unit 1110), and a display unit 1140.

其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元1110执行,使得所述处理单元1110执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施例的步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 1110, so that the processing unit 1110 executes various exemplary methods according to the present invention described in the above "Exemplary Methods" section of this specification. Example steps.

存储单元1120可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)1121和/或高速缓存存储单元1122,还可以进一步包括只读存储单元(ROM)1123。The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 1121 and/or a cache storage unit 1122 , and may further include a read-only storage unit (ROM) 1123 .

存储单元1120还可以包括具有一组(至少一个)程序模块1125的程序/使用工具1124,这样的程序模块1125包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包含网络环境的现实。Storage unit 1120 may also include a program/utility tool 1124 having a set (at least one) of program modules 1125, such program modules 1125 including but not limited to: an operating system, one or more application programs, other program modules, and program data, Each or some combination of these examples may contain the realities of network environments.

总线1130可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 1130 may represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local area using any of a variety of bus structures. bus.

电子设备1100也可以与一个或多个外部设备1170(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备1100交互的设备通信,和/或与使得该电子设备1100能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口1150进行。并且,电子设备1100还可以通过网络适配器1160与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器1160通过总线1130与电子设备1100的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备1100使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 1100 can also communicate with one or more external devices 1170 (such as keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 1100, and/or communicate with Any device (eg, router, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interface 1150 . Moreover, the electronic device 1100 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network adapter 1160 . As shown, the network adapter 1160 communicates with other modules of the electronic device 1100 through the bus 1130 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.

通过以上的实施例的描述,本领域的技术人员易于理解,这里描述的示例实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施例的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to make a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present disclosure.

在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施例中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施例的步骤。In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium on which a program product capable of implementing the above-mentioned method in this specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes program code, and when the program product is run on a terminal device, the program code is used to make the The terminal device executes the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section above in this specification.

参考图12所示,描述了根据本发明的实施例的用于实现上述方法的程序产品1200,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。As shown in FIG. 12 , a program product 1200 for realizing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disc read-only memory (CD-ROM) and include program codes, and can be used in terminal equipment, For example running on a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may reside on any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming languages. Programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server to execute. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, using an Internet service provider). business to connect via the Internet).

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the appended claims.

Claims (12)

1. A method of model animation rendering, the method comprising:
obtaining model resource data of a target three-dimensional model, and analyzing a target audio frequency band corresponding to model attributes of the target three-dimensional model from the model resource data;
collecting an audio stream corresponding to a target anchor in a live broadcasting room, and analyzing the audio stream to obtain model driving values corresponding to different audio frequency segments;
and determining a target driving value corresponding to the target audio frequency band from the model driving values, and rendering model animation corresponding to the target three-dimensional model in the live broadcasting room based on the target driving value and the model resource data.
2. The method of claim 1, wherein the analyzing the audio stream to obtain model driving values corresponding to different audio frequency segments comprises:
performing frequency band division on the audio stream to obtain initial amplitude data; the initial amplitude data comprises initial amplitude values in different audio frequency bands;
calculating the initial amplitude values belonging to the same audio frequency band in the initial amplitude data to obtain target amplitude data, and adding the target amplitude data into an amplitude data queue;
performing interpolation processing on the target amplitude data in the amplitude data queue to obtain an updated amplitude data queue;
and calculating the target amplitude data in the updated amplitude data queue to obtain model driving values corresponding to the different audio frequency bands.
3. The method for rendering the model animation according to claim 2, wherein the performing frequency band division on the audio stream to obtain initial amplitude data comprises:
performing frequency domain analysis on the audio stream to obtain a plurality of frequencies corresponding to the audio stream and a plurality of frequency amplitudes corresponding to the frequencies respectively;
Performing frequency band division on the plurality of frequency amplitudes to obtain initial amplitude data; the initial amplitude data includes initial amplitude values at different audio frequency bands.
4. A model animation rendering method as claimed in claim 3, wherein the target amplitude data comprises a target amplitude value;
the calculating the target amplitude data in the updated amplitude data queue to obtain model driving values corresponding to the different audio frequency bands includes:
determining an amplitude threshold corresponding to the target amplitude data in the updated amplitude data queue;
if the target amplitude value in the target amplitude data is greater than or equal to the amplitude threshold value, replacing the target amplitude value with a first model driving value;
and if the target amplitude value in the target amplitude data is smaller than the amplitude threshold value, calculating the target amplitude value and the amplitude threshold value to obtain a second model driving value.
5. The model animation rendering method of claim 1, wherein the model resource data includes a driving value adjustment factor;
rendering a model animation corresponding to the target three-dimensional model in the live broadcast room based on the target driving value and the model resource data, wherein the model animation comprises the following steps:
Determining a first calculation formula among a current attribute value of the model attribute corresponding to the current frame, the driving value adjustment factor, a target driving value and a first attribute value of the model attribute corresponding to a first frame; a frame interval is different between the current frame and the first frame;
calculating the driving value adjustment factor, the target driving value and the first attribute value based on the first calculation formula to obtain the current attribute value;
and rendering a model animation corresponding to the target three-dimensional model in the live broadcasting room based on the current attribute value and the model resource data.
6. The model animation rendering method of claim 5, wherein the driving value adjustment factor further comprises a first driving value adjustment factor; the model attributes include a first type of attribute;
the method further comprises the steps of:
determining a first attribute threshold value and a second attribute threshold value corresponding to the first type attribute, and determining a threshold difference between the first attribute threshold value and the second attribute threshold value;
determining a second calculation formula among the first attribute threshold value, the target drive value, the threshold difference, a first current attribute value of the first type attribute corresponding to a current frame, a second attribute value of the first type attribute corresponding to a second frame and the first drive value adjustment factor; the current frame and the second frame differ by one frame interval;
Calculating the first attribute threshold value, the target driving value, the threshold difference, the second attribute value and the first driving value adjustment factor based on the second calculation formula to obtain the first current attribute value;
and rendering a model animation corresponding to the target three-dimensional model in the live broadcasting room based on the first current attribute value and the model resource data.
7. A method for generating model resource data, the method comprising:
importing a target three-dimensional model, and displaying a configuration interface corresponding to the target three-dimensional model; the configuration interface comprises a first configuration area corresponding to the model attribute of the target three-dimensional model and a second configuration area corresponding to the model attribute of the target audio frequency band;
responding to a first selection operation acted on the first configuration area, and obtaining the model attribute corresponding to the first selection operation;
responding to a second selection operation acted in the second configuration area, and obtaining the target audio frequency band corresponding to the second selection operation;
and generating model resource data corresponding to the target three-dimensional model based on the model attribute and the target audio frequency band.
8. The model resource data generation method according to claim 7, characterized in that the method further comprises:
responding to a first change operation acted in the first configuration area, and obtaining a change model attribute corresponding to the first change operation; or (b)
Responding to a second changing operation acted in the second configuration area to obtain a changing target audio frequency band corresponding to the second changing operation;
and modifying the model resource data based on the modification model attribute and the modification target audio frequency band.
9. A model animation rendering device, comprising:
the analysis module is configured to acquire model resource data of a target three-dimensional model, and analyze a target audio frequency band corresponding to a model attribute of the three-dimensional model from the model resource data;
the acquisition module is configured to acquire an audio stream corresponding to a target anchor in a live broadcasting room, and analyze the audio stream to obtain model driving values corresponding to different audio frequency segments;
and the rendering module is configured to determine a target driving value corresponding to the target audio frequency band from the model driving values, and render model animation corresponding to the target three-dimensional model in the live broadcasting room based on the target driving value and the model resource data.
10. A model resource data generating apparatus, comprising:
the system comprises an importing module, a configuration interface and a display module, wherein the importing module is configured to import a target three-dimensional model and display a configuration interface corresponding to the target three-dimensional model; the configuration interface comprises a first configuration area corresponding to the model attribute of the target three-dimensional model and a second configuration area corresponding to the model attribute of the target audio frequency band;
a first response module configured to respond to a first selection operation acting in the first configuration area, and obtain the model attribute corresponding to the first selection operation;
a second response module configured to respond to a second selection operation acting in the second configuration area, and obtain the target audio frequency band corresponding to the second selection operation;
and the generation module is configured to generate model resource data corresponding to the target three-dimensional model based on the model attribute and the target audio frequency band.
11. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-10 via execution of the executable instructions.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1-10.
CN202310294006.3A 2023-03-22 2023-03-22 Model animation rendering method and device, computer storage medium and electronic equipment Active CN116320520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310294006.3A CN116320520B (en) 2023-03-22 2023-03-22 Model animation rendering method and device, computer storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310294006.3A CN116320520B (en) 2023-03-22 2023-03-22 Model animation rendering method and device, computer storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116320520A true CN116320520A (en) 2023-06-23
CN116320520B CN116320520B (en) 2025-08-08

Family

ID=86832197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310294006.3A Active CN116320520B (en) 2023-03-22 2023-03-22 Model animation rendering method and device, computer storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116320520B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6369822B1 (en) * 1999-08-12 2002-04-09 Creative Technology Ltd. Audio-driven visual representations
US20130069957A1 (en) * 2010-06-02 2013-03-21 Tencent Technology (Shenzhen) Company Limited Method and Device for Playing Animation and Method and System for Displaying Animation Background
KR20140136332A (en) * 2013-05-20 2014-11-28 (주)사운드렉 An acoustic feature extraction method for target acoustic recognition, apparatus for controlling objects by target acoustic recognition and method thereof
CN106445460A (en) * 2016-10-18 2017-02-22 渡鸦科技(北京)有限责任公司 Control method and device
US20170206697A1 (en) * 2016-01-20 2017-07-20 Facebook, Inc. Techniques for animating stickers with sound
CN111540032A (en) * 2020-05-27 2020-08-14 网易(杭州)网络有限公司 Audio-based model control method, device, medium and electronic equipment
CN114419205A (en) * 2021-12-22 2022-04-29 北京百度网讯科技有限公司 Driving method of virtual digital human and training method of pose acquisition model
CN115830193A (en) * 2022-11-07 2023-03-21 厦门黑镜科技有限公司 Method and device for generating digital human animation, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6369822B1 (en) * 1999-08-12 2002-04-09 Creative Technology Ltd. Audio-driven visual representations
US20130069957A1 (en) * 2010-06-02 2013-03-21 Tencent Technology (Shenzhen) Company Limited Method and Device for Playing Animation and Method and System for Displaying Animation Background
KR20140136332A (en) * 2013-05-20 2014-11-28 (주)사운드렉 An acoustic feature extraction method for target acoustic recognition, apparatus for controlling objects by target acoustic recognition and method thereof
US20170206697A1 (en) * 2016-01-20 2017-07-20 Facebook, Inc. Techniques for animating stickers with sound
CN106445460A (en) * 2016-10-18 2017-02-22 渡鸦科技(北京)有限责任公司 Control method and device
CN111540032A (en) * 2020-05-27 2020-08-14 网易(杭州)网络有限公司 Audio-based model control method, device, medium and electronic equipment
CN114419205A (en) * 2021-12-22 2022-04-29 北京百度网讯科技有限公司 Driving method of virtual digital human and training method of pose acquisition model
CN115830193A (en) * 2022-11-07 2023-03-21 厦门黑镜科技有限公司 Method and device for generating digital human animation, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116320520B (en) 2025-08-08

Similar Documents

Publication Publication Date Title
CN107481731B (en) Voice data enhancement method and system
US20210392392A1 (en) Bitrate Optimizations For Immersive Multimedia Streaming
WO2021143564A1 (en) Live broadcast control method and apparatus, electronic device, live broadcast system, and storage medium
WO2021147157A1 (en) Game special effect generation method and apparatus, and storage medium and electronic device
CN107492383B (en) Live content screening method, device, equipment and storage medium
US11269589B2 (en) Inter-channel audio feature measurement and usages
WO2020228383A1 (en) Mouth shape generation method and apparatus, and electronic device
EP4398242A1 (en) Encoding and decoding methods and apparatus, device, storage medium, and computer program
WO2021057740A1 (en) Video generation method and apparatus, electronic device, and computer readable medium
CN115237853A (en) Data query method, device, electronic device and storage medium
WO2022001027A1 (en) Projection screen picture self-adaption method and apparatus in network teaching
WO2020199749A1 (en) Feedback-based information pushing method and apparatus, and electronic device
WO2022213801A1 (en) Video processing method, apparatus, and device
CN116132742A (en) Method for determining video playing speed doubling value, video playing method, device and equipment
CN110503979B (en) Audio output effect monitoring methods, devices, media and electronic equipment
CN116208808A (en) Video template generation method and device and electronic equipment
CN114866802A (en) Video stream transmission method and device, storage medium and electronic device
CN113920225B (en) Animation special effect generation method, medium, device and computing equipment
CN116320520A (en) Model animation rendering method and device, computer storage medium, electronic equipment
CN113965779B (en) Cloud game data transmission method, device, system and electronic device
US20180152739A1 (en) Device-Based Audio-Format Selection
CN116527839A (en) Digital conference interaction method, equipment, system and related equipment
CN112433697B (en) Resource display method and device, electronic equipment and storage medium
CN115278308A (en) Media stream processing method, device, equipment and storage medium
WO2022121778A1 (en) Sound information processing method and apparatus, and computer storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载