WO2025016144A1 - Scene adjustment method and apparatus, device, and storage medium - Google Patents

Scene adjustment method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2025016144A1
WO2025016144A1 PCT/CN2024/100250 CN2024100250W WO2025016144A1 WO 2025016144 A1 WO2025016144 A1 WO 2025016144A1 CN 2024100250 W CN2024100250 W CN 2024100250W WO 2025016144 A1 WO2025016144 A1 WO 2025016144A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
environment information
strength value
virtual scene
rhythm
Prior art date
Application number
PCT/CN2024/100250
Other languages
French (fr)
Chinese (zh)
Inventor
梁凯
高强
黄鑫
李正卿
王同
Original Assignee
北京字跳网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2025016144A1 publication Critical patent/WO2025016144A1/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering

Definitions

  • the embodiments of the present application relate to the field of computer technology, and in particular to a scene adjustment method, apparatus, device and storage medium.
  • Extended Reality With the development of Extended Reality (XR) technology, users can watch various virtual live broadcasts through electronic devices such as XR devices, Virtual Reality (VR) devices or Augmented Reality (AR), thereby obtaining an immersive live broadcast experience that cannot be experienced on traditional electronic devices such as mobile phones or tablets.
  • electronic devices such as XR devices, Virtual Reality (VR) devices or Augmented Reality (AR)
  • VR Virtual Reality
  • AR Augmented Reality
  • the present application provides a scene adjustment method, apparatus, device and storage medium.
  • an embodiment of the present application provides a scene adjustment method, including:
  • the environmental information in the virtual scene is adjusted.
  • An information acquisition module is used to obtain the status information of the target object in the virtual scene
  • the scene adjustment module is used to adjust the environment information in the virtual scene according to the state information of the target object.
  • an electronic device including:
  • a processor and a memory the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the scene adjustment method described in the first aspect embodiment or its various implementation methods.
  • an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the scene adjustment method as described in the embodiment of the first aspect or its various implementations.
  • an embodiment of the present application provides a computer program product comprising program instructions, which, when executed on an electronic device, enables the electronic device to execute the scene adjustment method as described in the embodiment of the first aspect or its various implementations.
  • FIG1 is a schematic diagram of a flow chart of a scene adjustment method provided in an embodiment of the present application.
  • FIG2 is a schematic diagram of setting up a performance stage and various decorative objects in a virtual scene provided by an embodiment of the present application
  • FIG3 is a flow chart of another scene adjustment method provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a flow chart of another scene adjustment method provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of adjusting any environmental parameter on a control panel according to an embodiment of the present application.
  • FIG8 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
  • the environmental information in the performance space where the performers are located is usually expressed in a single form, which cannot meet the diverse viewing needs of users, resulting in limited visual experience for users.
  • the present application provides a scene adjustment scheme to enrich the expression of environmental information in the performance space, thereby providing users with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users and enhance their visual experience. At the same time, it can also enhance the attractiveness and viewing value of music performances.
  • VR Virtual Reality
  • the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.
  • realizing the fusion of virtual environments interactive three-dimensional dynamic vision and simulation of entity behaviors, allowing users to immerse themselves in a simulated virtual reality environment, and realizing applications in a variety of virtual environments such as maps, games, videos, education, medical treatment, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair, etc.
  • VR devices virtual reality devices
  • terminals for realizing virtual reality effects can usually be provided in the form of glasses, helmet-mounted displays (Head Mount Display, HMD), and contact lenses to realize visual perception and other forms of perception.
  • HMD Head Mount Display
  • contact lenses to realize visual perception and other forms of perception.
  • the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged according to actual needs.
  • PC-based virtual reality (PCVR) devices use the PC to perform relevant calculations and data output for virtual reality functions.
  • External PC-based virtual reality devices use the data output by the PC to achieve virtual reality effects.
  • Mobile virtual reality devices support the configuration of mobile terminals (such as smart phones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.
  • mobile terminals such as smart phones
  • ways such as head-mounted displays with dedicated card slots.
  • the mobile terminal Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.
  • All-in-one virtual reality devices have a processor for performing relevant calculations of virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom in use.
  • Augmented Reality A technology that calculates the camera’s attitude parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing images, and adds virtual elements to the images captured by the camera based on the camera attitude parameters.
  • Virtual elements include but are not limited to: images, videos, and three-dimensional models.
  • the goal of AR technology is to integrate the virtual world with the real world on the screen for interaction.
  • Virtual scene (also known as virtual space) is a virtual scene displayed (or provided) when the application is running on an electronic device.
  • the virtual scene can be a simulation of the real world or a semi-simulated and semi-fictional virtual scene. It can also be a purely fictitious virtual scene.
  • the virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene.
  • the embodiment of the present application does not limit the dimension of the virtual scene.
  • the virtual scene may include the sky, land, ocean, etc.
  • the land may include environmental elements such as deserts and cities, and the user can control the virtual object to move in the virtual scene.
  • Virtual objects are objects that interact in virtual scenes and are controlled by users or robot programs (for example, robot programs based on artificial intelligence). They can be still, move, and perform various behaviors in virtual scenes, such as various characters in games.
  • customizing virtual objects when customizing virtual objects, it can be implemented based on the role creation function provided by the electronic device.
  • the specific creation process can be referred to the existing solution, and it will not be described in detail here.
  • S201 If the target object is performance content, obtain current music audio information and/or content type of the performance content in the virtual scene.
  • the current music audio information and/or content type of the performance content can be acquired in real time in different ways.
  • the target environment information may include at least one of the following: lighting effects, theme special effects, environment maps, and prop materials.
  • the above-mentioned lighting effects can be understood as the lighting effects in the virtual scene.
  • Theme effects can be understood as the corresponding animation effects when the virtual scene presents any theme to the user.
  • Environment maps can be understood as the atmosphere maps presented by the stage background or other visible areas, such as a blue sky and white cloud map on the top of the stage, or a large grassland map on the stage floor.
  • Prop materials can be understood as the prop materials presented in the virtual scene, such as prop color, prop transparency, and prop luminosity.
  • determine the target environment information which may include the following situations:
  • the present application determines the target environment information according to the current music audio information of the performance content, and optionally first determines the rhythm and/or beat of the current music audio information, and then determines the target environment information according to the rhythm and/or beat of the current music audio information.
  • the rhythm and/or beat of the current music audio information can be understood as the rhythm of the current music audio information; or, it can also be the beat of the current music audio information; or, it can also be the rhythm and beat of the current music audio information.
  • determining the rhythm and/or beat of the current music audio information may be implemented in the following ways:
  • the first implementation method is
  • the current music audio information is analyzed and processed to determine the rhythm and/or beat of the current music audio information.
  • the spectrum analysis method specifically refers to a music analysis algorithm integrated within the Unity engine.
  • the spectrum analysis method within the Unity engine is used to analyze and process the music audio. Specifically, based on the sound wave frequency that can be heard by the human ear, such as 20 to 20,000 vibrations per second, that is, between 20 Hz and 20,000, the continuous signal (i.e., sound wave) is reduced to a discrete signal (i.e., a series of sample data) by sampling. Then, the discrete signal is converted using the fast Fourier transform algorithm, for example, by calling the fast Fourier transform algorithm through the Audio Source.GetSpectrumData command. Then, the converted signal is serialized into a preset numerical range through a serialization script to obtain the rhythm and/or beat of the music audio.
  • the sound wave frequency that can be heard by the human ear
  • a discrete signal i.e., a series of sample data
  • the discrete signal is converted using the fast Fourier transform algorithm, for example, by calling the fast Fourier transform algorithm through the Audio Source.GetSpectrumData command.
  • the converted signal is serialized into
  • the above preset numerical range can be flexibly set according to actual needs, for example, it can be [0, 1], etc. This application does not impose any restrictions on this range.
  • the second implementation method is
  • the rhythm of the current music audio information is determined.
  • the beat of the current music audio information is determined.
  • the present application can also determine the rhythm of the current music audio information through a beat detection model or a music beat extraction algorithm, and the present application does not impose any specific restrictions on this.
  • the second and third methods can be implemented separately or in combination, specifically according to the rhythm and/or beat of the current music audio information. Specifically, when the rhythm of the current music audio information is determined, the second method is implemented separately; when the beat of the current music audio information is determined, the third method is implemented separately; when the rhythm and beat of the current music audio information are determined, the second and third methods are implemented in combination.
  • rhythm refers to organizing sounds of different lengths to form regular changes in strength, which can be understood as the proportional balance of the entire music.
  • Beat refers to the regular cycle of strong and weak beats of equal duration, specifically the total length of notes in each measure in the score. Therefore, when determining the rhythm and/or beat of the current music audio information through the above three methods, it is also possible to determine the rhythm strength value and/or beat strength value of the music audio.
  • the present application can search for a corresponding rhythm and/or beat of the current music audio information in a pre-established first mapping relationship according to the rhythm and/or beat of the current music audio information.
  • the target environment information is obtained and the found scene information is determined as the target environment information.
  • the above-mentioned pre-established first mapping relationship may be a mapping relationship between rhythm and environmental information, or a mapping relationship between beat and environmental information, or a mapping relationship between rhythm, beat and environmental information.
  • a mapping relationship between the content type and the environment information i.e., a second mapping relationship
  • the environment information corresponding to the content type may be searched in the pre-established second mapping relationship, and the searched scene information may be determined as the target environment information.
  • the target environment information is determined based on the current music audio information and content type of the performance content.
  • the target environment information can be determined according to the rhythm strength value and/or beat strength value of the current music audio information.
  • the following is a specific description of determining the target environment information according to the rhythm strength value and/or beat strength value of the current music audio information in the present application in conjunction with FIG4. Referring to FIG4, the method may include the following steps:
  • S301 If the target object is the performance content, obtain current music audio information of the performance content in the virtual scene.
  • the target environment information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environment information according to the rhythm strength value and the beat strength value of the current music audio information
  • the rhythm strength value or the beat strength value can be used as a search condition at this time, and the target environment information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information.
  • the strength value corresponding to the highest priority is used as a search condition, and the target environment information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information.
  • the rhythm strength value is used as a search condition to determine the target environment information.
  • the beat strength value is used as a search condition to determine the target environment information.
  • the target environment information when determining the target environment information in a pre-established third mapping relationship based on the rhythm strength value and/or beat strength value of the current music audio information, the target environment information may not be found in the pre-established third mapping relationship because the accuracy of the rhythm strength value and/or beat strength value is different from the accuracy in the pre-established third mapping relationship.
  • the rhythm strength value and/or the beat strength value is adjusted by rounding off so that the accuracy of the adjusted rhythm strength value and/or the adjusted beat strength value is the same as the accuracy of the pre-established third mapping relationship, so that the target environment information corresponding to the rhythm strength value and/or the beat strength value can be found from the pre-established third mapping relationship.
  • the rhythm strength value of a certain music audio is 0.09
  • the precision of the pre-established third mapping relationship is 0.1, such as the above Table 1. Because the last digit 9 in 0.09 is greater than 5, the unit to the left of 9 can be moved up one digit, so that the adjusted rhythm strength value changes from 0.09 to 0.1.
  • the environmental information corresponding to the rhythm strength value 0.1 includes: the lighting effect is the light brightness adjusted from the first value to the second value; the theme effect is the theme effect A; the environmental map is the environmental map X1, such as seaweed, etc.; the prop material is the color value of the prop color adjusted from the first value to the second value. Then, the above-searched environmental information is used as the target environmental information.
  • the value of the strength value in the pre-established third mapping relationship is set to an interval, thereby determining the rhythm strength value interval corresponding to the rhythm strength value of the current music audio information and/or the beat strength value interval corresponding to the beat strength value of the current music audio information. Then, according to the rhythm strength value interval and/or the beat strength value interval, the target environment information is determined in the preset mapping relationship.
  • rhythm strength value interval includes five rhythm strength value intervals, specifically: [0,0.2), [0.2,0.4), [0.4,0.6), [0.6,0.8), [0.8,1], and the environmental information corresponding to each rhythm strength value interval is: the first group of environmental information, the second group of environmental information, the third group of environmental information, the fourth group of environmental information, and the fifth group of environmental information.
  • Table 4 For details, please refer to the following Table 4.
  • the rhythm strength value interval corresponding to the rhythm strength value 0.51 is determined to be [0.4, 0.6).
  • the target environmental information is determined to be the third group of environmental information in the mapping relationship between the rhythm strength value interval and the environmental information, and the third group of environmental information includes: the lighting effect is that the first group of lights are on and the second group of lights are off; the theme special effect is theme special effect B; the environmental map is environmental map Y2; the color value of the prop color remains unchanged at the fourth value.
  • the present application can adjust the current environment information in the virtual scene based on the target environment information, so that the environment information presented in the virtual scene can be dynamically adjusted in real time with the rhythm strength value and/or the beat strength value of the music audio information. Therefore, it enriches the expression of stage environment information.
  • the scene adjustment method provided by the embodiment of the present application obtains the current music audio information of the performance content in the virtual scene, and determines the rhythm and/or beat of the current music audio, so as to determine the target environment information according to the rhythm strength value and/or beat strength value of the current music audio information, and then adjusts the environment information in the virtual scene according to the target environment information.
  • the environmental information expression form of the performance space can be enriched, so that users can be provided with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users, enhance the visual experience of users, and also enhance the attractiveness and appreciation of music performances.
  • it can also bring richer performance effects to the performances in the virtual scene, making the traditional relatively static environmental information more diverse and interactive, thereby improving the performance performance ability and the visual experience of users in the entire virtual scene.
  • the target object in this application can be the performance content of the performer or the user interaction operation of the audience
  • the following is a specific description of adjusting the environment information in the virtual scene based on the state information of the user interaction operation, taking the target object as the user interaction operation, in conjunction with FIG. 5 .
  • the method comprises the following steps:
  • S402 Determine target environment information according to an operation instruction, interactive element or interactive state of a user interactive operation.
  • this application can obtain the operation instruction, interactive element or interactive state corresponding to the user's interactive operation. Then, the target environmental information is determined according to the operation instruction, interactive element or interactive state of the user's interactive operation.
  • the above-mentioned operation instructions can be understood as the triggering instructions of any environmental parameters by the user on the control panel provided in the virtual scene.
  • the operation panel can be a virtual screen located in the virtual scene, so that the user as the audience can perform various live broadcast operations through the control panel, such as adjusting the environmental parameters in the virtual scene.
  • Interactive elements can be understood as various elements that improve the interactive atmosphere, such as pen refill emojis, like emojis, fireworks emojis, text emojis, etc. There are no restrictions on them here.
  • the interactive state can be understood as the state of the user in the virtual scene, where the state of the user in the virtual scene can be a spectator or a performer.
  • the user can switch his state from the spectator state to the performer state and perform a live performance in the virtual scene.
  • the target environment information is determined according to the operation instruction, interactive element or interactive state of the user interaction operation, which may include the following situations:
  • the target environmental information is determined.
  • the control panel is located in the virtual scene.
  • the control panel switches from the current display interface to the environment adjustment interface, where the environment adjustment interface may include various environment parameter items, such as lighting effects, theme effects, and environment maps. Furthermore, the user can adjust any environment parameter item according to his or her own adjustment needs for the environmental information in the virtual scene.
  • the electronic device obtains the user's adjustment instruction for any environment parameter item on the environment adjustment interface, it counts which environment parameter items are adjusted, and obtains the target environment information based on the adjusted environment parameters.
  • each environment parameter in Figure 6 can also be a progress bar set for each environment parameter, so that the user drags the progress bar to adjust the environment parameter.
  • an interactive element corresponding to the interactive operation is determined, and the interactive element is added to the current environment information of the interactive scene to obtain the target environment information.
  • users can interact with performers or follow the performance content while watching the performance of performers.
  • they can manipulate fluorescent sticks or other types of interactive objects by manipulating interactive controllers such as handles, hand controllers, or gloves; or, users can also interact by holding fluorescent sticks or other objects with bare hands; or, users can also interact by manipulating interactive controllers, etc.
  • This application does not impose any restrictions on the interaction method.
  • the electronic device When the electronic device detects an interactive operation triggered by a user, it first determines the interactive element corresponding to the interactive operation, and then adds the determined interactive element to the current environment information of the virtual scene to obtain the target environment information.
  • the interactive element corresponding to the interactive operation can be determined in the pre-established mapping relationship between interactive operations and interactive elements. Then, the interactive element corresponding to the interactive operation is added to the current environment information in the virtual scene to obtain the target environment information.
  • the pre-established mapping relationship between interactive operations and interactive elements may be as shown in the following Table 5:
  • mapping relationship between the above-mentioned interactive operations and interactive elements can be flexibly adjusted and updated according to the adjustment requirements of the environmental information in the virtual scene.
  • the user's identity is switched from audience to performer. Further, the target environment information is determined according to the performance content of the user whose interactive status is performer.
  • the audience and performers can switch identities in the virtual scene to increase the interactive effect of the entire live broadcast room, High audience participation enthusiasm. Therefore, when a user wants to perform music as a performer, the user can send an identity switching operation through voice, eye tracking, gestures, or a control handle to switch the user's audience identity to a performer, and then perform in the virtual scene as a performer in the interactive state, and then determine the target environment information according to the user's performance content.
  • the user can trigger the identity switching operation by clicking the identity switching control displayed on the live broadcast room through the control handle. Then, the electronic device can switch the user's identity from audience to performer according to the identity switching operation triggered by the user.
  • the electronic device When the user triggers the identity switching operation, there may be a performer currently performing. At this time, the electronic device will display a prompt message to the user such as: A performer is currently performing, please wait. When it is determined that the above performer has finished the performance, the electronic device performs the identity switching operation to switch the user's identity from the audience to the latest performer, so that the user can perform as a performer, so that the user can more freely control the performance effect in the virtual scene, improving the efficiency and quality of the performance.
  • S403 Adjust the environment information in the virtual scene according to the target environment information.
  • the present application can update the environment information in the virtual scene in real time based on the target environment information.
  • the target environmental information is to add the interactive elements corresponding to the user's interactive operation to the current environmental information of the virtual scene
  • the corresponding interactive elements can be displayed near the interactive operation triggered by the user, so as to respond to the user's interactive operation, improve the visual effect of the user's interaction and the interactive atmosphere of the entire virtual scene.
  • the present application preferably only adjusts the environmental information seen by the user who triggers the interactive operation, so that the user who triggers the interactive operation can see the corresponding interactive response from his or her own perspective, while no processing is performed in the vision of other users. This allows for a single-person interactive response to an interactive operation triggered by a single person, thereby avoiding the abrupt feeling of environmental information adjustment that occurs to other users while they are watching the performance due to the lack of an interactive operation being triggered.
  • the present application will execute steps S201 to S203, or steps S301 to S304 in the aforementioned embodiments, so as to achieve real-time dynamic adjustment of the environmental information in the virtual scene following the performer's performance, thereby improving the performance ability of the virtual scene and the visual effect of the user.
  • the present application when the user performs interactive operations in a virtual scene, can optionally perform enhanced display based on the current environmental information of the virtual scene to adjust the environmental information, thereby further improving the user's interactive interest and enthusiasm.
  • enhanced display can be understood as increasing the brightness of the light, driving the playback of preset special effects and/or turning on and off preset light groups, etc. based on the current environmental information presentation.
  • the above current environment information is the environment information before adjustment or the environment information after adjustment, and no restriction is imposed on it here.
  • the enhanced display of the current environment information of the virtual scene may include at least one of the following situations:
  • the motion trajectory of the interactive controller manipulated by the user is a preset motion trajectory
  • the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory.
  • the motion trajectory of the interactive controller can be determined according to the position data in the posture data determined by the inertial measurement unit data sent by the inertial measurement unit (IMU) in the interactive controller.
  • the specific determination process is the conventional technology in the field and will not be elaborated here.
  • the preset motion trajectory can be set according to actual interaction needs, such as drawing a circle or a center.
  • the present application may compare the motion trajectory of the interactive controller with a preset motion trajectory. If the motion trajectory is the same as any preset motion trajectory, the current environmental information in the virtual scene is enhanced and displayed according to the enhanced display method associated with the preset motion trajectory.
  • the enhanced display mode associated with the preset motion trajectory may be a mapping relationship between the motion trajectory and the enhanced display mode pre-built by the technician, and the mapping relationship may also be stored in the database.
  • the technician may also update the mapping relationship between the motion trajectory and the enhanced display mode at regular intervals to meet the needs of the virtual scene to respond to the interactive operation in a personalized manner through environmental information.
  • the movement amplitude of the user manipulating the interactive controller reaches the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude.
  • the movement amplitude of the interactive controller can be determined based on the inertial measurement unit data sent by the inertial measurement unit (IMU) in the interactive controller. Specifically, the movement distance of the user manipulating the interactive controller can be determined based on the position data in the posture data determined by the inertial measurement unit data, and the movement distance is determined as the movement amplitude of the interactive controller.
  • the movement distance can be determined based on the position data of the interactive controller, and can be determined based on a two-point distance calculation formula, such as calculating the Euclidean distance, etc., which is not specifically limited here.
  • the amplitude threshold can be set according to actual interaction requirements, such as 20 cm or 40 cm, etc. This application does not impose any restrictions on it.
  • the present application may compare the movement amplitude of the interactive controller with the amplitude threshold, and if the movement amplitude is greater than the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed in a preset enhanced display mode. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.
  • any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.
  • the movement frequency of the user manipulating the interactive controller reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency.
  • the present application can capture real-time images of the user operating the interactive controller through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image captured by the camera to determine the movement frequency of the interactive controller.
  • the specific identification method can refer to the existing implementation method, which will not be described in detail here.
  • the electronic device may compare the movement frequency of the interactive controller with the frequency threshold, and if the movement frequency is greater than the frequency threshold, the current environment information in the virtual scene is enhanced and displayed in a preset enhanced display manner. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.
  • any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.
  • the motion trajectory of the user's hand is a preset motion trajectory
  • the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory.
  • the user's hand may be understood as the user's real hand, or a virtual hand model presented in the virtual space, and no specific limitation is imposed on it here.
  • the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image collected by the camera to determine the movement trajectory of the user's hands.
  • the specific identification method can refer to the existing implementation method, which will not be described in detail here.
  • the motion trajectory of the user's hand can be compared with the preset motion trajectory. If the motion trajectory is the same as any preset motion trajectory, the current environmental information in the virtual scene is enhanced and displayed according to the enhanced display method associated with the preset motion trajectory.
  • the enhanced display mode associated with the preset motion trajectory may be a mapping relationship between the motion trajectory and the enhanced display mode pre-constructed by the technician, and the mapping relationship may also be stored in the database.
  • the technician may also update the mapping relationship between the motion trajectory and the enhanced display mode at regular intervals to meet the personalized display requirements of different performance stages.
  • the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude.
  • the amplitude threshold can be set according to actual interaction requirements, such as 20 cm or 40 cm, etc. This application does not impose any restrictions on it.
  • the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image collected by the camera to determine the movement amplitude of the user's hands.
  • the specific identification method can refer to the existing implementation method, which will not be described in detail here.
  • the movement amplitude of the user's hand can be compared with the amplitude threshold, and if the movement amplitude is greater than the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the preset enhanced display mode. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.
  • any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.
  • the movement frequency of the user's hand reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency.
  • the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking images collected by the camera to determine the movement frequency of the user's hands.
  • the specific identification method can refer to the existing implementation method, which will not be described in detail here.
  • the electronic device may compare the movement frequency of the user's hand with the frequency threshold, and if the movement frequency is greater than the frequency threshold, the current environment information in the virtual scene is enhanced and displayed in a preset enhanced display manner. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.
  • any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.
  • the user gesture is a preset gesture
  • the current environment information in the virtual scene is enhanced and displayed according to the gesture.
  • the preset gesture may be a pre-set gesture, and the gesture may be flexibly adjusted according to actual interaction needs, such as: a thumbs-up gesture, a heart gesture, etc., and no specific restrictions are imposed here.
  • the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image collected by the camera to determine the gestures made by the user's hands.
  • the specific identification method can refer to the existing implementation method, which will not be described in detail here.
  • the electronic device can compare the gesture made by the user's hand with the preset gesture. If the gesture made by the user's hand is the same as any preset gesture, the current environmental information in the virtual scene is enhanced and displayed according to the enhanced display method associated with the preset gesture.
  • the enhanced display mode associated with the preset gesture may be a mapping relationship between the gesture and the enhanced display mode pre-built by the technician, and the mapping relationship may also be stored in the database.
  • the technician may also update the mapping relationship between the gesture and the enhanced display mode at regular intervals to meet the personalized display requirements of different performance stages.
  • Strong display including at least one of the following:
  • the motion trajectory of the interactive controller controlled by the user is a preset motion trajectory
  • the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory
  • the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude
  • the movement frequency of the user manipulating the interactive controller reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency;
  • the motion trajectory of the user's hand is a preset motion trajectory
  • the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory
  • the movement amplitude of the user's hand reaches the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude;
  • the movement frequency of the user's hand reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency;
  • the user gesture is a preset gesture
  • the current environment information in the virtual scene is enhanced and displayed according to the gesture.
  • the scene adjustment method provided in the embodiment of the present application obtains the operation instructions, interactive elements or interactive states of the user's interactive operation in the virtual scene, determines the target environment information according to the operation instructions, interactive elements or interactive states of the user's interactive operation, and then adjusts the environment information in the virtual scene according to the target environment information.
  • the environmental information expression form of the performance space can be enriched, so that users can be provided with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users, enhance the user's visual experience, and also enhance the attractiveness and viewing of music performances.
  • the user's interactive interest and interactive enthusiasm can be improved, and the performance presentation effect in the entire virtual scene can be dynamically adjusted according to the user's interactive operation, further enriching the performance effect of the stage and enhancing the user's viewing experience.
  • FIG7 is a schematic block diagram of a scene adjustment device provided in an embodiment of the present application.
  • the scene adjustment device 400 includes: an information acquisition module 410 and a scene adjustment module 420 .
  • the information acquisition module 410 is used to acquire the state information of the target object in the virtual scene
  • the scene adjustment module 420 is used to adjust the environment information in the virtual scene according to the state information of the target object.
  • the target object includes: performance content and user interactive operations
  • the information acquisition module 410 is specifically used for:
  • the target object is the performance content, obtaining current music audio information and/or content type of the performance content in the virtual scene;
  • the target object is the user interactive operation
  • an operation instruction, an interactive element or an interactive state of the user interactive operation in the virtual scene is obtained.
  • the scene adjustment module 420 when the target object is the performance content, includes:
  • a first determining unit configured to determine target environment information according to current music audio information and/or content type of the performance content
  • An adjustment unit is used to adjust the environment information in the virtual scene according to the target environment information.
  • the first determining unit is specifically configured to:
  • the target environment information is determined according to the rhythm and/or beat of the current music audio information.
  • the first determining unit is further configured to:
  • the target environment information is determined according to the rhythm strength value and/or the beat strength value of the current music audio information.
  • the first determining unit is further configured to:
  • the beat strength value of the current music audio information determining the target environment information in the mapping relationship between the beat strength value and the environment information;
  • the target environmental information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information.
  • the first determining unit is specifically configured to:
  • the preset mapping relationship is a mapping relationship between rhythm strength value intervals and environmental information, a mapping relationship between beat strength value intervals and environmental information, or a mapping relationship between rhythm strength value intervals, beat strength value intervals and environmental information.
  • the first determining unit is specifically configured to:
  • the target environment information is determined in a mapping relationship between content type and environment information according to the content type of the performance content.
  • the first determining unit is specifically configured to:
  • the first environment information and the second environment information are integrated to obtain the target environment information.
  • the scene adjustment module 420 when the target object is the user interactive operation, includes:
  • a second determining unit configured to determine target environment information according to an operation instruction, an interactive element or an interactive state of the user interactive operation
  • the adjustment unit is further used to adjust the environmental information in the virtual scene according to the target environmental information.
  • the second determining unit is specifically configured to:
  • the target environment information is determined in response to an operation instruction of a user on a control panel for any environment parameter, wherein the control panel is located in the virtual scene.
  • the second determining unit is specifically configured to:
  • the target environment information is determined according to the performance content of the user whose interactive state is a performer.
  • the scene adjustment module 420 further includes:
  • An element determination unit configured to determine, in response to an interactive operation triggered by a user, an interactive element corresponding to the interactive operation
  • the second determining unit is specifically configured to:
  • the interactive element is added to the current environment information of the interactive scene to obtain the target environment information.
  • the target environment information includes at least one of the following: lighting effects, theme special effects, environment maps, and prop materials.
  • the scene adjustment device obtained in the embodiment of the present application obtains the state information of the target object in the virtual scene, and adjusts the environmental information in the virtual scene according to the state information of the target object.
  • the environmental information in the virtual scene where the performer is located can be adjusted in real time based on the acquired state information of the target object, thereby enriching the environmental information expression form of the performance space, thereby providing users with more colorful visual effects and artistic appeal, so as to meet the diverse viewing needs of users, enhance the visual experience of users, and also enhance the attractiveness and appreciation of music performances.
  • the device 400 shown in FIG. 7 can execute the method embodiment corresponding to FIG. 1, and the aforementioned and other operations and/or functions of each module in the device 400 are respectively for implementing the corresponding processes in each method in FIG. 1, and for the sake of brevity, no further description is given here.
  • each step of the first aspect of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit in the processor and/or the software form of the instruction, combined with the first aspect of the method disclosed in the embodiment of the present application
  • the steps can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above-mentioned first aspect method embodiment in combination with its hardware.
  • FIG8 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
  • the electronic device 500 may include:
  • the memory 510 and the processor 520 the memory 510 is used to store the computer program and transmit the program code to the processor 520.
  • the processor 520 can call and run the computer program from the memory 510 to implement the scene adjustment method in the embodiment of the present application.
  • the processor 520 may be used to execute the above-mentioned scene adjustment method embodiment according to the instructions in the computer program.
  • the scene adjustment method includes:
  • the environmental information in the virtual scene is adjusted.
  • the target objects include: performance content and user interactive operations;
  • the step of obtaining the state information of the target object in the virtual scene includes:
  • the target object is the performance content, obtaining current music audio information and/or content type of the performance content in the virtual scene;
  • the target object is the user interactive operation
  • an operation instruction, an interactive element or an interactive state of the user interactive operation in the virtual scene is obtained.
  • adjusting the environmental information in the virtual scene according to the state information of the target object includes:
  • the environment information in the virtual scene is adjusted.
  • determining the target environment information according to the current music audio information of the performance content includes:
  • the target environment information is determined according to the rhythm and/or beat of the current music audio information.
  • determining the target environment information according to the rhythm and/or beat of the current music audio information includes:
  • the target environment information is determined according to the rhythm strength value and/or the beat strength value of the current music audio information.
  • determining the target environment information according to the rhythm strength value and/or the beat strength value of the current music audio information includes:
  • the beat strength value of the current music audio information determining the target environment information in the mapping relationship between the beat strength value and the environment information;
  • the target environmental information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information.
  • determining the target environment information according to the rhythm strength value and/or the beat strength value of the current music audio information includes:
  • the preset mapping relationship is a mapping relationship between rhythm strength value intervals and environmental information, a mapping relationship between beat strength value intervals and environmental information, or a mapping relationship between rhythm strength value intervals, beat strength value intervals and environmental information.
  • determining the target environment information according to the content type of the performance content includes:
  • the target environment information is determined in a mapping relationship between content type and environment information according to the content type of the performance content.
  • determining the target environment information according to the current music audio information and content type of the performance content includes:
  • the first environment information and the second environment information are integrated to obtain the target environment information.
  • adjusting the environmental information in the virtual scene according to the state information of the target object includes:
  • the environment information in the virtual scene is adjusted.
  • determining the target environment information according to the operation instruction of the user interactive operation includes:
  • the target environment information is determined in response to an operation instruction of a user on a control panel for any environment parameter, wherein the control panel is located in the virtual scene.
  • determining the target environment information according to the interactive state of the user interactive operation includes:
  • the target environment information is determined according to the performance content of the user whose interactive state is a performer.
  • the method before determining the target environment information according to the interactive element of the user interactive operation, the method further includes:
  • determining target environment information according to the interactive element of the user interactive operation includes:
  • the interactive element is added to the current environment information of the interactive scene to obtain the target environment information.
  • the target environment information includes at least one of the following: lighting effects, theme special effects, environment maps and prop materials.
  • the processor 520 may include but is not limited to:
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the memory 510 includes but is not limited to:
  • Non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory.
  • the volatile memory can be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link DRAM
  • Direct Rambus RAM Direct Rambus RAM
  • the computer program may be divided into one or more modules, which are stored in the memory 510 and executed by the processor 520 to complete the scene adjustment method provided by the present application.
  • the one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
  • the electronic device 500 may further include:
  • the transceiver 530 may be connected to the processor 520 or the memory 510 .
  • the processor 520 may control the transceiver 530 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.
  • the transceiver 530 may include a transmitter and a receiver.
  • the transceiver 530 may further include an antenna, and the number of antennas may be one or more.
  • bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
  • the present application also provides a computer storage medium on which a computer program is stored.
  • the computer program is executed by a computer, the computer is enabled to execute the method of the above method embodiment.
  • An embodiment of the present application further provides a computer program product including program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the method of the above method embodiment.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
  • the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations.
  • the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
  • a magnetic medium e.g., a floppy disk, a hard disk, a magnetic tape
  • an optical medium e.g., a digital video disc (DVD)
  • DVD digital video disc
  • SSD solid state disk
  • modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the module is only a logical function division.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
  • each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a scene adjustment method and apparatus, a device, and a storage medium. The method comprises: acquiring status information of a target object in a virtual scene; on the basis of the status information of the target object, adjusting environment information in the virtual scene.

Description

场景调整方法、装置、设备和存储介质Scene adjustment method, device, equipment and storage medium

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请以申请号为202310870291.9、申请日为2023年07月14日的中国专利申请为基础,并主张其优先权,该中国专利申请的公开内容在此作为整体引入本申请中。This application is based on and claims the priority of a Chinese patent application with application number 202310870291.9 and application date July 14, 2023. The disclosed content of the Chinese patent application is hereby introduced as a whole into this application.

技术领域Technical Field

本申请实施例涉及计算机技术领域,尤其涉及一种场景调整方法、装置、设备和存储介质。The embodiments of the present application relate to the field of computer technology, and in particular to a scene adjustment method, apparatus, device and storage medium.

背景技术Background Art

随着扩展现实(Extended Reality,简称为XR)技术的发展,用户可以通过诸如XR设备、虚拟现实(Virtual Reality,VR)设备或增强现实(Augmented Reality,AR)等电子设备观看各种虚拟直播,从而可以获取到在传统电子设备诸如手机或平板电脑上无法体验到的沉浸式直播体验。With the development of Extended Reality (XR) technology, users can watch various virtual live broadcasts through electronic devices such as XR devices, Virtual Reality (VR) devices or Augmented Reality (AR), thereby obtaining an immersive live broadcast experience that cannot be experienced on traditional electronic devices such as mobile phones or tablets.

发明内容Summary of the invention

本申请提供一种场景调整方法、装置、设备和存储介质。The present application provides a scene adjustment method, apparatus, device and storage medium.

第一方面,本申请实施例提供一种场景调整方法,包括:In a first aspect, an embodiment of the present application provides a scene adjustment method, including:

获取虚拟场景内目标对象的状态信息;Obtaining status information of target objects in the virtual scene;

根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息。According to the state information of the target object, the environmental information in the virtual scene is adjusted.

第二方面,本申请实施例提供一种场景调整装置,包括:In a second aspect, an embodiment of the present application provides a scene adjustment device, including:

信息获取模块,用于获取虚拟场景内目标对象的状态信息;An information acquisition module is used to obtain the status information of the target object in the virtual scene;

场景调整模块,用于根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息。The scene adjustment module is used to adjust the environment information in the virtual scene according to the state information of the target object.

第三方面,本申请实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present application provides an electronic device, including:

处理器和存储器,所述存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,以执行第一方面实施例或其各实现方式中所述的场景调整方法。A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the scene adjustment method described in the first aspect embodiment or its various implementation methods.

第四方面,本申请实施例提供一种计算机可读存储介质,用于存储计算机程序,所述计算机程序使得计算机执行如第一方面实施例或其各实现方式中所述的场景调整方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the scene adjustment method as described in the embodiment of the first aspect or its various implementations.

第五方面,本申请实施例提供了一种包含程序指令的计算机程序产品,当所述程序指令在电子设备上运行时,使得所述电子设备执行如第一方面实施例或其各实现方式中所述的场景调整方法。In a fifth aspect, an embodiment of the present application provides a computer program product comprising program instructions, which, when executed on an electronic device, enables the electronic device to execute the scene adjustment method as described in the embodiment of the first aspect or its various implementations.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的 附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will describe the technical solutions required in the embodiments. The accompanying drawings are briefly introduced. Obviously, the accompanying drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without any creative work.

图1是本申请实施例提供的一种场景调整方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a scene adjustment method provided in an embodiment of the present application;

图2是本申请实施例提供的一种在虚拟场景内设置表演舞台以及各种装饰物体的示意图;FIG2 is a schematic diagram of setting up a performance stage and various decorative objects in a virtual scene provided by an embodiment of the present application;

图3是本申请实施例提供的另一种场景调整方法的流程示意图;FIG3 is a flow chart of another scene adjustment method provided in an embodiment of the present application;

图4是本申请实施例提供的再一种场景调整方法的流程示意图;FIG4 is a flow chart of another scene adjustment method provided in an embodiment of the present application;

图5是本申请实施例提供的又一种场景调整方法的流程示意图;FIG5 is a schematic diagram of a flow chart of another scene adjustment method provided in an embodiment of the present application;

图6是本申请实施例提供的一种在操控面板上对任意环境参数进行调整的示意图;FIG6 is a schematic diagram of adjusting any environmental parameter on a control panel according to an embodiment of the present application;

图7是本申请实施例提供的一种场景调整装置的示意性框图;FIG7 is a schematic block diagram of a scene adjustment device provided in an embodiment of the present application;

图8是本申请实施例提供的一种电子设备的示意性框图。FIG8 is a schematic block diagram of an electronic device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。根据本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. According to the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或服务器不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

考虑到目前用户基于诸如XR设备、虚拟现实(Virtual Reality,VR)设备或增强现实(Augmented Reality,AR)等电子设备观看各种虚拟直播,比如音乐表演直播或打碟直播等时,表演者所在表演空间内的环境信息表现形式通常比较单一,无法满足用户的多样性观看需求,导致用户的视觉体验有限。为此,本申请提供了一种场景调整方案,以通过该方案来丰富表演空间内环境信息的表现形式,从而能够向用户提供更加丰富多彩的视觉效果和艺术感染力,以满足用户的多样化观看需求,提升用户的视觉体验。同时,还可以提升音乐表演的吸引力和观赏性。Considering that users currently watch various virtual live broadcasts based on electronic devices such as XR devices, virtual reality (VR) devices or augmented reality (AR), such as live music performances or live DJing, the environmental information in the performance space where the performers are located is usually expressed in a single form, which cannot meet the diverse viewing needs of users, resulting in limited visual experience for users. To this end, the present application provides a scene adjustment scheme to enrich the expression of environmental information in the performance space, thereby providing users with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users and enhance their visual experience. At the same time, it can also enhance the attractiveness and viewing value of music performances.

为了便于理解本申请实施例,在描述本申请各个实施例之前,首先对本申请所有实施例中所涉及到的一些概念进行适当的解释说明,具体如下: In order to facilitate understanding of the embodiments of the present application, before describing each embodiment of the present application, some concepts involved in all embodiments of the present application are first appropriately explained, as follows:

1)虚拟现实(Virtual Reality,VR),创建和体验虚拟世界的技术,计算生成一种虚拟环境,是一种多源信息(本文中提到的虚拟现实至少包括视觉感知,此外还可以包括听觉感知、触觉感知、运动感知,甚至还包括味觉感知、嗅觉感知等),实现虚拟环境的融合的、交互式的三维动态视景和实体行为的仿真,使用户沉浸到模拟的虚拟现实环境中,实现在诸如地图、游戏、视频、教育、医疗、模拟、协同训练、销售、协助制造、维护和修复等多种虚拟环境的应用。1) Virtual Reality (VR), a technology for creating and experiencing a virtual world, generates a virtual environment through computational means, and is a kind of multi-source information (the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.), realizing the fusion of virtual environments, interactive three-dimensional dynamic vision and simulation of entity behaviors, allowing users to immerse themselves in a simulated virtual reality environment, and realizing applications in a variety of virtual environments such as maps, games, videos, education, medical treatment, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair, etc.

2)虚拟现实设备(VR设备),实现虚拟现实效果的终端,通常可以提供为眼镜、头盔式显示器(Head Mount Display,HMD)、隐形眼镜的形态,以用于实现视觉感知和其他形式的感知,当然虚拟现实设备实现的形态不限于此,根据实际需要可以进一步小型化或大型化。2) Virtual reality devices (VR devices), terminals for realizing virtual reality effects, can usually be provided in the form of glasses, helmet-mounted displays (Head Mount Display, HMD), and contact lenses to realize visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged according to actual needs.

可选的,本申请实施例中记载的虚拟现实设备可以包括但不限于如下几个类型:Optionally, the virtual reality devices described in the embodiments of the present application may include but are not limited to the following types:

2.1)电脑端虚拟现实(PCVR)设备,利用PC端进行虚拟现实功能的相关计算以及数据输出,外接的电脑端虚拟现实设备利用PC端输出的数据实现虚拟现实的效果。2.1) PC-based virtual reality (PCVR) devices use the PC to perform relevant calculations and data output for virtual reality functions. External PC-based virtual reality devices use the data output by the PC to achieve virtual reality effects.

2.2)移动虚拟现实设备,支持以各种方式(如设置有专门的卡槽的头戴式显示器)设置移动终端(如智能手机),通过与移动终端有线或无线方式的连接,由移动终端进行虚拟现实功能的相关计算,并输出数据至移动虚拟现实设备,例如通过移动终端的APP观看虚拟现实视频。2.2) Mobile virtual reality devices support the configuration of mobile terminals (such as smart phones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.

2.3)一体机虚拟现实设备,具备用于进行虚拟功能的相关计算的处理器,因而具备独立的虚拟现实输入和输出的功能,不需要与PC端或移动终端连接,使用自由度高。2.3) All-in-one virtual reality devices have a processor for performing relevant calculations of virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom in use.

3)增强现实(Augmented Reality,AR):一种在相机采集图像的过程中,实时地计算相机在现实世界(或称三维世界、真实世界)中的相机姿态参数,根据该相机姿态参数在相机采集的图像上添加虚拟元素的技术。虚拟元素包括但不限于:图像、视频和三维模型。AR技术的目标是在屏幕上把虚拟世界套接在现实世界上进行互动。3) Augmented Reality (AR): A technology that calculates the camera’s attitude parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing images, and adds virtual elements to the images captured by the camera based on the camera attitude parameters. Virtual elements include but are not limited to: images, videos, and three-dimensional models. The goal of AR technology is to integrate the virtual world with the real world on the screen for interaction.

4)混合现实(Mixed Reality,MR):将计算机创建的感官输入(例如,虚拟对象)与来自物理布景的感官输入或其表示集成的模拟布景,一些MR布景中,计算机创建的感官输入可以适应于来自物理布景的感官输入的变化。另外,用于呈现MR布景的一些电子系统可以监测相对于物理布景的取向和/或位置,以使虚拟对象能够与真实对象(即来自物理布景的物理元素或其表示)交互。例如,系统可监测运动,使得虚拟植物相对于物理建筑物看起来是静止的。4) Mixed Reality (MR): A simulated set that integrates computer-created sensory input (e.g., virtual objects) with sensory input from a physical set or its representation. In some MR sets, the computer-created sensory input can adapt to changes in the sensory input from the physical set. In addition, some electronic systems used to present MR sets can monitor the orientation and/or position relative to the physical set to enable virtual objects to interact with real objects (i.e., physical elements from the physical set or their representations). For example, the system can monitor movement so that virtual plants appear stationary relative to physical buildings.

5)扩展现实(Extended Reality,XR)是指由计算机技术和可穿戴设备生成的所有真实和虚拟组合环境以及人机交互,其包含了虚拟现实(VR)、增强现实(AR)以及混合现实(MR)等多种形式。5) Extended Reality (XR) refers to all real and virtual combined environments and human-computer interactions generated by computer technology and wearable devices, which include virtual reality (VR), augmented reality (AR) and mixed reality (MR) and other forms.

6)虚拟场景(又称为虚拟空间),是应用程序在电子设备上运行时显示(或提供)的虚拟场景。该虚拟场景可以是对真实世界的仿真环境,也可以是半仿真半虚构的虚拟场景, 还可以是纯虚构的虚拟场景。虚拟场景可以是二维虚拟场景、2.5维虚拟场景或者三维虚拟场景中的任意一种,本申请实施例对虚拟场景的维度不加以限定。例如,虚拟场景可以包括天空、陆地、海洋等,该陆地可以包括沙漠、城市等环境元素,用户可以控制虚拟对象在该虚拟场景中进行移动。6) Virtual scene (also known as virtual space) is a virtual scene displayed (or provided) when the application is running on an electronic device. The virtual scene can be a simulation of the real world or a semi-simulated and semi-fictional virtual scene. It can also be a purely fictitious virtual scene. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and the user can control the virtual object to move in the virtual scene.

7)虚拟对象,是虚拟场景中进行交互的对象,受到用户或机器人程序(例如,基于人工智能的机器人程序)的控制,能够在虚拟场景中静止、移动以及进行各种行为的对象,例如游戏中的各种角色等。7) Virtual objects are objects that interact in virtual scenes and are controlled by users or robot programs (for example, robot programs based on artificial intelligence). They can be still, move, and perform various behaviors in virtual scenes, such as various characters in games.

在介绍了本申请实施例涉及到的一些概念之后,下面结合附图对本申请实施例提供的一种场景调整方法、装置、设备和存储介质进行具体说明。After introducing some concepts involved in the embodiments of the present application, a scene adjustment method, device, equipment and storage medium provided in the embodiments of the present application are specifically described below with reference to the accompanying drawings.

图1是本申请实施例提供的一种场景调整方法的流程示意图。本申请实施例提供的场景调整方法可由场景调整装置来执行。该场景调整装置可由硬件和/或软件组成,并可集成于电子设备中。在本申请实施例中,电子设备可选为XR设备,或者也可以是其他任意能够提供虚拟场景的硬件设备等。其中,该XR设备可以为VR设备、AR设备或MR设备等,本申请对电子设备类型不做具体限制。Figure 1 is a flow chart of a scene adjustment method provided in an embodiment of the present application. The scene adjustment method provided in an embodiment of the present application can be performed by a scene adjustment device. The scene adjustment device can be composed of hardware and/or software and can be integrated into an electronic device. In an embodiment of the present application, the electronic device can be selected as an XR device, or it can be any other hardware device that can provide a virtual scene. Among them, the XR device can be a VR device, an AR device, or an MR device, etc., and the present application does not specifically limit the type of electronic device.

如图1所示,该方法包括如下步骤:As shown in FIG1 , the method comprises the following steps:

S101,获取虚拟场景内目标对象的状态信息。S101, obtaining status information of a target object in a virtual scene.

S102,根据目标对象的状态信息,调整虚拟场景内的环境信息。S102: Adjusting environmental information in the virtual scene according to the state information of the target object.

可选的,用户可从电子设备显示界面提供的多个类型的虚拟场景中选择任一类型虚拟场景,并进入该虚拟场景。从而用户可以以观众的身份在该虚拟场景内观看表演者的表演画面。Optionally, the user can select any type of virtual scene from multiple types of virtual scenes provided by the electronic device display interface and enter the virtual scene, so that the user can watch the performance of the performer in the virtual scene as an audience.

也就是说,当用户进入的虚拟场景内显示的表演画面为直播视频流画面时,该虚拟场景可理解为表演直播间。That is to say, when the performance screen displayed in the virtual scene entered by the user is a live video stream screen, the virtual scene can be understood as a live performance room.

应理解的是,上述表演者以及进入虚拟场景内的用户可以是真实的人,也可以是虚拟对象,比如虚拟角色Avatar。其中,虚拟对象可以是根据真实的人创建的,也可以是根据表演者的表演需求个性化定制的,或者根据观众的观看需求个性化定制的等,本申请对其不做任何限制。It should be understood that the above-mentioned performers and users entering the virtual scene can be real people or virtual objects, such as virtual characters Avatar. Among them, the virtual objects can be created based on real people, or customized according to the performance needs of the performers, or customized according to the viewing needs of the audience, etc., and this application does not impose any restrictions on them.

其中,定制虚拟对象时,可以基于电子设备提供的角色创建功能实现,具体创建过程可参见现有方案,此处对其不做过多赘述。Among them, when customizing virtual objects, it can be implemented based on the role creation function provided by the electronic device. The specific creation process can be referred to the existing solution, and it will not be described in detail here.

此外,上述虚拟场景内可以设置表演舞台以及各种装饰物体,比如各种灯光、显示屏和道具等,以此来增强表演者在虚拟场景内的表演效果,对表演者的表演过程起到衬托的作用,同时还可以调节整个虚拟场景内表演者和观众之间的氛围,使得表演更具有感染力。In addition, a performance stage and various decorative objects, such as various lights, display screens and props, can be set up in the above-mentioned virtual scene to enhance the performance effect of the performers in the virtual scene and serve as a foil for the performers' performance process. At the same time, the atmosphere between the performers and the audience in the entire virtual scene can also be adjusted to make the performance more contagious.

上述各种装饰物体可以设置在表演舞台上,以及除表演舞台之外的其他区域,比如观众席位区域等,本申请对此不做任何限制。The above-mentioned various decorative objects can be set on the performance stage, as well as other areas besides the performance stage, such as the audience seating area, etc., and this application does not impose any restrictions on this.

示例性的,假设用户进入的虚拟场景为音乐表演直播间时,该虚拟场景内可以设置有 表演舞台,并且表演舞台上可以设置各种灯光、显示屏和道具等装饰物体,以及各种音乐表演需要使用到的乐器或设备等。除此之外,该虚拟场景其他区域譬如支持观众观看表演的观影区域等也可以设置灯光和道具等装饰物体,以此来对表演者的整个表演过程进行衬托等作用,具体参见图2。For example, if the virtual scene that the user enters is a live music performance room, the virtual scene may be provided with The performance stage can be equipped with various decorative objects such as lights, display screens and props, as well as various musical instruments or equipment required for music performances. In addition, other areas of the virtual scene, such as the viewing area where the audience can watch the performance, can also be equipped with decorative objects such as lights and props to set off the entire performance process of the performer, as shown in Figure 2.

考虑到用户进入虚拟场景之后,用户除了可以观看表演者的表演内容之外,还可以与表演者进行各种互动。所以,本申请可以基于虚拟场景内表演者表演内容,和/或基于作为观众的用户互动操作,对虚拟场景内的环境信息进行调整,以实现更加智能化、精准化和多样化的表演效果,从而可以提高表演者的表演效果,以及用户的观看体验。Considering that after the user enters the virtual scene, the user can not only watch the performer's performance content, but also interact with the performer in various ways. Therefore, the present application can adjust the environmental information in the virtual scene based on the performer's performance content in the virtual scene and/or based on the interactive operation of the user as the audience, so as to achieve a more intelligent, accurate and diversified performance effect, thereby improving the performer's performance effect and the user's viewing experience.

即,本申请中目标对象包括表演者的表演内容和/或用户互动操作。That is, the target object in this application includes the performer's performance content and/or user interaction operations.

由于表演者的表演内容对应有不同的状态信息,比如状态信息可选的为当前表演的音乐音频信息和表演内容类型等。以及,作为观众的用户互动操作也对应有不同的状态信息,比如状态信息可选为操作指令、互动元素和互动状态等。所以,本申请基于虚拟场景内表演者的表演内容或者用户互动操作,调整虚拟场景内的环境信息时,具体的可基于表演内容的状态信息动态调整虚拟场景内的环境信息,和/或基于用户互动操作的状态信息动态调整虚拟场景内的环境信息,使得虚拟场景内相对静态的环境信息变得更加多样化和具有互动感,从而可以为表演者的表演带来更加丰富多彩的表演效果,同时提升观众用户的观看体验。Because the performance content of the performer corresponds to different status information, such as the status information that can be selected as the music audio information and performance content type of the current performance. And the interactive operations of the users as the audience also correspond to different status information, such as the status information that can be selected as operation instructions, interactive elements and interactive status. Therefore, when the present application adjusts the environmental information in the virtual scene based on the performance content of the performers in the virtual scene or the interactive operations of the users, it can specifically dynamically adjust the environmental information in the virtual scene based on the status information of the performance content, and/or dynamically adjust the environmental information in the virtual scene based on the status information of the user interactive operations, so that the relatively static environmental information in the virtual scene becomes more diversified and interactive, thereby bringing more colorful performance effects to the performers' performances, while enhancing the viewing experience of the audience users.

本申请提供的场景调整方法,通过获取虚拟场景内目标对象的状态信息,以根据目标对象的状态信息,调整虚拟场景内的环境信息。由此,实现基于获取到的目标对象的状态信息,对表演者所在虚拟场景内的环境信息进行实时调整,从而可以丰富表演空间的环境信息表现形式,从而能够向用户提供更加丰富多彩的视觉效果和艺术感染力,以满足用户的多样化观看需求,提升了用户的视觉体验,并且还可以提升音乐表演的吸引力和观赏性。The scene adjustment method provided by the present application obtains the state information of the target object in the virtual scene, and adjusts the environmental information in the virtual scene according to the state information of the target object. Thus, the environmental information in the virtual scene where the performer is located can be adjusted in real time based on the acquired state information of the target object, thereby enriching the environmental information expression form of the performance space, thereby providing users with more colorful visual effects and artistic appeal, so as to meet the diverse viewing needs of users, enhance the visual experience of users, and also enhance the attractiveness and appreciation of music performances.

考虑到本申请中目标对象可以为表演者的表演内容,也可以是作为观众的用户互动操作。下面参见图3,以目标对象为表演者的表演内容,并基于表演内容的状态信息调整虚拟场景内的环境信息进行具体说明。Considering that the target object in this application can be the performance content of the performer or the interactive operation of the user as the audience, referring to FIG. 3 below, the target object is the performance content of the performer, and the environmental information in the virtual scene is adjusted based on the state information of the performance content for specific description.

如图3所示,该方法可以包括如下步骤:As shown in FIG3 , the method may include the following steps:

S201,如果目标对象为表演内容,则获取虚拟场景内表演内容的当前音乐音频信息和/或内容类型。S201: If the target object is performance content, obtain current music audio information and/or content type of the performance content in the virtual scene.

其中,当前音乐音频信息可以理解为表演者当前正在表演的某一首音乐的实时音频。比如,表演者在表演舞台上的打碟桌或打碟(Disco jockey,DJ)台上表演某一首音乐的实时音频。再比如,表演者在表演舞台上通过某一乐器演奏某一首音乐的实时音频。又比如,表演者在表演舞台上跳舞时播放的背景音乐的实时音频,等等。Among them, the current music audio information can be understood as the real-time audio of a certain piece of music that the performer is currently performing. For example, the real-time audio of a certain piece of music that the performer is performing on a disc table or a disc (Disco jockey, DJ) stage on the performance stage. For another example, the real-time audio of a certain piece of music played by a performer on the performance stage through a certain instrument. For another example, the real-time audio of the background music played when the performer is dancing on the performance stage, and so on.

上述表演内容的内容类型可根据表演者的表演内容确定。譬如,假设表演内容为乐器 演奏、唱歌等,那么表演内容的内容类型可以是音乐类。又比如,假设表演内容为街舞表演、广场舞表演、现在舞表演或者其他舞蹈表演等,那么表演内容的内容类型可以是舞蹈类。再比如,假设表演内容为各类教学,那么表演内容的内容可以是知识教学类型等等。The content type of the above performance content can be determined according to the performance content of the performer. For example, if the performance content is a performance of a musical instrument, ...

应理解的是,本申请获取虚拟场景内表演内容的当前音乐音频信息和/或内容类型,可以是获取虚拟场景内表演内容的当前音乐音频信息;或者,可以是获取虚拟场景内表演内容的内容类型;又或者,也可以是获取虚拟场景内表演内容的当前音乐音频信息和内容类型,本申请对此不做任何限制。It should be understood that the present application obtains the current music audio information and/or content type of the performance content in the virtual scene, which may be to obtain the current music audio information of the performance content in the virtual scene; or, it may be to obtain the content type of the performance content in the virtual scene; or, it may be to obtain the current music audio information and content type of the performance content in the virtual scene, and the present application does not impose any restrictions on this.

在一些可选的实现方式中,当表演者在虚拟场景内进行表演过程中,可以采用不同方式实时获取表演内容的当前音乐音频信息和/或内容类型。In some optional implementations, when a performer is performing in a virtual scene, the current music audio information and/or content type of the performance content can be acquired in real time in different ways.

可选的,获取表演内容的当前音乐音频信息,可以是通过音频提取工具或者音频提取算法等方式实现,本申请对获取当前音乐音频信息的方式不作任何限制。其中,音频提取工具可以为音频提取器或者音频提取软件等。Optionally, obtaining the current music audio information of the performance content may be achieved by using an audio extraction tool or an audio extraction algorithm, and the present application does not impose any restrictions on the method of obtaining the current music audio information. The audio extraction tool may be an audio extractor or audio extraction software, and the like.

考虑到虚拟场景作为直播间时,表演者在该直播间内进行直播表演之前,需要设置该直播间内表演内容的内容类型。所以,本申请获取表演内容的内容类型,可通过在虚拟场景设置信息中查找虚拟场景内表演内容的内容类型;或者,也可以通过截取表演视频片段,并通过表演视频片段进行识别,以确定表演内容的内容类型等等,此处对其不做任何限制。Considering that when a virtual scene is used as a live broadcast room, the performer needs to set the content type of the performance content in the live broadcast room before performing a live performance in the live broadcast room. Therefore, this application obtains the content type of the performance content by searching the content type of the performance content in the virtual scene in the virtual scene setting information; or, it can also intercept the performance video clip and identify it through the performance video clip to determine the content type of the performance content, etc., and there is no restriction on it here.

上述识别截取的表演视频片段可以是将表演视频片段输入至类型识别模型中,以通过类型识别模型来对表演视频片段进行处理确定表演内容的内容类型,也可以是通过其他识别算法来对表演视频片段进行分析处理确定表演内容的内容。其中,类型识别模型可以是预先训练好一个网络模型,模型具体训练过程可参见现有训练方式,此处对其不做过多赘述。The above-mentioned performance video clips that are identified and intercepted can be input into a type recognition model to process the performance video clips through the type recognition model to determine the content type of the performance content, or can be analyzed and processed by other recognition algorithms to determine the content of the performance content. Among them, the type recognition model can be a pre-trained network model. The specific training process of the model can refer to the existing training method, which will not be described in detail here.

S202,根据表演内容的当前音乐音频信息和/或内容类型,确定目标环境信息。S202: Determine target environment information according to current music audio information and/or content type of the performance content.

本申请中,目标环境信息可以包括下述至少一项:灯光效果、主题特效、环境贴图和道具材质。In the present application, the target environment information may include at least one of the following: lighting effects, theme special effects, environment maps, and prop materials.

上述灯光效果可理解为虚拟场景内的灯光效果。主题特效可理解为虚拟场景向用户呈现任意主题时对应的动画特效。环境贴图可理解为舞台背景或其他可视区域呈现的氛围贴图,比如在舞台顶位呈现一个蓝天白云贴图,或者在舞台地面呈现大片草原贴图等。道具材质可理解为呈现于虚拟场景内的道具材质,比如道具颜色、道具透明度和道具发光度等。The above-mentioned lighting effects can be understood as the lighting effects in the virtual scene. Theme effects can be understood as the corresponding animation effects when the virtual scene presents any theme to the user. Environment maps can be understood as the atmosphere maps presented by the stage background or other visible areas, such as a blue sky and white cloud map on the top of the stage, or a large grassland map on the stage floor. Prop materials can be understood as the prop materials presented in the virtual scene, such as prop color, prop transparency, and prop luminosity.

可选的,确定目标环境信息,可包括如下几种情况:Optionally, determine the target environment information, which may include the following situations:

情况一Case 1

根据表演内容的当前音乐音频信息,确定目标环境信息。Target environment information is determined based on current music audio information of the performance content.

考虑到音乐音频信息中包括节奏和节拍。所以,本申请根据表演内容的当前音乐音频信息确定目标环境信息,可选的首先确定当前音乐音频信息的节奏和/或节拍,之后根据当前音乐音频信息的节奏和/或节拍,确定目标环境信息。 Considering that music audio information includes rhythm and beat, the present application determines the target environment information according to the current music audio information of the performance content, and optionally first determines the rhythm and/or beat of the current music audio information, and then determines the target environment information according to the rhythm and/or beat of the current music audio information.

其中,当前音乐音频信息的节奏和/或节拍,可以理解为当前音乐音频信息的节奏;或者,也可以为当前音乐音频信息的节拍;又或者,还可以为当前音乐音频信息的节奏和节拍。Among them, the rhythm and/or beat of the current music audio information can be understood as the rhythm of the current music audio information; or, it can also be the beat of the current music audio information; or, it can also be the rhythm and beat of the current music audio information.

可选的,确定当前音乐音频信息的节奏和/或节拍,可以通过如下几种实现方式实现:Optionally, determining the rhythm and/or beat of the current music audio information may be implemented in the following ways:

第一种实现方式,The first implementation method is

根据频谱分析方法,对当前音乐音频信息进行分析处理,以确定出该当前音乐音频信息的节奏和/或节拍。According to the spectrum analysis method, the current music audio information is analyzed and processed to determine the rhythm and/or beat of the current music audio information.

其中,频谱分析方法具体是指Unity引擎内部集成的一种音乐分析算法。Among them, the spectrum analysis method specifically refers to a music analysis algorithm integrated within the Unity engine.

上述Unity引擎内部的频谱分析方法,对音乐音频进行分析处理过程,具体为根据人耳可以听到的声波频率,比如每秒振动20次到20000次的范围内,即20赫兹至20000之间,通过采样将连续信号(即声波)降低成离散信号(即一些列样本数据)。进而,利用快速傅里叶变换算法对上述离散信号进行信号转换,例如通过Audio Source.GetSpectrumData命令调用快速傅里叶变换算法。然后通过序列化脚本将转换后的信号序列化到预设数值区间内,以得到该音乐音频的节奏和/或节拍。The spectrum analysis method within the Unity engine is used to analyze and process the music audio. Specifically, based on the sound wave frequency that can be heard by the human ear, such as 20 to 20,000 vibrations per second, that is, between 20 Hz and 20,000, the continuous signal (i.e., sound wave) is reduced to a discrete signal (i.e., a series of sample data) by sampling. Then, the discrete signal is converted using the fast Fourier transform algorithm, for example, by calling the fast Fourier transform algorithm through the Audio Source.GetSpectrumData command. Then, the converted signal is serialized into a preset numerical range through a serialization script to obtain the rhythm and/or beat of the music audio.

上述预设数值区间可以根据实际需要进行灵活设置,例如可以为[0,1]等,本申请对该区间不做任何限制。The above preset numerical range can be flexibly set according to actual needs, for example, it can be [0, 1], etc. This application does not impose any restrictions on this range.

第二种实现方式,The second implementation method is

根据节奏检测算法,确定当前音乐音频信息的节奏。According to the rhythm detection algorithm, the rhythm of the current music audio information is determined.

其中,节奏检测算法可以是预先训练好的节奏检测模型,也可以是音乐节奏提取算法等,此处对其不做限制。The rhythm detection algorithm may be a pre-trained rhythm detection model or a music rhythm extraction algorithm, etc., and there is no limitation on it here.

第三种方式,The third method,

根据节拍检测算法,确定当前音乐音频信息的节拍。According to the beat detection algorithm, the beat of the current music audio information is determined.

需要说明的是,本申请还可以通过节拍检测模型,或者音乐节拍提取算法来确定当前音乐音频信息的节奏,本申请对此不做具体限制。It should be noted that the present application can also determine the rhythm of the current music audio information through a beat detection model or a music beat extraction algorithm, and the present application does not impose any specific restrictions on this.

上述第二种方式和第三种方式可以单独实施也可以组合实施,具体根据确定当前音乐音频信息的节奏和/或节拍来确定。具体的,当确定当前音乐音频信息的节奏时,单独实施第二种方式;当确定当前音乐音频信息的节拍时,单独实施第三种方式;当确定当前音乐音频信息的节奏和节拍时,组合实施第二种方式和第三种方式。The second and third methods can be implemented separately or in combination, specifically according to the rhythm and/or beat of the current music audio information. Specifically, when the rhythm of the current music audio information is determined, the second method is implemented separately; when the beat of the current music audio information is determined, the third method is implemented separately; when the rhythm and beat of the current music audio information are determined, the second and third methods are implemented in combination.

通常情况下,节奏指的是把长短不同的音组织起来,形成有规律的强弱变化,可以理解为整个音乐中段落的比例平衡。而节拍指的是时值相等的强拍和弱拍有规律的循环出现,具体是指在乐谱中每一小节的音符总长度。所以,通过上述三种方式确定当前音乐音频信息的节奏和/或节拍时,可选的还可以是确定音乐音频的节奏强弱值和/或节拍强弱值。Generally speaking, rhythm refers to organizing sounds of different lengths to form regular changes in strength, which can be understood as the proportional balance of the entire music. Beat refers to the regular cycle of strong and weak beats of equal duration, specifically the total length of notes in each measure in the score. Therefore, when determining the rhythm and/or beat of the current music audio information through the above three methods, it is also possible to determine the rhythm strength value and/or beat strength value of the music audio.

确定出当前音乐音频信息的节奏和/或节拍之后,本申请可根据当前音乐音频信息的节奏和/或节拍,在预先建立的第一映射关系中查找与当前音乐音频信息的节奏和/或节拍对 应环境信息,并将查找到的场景信息确定为目标环境信息。After determining the rhythm and/or beat of the current music audio information, the present application can search for a corresponding rhythm and/or beat of the current music audio information in a pre-established first mapping relationship according to the rhythm and/or beat of the current music audio information. The target environment information is obtained and the found scene information is determined as the target environment information.

上述预先建立的第一映射关系可以为节奏和环境信息之间的映射关系,或者节拍和环境信息之间的映射关系,又或者节奏、节拍和环境信息之间的映射关系。The above-mentioned pre-established first mapping relationship may be a mapping relationship between rhythm and environmental information, or a mapping relationship between beat and environmental information, or a mapping relationship between rhythm, beat and environmental information.

情况二Case 2

根据表演内容的内容类型,确定目标环境信息。Determine the target environment information based on the content type of the performance content.

可选的,为了能够丰富虚拟场景的环境信息,可预先构建内容类型和环境信息之间的映射关系,即第二映射关系。进而,可根据表演内容的内容类型,在预先建立的第二映射关系中查找与内容类型对应环境信息,并将查找到的场景信息确定为目标环境信息。Optionally, in order to enrich the environment information of the virtual scene, a mapping relationship between the content type and the environment information, i.e., a second mapping relationship, may be pre-established. Further, according to the content type of the performance content, the environment information corresponding to the content type may be searched in the pre-established second mapping relationship, and the searched scene information may be determined as the target environment information.

情况三Case 3

根据表演内容的当前音乐音频信息和内容类型,确定目标环境信息。The target environment information is determined based on the current music audio information and content type of the performance content.

具体的,本申请可分别根据表演内容的当前音乐音频信息确定第一环境信息,以及根据表演内容的内容类型确定第二环境信息。进而,将第一环境信息和第二环境信息进行融合,以得到目标环境信息。Specifically, the present application can determine the first environment information according to the current music audio information of the performance content, and determine the second environment information according to the content type of the performance content, and then merge the first environment information and the second environment information to obtain the target environment information.

其中,确定第一环境信息的实现原理与前述情况一的实现原理相同或类似,具体实现过程可参见前述情况一部分,此处对其不做过多赘述。另外,确定第一环境信息的实现原理与前述情况二的实现原理相同或类似,具体实现过程可参见前述情况二部分,此处对其不做过多赘述。Among them, the implementation principle of determining the first environmental information is the same or similar to the implementation principle of the aforementioned situation one. The specific implementation process can be referred to in part of the aforementioned situation, and no further details are given here. In addition, the implementation principle of determining the first environmental information is the same or similar to the implementation principle of the aforementioned situation two. The specific implementation process can be referred to in part of the aforementioned situation two, and no further details are given here.

应理解的是,上述将第一环境信息和第二环境信息进行融合,具体是将同一时间的相同环境参数相加以实现融合;或者将同一时间的相同环境参数相加并乘以融合参数以实现融合等。其中,融合参数可根据融合效果进行灵活设置,比如融合参数为0.5或者0.7等,此处对其不做具体限制。It should be understood that the above fusion of the first environment information and the second environment information is specifically to add the same environment parameters at the same time to achieve fusion; or to add the same environment parameters at the same time and multiply them by the fusion parameter to achieve fusion, etc. Among them, the fusion parameter can be flexibly set according to the fusion effect, such as the fusion parameter is 0.5 or 0.7, etc., which is not specifically limited here.

诸如,第t1时刻的第一环境信息包括:第一灯光效果、第一环境贴图和第一道具材质;第t1时刻的第二环境信息包括:第二灯光效果、第二环境贴图和第二道具材质。那么,将第t1时刻的第一环境信息和第二环境信息进行融合,具体为第一灯光效果+第二灯光效果,第一环境贴图+第二环境贴图,以及第一道具材质+第二道具材质。For example, the first environment information at time t1 includes: the first lighting effect, the first environment map and the first prop material; the second environment information at time t1 includes: the second lighting effect, the second environment map and the second prop material. Then, the first environment information and the second environment information at time t1 are merged, specifically, the first lighting effect + the second lighting effect, the first environment map + the second environment map, and the first prop material + the second prop material.

再诸如,第t1时刻的第一环境信息包括:第一灯光效果、第一环境贴图和第一道具材质;第t1时刻的第二环境信息包括:第二灯光效果、第二环境贴图和第二道具材质,并且融合参数为a=0.5。那么,将第t1时刻的第一环境信息和第二环境信息进行融合,具体为(第一灯光效果+第二灯光效果)*0.5,(第一环境贴图+第二环境贴图)*0.5,以及(第一道具材质+第二道具材质)*0.5。For another example, the first environment information at time t1 includes: the first lighting effect, the first environment map and the first prop material; the second environment information at time t1 includes: the second lighting effect, the second environment map and the second prop material, and the fusion parameter is a = 0.5. Then, the first environment information and the second environment information at time t1 are fused, specifically (first lighting effect + second lighting effect) * 0.5, (first environment map + second environment map) * 0.5, and (first prop material + second prop material) * 0.5.

考虑到同一时刻下第一环境信息和第二环境信息中包括的环境参数可能存在差别。比如,第t2时刻的第一环境信息包括:第一灯光效果和第一主题特效;第t2时刻的第二环境信息包括:第二灯光效果和第二环境贴图。那么,此时仅对同一时间的相同环境参数相加,而不相同环境参数直接复用,以得到融合后的目标环境信息。 Considering that the environmental parameters included in the first environmental information and the second environmental information at the same time may be different. For example, the first environmental information at time t2 includes: the first lighting effect and the first theme special effect; the second environmental information at time t2 includes: the second lighting effect and the second environmental map. Then, only the same environmental parameters at the same time are added, and the different environmental parameters are directly reused to obtain the fused target environmental information.

继续以上述t2时刻的第一环境信息和第二环境信息为例进行说明,具体的将第t2时刻的第一环境信息和第二环境信息进行融合,具体为第一灯光效果+第二灯光效果,第一主题特效及第二环境贴图。Continuing with the first environmental information and the second environmental information at time t2 as an example, the first environmental information and the second environmental information at time t2 are specifically integrated, specifically the first lighting effect + the second lighting effect, the first theme special effect and the second environmental map.

可以理解的是,本申请通过预先建立第一映射关系,或者预先建立第二映射关系将各种环境信息预先配置到客户端,使得客户端需要调整虚拟场景的环境信息时可以直接调用预先配置的任意环境信息,从而不需要实时计算和实时渲染,从而可以大大节约电子设备的资源消耗,提高电子设备的显示性能。It can be understood that the present application pre-configures various environmental information to the client by pre-establishing a first mapping relationship, or pre-establishing a second mapping relationship, so that when the client needs to adjust the environmental information of the virtual scene, it can directly call any pre-configured environmental information, thereby eliminating the need for real-time calculation and real-time rendering, which can greatly save resource consumption of electronic devices and improve the display performance of electronic devices.

并且,上述预先配置的环境信息还可以支持资源复用,例如某一时刻的音乐音频信息的节奏和/或节拍与之前任意历史时刻的音乐音频的节奏和/或节拍相同时,可以直接在数据库中调用该任意历史时刻使用过的环境信息即可,从而可以降低环境信息资源的制作成本。In addition, the above-mentioned pre-configured environmental information can also support resource reuse. For example, when the rhythm and/or beat of the music audio information at a certain moment is the same as the rhythm and/or beat of the music audio at any previous historical moment, the environmental information used at any previous historical moment can be directly called from the database, thereby reducing the production cost of environmental information resources.

其中,数据库是指存储技术人员预先制作的各种各样环境信息的库。上述,数据库可以存储与电子设备(比如客户端)侧,也可以存储在于电子设备通信连接服务端侧,本申请对此不做任何限制。上述技术人员预先制作出各种各样的环境信息,包括环境贴图、灯光效果、主题特效和/或道具材质等参数。这样设置的好处在于,不仅可以实现资源复用和资源共享,而且当需要制作新的环境信息时,技术人员可从数据库中选取相应的环境数据进行参数微调,或者重新组合以得到新的环境信息,以降低制作成本,避免重复制作和资源浪费的问题。Among them, the database refers to a library that stores various environmental information pre-made by technicians. As mentioned above, the database can be stored on the electronic device (such as a client) side, or it can be stored on the electronic device communication connection server side, and this application does not impose any restrictions on this. The above-mentioned technicians pre-produce various environmental information, including parameters such as environmental maps, lighting effects, theme special effects and/or prop materials. The advantage of this setting is that it can not only achieve resource reuse and resource sharing, but also when new environmental information needs to be produced, the technician can select the corresponding environmental data from the database for parameter fine-tuning, or recombine to obtain new environmental information, so as to reduce production costs and avoid repeated production and waste of resources.

S203,根据目标环境信息,调整虚拟场景内的环境信息。S203: Adjust the environment information in the virtual scene according to the target environment information.

其中,目标环境信息可以包括下述至少一项:灯光效果、主题特效、环境贴图和道具材质。The target environment information may include at least one of the following: lighting effects, theme effects, environment maps, and prop materials.

在一些可选的实现方式,本申请根据目标环境信息对虚拟场景的当前环境信息进行实时调整,至少包括下述至少一项:In some optional implementations, the present application adjusts the current environment information of the virtual scene in real time according to the target environment information, including at least one of the following:

根据目标环境信息中的灯光效果,利用Unity等虚拟引擎中的灯光控制组件,通过编程控制灯光的颜色、亮度、位置、形状、运动轨迹等参数。According to the lighting effects in the target environment information, the lighting control components in virtual engines such as Unity are used to control the color, brightness, position, shape, motion trajectory and other parameters of the light through programming.

根据目标环境信息中的道具材质,利用Unity等虚拟引擎中的材质控制组件,通过编程控制材质的颜色、透明度、反射度、发光度等参数。According to the prop material in the target environment information, the material control components in virtual engines such as Unity are used to control the material's color, transparency, reflectivity, luminosity and other parameters through programming.

根据目标环境信息中的主题特效,利用Unity等虚拟引擎中的特效控制组件,通过编程控制特效的形状、大小、颜色、运动轨迹等参数。According to the theme special effects in the target environment information, the special effects control components in virtual engines such as Unity are used to control the shape, size, color, motion trajectory and other parameters of the special effects through programming.

也就是说,通过可利用目标环境信息,对虚拟场景当前呈现的环境信息进行实时调整,以使虚拟场景内呈现的环境信息可以跟随音乐音频的节奏和/或节拍,和/或内容类型的变化相应做出变化,从而可以为虚拟场景内的表演带来更加丰富的表演效果,使得传统相对静态的环境信息变得更加多样化和具有互动感,从而提高了整个虚拟场景内的表演表现能力和用户的视觉体验。 That is to say, by utilizing the target environmental information, the environmental information currently presented in the virtual scene can be adjusted in real time, so that the environmental information presented in the virtual scene can change accordingly with the rhythm and/or beat of the music audio, and/or the change of content type, thereby bringing richer performance effects to the performance in the virtual scene, making the traditional relatively static environmental information more diverse and interactive, thereby improving the performance performance ability and user visual experience in the entire virtual scene.

本申请提供的场景调整方法,通过获取虚拟场景内目标对象的状态信息,以根据目标对象的状态信息,调整虚拟场景内的环境信息。由此,实现基于获取到的目标对象的状态信息,对表演者所在虚拟场景内的环境信息进行实时调整,从而可以丰富表演空间的环境信息表现形式,从而能够向用户提供更加丰富多彩的视觉效果和艺术感染力,以满足用户的多样化观看需求,提升了用户的视觉体验,并且还可以提升音乐表演的吸引力和观赏性。此外,通过根据虚拟场景内表演内容的当前音乐音频信息和/或内容类型,实时调整虚拟场景内的环境信息,可以为虚拟场景内的表演带来更加丰富的表演效果,使得传统相对静态的环境信息变得更加多样化和具有互动感,从而提高了整个虚拟场景内的表演表现能力和用户的视觉体验。The scene adjustment method provided by the present application obtains the state information of the target object in the virtual scene, and adjusts the environmental information in the virtual scene according to the state information of the target object. Thus, the environmental information in the virtual scene where the performer is located is adjusted in real time based on the acquired state information of the target object, so that the environmental information expression form of the performance space can be enriched, thereby providing users with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users, improve the visual experience of users, and also improve the attractiveness and appreciation of music performances. In addition, by adjusting the environmental information in the virtual scene in real time according to the current music audio information and/or content type of the performance content in the virtual scene, a richer performance effect can be brought to the performance in the virtual scene, making the traditional relatively static environmental information more diverse and interactive, thereby improving the performance performance ability and the visual experience of users in the entire virtual scene.

在前述实施例的基础上,考虑到音乐音频信息的节奏和/或节拍均对应有强弱值,所以本申请根据表演内容的当前音乐音频信息,确定目标环境信息时,可以根据当前音乐音频信息的节奏强弱值和/或节拍强弱值来确定目标环境信息。下面结合图4,对本申请中根据当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定目标环境信息进行具体说明。参见图4,该方法可包括如下步骤:On the basis of the above-mentioned embodiments, considering that the rhythm and/or beat of the music audio information have corresponding strength values, when the present application determines the target environment information according to the current music audio information of the performance content, the target environment information can be determined according to the rhythm strength value and/or beat strength value of the current music audio information. The following is a specific description of determining the target environment information according to the rhythm strength value and/or beat strength value of the current music audio information in the present application in conjunction with FIG4. Referring to FIG4, the method may include the following steps:

S301,如果目标对象为所述表演内容,则获取虚拟场景内表演内容的当前音乐音频信息。S301: If the target object is the performance content, obtain current music audio information of the performance content in the virtual scene.

S302,确定当前音乐音频信息的节奏和/或节拍。S302, determining the rhythm and/or beat of the current music audio information.

S303,根据当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定目标环境信息。S303: Determine the target environment information according to the rhythm strength value and/or beat strength value of the current music audio information.

考虑到确定当前音乐音频信息的节奏和/或节拍时,也可以确定当前音乐音频信息的节奏强弱值和/或节拍强弱值。所以,本申请可根据确定出的节奏强弱值和/或节拍强弱值来确定目标环境信息。Considering that when determining the rhythm and/or beat of the current music audio information, the rhythm strength value and/or beat strength value of the current music audio information can also be determined. Therefore, the present application can determine the target environment information according to the determined rhythm strength value and/or beat strength value.

可选的,根据当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定目标环境信息时,具体的在预先建立的第三映射关系中查找与当前音乐音频信息的节奏强弱值和/或节拍强弱值对应的环境信息,并将该环境信息作为目标环境信息。Optionally, when determining the target environmental information based on the rhythm strength value and/or beat strength value of the current music audio information, specifically, search for environmental information corresponding to the rhythm strength value and/or beat strength value of the current music audio information in a pre-established third mapping relationship, and use the environmental information as the target environmental information.

其中,预先建立的第三映射关系可以为节奏强弱值和环境信息之间的映射关系,或者节拍强弱值和环境信息之间的映射关系,又或者节奏强弱值、节拍强弱值和环境信息之间的映射关系。Among them, the pre-established third mapping relationship can be a mapping relationship between rhythm strength values and environmental information, or a mapping relationship between beat strength values and environmental information, or a mapping relationship between rhythm strength values, beat strength values and environmental information.

也就是说,本申请根据当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定目标环境信息,包括:根据当前音乐音频信息的节奏强弱值,在节奏强弱值和环境信息之间的映射关系中确定目标环境信息;或者,根据当前音乐音频信息的节拍强弱值,在节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息;或者,根据当前音乐音频信息的节奏强弱值和节拍强弱值,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定目标环境信息。 That is to say, the present application determines the target environmental information based on the rhythm strength value and/or beat strength value of the current music audio information, including: determining the target environmental information in the mapping relationship between the rhythm strength value and the environmental information based on the rhythm strength value of the current music audio information; or, determining the target environmental information in the mapping relationship between the beat strength value and the environmental information based on the beat strength value of the current music audio information; or, determining the target environmental information in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information based on the rhythm strength value and the beat strength value of the current music audio information.

在一些可选的实现方式中,预先建立的节奏强弱值和环境信息之间的映射关系,可如下表1所示:In some optional implementations, the pre-established mapping relationship between the rhythm strength value and the environmental information may be as shown in the following Table 1:

表1
Table 1

在一些可选的实现方式中,预先建立的节拍强弱值和环境信息之间的映射关系,可如下表2所示:In some optional implementations, the pre-established mapping relationship between the beat strength value and the environmental information may be as shown in Table 2 below:

表2
Table 2

在一些可选的实现方式中,预先建立的节奏强弱值、节拍强弱值和环境信息之间的映射关系,可如下表3所示:In some optional implementations, the pre-established mapping relationship between the rhythm strength value, the beat strength value and the environmental information may be as shown in the following Table 3:

表3
Table 3

需要说明的是,上述表1、表2和表3中的节奏强弱值和/或节拍强弱值对应的预设数值区间[0,1]可根据实际需要进行灵活调整,并且划分该数值区间[0,1]的间隔值可根据场景调整精度进行调整,上述划分方式仅作为对本申请的示例性说明,不作为对本申请的具体限制。例如,划分数值区间[0,1]的间隔值除了是0.1之外,也可以是0.05作为间隔值进行分段,或者也可以是0.15作为间隔值进行分段,本申请对其不做任何限制。It should be noted that the preset numerical interval [0,1] corresponding to the rhythm strength value and/or beat strength value in Table 1, Table 2 and Table 3 above can be flexibly adjusted according to actual needs, and the interval value for dividing the numerical interval [0,1] can be adjusted according to the scene adjustment accuracy. The above division method is only used as an exemplary description of the present application and is not a specific limitation on the present application. For example, in addition to 0.1, the interval value for dividing the numerical interval [0,1] can also be 0.05 as the interval value for segmentation, or 0.15 as the interval value for segmentation, and the present application does not impose any restrictions on it.

示例性的,假设确定当前音乐音频信息的节奏强弱值为0.2,那么可在预先建立的节拍强弱值和环境信息之间的映射关系比如上述表2中,根据节奏强弱值0.2查找到环境信息包括:灯光效果为灯光从第一颜色调整为第二颜色;主题特效为主题特效A;环境贴图为环境贴图X2,比如海草和小鱼;道具材质为道具颜色的色值为第二数值保持不变。进而,可将上述查找的环境信息作为目标环境信息。For example, assuming that the rhythm strength value of the current music audio information is determined to be 0.2, then in the mapping relationship between the beat strength value and the environmental information established in advance, such as in Table 2 above, the environmental information found according to the rhythm strength value 0.2 includes: the lighting effect is the adjustment of the light from the first color to the second color; the theme effect is theme effect A; the environmental map is the environmental map X2, such as seaweed and small fish; the prop material is the color value of the prop color remains unchanged at the second value. Then, the environmental information found above can be used as the target environmental information.

值得注意的是,当根据当前音乐音频信息的节奏强弱值和节拍强弱值,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定目标环境信息时,有可能出现节奏强弱值和 节拍强弱值不一致的情况,此时可以以节奏强弱值或节拍强弱值为查找条件,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定目标环境信息。或者,按照节奏强弱值和节拍强弱值的预设优先级,将最高优先级对应的强弱值为查找条件,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定目标环境信息。示例性的,如果节奏强弱值的优先级高于节拍强弱值,则当节奏强弱值和节拍强弱值不一致时,以节奏强弱值为查找条件,确定目标环境信息。又例如,如果节拍强弱值的优先级高于节奏强弱值,则当节奏强弱值和节拍强弱值不一致时,以节拍强弱值为查找条件,确定目标环境信息。It is worth noting that when the target environment information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environment information according to the rhythm strength value and the beat strength value of the current music audio information, it is possible that the rhythm strength value and the beat strength value are In the case where the beat strength values are inconsistent, the rhythm strength value or the beat strength value can be used as a search condition at this time, and the target environment information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information. Alternatively, according to the preset priority of the rhythm strength value and the beat strength value, the strength value corresponding to the highest priority is used as a search condition, and the target environment information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information. Exemplarily, if the priority of the rhythm strength value is higher than the beat strength value, then when the rhythm strength value and the beat strength value are inconsistent, the rhythm strength value is used as a search condition to determine the target environment information. For another example, if the priority of the beat strength value is higher than the rhythm strength value, then when the rhythm strength value and the beat strength value are inconsistent, the beat strength value is used as a search condition to determine the target environment information.

考虑到根据当前音乐音频信息的节奏强弱值和/或节拍强弱值,在预先建立的第三映射关系中确定目标环境信息时,可能因节奏强弱值和/或节拍强弱值的精度,与预先建立的第三映射关系中的精度不相同,可能无法在预先建立的第三映射关系中查找到目标环境信息。Considering that when determining the target environment information in a pre-established third mapping relationship based on the rhythm strength value and/or beat strength value of the current music audio information, the target environment information may not be found in the pre-established third mapping relationship because the accuracy of the rhythm strength value and/or beat strength value is different from the accuracy in the pre-established third mapping relationship.

为此,本申请可通过如下情形解决节奏强弱值和/或节拍强弱值的精度,与预先建立的第三映射关系中的精度不相同时,在预先建立的第三映射关系中查找目标环境信息:To this end, the present application can solve the accuracy of the rhythm strength value and/or the beat strength value through the following situations. When the accuracy is different from the accuracy in the pre-established third mapping relationship, the target environment information is searched in the pre-established third mapping relationship:

第一种情形The first case

如果节奏强弱值和/或节拍强弱值的精度为0.01,预先建立的第三映射关系中的精度为0.1,则按照四舍五入的方式,对节奏强弱值和/或节拍强弱值进行调整,以使调整后的节奏强弱值和/或调整后的节拍强弱值的精度与预先建立的第三映射关系的精度相同,从而可以从预先建立的第三映射关系中查找到与节奏强弱值和/或节拍强弱值对应的目标环境信息。If the accuracy of the rhythm strength value and/or the beat strength value is 0.01, and the accuracy in the pre-established third mapping relationship is 0.1, the rhythm strength value and/or the beat strength value is adjusted by rounding off so that the accuracy of the adjusted rhythm strength value and/or the adjusted beat strength value is the same as the accuracy of the pre-established third mapping relationship, so that the target environment information corresponding to the rhythm strength value and/or the beat strength value can be found from the pre-established third mapping relationship.

例如,获取到某一首音乐音频的节奏强弱值为0.09,预先建立的第三映射关系中的精度为0.1比如上述表1。因为0.09中最后一位9大于5,那么可向9的左边单元上进一位,使得调整后的节奏强弱值从0.09变成0.1。进而,根据该调整后的节奏强弱值0.1可以从表1中确定出与节奏强弱值0.1对应的环境信息包括:灯光效果为灯光亮度从第一值调整为第二值;主题特效为主题特效A;环境贴图为环境贴图X1,比如海草等;道具材质为道具颜色的色值从第一数值调整为第二数值。进而将上述查找的环境信息作为目标环境信息。For example, the rhythm strength value of a certain music audio is 0.09, and the precision of the pre-established third mapping relationship is 0.1, such as the above Table 1. Because the last digit 9 in 0.09 is greater than 5, the unit to the left of 9 can be moved up one digit, so that the adjusted rhythm strength value changes from 0.09 to 0.1. Furthermore, according to the adjusted rhythm strength value 0.1, it can be determined from Table 1 that the environmental information corresponding to the rhythm strength value 0.1 includes: the lighting effect is the light brightness adjusted from the first value to the second value; the theme effect is the theme effect A; the environmental map is the environmental map X1, such as seaweed, etc.; the prop material is the color value of the prop color adjusted from the first value to the second value. Then, the above-searched environmental information is used as the target environmental information.

第二种情形Second situation

将预先建立的第三映射关系中强弱值这一数值设置成区间,从而通过确定当前音乐音频信息的节奏强弱值对应的节奏强弱值区间,和/或当前音乐音频信息的节拍强弱值对应的节拍强弱值区间。然后,根据节奏强弱值区间和/或节拍强弱值区间,在预设映射关系中确定目标环境信息。The value of the strength value in the pre-established third mapping relationship is set to an interval, thereby determining the rhythm strength value interval corresponding to the rhythm strength value of the current music audio information and/or the beat strength value interval corresponding to the beat strength value of the current music audio information. Then, according to the rhythm strength value interval and/or the beat strength value interval, the target environment information is determined in the preset mapping relationship.

其中,预设映射关系为节奏强弱值区间和环境信息之间的映射关系、节拍强弱值区间和环境信息之间的映射关系,或者节奏强弱值区间、节拍强弱值区间和环境信息之间的映射关系。 Among them, the preset mapping relationship is the mapping relationship between the rhythm strength value interval and the environmental information, the mapping relationship between the beat strength value interval and the environmental information, or the mapping relationship between the rhythm strength value interval, the beat strength value interval and the environmental information.

考虑到上述每个预设映射关系的实现原理和实现过程相同或类似,下面主要以节奏强弱值区间和环境信息之间的映射关系为例进行说明。Considering that the implementation principle and implementation process of each of the above preset mapping relationships are the same or similar, the mapping relationship between the rhythm strength value interval and the environmental information is mainly used as an example for explanation below.

假设上述节奏强弱值区间和环境信息之间的映射关系中,包括五个节奏强弱值区间,具体为:[0,0.2)、[0.2,0.4)、[0.4,0.6)、[0.6,0.8)、[0.8,1],并且每个节奏强弱值区间分别对应的环境信息为:第一组环境信息、第二组环境信息、第三组环境信息、第四组环境信息、第五组环境信息,具体可以参见下述表4所示。Assume that the mapping relationship between the above-mentioned rhythm strength value interval and environmental information includes five rhythm strength value intervals, specifically: [0,0.2), [0.2,0.4), [0.4,0.6), [0.6,0.8), [0.8,1], and the environmental information corresponding to each rhythm strength value interval is: the first group of environmental information, the second group of environmental information, the third group of environmental information, the fourth group of environmental information, and the fifth group of environmental information. For details, please refer to the following Table 4.

表4
Table 4

如果某一首音乐当前时刻的音频信息的节奏强弱值为0.51,则确定该节奏强弱值0.51对应的节奏强弱值区间为[0.4,0.6)。进而,根据该节奏强弱值区间[0.4,0.6),在节奏强弱值区间和环境信息之间的映射关系中确定出目标环境信息为第三组环境信息,并且该第三组环境信息包括:灯光效果为第一组灯点亮,第二组灯熄灭;主题特效为主题特效B;环境贴图为环境贴图Y2;道具颜色的色值为第四数值保持不变。If the rhythm strength value of the audio information of a certain piece of music at the current moment is 0.51, then the rhythm strength value interval corresponding to the rhythm strength value 0.51 is determined to be [0.4, 0.6). Furthermore, according to the rhythm strength value interval [0.4, 0.6), the target environmental information is determined to be the third group of environmental information in the mapping relationship between the rhythm strength value interval and the environmental information, and the third group of environmental information includes: the lighting effect is that the first group of lights are on and the second group of lights are off; the theme special effect is theme special effect B; the environmental map is environmental map Y2; the color value of the prop color remains unchanged at the fourth value.

S304,根据目标环境信息,调整音乐表演舞台的环境信息。S304, adjusting the environment information of the music performance stage according to the target environment information.

可选的,确定出当前音乐音频信息的节奏强弱值和/或节拍强弱值对应的目标环境信息之后,本申请可基于该目标环境信息对虚拟场景内的当前环境信息进行调整,使得虚拟场景内呈现的环境信息可以跟随音乐音频信息的节奏强弱值和/或节拍强弱值实时的动态调 整,从而丰富舞台环境信息的表现形式。Optionally, after determining the target environment information corresponding to the rhythm strength value and/or the beat strength value of the current music audio information, the present application can adjust the current environment information in the virtual scene based on the target environment information, so that the environment information presented in the virtual scene can be dynamically adjusted in real time with the rhythm strength value and/or the beat strength value of the music audio information. Therefore, it enriches the expression of stage environment information.

本申请实施例提供的场景调整方法,通过获取虚拟场景内表演内容的当前音乐音频信息,并确定当前音乐音频的节奏和/或节拍,以根据当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定目标环境信息,然后根据目标环境信息,调整虚拟场景内的环境信息。由此,可以丰富表演空间的环境信息表现形式,从而能够向用户提供更加丰富多彩的视觉效果和艺术感染力,以满足用户的多样化观看需求,提升了用户的视觉体验,并且还可以提升音乐表演的吸引力和观赏性。此外,还可以为虚拟场景内的表演带来更加丰富的表演效果,使得传统相对静态的环境信息变得更加多样化和具有互动感,从而提高了整个虚拟场景内的表演表现能力和用户的视觉体验。The scene adjustment method provided by the embodiment of the present application obtains the current music audio information of the performance content in the virtual scene, and determines the rhythm and/or beat of the current music audio, so as to determine the target environment information according to the rhythm strength value and/or beat strength value of the current music audio information, and then adjusts the environment information in the virtual scene according to the target environment information. In this way, the environmental information expression form of the performance space can be enriched, so that users can be provided with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users, enhance the visual experience of users, and also enhance the attractiveness and appreciation of music performances. In addition, it can also bring richer performance effects to the performances in the virtual scene, making the traditional relatively static environmental information more diverse and interactive, thereby improving the performance performance ability and the visual experience of users in the entire virtual scene.

考虑到本申请中目标对象可以为表演者的表演内容,也可以是作为观众的用户互动操作。下面结合图5,以目标对象为用户互动操作,并基于用户互动操作的状态信息调整虚拟场景内的环境信息进行具体说明。Considering that the target object in this application can be the performance content of the performer or the user interaction operation of the audience, the following is a specific description of adjusting the environment information in the virtual scene based on the state information of the user interaction operation, taking the target object as the user interaction operation, in conjunction with FIG. 5 .

如图5所示,该方法包括如下步骤:As shown in FIG5 , the method comprises the following steps:

S401,如果目标对象为用户互动操作,则获取虚拟场景内用户互动操作的操作指令、互动元素或者互动状态。S401: If the target object is a user interactive operation, obtain an operation instruction, interactive element or interactive state of the user interactive operation in the virtual scene.

S402,根据用户互动操作的操作指令、互动元素或者互动状态,确定目标环境信息。S402: Determine target environment information according to an operation instruction, interactive element or interactive state of a user interactive operation.

考虑到作为观众的用户可能基于虚拟场景内表演内容进行互动,比如与表演者进行互动,主动触发调整虚拟场景内的环境信息等互动操作指令等。所以,本申请可以获取用户互动操作对应的操作指令、互动元素或者互动状态。之后,根据用户互动操作的操作指令、互动元素或者互动状态,来确定目标环境信息。Considering that the user as an audience may interact based on the performance content in the virtual scene, such as interacting with the performer, actively triggering interactive operation instructions such as adjusting the environmental information in the virtual scene, etc. Therefore, this application can obtain the operation instruction, interactive element or interactive state corresponding to the user's interactive operation. Then, the target environmental information is determined according to the operation instruction, interactive element or interactive state of the user's interactive operation.

上述操作指令可理解为用户通过在虚拟场景内提供的操控面板上对任意环境参数的触发指令。其中,操作面板可以是位于虚拟场景内的虚拟屏幕,使得作为观众的用户可以通过该操控面板执行各种直播操作,比如调整虚拟场景内的环境参数等。The above-mentioned operation instructions can be understood as the triggering instructions of any environmental parameters by the user on the control panel provided in the virtual scene. Among them, the operation panel can be a virtual screen located in the virtual scene, so that the user as the audience can perform various live broadcast operations through the control panel, such as adjusting the environmental parameters in the virtual scene.

互动元素可理解为各种改善互动氛围的各种元素,比如笔芯表情、点赞表情、烟花表情、文字表情等,此处对其不做任何限制。Interactive elements can be understood as various elements that improve the interactive atmosphere, such as pen refill emojis, like emojis, fireworks emojis, text emojis, etc. There are no restrictions on them here.

互动状态可以理解为用户在虚拟场景内所处的状态,其中用户在虚拟场景内所处的状态可以为观众或者表演者。也就是说,用户可以将自身状态从观众状态切换成表演者状态,在虚拟场景内进行直播表演。The interactive state can be understood as the state of the user in the virtual scene, where the state of the user in the virtual scene can be a spectator or a performer. In other words, the user can switch his state from the spectator state to the performer state and perform a live performance in the virtual scene.

在一些可选的实现方式中,根据用户互动操作的操作指令、互动元素或者互动状态,来确定目标环境信息,可包括如下情形:In some optional implementations, the target environment information is determined according to the operation instruction, interactive element or interactive state of the user interaction operation, which may include the following situations:

情形一Scenario 1

响应于用户在操控面板上对任意环境参数的操作指令,确定目标环境信息。其中,操控面板位于虚拟场景内。 In response to the user's operation instruction on any environmental parameter on the control panel, the target environmental information is determined. The control panel is located in the virtual scene.

如图6所示,假设用户在操控面板上触发环境调整控件,那么控制面板从当前显示界面切换至环境调整界面,其中环境调整界面可包括各种环境参数项,比如灯光效果、主题特效以及环境贴图等。进而,用户可根据自身对虚拟场景内环境信息的调整需求,对任意环境参数项进行调整。当电子设备获取到用户在环境调整界面上对任意环境参数项的调整指令时,统计哪些环境参数项被调整,基于调整后的环境参数得到目标环境信息。需要说明的是,图6中各环境参数除了可以是选项之外,还可以是针对每个环境参数设置一个进度条,使得用户拖拽进度条来调整环境参数。As shown in Figure 6, assuming that the user triggers the environment adjustment control on the control panel, the control panel switches from the current display interface to the environment adjustment interface, where the environment adjustment interface may include various environment parameter items, such as lighting effects, theme effects, and environment maps. Furthermore, the user can adjust any environment parameter item according to his or her own adjustment needs for the environmental information in the virtual scene. When the electronic device obtains the user's adjustment instruction for any environment parameter item on the environment adjustment interface, it counts which environment parameter items are adjusted, and obtains the target environment information based on the adjusted environment parameters. It should be noted that in addition to being options, each environment parameter in Figure 6 can also be a progress bar set for each environment parameter, so that the user drags the progress bar to adjust the environment parameter.

情形二Scenario 2

响应于用户触发的互动操作,确定与互动操作对应的互动元素,并在互动场景的当前环境信息上增加互动元素,得到目标环境信息。In response to the interactive operation triggered by the user, an interactive element corresponding to the interactive operation is determined, and the interactive element is added to the current environment information of the interactive scene to obtain the target environment information.

考虑到用户作为观众在观看表演者的表演过程中,可以与表演者进行互动,或者跟随表演内容进行互动。其中,用户进行互动时,可以通过操控交互控制器比如手柄、手部控制器或者手套等设备操控荧光棒或者其他类型互动物体进行互动操作;或者,用户还可以通过徒手握持荧光棒等物体进行互动操作;又或者,用户也可以通过操控交互控制器进行互动操作等,本申请对互动方式不做任何限制。Considering that users as audiences can interact with performers or follow the performance content while watching the performance of performers. When users interact, they can manipulate fluorescent sticks or other types of interactive objects by manipulating interactive controllers such as handles, hand controllers, or gloves; or, users can also interact by holding fluorescent sticks or other objects with bare hands; or, users can also interact by manipulating interactive controllers, etc. This application does not impose any restrictions on the interaction method.

当电子设备检测到用户触发的互动操作时,首先确定与该互动操作对应的互动元素,进而将确定出来的互动元素添加到虚拟场景的当前环境信息中,以得到目标环境信息。When the electronic device detects an interactive operation triggered by a user, it first determines the interactive element corresponding to the interactive operation, and then adds the determined interactive element to the current environment information of the virtual scene to obtain the target environment information.

例如,假设用户触发的互动操作是徒手握持荧光棒左右摆动,那么可在预先建立的互动操作和互动元素的映射关系中,确定出与互动操作对应的互动元素。进而,在虚拟场景内的当前环境信息中增加与互动操作对应的互动元素,得到目标环境信息。For example, if the interactive operation triggered by the user is to swing a fluorescent stick left and right with bare hands, the interactive element corresponding to the interactive operation can be determined in the pre-established mapping relationship between interactive operations and interactive elements. Then, the interactive element corresponding to the interactive operation is added to the current environment information in the virtual scene to obtain the target environment information.

在本申请的一种可选实现方式中,预先建立的互动操作和互动元素的映射关系,可如下表5所示:In an optional implementation of the present application, the pre-established mapping relationship between interactive operations and interactive elements may be as shown in the following Table 5:

表5
Table 5

需要说明的是,上述互动操作和互动元素的映射关系可以根据虚拟场景内环境信息的调整需求进行灵活调整以及更新操作。It should be noted that the mapping relationship between the above-mentioned interactive operations and interactive elements can be flexibly adjusted and updated according to the adjustment requirements of the environmental information in the virtual scene.

情形三Scenario 3

响应于用户触发的身份切换操作,将用户的身份从观众切换为表演者。进而,根据互动状态为表演者的用户表演内容,确定目标环境信息。In response to the identity switching operation triggered by the user, the user's identity is switched from audience to performer. Further, the target environment information is determined according to the performance content of the user whose interactive status is performer.

考虑到在虚拟场景中观众和表演者可以切换身份,以增加整个直播间的互动效果,提 高观众的参与积极性。所以,当用户想要作为表演者进行音乐表演时,该用户可以通过语音、眼动追踪、手势或者操控手柄等方式发送身份切换操作,以将用户的观众身份切换成表演者,进而互动状态为表演者的身份在虚拟场景内进行表演,进而根据用户表演内容确定目标环境信息。Considering that the audience and performers can switch identities in the virtual scene to increase the interactive effect of the entire live broadcast room, High audience participation enthusiasm. Therefore, when a user wants to perform music as a performer, the user can send an identity switching operation through voice, eye tracking, gestures, or a control handle to switch the user's audience identity to a performer, and then perform in the virtual scene as a performer in the interactive state, and then determine the target environment information according to the user's performance content.

例如,用户可以通过操控手柄点击直播间上显示的身份切换控件来触发身份切换操作。进而,电子设备可根据用户触发的身份切换操作,将用户的身份从观众切换为表演者。For example, the user can trigger the identity switching operation by clicking the identity switching control displayed on the live broadcast room through the control handle. Then, the electronic device can switch the user's identity from audience to performer according to the identity switching operation triggered by the user.

由于用户触发身份切换操作时,可能有表演者当前正在表演中,此时电子设备会向用户显示诸如:目前正有表演者进行表演中,请稍等等类似提示信息。当确定上述表演者已经表演完成时,电子设备执行身份切换操作,以将用户的身份从观众切换至最新的表演者,使得用户可以以表演者身份进行表演,从而可以让用户更加自如的掌控在虚拟场景内的表演效果,提高表演效率和质量。When the user triggers the identity switching operation, there may be a performer currently performing. At this time, the electronic device will display a prompt message to the user such as: A performer is currently performing, please wait. When it is determined that the above performer has finished the performance, the electronic device performs the identity switching operation to switch the user's identity from the audience to the latest performer, so that the user can perform as a performer, so that the user can more freely control the performance effect in the virtual scene, improving the efficiency and quality of the performance.

S403,根据目标环境信息,调整虚拟场景内的环境信息。S403: Adjust the environment information in the virtual scene according to the target environment information.

确定出目标环境信息之后,本申请可以基于目标环境信息,对虚拟场景内的环境信息进行实时更新。After determining the target environment information, the present application can update the environment information in the virtual scene in real time based on the target environment information.

在一些可选的实现方式中,当目标环境信息是将用户互动操作对应的互动元素添加到虚拟场景的当前环境信息中,那么调整虚拟场景内的环境信息时,可以在用户触发互动操作的附近显示对应互动元素,以此来响应用户的互动操作,提高用户互动时的视觉效果以及整个虚拟场景的互动氛围。In some optional implementations, when the target environmental information is to add the interactive elements corresponding to the user's interactive operation to the current environmental information of the virtual scene, then when the environmental information within the virtual scene is adjusted, the corresponding interactive elements can be displayed near the interactive operation triggered by the user, so as to respond to the user's interactive operation, improve the visual effect of the user's interaction and the interactive atmosphere of the entire virtual scene.

考虑到一个虚拟场景内可以有多个观众,所以当任一观众在虚拟场景内触发互动操作,并基于互动操作的互动元素确定出来的目标环境信息调整虚拟场景内的当前环境信息时,本申请优选仅对触发互动操作用户所看到的环境信息进行调整,使得触发互动操作用户能够在自身视角内看到相应的互动响应,而其他用户的视觉内则不做任何处理,从而能够实现针对单人触发的互动操作进行单人互动响应,避免其他用户在观看表演过程中,因没有触发互动操作而出现环境信息调整的突兀感。Taking into account that there can be multiple audiences in a virtual scene, when any audience triggers an interactive operation in the virtual scene and adjusts the current environmental information in the virtual scene based on the target environmental information determined by the interactive elements of the interactive operation, the present application preferably only adjusts the environmental information seen by the user who triggers the interactive operation, so that the user who triggers the interactive operation can see the corresponding interactive response from his or her own perspective, while no processing is performed in the vision of other users. This allows for a single-person interactive response to an interactive operation triggered by a single person, thereby avoiding the abrupt feeling of environmental information adjustment that occurs to other users while they are watching the performance due to the lack of an interactive operation being triggered.

需要说明的是,当用户以表演者的身份进行表演时,本申请会执行前述实施例中步骤S201至步骤S203,或者步骤S301至步骤S304,以实现跟随表演者的表演对虚拟场景内的环境信息进行实时动态调整,从而可以提高虚拟场景内表演的表现能力和用户观看的视觉效果。It should be noted that when the user performs as a performer, the present application will execute steps S201 to S203, or steps S301 to S304 in the aforementioned embodiments, so as to achieve real-time dynamic adjustment of the environmental information in the virtual scene following the performer's performance, thereby improving the performance ability of the virtual scene and the visual effect of the user.

在一种可选的实现方式中,当用户在虚拟场景内进行互动操作时,本申请可选的还可以在虚拟场景的当前环境信息的基础上进行增强显示,以实现环境信息的调整,从而可以进一步提高用户的互动趣味性和互动积极性。其中,增强显示可理解为在当前环境信息呈现的基础上,增加灯光的亮度,驱动播放预设特效和/或开闭预设灯光组等。In an optional implementation, when the user performs interactive operations in a virtual scene, the present application can optionally perform enhanced display based on the current environmental information of the virtual scene to adjust the environmental information, thereby further improving the user's interactive interest and enthusiasm. Among them, enhanced display can be understood as increasing the brightness of the light, driving the playback of preset special effects and/or turning on and off preset light groups, etc. based on the current environmental information presentation.

上述当前环境信息为调整前的环境信息,或者调整后的环境信息,此处对其不做任何限制。 The above current environment information is the environment information before adjustment or the environment information after adjustment, and no restriction is imposed on it here.

作为一种可选的实现方式,对虚拟场景的当前环境信息进行增强显示,可包括如下至少一种情况:As an optional implementation, the enhanced display of the current environment information of the virtual scene may include at least one of the following situations:

第一种情况First case

如果用户操控交互控制器的运动轨迹为预设运动轨迹,则根据运动轨迹对虚拟场景内的当前环境信息进行增强显示。If the motion trajectory of the interactive controller manipulated by the user is a preset motion trajectory, the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory.

其中,交互控制器的运动轨迹,可根据交互控制器中惯性测量单元(Inertial measurement unit,简称IMU)发送的惯性测量单元数据确定的位姿数据中的位置数据确定,具体确定过程为本领域的常规技术此处对其不做过多赘述。Among them, the motion trajectory of the interactive controller can be determined according to the position data in the posture data determined by the inertial measurement unit data sent by the inertial measurement unit (IMU) in the interactive controller. The specific determination process is the conventional technology in the field and will not be elaborated here.

本申请中,预设运动轨迹可以根据实际交互需求进行设置,比如画圈或者画心等。In this application, the preset motion trajectory can be set according to actual interaction needs, such as drawing a circle or a center.

可选的,本申请可将交互控制器的运动轨迹与预设运动轨迹进行比对,如果该运动轨迹与任一预设运动轨迹相同,则按照与预设运动轨迹关联的增强显示方式,对虚拟场景内的当前环境信息进行增强显示。Optionally, the present application may compare the motion trajectory of the interactive controller with a preset motion trajectory. If the motion trajectory is the same as any preset motion trajectory, the current environmental information in the virtual scene is enhanced and displayed according to the enhanced display method associated with the preset motion trajectory.

上述与预设运动轨迹关联的增强显示方式,可以是技术人员预先构建的运动轨迹和增强显示方式之间的映射关系,并且该映射关系也可以存储在数据库中。并且,技术人员还可定时对上述运动轨迹和增强显示方式之间的映射关系进行更新,以满足虚拟场景通过环境信息对互动操作进行个性化响应需求。The enhanced display mode associated with the preset motion trajectory may be a mapping relationship between the motion trajectory and the enhanced display mode pre-built by the technician, and the mapping relationship may also be stored in the database. In addition, the technician may also update the mapping relationship between the motion trajectory and the enhanced display mode at regular intervals to meet the needs of the virtual scene to respond to the interactive operation in a personalized manner through environmental information.

情况二Case 2

如果用户操控交互控制器的运动幅度达到幅度阈值,则根据运动幅度对虚拟场景内的当前环境信息进行增强显示。If the movement amplitude of the user manipulating the interactive controller reaches the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude.

其中,交互控制器的运动幅度,可根据交互控制器中惯性测量单元(Inertial measurement unit,简称IMU)发送的惯性测量单元数据确定,具体可根据惯性测量单元数据确定的位姿数据中位置数据,确定用户操控交互控制器的运动距离,将该运动距离确定为交互控制器的运动幅度。其中,根据交互控制器的位置数据确定运动距离,可以是根据两点距离计算公式来确定,例如计算欧式距离等,此处对其不做具体限制。The movement amplitude of the interactive controller can be determined based on the inertial measurement unit data sent by the inertial measurement unit (IMU) in the interactive controller. Specifically, the movement distance of the user manipulating the interactive controller can be determined based on the position data in the posture data determined by the inertial measurement unit data, and the movement distance is determined as the movement amplitude of the interactive controller. The movement distance can be determined based on the position data of the interactive controller, and can be determined based on a two-point distance calculation formula, such as calculating the Euclidean distance, etc., which is not specifically limited here.

在本申请中,幅度阈值可以根据实际交互需求进行设置,比如20厘米或者40厘米等,本申请对其不做任何限制。In this application, the amplitude threshold can be set according to actual interaction requirements, such as 20 cm or 40 cm, etc. This application does not impose any restrictions on it.

可选的,本申请可将交互控制器的运动幅度与幅度阈值进行比对,如果该运动幅度大于幅度阈值,则按照预设增强显示方式,对虚拟场景内的当前环境信息进行增强显示。否则,对虚拟场景内的当前环境信息进行增强显示不做任何处理。Optionally, the present application may compare the movement amplitude of the interactive controller with the amplitude threshold, and if the movement amplitude is greater than the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed in a preset enhanced display mode. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.

其中,预设增强显示方式可以为多个,那么当运动幅度大于幅度阈值时随机从多个预设增强显示方式中选择任意方式进行响应显示,由此增加响应的多样性和趣味性。There may be multiple preset enhanced display modes. When the motion amplitude is greater than the amplitude threshold, any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.

情况三Case 3

如果用户操控交互控制器的运动频率达到频率阈值,则根据运动频率对虚拟场景内的当前环境信息进行增强显示。 If the movement frequency of the user manipulating the interactive controller reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency.

在本申请中,频率阈值可以根据实际交互需求进行设置,比如1分钟内的晃动交互控制器的次数达到5次,即频率阈值为f=1/5;或者,5分钟内欢动交互控制器的次数达到30次,即频率阈值f=1/30等,本申请对其不做任何限制。In the present application, the frequency threshold can be set according to the actual interaction needs. For example, if the number of times the interactive controller is shaken within 1 minute reaches 5 times, the frequency threshold is f=1/5; or, if the number of times the interactive controller is shaken within 5 minutes reaches 30 times, the frequency threshold is f=1/30, etc. This application does not impose any restrictions on it.

可选的,本申请可通过电子设备中头戴显示设备上的摄像头采集用户操控交互控制器的实时图像,进而对摄像头采集的实时追踪图像进行识别,以确定交互控制器的运动频率,具体识别方式可参见现有实现方式,此处对其不做具体赘述。Optionally, the present application can capture real-time images of the user operating the interactive controller through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image captured by the camera to determine the movement frequency of the interactive controller. The specific identification method can refer to the existing implementation method, which will not be described in detail here.

进而,电子设备可将交互控制器的运动频率与频率阈值进行比对,如果该运动频率大于频率阈值,则按照预设增强显示方式,对虚拟场景内的当前环境信息进行增强显示。否则,对虚拟场景内的当前环境信息进行增强显示不做任何处理。Furthermore, the electronic device may compare the movement frequency of the interactive controller with the frequency threshold, and if the movement frequency is greater than the frequency threshold, the current environment information in the virtual scene is enhanced and displayed in a preset enhanced display manner. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.

其中,预设增强显示方式可以为多个,那么当运动频率大于频率阈值时随机从多个预设增强显示方式中选择任意方式进行响应显示,由此增加响应的多样性和趣味性。There may be multiple preset enhanced display modes. When the motion frequency is greater than a frequency threshold, any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.

情况四Case 4

如果用户手部的运动轨迹为预设运动轨迹,则根据运动轨迹对虚拟场景内的当前环境信息进行增强显示。If the motion trajectory of the user's hand is a preset motion trajectory, the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory.

其中,用户手部可以理解为用户的真实手,或者呈现于虚拟空间内的虚拟手部模型,此处对其不做具体限制。The user's hand may be understood as the user's real hand, or a virtual hand model presented in the virtual space, and no specific limitation is imposed on it here.

可选的,本申请可通过电子设备中头戴显示设备上的摄像头采集用户手部实时图像,进而对摄像头采集的实时追踪图像进行识别,以确定用户手部的运动轨迹,具体识别方式可参见现有实现方式,此处对其不做具体赘述。Optionally, the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image collected by the camera to determine the movement trajectory of the user's hands. The specific identification method can refer to the existing implementation method, which will not be described in detail here.

进而,可将用户手部的运动轨迹与预设运动轨迹进行比对,如果该运动轨迹与任一预设运动轨迹相同,则按照与预设运动轨迹关联的增强显示方式,对虚拟场景内的当前环境信息进行增强显示。Furthermore, the motion trajectory of the user's hand can be compared with the preset motion trajectory. If the motion trajectory is the same as any preset motion trajectory, the current environmental information in the virtual scene is enhanced and displayed according to the enhanced display method associated with the preset motion trajectory.

上述与预设运动轨迹关联的增强显示方式,可以是技术人员预先构建的运动轨迹和增强显示方式之间的映射关系,并且该映射关系也可以存储在数据库中。并且,技术人员还可定时对上述运动轨迹和增强显示方式之间的映射关系进行更新,以满足不同表演舞台的响应个性化显示需求。The enhanced display mode associated with the preset motion trajectory may be a mapping relationship between the motion trajectory and the enhanced display mode pre-constructed by the technician, and the mapping relationship may also be stored in the database. In addition, the technician may also update the mapping relationship between the motion trajectory and the enhanced display mode at regular intervals to meet the personalized display requirements of different performance stages.

情况五Case 5

如果用户手部的运动幅度达到幅度阈值,则根据运动幅度对虚拟场景内的当前环境信息进行增强显示。If the movement amplitude of the user's hand reaches the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude.

在本申请中,幅度阈值可以根据实际交互需求进行设置,比如20厘米或者40厘米等,本申请对其不做任何限制。In this application, the amplitude threshold can be set according to actual interaction requirements, such as 20 cm or 40 cm, etc. This application does not impose any restrictions on it.

可选的,本申请可通过电子设备中头戴显示设备上的摄像头采集用户手部实时图像,进而对摄像头采集的实时追踪图像进行识别,以确定用户手部的运动幅度,具体识别方式可参见现有实现方式,此处对其不做具体赘述。 Optionally, the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image collected by the camera to determine the movement amplitude of the user's hands. The specific identification method can refer to the existing implementation method, which will not be described in detail here.

进而,可将用户手部的运动幅度与幅度阈值进行比对,如果该运动幅度大于幅度阈值,则按照预设增强显示方式,对虚拟场景内的当前环境信息进行增强显示。否则,对虚拟场景内的当前环境信息进行增强显示不做任何处理。Furthermore, the movement amplitude of the user's hand can be compared with the amplitude threshold, and if the movement amplitude is greater than the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the preset enhanced display mode. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.

其中,预设增强显示方式可以为多个,那么当运动幅度大于幅度阈值时随机从多个预设增强显示方式中选择任意方式进行响应显示,由此增加响应的多样性和趣味性。There may be multiple preset enhanced display modes. When the motion amplitude is greater than the amplitude threshold, any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.

情况六Case 6

如果用户手部的运动频率达到频率阈值,则根据运动频率对虚拟场景内的当前环境信息进行增强显示。If the movement frequency of the user's hand reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency.

在本申请中,频率阈值可以根据实际交互需求进行设置,比如1分钟内的晃动交互控制器的次数达到5次,即频率阈值为f=1/5;或者,5分钟内欢动交互控制器的次数达到30次,即频率阈值f=1/30等,本申请对其不做任何限制。In the present application, the frequency threshold can be set according to the actual interaction needs. For example, if the number of times the interactive controller is shaken within 1 minute reaches 5 times, the frequency threshold is f=1/5; or, if the number of times the interactive controller is shaken within 5 minutes reaches 30 times, the frequency threshold is f=1/30, etc. This application does not impose any restrictions on it.

可选的,本申请可通过电子设备中头戴显示设备上的摄像头采集用户手部实时图像,进而对摄像头采集的实时追踪图像进行识别,以确定用户手部的运动频率,具体识别方式可参见现有实现方式,此处对其不做具体赘述。Optionally, the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking images collected by the camera to determine the movement frequency of the user's hands. The specific identification method can refer to the existing implementation method, which will not be described in detail here.

进而,电子设备可将用户手部的运动频率与频率阈值进行比对,如果该运动频率大于频率阈值,则按照预设增强显示方式,对虚拟场景内的当前环境信息进行增强显示。否则,对虚拟场景内的当前环境信息进行增强显示不做任何处理。Furthermore, the electronic device may compare the movement frequency of the user's hand with the frequency threshold, and if the movement frequency is greater than the frequency threshold, the current environment information in the virtual scene is enhanced and displayed in a preset enhanced display manner. Otherwise, the current environment information in the virtual scene is enhanced and displayed without any processing.

其中,预设增强显示方式可以为多个,那么当运动频率大于频率阈值时随机从多个预设增强显示方式中选择任意方式进行响应显示,由此增加响应的多样性和趣味性。There may be multiple preset enhanced display modes. When the motion frequency is greater than a frequency threshold, any mode is randomly selected from the multiple preset enhanced display modes for response display, thereby increasing the diversity and interest of the response.

情况七Situation 7

如果用户手势为预设手势,则根据手势对虚拟场景内的当前环境信息进行增强显示。If the user gesture is a preset gesture, the current environment information in the virtual scene is enhanced and displayed according to the gesture.

在本申请中,预设手势可以是预先设置好的手势,并且该手势可以根据实际交互需求进行灵活调整,比如:点赞手势、比心手势等,此处对其不做具体限制。In the present application, the preset gesture may be a pre-set gesture, and the gesture may be flexibly adjusted according to actual interaction needs, such as: a thumbs-up gesture, a heart gesture, etc., and no specific restrictions are imposed here.

可选的,本申请可通过电子设备中头戴显示设备上的摄像头采集用户手部实时图像,进而对摄像头采集的实时追踪图像进行识别,以确定用户手部做出的手势,具体识别方式可参见现有实现方式,此处对其不做具体赘述。Optionally, the present application can collect real-time images of the user's hands through a camera on a head-mounted display device in an electronic device, and then identify the real-time tracking image collected by the camera to determine the gestures made by the user's hands. The specific identification method can refer to the existing implementation method, which will not be described in detail here.

进而,电子设备可将用户手部做出的手势与预设手势进行比对,如果该用户手部做出的手势与任一预设手势相同,则按照与预设手势关联的增强显示方式,对虚拟场景内的当前环境信息进行增强显示。Furthermore, the electronic device can compare the gesture made by the user's hand with the preset gesture. If the gesture made by the user's hand is the same as any preset gesture, the current environmental information in the virtual scene is enhanced and displayed according to the enhanced display method associated with the preset gesture.

上述与预设手势关联的增强显示方式,可以是技术人员预先构建的手势和增强显示方式之间的映射关系,并且该映射关系也可以存储在数据库中。并且,技术人员还可定时对上述手势和增强显示方式之间的映射关系进行更新,以满足不同表演舞台的响应个性化显示需求。The enhanced display mode associated with the preset gesture may be a mapping relationship between the gesture and the enhanced display mode pre-built by the technician, and the mapping relationship may also be stored in the database. In addition, the technician may also update the mapping relationship between the gesture and the enhanced display mode at regular intervals to meet the personalized display requirements of different performance stages.

也就是说,本申请响应于用户触发的交互操作,对虚拟场景内的当前环境信息进行增 强显示,包括下述至少一项:That is, in response to the interactive operation triggered by the user, the present application adds information about the current environment in the virtual scene. Strong display, including at least one of the following:

如果用户操控交互控制器的运动轨迹为预设运动轨迹,则根据运动轨迹对虚拟场景内的当前环境信息进行增强显示;If the motion trajectory of the interactive controller controlled by the user is a preset motion trajectory, the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory;

如果用户操控交互控制器的运动幅度达到幅度阈值,则根据运动幅度对虚拟场景内的当前环境信息进行增强显示;If the movement amplitude of the user's manipulation of the interactive controller reaches the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude;

如果用户操控交互控制器的运动频率达到频率阈值,则根据运动频率对虚拟场景内的当前环境信息进行增强显示;If the movement frequency of the user manipulating the interactive controller reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency;

如果用户手部的运动轨迹为预设运动轨迹,则根据运动轨迹对虚拟场景内的当前环境信息进行增强显示;If the motion trajectory of the user's hand is a preset motion trajectory, the current environment information in the virtual scene is enhanced and displayed according to the motion trajectory;

如果用户手部的运动幅度达到幅度阈值,则根据运动幅度对虚拟场景内的当前环境信息进行增强显示;If the movement amplitude of the user's hand reaches the amplitude threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement amplitude;

如果用户手部的运动频率达到频率阈值,则根据运动频率对虚拟场景内的当前环境信息进行增强显示;If the movement frequency of the user's hand reaches a frequency threshold, the current environment information in the virtual scene is enhanced and displayed according to the movement frequency;

如果用户手势为预设手势,则根据手势对虚拟场景内的当前环境信息进行增强显示。If the user gesture is a preset gesture, the current environment information in the virtual scene is enhanced and displayed according to the gesture.

本申请实施例提供的场景调整方法,通过获取虚拟场景内用户互动操作的操作指令、互动元素或者互动状态,以根据用户互动操作的操作指令、互动元素或者互动状态,确定目标环境信息,然后根据目标环境信息,调整虚拟场景内的环境信息。由此,可以丰富表演空间的环境信息表现形式,从而能够向用户提供更加丰富多彩的视觉效果和艺术感染力,以满足用户的多样化观看需求,提升了用户的视觉体验,并且还可以提升音乐表演的吸引力和观赏性。此外,通过根据用户触发的交互操作,对虚拟场景内的当前环境信息进行增强显示,可以提高用户的互动趣味性和互动积极性,而且使得整个虚拟场景内的表演呈现效果可以根据用户的互动操作进行动态调整,进一步丰富舞台的表现效果,提升用户的观看体验。The scene adjustment method provided in the embodiment of the present application obtains the operation instructions, interactive elements or interactive states of the user's interactive operation in the virtual scene, determines the target environment information according to the operation instructions, interactive elements or interactive states of the user's interactive operation, and then adjusts the environment information in the virtual scene according to the target environment information. In this way, the environmental information expression form of the performance space can be enriched, so that users can be provided with more colorful visual effects and artistic appeal to meet the diverse viewing needs of users, enhance the user's visual experience, and also enhance the attractiveness and viewing of music performances. In addition, by enhancing the display of the current environmental information in the virtual scene according to the interactive operation triggered by the user, the user's interactive interest and interactive enthusiasm can be improved, and the performance presentation effect in the entire virtual scene can be dynamically adjusted according to the user's interactive operation, further enriching the performance effect of the stage and enhancing the user's viewing experience.

下面参照附图7,对本申请实施例提出的一种场景调整装置进行描述。图7是本申请实施例提供的一种场景调整装置的示意性框图。A scene adjustment device provided in an embodiment of the present application is described below with reference to FIG7 . FIG7 is a schematic block diagram of a scene adjustment device provided in an embodiment of the present application.

如图7所示,该场景调整装置400包括:信息获取模块410和场景调整模块420。As shown in FIG. 7 , the scene adjustment device 400 includes: an information acquisition module 410 and a scene adjustment module 420 .

其中,信息获取模块410,用于获取虚拟场景内目标对象的状态信息;The information acquisition module 410 is used to acquire the state information of the target object in the virtual scene;

场景调整模块420,用于根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息。The scene adjustment module 420 is used to adjust the environment information in the virtual scene according to the state information of the target object.

本申请实施例的一种可选实现方式,所述目标对象包括:表演内容和用户互动操作;In an optional implementation of the embodiment of the present application, the target object includes: performance content and user interactive operations;

相应的,信息获取模块410,具体用于:Accordingly, the information acquisition module 410 is specifically used for:

如果所述目标对象为所述表演内容,则获取所述虚拟场景内所述表演内容的当前音乐音频信息和/或内容类型; If the target object is the performance content, obtaining current music audio information and/or content type of the performance content in the virtual scene;

如果所述目标对象为所述用户互动操作,则获取所述虚拟场景内所述用户互动操作的操作指令、互动元素或者互动状态。If the target object is the user interactive operation, an operation instruction, an interactive element or an interactive state of the user interactive operation in the virtual scene is obtained.

本申请实施例的一种可选实现方式,当所述目标对象为所述表演内容时,所述场景调整模块420,包括:In an optional implementation of the embodiment of the present application, when the target object is the performance content, the scene adjustment module 420 includes:

第一确定单元,用于根据所述表演内容的当前音乐音频信息和/或内容类型,确定目标环境信息;A first determining unit, configured to determine target environment information according to current music audio information and/or content type of the performance content;

调整单元,用于根据所述目标环境信息,调整所述虚拟场景内的环境信息。An adjustment unit is used to adjust the environment information in the virtual scene according to the target environment information.

本申请实施例的一种可选实现方式,第一确定单元,具体用于:In an optional implementation manner of the embodiment of the present application, the first determining unit is specifically configured to:

确定所述当前音乐音频信息的节奏和/或节拍;Determining the rhythm and/or beat of the current music audio information;

根据所述当前音乐音频信息的节奏和/或节拍,确定所述目标环境信息。The target environment information is determined according to the rhythm and/or beat of the current music audio information.

本申请实施例的一种可选实现方式,第一确定单元,还用于:In an optional implementation manner of the embodiment of the present application, the first determining unit is further configured to:

根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息。The target environment information is determined according to the rhythm strength value and/or the beat strength value of the current music audio information.

本申请实施例的一种可选实现方式,第一确定单元,还用于:In an optional implementation manner of the embodiment of the present application, the first determining unit is further configured to:

根据所述当前音乐音频信息的节奏强弱值,在节奏强弱值和环境信息之间的映射关系中确定所述目标环境信息;Determining the target environment information in a mapping relationship between the rhythm strength value and the environment information according to the rhythm strength value of the current music audio information;

或者,or,

根据所述当前音乐音频信息的节拍强弱值,在节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息;According to the beat strength value of the current music audio information, determining the target environment information in the mapping relationship between the beat strength value and the environment information;

或者,or,

根据所述当前音乐音频信息的节奏强弱值和节拍强弱值,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息。According to the rhythm strength value and the beat strength value of the current music audio information, the target environmental information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information.

本申请实施例的一种可选实现方式,第一确定单元,具体用于:In an optional implementation manner of the embodiment of the present application, the first determining unit is specifically configured to:

确定所述当前音乐音频信息的节奏强弱值对应的节奏强弱值区间,和/或所述当前音乐音频信息的节拍强弱值对应的节拍强弱值区间;Determine a rhythm strength value interval corresponding to the rhythm strength value of the current music audio information, and/or a beat strength value interval corresponding to the beat strength value of the current music audio information;

根据所述节奏强弱值区间和/或节拍强弱值区间,在预设映射关系中确定所述目标环境信息;Determining the target environment information in a preset mapping relationship according to the rhythm strength value interval and/or the beat strength value interval;

其中,所述预设映射关系为节奏强弱值区间和环境信息之间的映射关系、节拍强弱值区间和环境信息之间的映射关系,或者节奏强弱值区间、节拍强弱值区间和环境信息之间的映射关系。Among them, the preset mapping relationship is a mapping relationship between rhythm strength value intervals and environmental information, a mapping relationship between beat strength value intervals and environmental information, or a mapping relationship between rhythm strength value intervals, beat strength value intervals and environmental information.

本申请实施例的一种可选实现方式,第一确定单元,具体用于:In an optional implementation manner of the embodiment of the present application, the first determining unit is specifically configured to:

根据所述表演内容的内容类型,在内容类型和环境信息之间的映射关系中确定所述目标环境信息。The target environment information is determined in a mapping relationship between content type and environment information according to the content type of the performance content.

本申请实施例的一种可选实现方式,第一确定单元,具体用于:In an optional implementation manner of the embodiment of the present application, the first determining unit is specifically configured to:

确定与所述表演内容的当前音乐音频信息对应的第一环境信息,以及与所述表演内容 的内容类型对应的第二环境信息;Determine first environmental information corresponding to current music audio information of the performance content, and Second environment information corresponding to the content type;

将所述第一环境信息和所述第二环境信息进行融合,得到所述目标环境信息。The first environment information and the second environment information are integrated to obtain the target environment information.

本申请实施例的一种可选实现方式,当所述目标对象为所述用户互动操作时,所述场景调整模块420,包括:In an optional implementation of the embodiment of the present application, when the target object is the user interactive operation, the scene adjustment module 420 includes:

第二确定单元,用于根据所述用户互动操作的操作指令、互动元素或者互动状态,确定目标环境信息;A second determining unit, configured to determine target environment information according to an operation instruction, an interactive element or an interactive state of the user interactive operation;

调整单元,还用于根据所述目标环境信息,调整所述虚拟场景内的环境信息。The adjustment unit is further used to adjust the environmental information in the virtual scene according to the target environmental information.

本申请实施例的一种可选实现方式,第二确定单元,具体用于:In an optional implementation manner of the embodiment of the present application, the second determining unit is specifically configured to:

响应于用户在操控面板上对任意环境参数的操作指令,确定所述目标环境信息,其中所述操控面板位于所述虚拟场景内。The target environment information is determined in response to an operation instruction of a user on a control panel for any environment parameter, wherein the control panel is located in the virtual scene.

本申请实施例的一种可选实现方式,第二确定单元,具体用于:In an optional implementation manner of the embodiment of the present application, the second determining unit is specifically configured to:

响应于用户触发的身份切换操作,将所述用户的身份从观众切换为表演者;In response to an identity switching operation triggered by a user, switching the identity of the user from a spectator to a performer;

根据互动状态为表演者的用户表演内容,确定所述目标环境信息。The target environment information is determined according to the performance content of the user whose interactive state is a performer.

本申请实施例的一种可选实现方式,场景调整模块420,还包括:In an optional implementation of the embodiment of the present application, the scene adjustment module 420 further includes:

元素确定单元,用于响应于用户触发的互动操作,确定与所述互动操作对应的互动元素;An element determination unit, configured to determine, in response to an interactive operation triggered by a user, an interactive element corresponding to the interactive operation;

相应的,第二确定单元,具体用于:Accordingly, the second determining unit is specifically configured to:

在所述互动场景的当前环境信息上增加所述互动元素,得到所述目标环境信息。The interactive element is added to the current environment information of the interactive scene to obtain the target environment information.

本申请实施例的一种可选实现方式,所述目标环境信息包括下述至少一项:灯光效果、主题特效、环境贴图和道具材质。In an optional implementation manner of an embodiment of the present application, the target environment information includes at least one of the following: lighting effects, theme special effects, environment maps, and prop materials.

本申请实施例提供的场景调整装置,通过获取虚拟场景内目标对象的状态信息,以根据目标对象的状态信息,调整虚拟场景内的环境信息。由此,实现基于获取到的目标对象的状态信息,对表演者所在虚拟场景内的环境信息进行实时调整,从而可以丰富表演空间的环境信息表现形式,从而能够向用户提供更加丰富多彩的视觉效果和艺术感染力,以满足用户的多样化观看需求,提升了用户的视觉体验,并且还可以提升音乐表演的吸引力和观赏性。The scene adjustment device provided in the embodiment of the present application obtains the state information of the target object in the virtual scene, and adjusts the environmental information in the virtual scene according to the state information of the target object. Thus, the environmental information in the virtual scene where the performer is located can be adjusted in real time based on the acquired state information of the target object, thereby enriching the environmental information expression form of the performance space, thereby providing users with more colorful visual effects and artistic appeal, so as to meet the diverse viewing needs of users, enhance the visual experience of users, and also enhance the attractiveness and appreciation of music performances.

应理解的是,装置实施例与前述方法实施例可以相互对应,类似的描述可以参照方法实施例。为避免重复,此处不再赘述。具体地,图7所示的装置400可以执行图1对应的方法实施例,并且装置400中的各个模块的前述和其它操作和/或功能分别为了实现图1中的各个方法中的相应流程,为了简洁,在此不再赘述。It should be understood that the device embodiment and the aforementioned method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the device 400 shown in FIG. 7 can execute the method embodiment corresponding to FIG. 1, and the aforementioned and other operations and/or functions of each module in the device 400 are respectively for implementing the corresponding processes in each method in FIG. 1, and for the sake of brevity, no further description is given here.

上文中结合附图从功能模块的角度描述了本申请实施例的装置400。应理解,该功能模块可以通过硬件形式实现,也可以通过软件形式的指令实现,还可以通过硬件和软件模块组合实现。具体地,本申请实施例中的第一方面方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路和/或软件形式的指令完成,结合本申请实施例公开的第一方面方法 的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。可选地,软件模块可以位于随机存储器,闪存、只读存储器、可编程只读存储器、电可擦写可编程存储器、寄存器等本领域的成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述第一方面方法实施例中的步骤。The above text describes the device 400 of the embodiment of the present application from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that the functional modules can be implemented in hardware form, can be implemented in software form, or can be implemented in a combination of hardware and software modules. Specifically, each step of the first aspect of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit in the processor and/or the software form of the instruction, combined with the first aspect of the method disclosed in the embodiment of the present application The steps can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above-mentioned first aspect method embodiment in combination with its hardware.

图8是本申请实施例提供的一种电子设备的示意性框图。如图8所示,该电子设备500可包括:FIG8 is a schematic block diagram of an electronic device provided in an embodiment of the present application. As shown in FIG8 , the electronic device 500 may include:

存储器510和处理器520,该存储器510用于存储计算机程序,并将该程序代码传输给该处理器520。换言之,该处理器520可以从存储器510中调用并运行计算机程序,以实现本申请实施例中的场景调整方法。The memory 510 and the processor 520, the memory 510 is used to store the computer program and transmit the program code to the processor 520. In other words, the processor 520 can call and run the computer program from the memory 510 to implement the scene adjustment method in the embodiment of the present application.

例如,该处理器520可用于根据该计算机程序中的指令执行上述场景调整方法实施例。For example, the processor 520 may be used to execute the above-mentioned scene adjustment method embodiment according to the instructions in the computer program.

可选的,上述场景调整方法,包括:Optionally, the scene adjustment method includes:

获取虚拟场景内目标对象的状态信息;Obtaining status information of target objects in the virtual scene;

根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息。According to the state information of the target object, the environmental information in the virtual scene is adjusted.

可选的,所述目标对象包括:表演内容和用户互动操作;Optionally, the target objects include: performance content and user interactive operations;

相应的,所述获取虚拟场景内目标对象的状态信息,包括:Accordingly, the step of obtaining the state information of the target object in the virtual scene includes:

如果所述目标对象为所述表演内容,则获取所述虚拟场景内所述表演内容的当前音乐音频信息和/或内容类型;If the target object is the performance content, obtaining current music audio information and/or content type of the performance content in the virtual scene;

如果所述目标对象为所述用户互动操作,则获取所述虚拟场景内所述用户互动操作的操作指令、互动元素或者互动状态。If the target object is the user interactive operation, an operation instruction, an interactive element or an interactive state of the user interactive operation in the virtual scene is obtained.

可选的,当所述目标对象为所述表演内容时,所述根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息,包括:Optionally, when the target object is the performance content, adjusting the environmental information in the virtual scene according to the state information of the target object includes:

根据所述表演内容的当前音乐音频信息和/或内容类型,确定目标环境信息;Determining target environment information according to current music audio information and/or content type of the performance content;

根据所述目标环境信息,调整所述虚拟场景内的环境信息。According to the target environment information, the environment information in the virtual scene is adjusted.

可选的,所述根据所述表演内容的当前音乐音频信息,确定目标环境信息,包括:Optionally, determining the target environment information according to the current music audio information of the performance content includes:

确定所述当前音乐音频信息的节奏和/或节拍;Determining the rhythm and/or beat of the current music audio information;

根据所述当前音乐音频信息的节奏和/或节拍,确定所述目标环境信息。The target environment information is determined according to the rhythm and/or beat of the current music audio information.

可选的,所述根据所述当前音乐音频信息的节奏和/或节拍,确定目标环境信息,包括:Optionally, determining the target environment information according to the rhythm and/or beat of the current music audio information includes:

根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息。The target environment information is determined according to the rhythm strength value and/or the beat strength value of the current music audio information.

可选的,所述根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息,包括:Optionally, determining the target environment information according to the rhythm strength value and/or the beat strength value of the current music audio information includes:

根据所述当前音乐音频信息的节奏强弱值,在节奏强弱值和环境信息之间的映射关系中确定所述目标环境信息;Determining the target environment information in a mapping relationship between the rhythm strength value and the environment information according to the rhythm strength value of the current music audio information;

或者, or,

根据所述当前音乐音频信息的节拍强弱值,在节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息;According to the beat strength value of the current music audio information, determining the target environment information in the mapping relationship between the beat strength value and the environment information;

或者,or,

根据所述当前音乐音频信息的节奏强弱值和节拍强弱值,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息。According to the rhythm strength value and the beat strength value of the current music audio information, the target environmental information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information.

可选的,所述根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息,包括:Optionally, determining the target environment information according to the rhythm strength value and/or the beat strength value of the current music audio information includes:

确定所述当前音乐音频信息的节奏强弱值对应的节奏强弱值区间,和/或所述当前音乐音频信息的节拍强弱值对应的节拍强弱值区间;Determine a rhythm strength value interval corresponding to the rhythm strength value of the current music audio information, and/or a beat strength value interval corresponding to the beat strength value of the current music audio information;

根据所述节奏强弱值区间和/或节拍强弱值区间,在预设映射关系中确定所述目标环境信息;Determining the target environment information in a preset mapping relationship according to the rhythm strength value interval and/or the beat strength value interval;

其中,所述预设映射关系为节奏强弱值区间和环境信息之间的映射关系、节拍强弱值区间和环境信息之间的映射关系,或者节奏强弱值区间、节拍强弱值区间和环境信息之间的映射关系。Among them, the preset mapping relationship is a mapping relationship between rhythm strength value intervals and environmental information, a mapping relationship between beat strength value intervals and environmental information, or a mapping relationship between rhythm strength value intervals, beat strength value intervals and environmental information.

可选的,所述根据所述表演内容的内容类型,确定目标环境信息,包括:Optionally, determining the target environment information according to the content type of the performance content includes:

根据所述表演内容的内容类型,在内容类型和环境信息之间的映射关系中确定所述目标环境信息。The target environment information is determined in a mapping relationship between content type and environment information according to the content type of the performance content.

可选的,所述根据所述表演内容的当前音乐音频信息和内容类型,确定目标环境信息,包括:Optionally, determining the target environment information according to the current music audio information and content type of the performance content includes:

确定与所述表演内容的当前音乐音频信息对应的第一环境信息,以及与所述表演内容的内容类型对应的第二环境信息;Determining first environmental information corresponding to current music audio information of the performance content, and second environmental information corresponding to a content type of the performance content;

将所述第一环境信息和所述第二环境信息进行融合,得到所述目标环境信息。The first environment information and the second environment information are integrated to obtain the target environment information.

可选的,当所述目标对象为所述用户互动操作时,所述根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息,包括:Optionally, when the target object is the user interactive operation, adjusting the environmental information in the virtual scene according to the state information of the target object includes:

根据所述用户互动操作的操作指令、互动元素或者互动状态,确定目标环境信息;Determining target environment information according to an operation instruction, an interactive element or an interactive state of the user interactive operation;

根据所述目标环境信息,调整所述虚拟场景内的环境信息。According to the target environment information, the environment information in the virtual scene is adjusted.

可选的,所述根据所述用户互动操作的操作指令,确定目标环境信息,包括:Optionally, determining the target environment information according to the operation instruction of the user interactive operation includes:

响应于用户在操控面板上对任意环境参数的操作指令,确定所述目标环境信息,其中所述操控面板位于所述虚拟场景内。The target environment information is determined in response to an operation instruction of a user on a control panel for any environment parameter, wherein the control panel is located in the virtual scene.

可选的,所述根据所述用户互动操作的互动状态,确定目标环境信息,包括:Optionally, determining the target environment information according to the interactive state of the user interactive operation includes:

响应于用户触发的身份切换操作,将所述用户的身份从观众切换为表演者;In response to an identity switching operation triggered by a user, switching the identity of the user from a spectator to a performer;

根据互动状态为表演者的用户表演内容,确定所述目标环境信息。The target environment information is determined according to the performance content of the user whose interactive state is a performer.

可选的,所述根据所述用户互动操作的互动元素,确定目标环境信息之前,还包括:Optionally, before determining the target environment information according to the interactive element of the user interactive operation, the method further includes:

响应于用户触发的互动操作,确定与所述互动操作对应的互动元素; In response to an interactive operation triggered by a user, determining an interactive element corresponding to the interactive operation;

相应的,所述根据所述用户互动操作的互动元素,确定目标环境信息,包括:Accordingly, determining target environment information according to the interactive element of the user interactive operation includes:

在所述互动场景的当前环境信息上增加所述互动元素,得到所述目标环境信息。The interactive element is added to the current environment information of the interactive scene to obtain the target environment information.

可选的,所述目标环境信息包括下述至少一项:灯光效果、主题特效、环境贴图和道具材质。Optionally, the target environment information includes at least one of the following: lighting effects, theme special effects, environment maps and prop materials.

在本申请的一些实施例中,该处理器520可以包括但不限于:In some embodiments of the present application, the processor 520 may include but is not limited to:

通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等等。General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

在本申请的一些实施例中,该存储器510包括但不限于:In some embodiments of the present application, the memory 510 includes but is not limited to:

易失性存储器和/或非易失性存储器。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。Volatile memory and/or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus random access memory (Direct Rambus RAM, DR RAM).

在本申请的一些实施例中,该计算机程序可以被分割成一个或多个模块,该一个或者多个模块被存储在该存储器510中,并由该处理器520执行,以完成本申请提供的场景调整方法。该一个或多个模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述该计算机程序在该电子设备中的执行过程。In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 510 and executed by the processor 520 to complete the scene adjustment method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

如图8所示,该电子设备500还可包括:As shown in FIG8 , the electronic device 500 may further include:

收发器530,该收发器530可连接至该处理器520或存储器510。The transceiver 530 may be connected to the processor 520 or the memory 510 .

其中,处理器520可以控制该收发器530与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。收发器530可以包括发射机和接收机。收发器530还可以进一步包括天线,天线的数量可以为一个或多个。The processor 520 may control the transceiver 530 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 530 may include a transmitter and a receiver. The transceiver 530 may further include an antenna, and the number of antennas may be one or more.

应当理解,该电子设备中的各个组件通过总线系统相连,其中,总线系统除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

本申请还提供了一种计算机存储介质,其上存储有计算机程序,该计算机程序被计算机执行时使得该计算机能够执行上述方法实施例的方法。 The present application also provides a computer storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer is enabled to execute the method of the above method embodiment.

本申请实施例还提供一种包含程序指令的计算机程序产品,当所述程序指令在电子设备上运行时,使得所述电子设备执行上述方法实施例的方法。An embodiment of the present application further provides a computer program product including program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the method of the above method embodiment.

当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本申请实施例该的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如数字视频光盘(digital video disc,DVD))、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。例如,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以该权利要求的保护范围为准。 The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (19)

一种场景调整方法,包括:A scene adjustment method, comprising: 获取虚拟场景内目标对象的状态信息;Obtaining status information of target objects in the virtual scene; 根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息。According to the state information of the target object, the environmental information in the virtual scene is adjusted. 根据权利要求1所述的方法,其中所述目标对象包括:表演内容和用户互动操作;The method according to claim 1, wherein the target objects include: performance content and user interactive operations; 相应的,所述获取虚拟场景内目标对象的状态信息,包括:Accordingly, the step of obtaining the state information of the target object in the virtual scene includes: 如果所述目标对象为所述表演内容,则获取所述虚拟场景内所述表演内容的当前音乐音频信息和/或内容类型;If the target object is the performance content, obtaining current music audio information and/or content type of the performance content in the virtual scene; 如果所述目标对象为所述用户互动操作,则获取所述虚拟场景内所述用户互动操作的操作指令、互动元素或者互动状态。If the target object is the user interactive operation, an operation instruction, an interactive element or an interactive state of the user interactive operation in the virtual scene is obtained. 根据权利要求2所述的方法,其中当所述目标对象为所述表演内容时,所述根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息,包括:The method according to claim 2, wherein when the target object is the performance content, adjusting the environmental information in the virtual scene according to the state information of the target object comprises: 根据所述表演内容的当前音乐音频信息和/或内容类型,确定目标环境信息;Determining target environment information according to current music audio information and/or content type of the performance content; 根据所述目标环境信息,调整所述虚拟场景内的环境信息。According to the target environment information, the environment information in the virtual scene is adjusted. 根据权利要求3所述的方法,其中所述根据所述表演内容的当前音乐音频信息,确定目标环境信息,包括:The method according to claim 3, wherein the determining the target environment information according to the current music audio information of the performance content comprises: 确定所述当前音乐音频信息的节奏和/或节拍;Determining the rhythm and/or beat of the current music audio information; 根据所述当前音乐音频信息的节奏和/或节拍,确定所述目标环境信息。The target environment information is determined according to the rhythm and/or beat of the current music audio information. 根据权利要求4所述的方法,其中所述根据所述当前音乐音频信息的节奏和/或节拍,确定目标环境信息,包括:The method according to claim 4, wherein determining the target environment information according to the rhythm and/or beat of the current music audio information comprises: 根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息。The target environment information is determined according to the rhythm strength value and/or the beat strength value of the current music audio information. 根据权利要求5所述的方法,其中所述根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息,包括:The method according to claim 5, wherein determining the target environment information according to the rhythm strength value and/or the beat strength value of the current music audio information comprises: 根据所述当前音乐音频信息的节奏强弱值,在节奏强弱值和环境信息之间的映射关系中确定所述目标环境信息;Determining the target environment information in a mapping relationship between the rhythm strength value and the environment information according to the rhythm strength value of the current music audio information; 或者,or, 根据所述当前音乐音频信息的节拍强弱值,在节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息;According to the beat strength value of the current music audio information, determining the target environment information in the mapping relationship between the beat strength value and the environment information; 或者,or, 根据所述当前音乐音频信息的节奏强弱值和节拍强弱值,在节奏强弱值、节拍强弱值和环境信息之间的映射关系中确定所述目标环境信息。According to the rhythm strength value and the beat strength value of the current music audio information, the target environmental information is determined in the mapping relationship between the rhythm strength value, the beat strength value and the environmental information. 根据权利要求5所述的方法,其中所述根据所述当前音乐音频信息的节奏强弱值和/或节拍强弱值,确定所述目标环境信息,包括:The method according to claim 5, wherein determining the target environment information according to the rhythm strength value and/or the beat strength value of the current music audio information comprises: 确定所述当前音乐音频信息的节奏强弱值对应的节奏强弱值区间,和/或所述当前音乐 音频信息的节拍强弱值对应的节拍强弱值区间;Determine the rhythm strength value interval corresponding to the rhythm strength value of the current music audio information, and/or the current music The beat strength value interval corresponding to the beat strength value of the audio information; 根据所述节奏强弱值区间和/或节拍强弱值区间,在预设映射关系中确定所述目标环境信息;Determining the target environment information in a preset mapping relationship according to the rhythm strength value interval and/or the beat strength value interval; 其中,所述预设映射关系为节奏强弱值区间和环境信息之间的映射关系、节拍强弱值区间和环境信息之间的映射关系,或者节奏强弱值区间、节拍强弱值区间和环境信息之间的映射关系。Among them, the preset mapping relationship is a mapping relationship between rhythm strength value intervals and environmental information, a mapping relationship between beat strength value intervals and environmental information, or a mapping relationship between rhythm strength value intervals, beat strength value intervals and environmental information. 根据权利要求3所述的方法,其中所述根据所述表演内容的内容类型,确定目标环境信息,包括:The method according to claim 3, wherein determining the target environment information according to the content type of the performance content comprises: 根据所述表演内容的内容类型,在内容类型和环境信息之间的映射关系中确定所述目标环境信息。The target environment information is determined in a mapping relationship between content type and environment information according to the content type of the performance content. 根据权利要求3所述的方法,其中所述根据所述表演内容的当前音乐音频信息和内容类型,确定目标环境信息,包括:The method according to claim 3, wherein the determining the target environment information according to the current music audio information and content type of the performance content comprises: 确定与所述表演内容的当前音乐音频信息对应的第一环境信息,以及与所述表演内容的内容类型对应的第二环境信息;Determining first environmental information corresponding to current music audio information of the performance content, and second environmental information corresponding to a content type of the performance content; 将所述第一环境信息和所述第二环境信息进行融合,得到所述目标环境信息。The first environment information and the second environment information are integrated to obtain the target environment information. 根据权利要求2所述的方法,其中当所述目标对象为所述用户互动操作时,所述根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息,包括:The method according to claim 2, wherein when the target object is the user interactive operation, adjusting the environmental information in the virtual scene according to the state information of the target object comprises: 根据所述用户互动操作的操作指令、互动元素或者互动状态,确定目标环境信息;Determining target environment information according to an operation instruction, an interactive element or an interactive state of the user interactive operation; 根据所述目标环境信息,调整所述虚拟场景内的环境信息。According to the target environment information, the environment information in the virtual scene is adjusted. 根据权利要求10所述的方法,其中所述根据所述用户互动操作的操作指令,确定目标环境信息,包括:The method according to claim 10, wherein determining the target environment information according to the operation instruction of the user interactive operation comprises: 响应于用户在操控面板上对任意环境参数的操作指令,确定所述目标环境信息,其中所述操控面板位于所述虚拟场景内。The target environment information is determined in response to an operation instruction of a user on a control panel for any environment parameter, wherein the control panel is located in the virtual scene. 根据权利要求10所述的方法,其中所述根据所述用户互动操作的互动状态,确定目标环境信息,包括:The method according to claim 10, wherein determining the target environment information according to the interactive state of the user interactive operation comprises: 响应于用户触发的身份切换操作,将所述用户的身份从观众切换为表演者;In response to an identity switching operation triggered by a user, switching the identity of the user from a spectator to a performer; 根据互动状态为表演者的用户表演内容,确定所述目标环境信息。The target environment information is determined according to the performance content of the user whose interactive state is a performer. 根据权利要求10所述的方法,其中所述根据所述用户互动操作的互动元素,确定目标环境信息之前,还包括:The method according to claim 10, wherein before determining the target environment information according to the interactive element of the user interactive operation, the method further comprises: 响应于用户触发的互动操作,确定与所述互动操作对应的互动元素;In response to an interactive operation triggered by a user, determining an interactive element corresponding to the interactive operation; 相应的,所述根据所述用户互动操作的互动元素,确定目标环境信息,包括:Accordingly, determining target environment information according to the interactive element of the user interactive operation includes: 在所述互动场景的当前环境信息上增加所述互动元素,得到所述目标环境信息。The interactive element is added to the current environment information of the interactive scene to obtain the target environment information. 根据权利要求3-13任一项所述的方法,其中所述目标环境信息包括下述至少一项:灯光效果、主题特效、环境贴图和道具材质。 The method according to any one of claims 3 to 13, wherein the target environment information includes at least one of the following: lighting effects, theme special effects, environment maps, and prop materials. 一种场景调整装置,包括:A scene adjustment device, comprising: 信息获取模块,用于获取虚拟场景内目标对象的状态信息;An information acquisition module is used to obtain the status information of the target object in the virtual scene; 场景调整模块,用于根据所述目标对象的状态信息,调整所述虚拟场景内的环境信息。The scene adjustment module is used to adjust the environment information in the virtual scene according to the state information of the target object. 一种电子设备,包括:An electronic device, comprising: 处理器和存储器,所述存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,以执行如权利要求1至14中任一项所述的场景调整方法。A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the scene adjustment method as claimed in any one of claims 1 to 14. 一种计算机可读存储介质,用于存储计算机程序,所述计算机程序使得计算机执行如权利要求1至14中任一项所述的场景调整方法。A computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute the scene adjustment method according to any one of claims 1 to 14. 一种包含程序指令的计算机程序产品,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1至14中任一项所述的场景调整方法。A computer program product comprising program instructions, when the program instructions are executed on an electronic device, enables the electronic device to execute the scene adjustment method as claimed in any one of claims 1 to 14. 一种计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至14中任一项所述的场景调整方法。 A computer program, when the computer program is run on an electronic device, enables the electronic device to execute the scene adjustment method as claimed in any one of claims 1 to 14.
PCT/CN2024/100250 2023-07-14 2024-06-20 Scene adjustment method and apparatus, device, and storage medium WO2025016144A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310870291.9 2023-07-14
CN202310870291.9A CN116828248A (en) 2023-07-14 2023-07-14 Scene adjustment method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2025016144A1 true WO2025016144A1 (en) 2025-01-23

Family

ID=88141015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/100250 WO2025016144A1 (en) 2023-07-14 2024-06-20 Scene adjustment method and apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN116828248A (en)
WO (1) WO2025016144A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116828248A (en) * 2023-07-14 2023-09-29 北京字跳网络技术有限公司 Scene adjustment method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244998A (en) * 2019-06-13 2019-09-17 广州酷狗计算机科技有限公司 Page layout background, the setting method of live page background, device and storage medium
CN112165628A (en) * 2020-09-29 2021-01-01 广州繁星互娱信息科技有限公司 Live broadcast interaction method, device, equipment and storage medium
CN114079799A (en) * 2020-08-21 2022-02-22 上海昊骇信息科技有限公司 Music live broadcast system and method based on virtual reality
CN114938459A (en) * 2022-05-16 2022-08-23 完美世界征奇(上海)多媒体科技有限公司 Barrage-based virtual live broadcast interaction method, device, storage medium and device
CN116828248A (en) * 2023-07-14 2023-09-29 北京字跳网络技术有限公司 Scene adjustment method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110244998A (en) * 2019-06-13 2019-09-17 广州酷狗计算机科技有限公司 Page layout background, the setting method of live page background, device and storage medium
CN114079799A (en) * 2020-08-21 2022-02-22 上海昊骇信息科技有限公司 Music live broadcast system and method based on virtual reality
CN112165628A (en) * 2020-09-29 2021-01-01 广州繁星互娱信息科技有限公司 Live broadcast interaction method, device, equipment and storage medium
CN114938459A (en) * 2022-05-16 2022-08-23 完美世界征奇(上海)多媒体科技有限公司 Barrage-based virtual live broadcast interaction method, device, storage medium and device
CN116828248A (en) * 2023-07-14 2023-09-29 北京字跳网络技术有限公司 Scene adjustment method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116828248A (en) 2023-09-29

Similar Documents

Publication Publication Date Title
US11977670B2 (en) Mixed reality system for context-aware virtual object rendering
CN109690450B (en) Role simulation method in VR scene and terminal equipment
JP6276882B1 (en) Information processing method, apparatus, and program for causing computer to execute information processing method
US20190073830A1 (en) Program for providing virtual space by head mount display, method and information processing apparatus for executing the program
CN112396679B (en) Virtual object display method and device, electronic equipment and medium
CN106730815B (en) Somatosensory interaction method and system easy to realize
JP2018124666A (en) Information processing method, apparatus, and program for causing computer to execute information processing method
TW201523509A (en) Method for rhythm visualization, system, and computer-readable memory
US11612813B2 (en) Automatic multimedia production for performance of an online activity
US20230368464A1 (en) Information processing system, information processing method, and information processing program
EP4306192A1 (en) Information processing device, information processing terminal, information processing method, and program
WO2025016144A1 (en) Scene adjustment method and apparatus, device, and storage medium
CN113194329B (en) Live interaction method, device, terminal and storage medium
CN112800252B (en) Method, device, equipment and storage medium for playing media files in virtual scene
CN112752159B (en) Interaction method and related device
CN114356090B (en) A control method, device, computer equipment and storage medium
CN114927130A (en) Interaction system and method based on VR technology
CN113763568A (en) Augmented reality display processing method, device, equipment and storage medium
US20240177435A1 (en) Virtual interaction methods, devices, and storage media
CN114425162B (en) A video processing method and related device
CN116233513A (en) Virtual gift special effect playing processing method, device and equipment in virtual reality live broadcasting room
CN114594859A (en) Virtual image display system and method
US20240367035A1 (en) Information processing method, information processing system and computer program
WO2023168990A1 (en) Performance recording method and apparatus in virtual scene, device, storage medium, and program product
CN117788754A (en) Virtual space interaction methods, devices, equipment and media

Legal Events

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

Ref document number: 24842143

Country of ref document: EP

Kind code of ref document: A1