Search

CN-116600173-B - Editing method, device, equipment and medium for virtual resources of meta-universe living broadcast room

CN116600173BCN 116600173 BCN116600173 BCN 116600173BCN-116600173-B

Abstract

The application relates to the field of network live broadcast, and provides an editing method and device of virtual resources in a meta-universe live broadcast room, electronic equipment and a computer readable storage medium; the method comprises the steps of initializing a configuration file according to a resource file of a 3D model uploaded by a user, creating a model instance of the 3D model on an editor, editing attributes of the 3D model on the configuration file, associating and debugging the 3D model and the personalized script according to a pre-written personalized script selected by the user, and finally saving the resource file, the configuration file and the associated personalized script of the 3D model as a 3D model file, and uploading the 3D model file to an editor server for loading. According to the technical scheme, the editor with the 3D animation special effect can be provided for editors, and the editor is applied to a 3D animation editing scene, so that the 3D effect of playing virtual resources by a client is improved, the interactivity between the virtual resources and users during playing is enhanced, and the watching retention rate and watching duration of the users are improved.

Inventors

  • XU YINGJUN
  • LI SONG

Assignees

  • 广州方硅信息技术有限公司

Dates

Publication Date
20260512
Application Date
20230428

Claims (12)

  1. 1. A method for editing virtual resources in a metauniverse living broadcast room, wherein the method is used for editing 3D virtual special effects with 3D playing effects on an editor, and comprises the following steps: acquiring a resource file of a 3D model of a meta-universe living broadcast room uploaded through an editor page, and generating an initial configuration file according to attribute information of the 3D model; creating a corresponding model instance on an editor by utilizing a resource file of the 3D model, responding to input model instance configuration operation, performing attribute configuration on the model instance of the 3D model, and updating the attribute configuration on the configuration file; Corresponding personalized scripts are downloaded from plug-in scripts prestored in an editor server in response to script selection operation, the personalized scripts are associated with the 3D model, and model instances of the associated 3D model are debugged according to the personalized scripts in a scene of a metauniverse living broadcast room; After the debugging is passed, the resource file, the configuration file and the associated personalized script of the 3D model are saved as a 3D model file through an editor, and are uploaded to an editor server for loading.
  2. 2. The method for editing virtual resources in a metauniverse as claimed in claim 1, wherein generating an initial configuration file according to attribute information of the 3D model includes: Initializing a project to bear the resource file on an editor in response to the resource file uploaded by a user on the page of the editor, wherein the resource file comprises a model file and a particle file; Copying the resource file into the project engineering, initiating a construction flow in a process according to the project engineering to generate a packaging file of a 3D model, and storing the packaging file; And analyzing the packaged file of the 3D model, extracting resource attribute parameters, and generating an initial configuration file according to the resource attribute parameters.
  3. 3. The method of editing virtual resources in a metauniverse living broadcast room according to claim 2, wherein creating a corresponding model instance on an editor using a resource file of the 3D model, and performing attribute configuration and updating of the model instance of the 3D model onto the configuration file in response to an input model instance configuration operation, comprises: searching a target resource in the imported resource file list through the editor; Responding to an instruction of creating a model instance by a user, and creating a corresponding model instance on an editor page according to the target resource; responding to configuration operation of the model instance of the 3D model input by a user, performing attribute configuration editing on the model instance of the 3D model, and updating the edited attribute configuration information on the configuration file; rendering the 3D model on an editor page.
  4. 4. The method for editing virtual resources of a metauniverse living broadcast room according to claim 2, wherein associating the personalized script with the 3D model and debugging a model instance of the associated 3D model according to the personalized script in a scene of the metauniverse living broadcast room comprises: the method comprises the steps of acquiring a personalized script selected by a user on an editor, wherein the personalized script is pre-written and defines a data interface of the personalized script and interface return data thereof, and the personalized script is used for controlling a picture rendering process of the 3D model; Mounting the personalized script on a model instance of the 3D model; starting the personalized script to debug the data interface in a scene of a meta-universe living broadcast room, and acquiring the return data; and associating the 3D model with the personalized script according to the debugging result, and adding the 3D model and the personalized script into the project engineering.
  5. 5. The method for editing virtual resources in a metauniverse living broadcast room as claimed in claim 4, wherein obtaining the personalized script selected by the user on the editor comprises: Adding a pre-written personalized script into an editor; setting a script button on an editor page, wherein the script button is configured to call a corresponding personalized script in response to a clicking event; and acquiring a script button clicked by a user, and selecting a corresponding personalized script.
  6. 6. The method for editing virtual resources in a meta-universal living room according to claim 4, wherein the data interface is a main broadcasting face data interface; starting the personalized script to debug the data interface and acquiring the returned data in a scene of a meta-universe living broadcast room, wherein the method comprises the following steps: Simulating a scene of a meta-universe living broadcast room on an editor, and simulating the anchor face data based on a unified data structure; Acquiring a 3D model selected by a user through an editor, debugging the anchor face data interface according to the personalized script, and returning to the anchor face position; and controlling the 3D model to move along with the position of the anchor face.
  7. 7. The method for editing virtual resources in a meta-universe living broadcast room according to claim 4, wherein the data interface is a position coordinate interface of a voice room agent; starting the personalized script to debug the data interface and acquiring the returned data in a scene of a meta-universe living broadcast room, wherein the method comprises the following steps: simulating a scene of a meta universe living broadcast room on an editor, and simulating interface data of each seat of a voice room under the scene; loading the position coordinate interface debugged by the user through selecting an animation model by the editor and according to the personalized script, and returning the position coordinate data of the voice room seat; and controlling the animation model to move to the position coordinates corresponding to the voice room seat.
  8. 8. The method for editing virtual resources in a metauniverse living broadcast room according to claim 4, wherein the personalized script further comprises a pre-written universal script, wherein the universal script comprises a touch rotation model script, a touch rotation lens script or a touch vibration script; the method further comprises the steps of: adding the universal script into a personalized script list; acquiring a universal script selected by a user, and recording the function of starting a rotation model by the current 3D model on an editor; and packaging the selected universal script into project engineering, and recording the relation between the 3D model and the universal script in a configuration file.
  9. 9. The method of editing virtual resources of a metauniverse living room according to claim 1, characterized in that saving the configuration file of the 3D model and the associated personalized script as a 3D model file for loading and editing, comprising: Responding to the confirmation saving operation of the user, saving the resource file, the configuration file and the associated personalized script of the 3D model on one warehouse address of the editor, and recording the current model warehouse address; when the user opens the editor next time, the saved resource file, configuration file and associated personalized script of the 3D model are loaded according to the model warehouse address, and restored and loaded on the editor.
  10. 10. An editing apparatus for virtual resources in a metauniverse living broadcast room, wherein the editing apparatus is used for editing 3D virtual special effects with 3D playing effects on an editor, and the editing apparatus comprises: The initialization module is used for acquiring a resource file of a 3D model of the meta space live broadcasting room uploaded through an editor page and generating an initial configuration file according to attribute information of the 3D model; The attribute configuration module is used for creating a corresponding model instance on an editor by utilizing a resource file of the 3D model, responding to input model instance configuration operation, carrying out attribute configuration on the model instance of the 3D model and updating the model instance to the configuration file; The script editing module is used for responding to script selection operation, downloading corresponding personalized scripts from plug-in scripts prestored in an editor server, associating the personalized scripts with the 3D model, and debugging the model instance of the associated 3D model according to the personalized scripts in a scene of a metauniverse living broadcast room; And the model saving module is used for saving the resource file, the configuration file and the associated personalized script of the 3D model as a 3D model file through an editor after the debugging is passed, and uploading the 3D model file to an editor server for loading and use.
  11. 11. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of editing virtual resources of a metauniverse living broadcast room as claimed in any one of claims 1 to 9.
  12. 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 steps of the method for editing virtual resources of a metauniverse living broadcast room as claimed in any one of claims 1 to 9.

Description

Editing method, device, equipment and medium for virtual resources of meta-universe living broadcast room Technical Field The present application relates to the field of network live broadcasting technologies, and in particular, to a method and apparatus for editing virtual resources in a meta-universe live broadcasting room, an electronic device, and a computer readable storage medium. Background With the development of meta-universe technology, the method is also applied to the field of live broadcasting more and more, and based on the virtual live broadcasting room space built by the meta-universe, various virtual resources can be displayed, so that a host and a spectator can perform more immersive live broadcasting interaction. In the live broadcast field, virtual animation special effects are widely used for giving virtual gifts, admission shows, virtual images and the like, the editors of the currently mainstream virtual resources are realized based on game engines, virtual object models created on game making interfaces are utilized, rotation operation is set to control the virtual object models to rotate and other operations, the virtual special effect models can only be played by using mp4 players, svga players and the like on clients, and the 2D effect playing can only be realized by controlling the rotation operation switching angle, so that effective interaction with users cannot be realized, and the overall playing effect and the interactivity are insufficient. However, the animation special effect of the two-dimensional plane manufactured by the conventional editor has weaker stereoscopic impression when played on the client, lacks interactivity with the user, cannot provide higher 3D effect and interaction requirement in the metauniverse scene along with the continuous development of the live broadcasting technology, and is difficult to adapt to the development of the metauniverse live broadcasting technology. Disclosure of Invention In view of the foregoing, it is desirable to provide a method, an apparatus, an electronic device, and a computer-readable storage medium for editing virtual resources in a metauniverse, which improve the 3D effect of the edited virtual resources and interactivity in playing. In a first aspect, the present application provides a method for editing virtual resources in a metauniverse living broadcast room, including: acquiring a resource file of a 3D model of a meta-universe living broadcast room uploaded through an editor page, and generating an initial configuration file according to attribute information of the 3D model; creating a corresponding model instance on an editor by utilizing a resource file of the 3D model, responding to input model instance configuration operation, performing attribute configuration on the model instance of the 3D model, and updating the attribute configuration on the configuration file; Corresponding personalized scripts are downloaded from plug-in scripts prestored in an editor server in response to script selection operation, the personalized scripts are associated with the 3D model, and model instances of the associated 3D model are debugged according to the personalized scripts in a scene of a metauniverse living broadcast room; After the debugging is passed, the resource file, the configuration file and the associated personalized script of the 3D model are saved as a 3D model file through an editor, and are uploaded to an editor server for loading. In one embodiment, the generating an initial configuration file according to the attribute information of the 3D model includes: Initializing a project to bear the resource file on an editor in response to the resource file uploaded by a user on the page of the editor, wherein the resource file comprises a model file and a particle file; Copying the resource file into the project engineering, initiating a construction flow in a process according to the project engineering to generate a packaging file of a 3D model, and storing the packaging file; And analyzing the packaged file of the 3D model, extracting resource attribute parameters, and generating an initial configuration file according to the resource attribute parameters. In one embodiment, creating a corresponding model instance on an editor using a resource file of the 3D model, configuring attributes of the model instance of the 3D model and updating the attributes to the configuration file in response to an input model instance configuration operation, including: searching a target resource in the imported resource file list through the editor; Responding to an instruction of creating a model instance by a user, and creating a corresponding model instance on an editor page according to the target resource; responding to configuration operation of the model instance of the 3D model input by a user, performing attribute configuration editing on the model instance of the 3D model, and updating the edited attribute configurati