A virtual scene control method and system for dragging and dropping editing tools

By dividing the virtual scene into multiple independent levels and managing them dynamically, it solves the problems of excessive resource consumption and insufficient flexibility in traditional methods, achieves more efficient virtual scene control, and improves user experience and system performance.

CN118470278BActive Publication Date: 2024-09-10CHINA UNICOM WO MUSIC & CULTURE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410940319.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-10
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Traditional virtual scene control methods lead to excessive resource consumption, long loading times, low rendering efficiency, and lack of personalization and flexibility in complex scenes, resulting in poor user experience and affecting system stability and reliability.

Method used

Divide the virtual scene into multiple independent layers, control and manage each layer independently, dynamically adjust visibility and content, achieve status synchronization between layers through information transfer, and dynamically adjust resource utilization according to system load and user behavior to optimize resources distribute.

Benefits of technology

It improves the modularity and maintainability of the system, optimizes scene loading speed and responsiveness, enhances user interaction experience and system flexibility, avoids information lag and inconsistency issues, and significantly improves the scalability and overall performance of virtual scenes. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470278B
    Figure CN118470278B
Patent Text Reader

Abstract

The present invention discloses a virtual scene control method and system for dragging and dropping editing tools, which relate to the field of virtual XR technology. Through steps S1 to S5, by dividing the virtual scene into multiple independent levels, it is possible to achieve refined management of each level, improve the modularity and maintainability of the system, and allocate corresponding resources to each level. Each level has the required resources at the time of initialization, optimizes the scene loading speed and system responsiveness, dynamically controls the visibility and content update of each level, adjusts the scene content in real time according to user operations and system events, enhances the user's interactive experience and the flexibility of the system, realizes state synchronization between levels through information transmission, ensures the collaborative work of each level and the consistency of the scene, avoids the information lag and inconsistency problems in traditional methods, and through evaluating the resource utilization of each level, the system can effectively optimize resource allocation, reduce load and improve overall performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual XR technology, and specifically to a virtual scene control method and system for dragging and dropping editing tools. Background Art

[0002] In the process of virtual scene control for drag-and-drop editing tools, traditional methods usually load and manage all elements in a unified manner, which will face many problems in practical applications. First, as the complexity of the scene increases, the consumption of system resources also increases significantly, resulting in long loading time, low rendering efficiency and other problems. Secondly, different users have different needs and concerns for scenes, and a single level of scene management is difficult to meet personalized needs. In addition, the unified control method lacks flexibility, and it is easy to cause overall performance degradation and poor user experience when the scene is updated and adjusted. The layered control method can divide the scene into multiple independent levels and dynamically manage the content of each level according to actual needs and system resources to solve these existing deficiencies.

[0003] And when all elements are loaded at the same time, the system needs to process a large amount of data and graphics rendering tasks, which can easily lead to performance problems such as freezes and delays, affecting the user's immersive experience. In addition, when the scene needs to be updated or adjusted, the overall high coupling means that any slight changes may affect the stability and smoothness of the entire system. In this case, it not only reduces the efficiency of development and maintenance, but may also cause users to frequently encounter abnormal phenomena during use, such as screen freezes, incomplete scene loading or crashes, etc., which seriously affect the user experience and system reliability. The layered control method can effectively solve these problems by dividing the virtual scene into multiple independently controllable levels, improve the flexibility and stability of the system, and ensure a smooth experience for users in complex virtual environments. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a virtual scene control method and system for dragging and dropping editing tools, which solves the problems mentioned in the background technology.

[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: A virtual scene control method for dragging and dropping editing tools, comprising the following steps:

[0006] S1. Divide the virtual scene into multiple levels, independently control and manage each level, and obtain a level set L of the virtual scene;

[0007] S2. Allocate corresponding resources to each level so that each level in the level set L of the virtual scene obtains the required resources during initialization, and obtains the virtual scene level The set of allocated resources ;

[0008] S3, dynamically control the visibility of each layer in the virtual scene, and update the layer content according to user operations and system events to obtain the virtual scene layer Update content at time t , to combine user operations and system events to dynamically update the content in the virtual scene;

[0009] S4. Mark the information transfer between different levels and realize different virtual scene levels through information transfer State synchronization between

[0010] S5. Synchronize the virtual scene hierarchy The resource utilization is evaluated to obtain the virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t , dynamically adjust the hierarchical content and display strategy based on system load and user behavior.

[0011] Preferably, the layer set L of the virtual scene in step S1 is obtained by the following calculation formula:

[0012] ;

[0013] In the formula, L represents the hierarchical set of the virtual scene, specifically the set containing all levels, Represents n virtual scene levels;

[0014] Among them, the virtual scene is divided into multiple levels including basic layer, interactive layer and decorative layer; the basic layer includes the building structure and static elements of the scene; the interactive layer includes user-operable elements; the decorative layer includes visual and auditory enhancement elements in the scene, including flowers, trees, background music and special effects.

[0015] Preferably, allocating corresponding resources to each layer in step S2 includes determining the terrain qualified building model of the base layer; the buttons and information board of the interactive layer; the light effects and background music of the decorative layer; the number of resources to be allocated; the location and range of the resources in the scene; and then allocating specific resources to each layer according to the resource requirements;

[0016] The corresponding resources are allocated to each level through the following formula:

[0017] ;

[0018] In the formula, Indicates the allocation to the virtual scene hierarchy A collection of resources, Represents specific resource items, including models, textures, and sound effects;

[0019] At each level, the resource set is calculated at initialization. , load the corresponding resources for the hierarchical set L of the virtual scene.

[0020] Preferably, in step S3, the visibility of each layer in the virtual scene is dynamically controlled by determining the layer that needs to be displayed and the layer that needs to be hidden, marking them, and simultaneously using the layer visibility control formula to calculate the display state of the layer set L of the virtual scene;

[0021] The hierarchical visibility control formula is obtained by the following calculation formula:

[0022] ;

[0023] In the formula, Represents the virtual scene hierarchy The display status at time t, including 1 for visible and 0 for hidden. represents n virtual scene levels, and t represents a time point.

[0024] Preferably, in step S3, the hierarchical content is updated according to the user operation and the system event by calculating and obtaining the following hierarchical content update formula:

[0025] ;

[0026] In the formula, Represents the virtual scene hierarchy Update content at time t , Represents the virtual scene hierarchy The content at the previous time point t-1, represents the user operation set, specifically all operations performed by the user at time point t, represents the system event set, specifically all system events of the system at time point t, and f represents the update function, specifically the function used to calculate the virtual scene hierarchy Update of content.

[0027] Preferably, in step S4, marking the information transmission between different levels includes marking the information content, status update, operation instruction, transmission mode and content format of the transmitted information, and forming an information transmission set, wherein the transmission mode includes an event bus mode and a message queue mode;

[0028] Realize different virtual scene levels for information transmission The state synchronization between them is transmitted by using the information passing formula:

[0029] ;

[0030] In the formula, Represents the virtual scene hierarchy Virtual scene hierarchy The set of information transmitted at time t, Indicates the specific information delivered in the information set, including information content, status update, operation instructions, delivery method and content format. Specifically, it represents the virtual scene level, and t represents the time point.

[0031] Preferably, in step S5, the virtual scene hierarchy is synchronized The resource utilization is evaluated to obtain the virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t ;

[0032] Among them, resource utilization Obtained through the following calculation formula:

[0033] ;

[0034] In the formula, Represents the virtual scene hierarchy Resource utilization at time point t, Represents the virtual scene hierarchy The amount of the jth resource used at time point t, Represents the virtual scene hierarchy The jth total amount of resources allocated, c represents the total number of resource types, n represents the virtual scene level, and t represents the time point.

[0035] Preferably, by obtaining resource utilization , synchronized with system load and user behavior, dynamically adjusting hierarchical content and display strategies;

[0036] The dynamic adjustment of the hierarchical content and display strategy includes adjustment through the following dynamic adjustment formula:

[0037] ;

[0038] In the formula, , represents the virtual scene hierarchy The adjustment strategy at time point t, Represents the virtual scene hierarchy Resource utilization at time point t, Indicates the system load rate, including CPU load rate, memory load rate and width load rate. represents the user behavior operation, specifically all the operation behavior data of the user at time point t, g represents the adjustment function, specifically used to calculate the virtual scene hierarchy Adjustment of content and display strategy.

[0039] Preferably, at time point t, the virtual scene hierarchy Adjustment strategy This includes maintaining the existing status of the base layer, increasing the resource allocation of the interactive layer by 5%, and reducing the lighting effects and background music of the decorative layer by 5%.

[0040] Among them, the system load rate Obtained through the following calculation formula:

[0041] ;

[0042] In the formula, Indicates the CPU load rate at time point t, represents the memory load rate at time point t, represents the broadband load rate at time point t;

[0043] User Behavior Operations Obtained through the following calculation formula:

[0044] ;

[0045] In the formula, Indicates the number of user clicks. Indicates the number of user touches. Indicates user behavior, including location changes and gaze changes.

[0046] A virtual scene control system for a drag-and-drop editing tool, comprising a layering module, an initialization module, an update module, a transfer module and a dynamic adjustment module;

[0047] The hierarchical module is used to divide the virtual scene into multiple levels, independently control and manage each level, and obtain a level set L of the virtual scene;

[0048] The initialization module is used to allocate corresponding resources to each level, so that each level in the level set L of the virtual scene obtains the required resources during initialization, and obtains the virtual scene level The set of allocated resources ;

[0049] The update module is used to dynamically control the visibility of each layer in the virtual scene, and update the layer content according to user operations and system events to obtain the virtual scene layer Update content at time t , to combine user operations and system events to dynamically update the content in the virtual scene;

[0050] The transfer module is used to mark the information transfer between different levels and realize different virtual scene levels through information transfer. State synchronization between

[0051] The dynamic adjustment module is used to adjust the virtual scene level The resource utilization is evaluated to obtain the virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t , dynamically adjust the hierarchical content and display strategy based on system load and user behavior.

[0052] The present invention provides a virtual scene control method and system for dragging and dropping editing tools, which has the following beneficial effects:

[0053] (1) Through steps S1 to S5, by dividing the virtual scene into multiple independent levels, it is possible to achieve refined management of each level, improve the modularity and maintainability of the system, and allocate corresponding resources to each level, ensuring that each level has the required resources at the time of initialization, optimizing the scene loading speed and system responsiveness, dynamically controlling the visibility and content update of each level, adjusting the scene content in real time according to user operations and system events, enhancing the user's interactive experience and system flexibility, and realizing state synchronization between levels through information transmission, so that the collaborative work of each level and the consistency of the scene can be achieved, avoiding the information lag and inconsistency problems in traditional methods. Finally, by evaluating the resource utilization of each level, it is possible to effectively optimize resource allocation, reduce load and improve overall performance, and solve the problems of excessive resource consumption, low response efficiency, lack of personalization and flexibility in traditional methods as much as possible, and significantly improve the scalability of virtual scenes.

[0054] (2) Through the information transmission marking mechanism, including the content of the information, status update, operation instructions, transmission method and content format, the information transmission collection is effectively organized to ensure smooth communication and coordination between the various levels. The state synchronization between different virtual scene levels is achieved through the event bus and message queue methods, which improves the real-time and consistency of the system. Secondly, by calculating the resource utilization rate, the resource utilization of the virtual scene level at time point t is obtained, and the system load and user behavior are simultaneously evaluated to dynamically adjust the level content and display strategy. This adjustment strategy includes maintaining the existing state of the base layer, increasing the resource allocation of the interactive layer, and reducing the lighting effects and background music of the decorative layer. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A flowchart diagram of a virtual scene control method for dragging and dropping editing tools according to the present invention;

[0056] Figure 2 The present invention is a schematic diagram of the steps of a virtual scene control system for dragging and dropping editing tools. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0058] In the process of virtual scene control for drag-and-drop editing tools, traditional methods usually load and manage all elements in a unified manner, which will face many problems in practical applications. First, as the complexity of the scene increases, the consumption of system resources also increases significantly, resulting in long loading time, low rendering efficiency and other problems. Secondly, different users have different needs and concerns for scenes, and a single level of scene management is difficult to meet personalized needs. In addition, the unified control method lacks flexibility, and it is easy to cause overall performance degradation and poor user experience when the scene is updated and adjusted. The layered control method can divide the scene into multiple independent levels and dynamically manage the content of each level according to actual needs and system resources to solve these existing deficiencies.

[0059] And when all elements are loaded at the same time, the system needs to process a large amount of data and graphics rendering tasks, which can easily lead to performance problems such as freezes and delays, affecting the user's immersive experience. In addition, when the scene needs to be updated or adjusted, the overall high coupling means that any slight changes may affect the stability and smoothness of the entire system. In this case, it not only reduces the efficiency of development and maintenance, but may also cause users to frequently encounter abnormal phenomena during use, such as screen freezes, incomplete scene loading or crashes, etc., which seriously affect the user experience and system reliability. The layered control method can effectively solve these problems by dividing the virtual scene into multiple independently controllable levels, improve the flexibility and stability of the system, and ensure a smooth experience for users in complex virtual environments. Example 1

[0060] The present invention provides a virtual scene control method and system for dragging and dropping editing tools, see Figure 1 , including the following steps:

[0061] S1. Divide the virtual scene into multiple levels, independently control and manage each level, and obtain a level set L of the virtual scene;

[0062] S2. Allocate corresponding resources to each level so that each level in the level set L of the virtual scene obtains the required resources during initialization, and obtains the virtual scene level The set of allocated resources ;

[0063] S3, dynamically control the visibility of each layer in the virtual scene, and update the layer content according to user operations and system events to obtain the virtual scene layer Update content at time t , to combine user operations and system events to dynamically update the content in the virtual scene;

[0064] S4. Mark the information transfer between different levels and realize different virtual scene levels through information transfer State synchronization between

[0065] S5. Synchronize the virtual scene hierarchy The resource utilization is evaluated to obtain the virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t , dynamically adjust the hierarchical content and display strategy based on system load and user behavior.

[0066] In this implementation, through steps S1 to S5, by dividing the virtual scene into multiple independent levels, it is possible to achieve refined management of each level, improve the modularity and maintainability of the system, and allocate corresponding resources to each level, ensuring that each level has the required resources at the time of initialization, optimizing the scene loading speed and system responsiveness, dynamically controlling the visibility and content update of each level, adjusting the scene content in real time according to user operations and system events, enhancing the user's interactive experience and system flexibility, and achieving state synchronization between levels through information transmission, ensuring the collaborative work of each level and the consistency of the scene, avoiding information lag and inconsistency problems in traditional methods, and finally, by evaluating the resource utilization of each level and dynamically adjusting the content and display strategy according to the system load and user behavior, the system can effectively optimize resource allocation, reduce load, and improve overall performance, and solve the problems of excessive resource consumption, low response efficiency, lack of personalization and flexibility in traditional methods as much as possible. Example 2

[0067] This embodiment is explained in Example 1, please refer to Figure 1 Specifically, the hierarchical set L of the virtual scene in step S1 is obtained by the following calculation formula:

[0068] ;

[0069] In the formula, L represents the hierarchical set of the virtual scene, specifically the set containing all levels, Represents n virtual scene levels;

[0070] The virtual scene is divided into multiple layers, including the basic layer, the interactive layer and the decorative layer; the basic layer includes the scene's construction structure and static elements; the interactive layer includes user-operable elements; the decorative layer includes the visual and auditory enhancement elements in the scene, including flowers, trees, background music and special effects;

[0071] The scene's built structures and static elements include terrain and buildings; actionable elements include buttons, information pads, and joysticks;

[0072] In step S2, the allocation of corresponding resources to each layer includes determining the terrain qualified building model of the base layer; the buttons and information boards of the interactive layer; the light effects and background music of the decorative layer; the number of resources to be allocated; the location and range of the resources in the scene; and then allocating specific resources to each layer according to the resource requirements;

[0073] The corresponding resources are allocated to each level through the following formula:

[0074] ;

[0075] In the formula, Indicates the allocation to the virtual scene hierarchy A collection of resources, Represents specific resource items, including models, textures, and sound effects;

[0076] At each level, the resource set is calculated at initialization. , load the corresponding resources for the hierarchical set L of the virtual scene;

[0077] At the same time, the dependencies and interaction methods between each layer are defined, including the loading of the base layer before other layers, and the synchronization mechanism between the interaction layer and the decoration layer. Example 3

[0078] This embodiment is explained in Example 1, please refer to Figure 1 ,Specifically: In step S3, the visibility of each level in the virtual scene is dynamically controlled ,specifically by determining the level that needs to be displayed and the level that needs to be hidden and marked, and ,the display state of the level set L of the virtual scene is calculated ,synchronously using the level visibility control formula;

[0079] The hierarchical visibility control formula is obtained by the following calculation formula:

[0080] ;

[0081] In the formula, Represents the virtual scene hierarchy The display status at time t, including 1 for visible and 0 for hidden. represents n virtual scene levels, and t represents a time point.

[0082] In step S3, the hierarchical content is updated according to user operations and system events and is calculated and obtained through the following hierarchical content update formula:

[0083] ;

[0084] In the formula, Represents the virtual scene hierarchy Update content at time t , Represents the virtual scene hierarchy The content at the previous time point t-1, represents the user operation set, specifically all operations performed by the user at time point t, represents the system event set, specifically all system events of the system at time point t, and f represents the update function, specifically the function used to calculate the virtual scene hierarchy Updating content and applying user operations and system events to the hierarchical content at the previous time point to generate new hierarchical content;

[0085] Among them, all operations include click, drag and input operations; system events include state changes, resource loading and error reporting;

[0086] Among them, the update function f updates the content through predefined rules or logic. For example, there is a timer layer in a virtual scene, and the time displayed by the timer needs to be updated once a second. Then the update function f increases the display time of the timer by one second every second, and then the update function updates the content in response to the triggering of system events, including updating the button status according to user operations, click status, pressed status, leave status, clicked status and unclicked status. Example 4

[0087] This embodiment is explained in Example 1, please refer to Figure 1 Specifically: in step S4, the information transmission between different levels is marked, including marking the information content, status update, operation instruction, transmission method and content format of the transmitted information, and forming an information transmission set, wherein the transmission method includes an event bus method and a message queue method;

[0088] Realize different virtual scene levels for information transmission The state synchronization between them is transmitted by using the information passing formula:

[0089] ;

[0090] In the formula, Represents the virtual scene hierarchy Virtual scene hierarchy The set of information transmitted at time t, Indicates the specific information delivered in the information set, including information content, status update, operation instructions, delivery method and content format. Specifically, it represents the virtual scene level, and t represents the time point.

[0091] In step S5, the virtual scene hierarchy is synchronized The resource utilization is evaluated to obtain the virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t ;

[0092] Among them, resource utilization Obtained through the following calculation formula:

[0093] ;

[0094] In the formula, Represents the virtual scene hierarchy Resource utilization at time point t, Represents the virtual scene hierarchy The amount of the jth resource used at time point t, Represents the virtual scene hierarchy The jth total amount of resources allocated, c represents the total number of resource types, n represents the virtual scene level, and t represents the time point.

[0095] By obtaining resource utilization , synchronized with system load and user behavior, dynamically adjusting hierarchical content and display strategies;

[0096] The dynamic adjustment of the hierarchical content and display strategy includes adjustment through the following dynamic adjustment formula:

[0097] ;

[0098] In the formula, , represents the virtual scene hierarchy The adjustment strategy at time point t, Represents the virtual scene hierarchy Resource utilization at time point t, Indicates the system load rate, including CPU load rate, memory load rate and width load rate. represents the user behavior operation, specifically all the operation behavior data of the user at time point t, g represents the adjustment function, specifically used to calculate the virtual scene hierarchy Adjustment of content and display strategy;

[0099] Adjust the resource utilization of function g by processing its input , System load rate and user behavior operations , calculate the adjustment strategy of the level at the current time point t, which ensures the dynamic adjustment of the virtual scene level content and display strategy, optimizes system performance and user experience, including: rule-driven adjustment function, threshold-based adjustment function and adaptive adjustment function; for example: threshold-based adjustment function: if the resource utilization rate exceeds 0.9, reduce the resolution; if the system load rate exceeds 0.8, reduce special effects; if the user operation is frequent, add interactive elements; otherwise, keep the current state.

[0100] ;

[0101] At time point t, the virtual scene hierarchy Adjustment strategy This includes maintaining the existing status of the base layer, increasing the resource allocation of the interactive layer by 5%, and reducing the lighting effects and background music of the decorative layer by 5%.

[0102] Among them, the system load rate Obtained through the following calculation formula:

[0103] ;

[0104] In the formula, Indicates the CPU load rate at time point t, represents the memory load rate at time point t, represents the broadband load rate at time point t;

[0105] User Behavior Operations Obtained through the following calculation formula:

[0106] ;

[0107] In the formula, Indicates the number of user clicks. Indicates the number of user touches. Indicates user behavior, including location changes and gaze changes.

[0108] In this embodiment, the information transmission marking mechanism includes the content of the transmitted information, status update, operation instructions, transmission method and content format, which effectively organizes the information transmission collection, ensures smooth communication and coordination between the various levels, and realizes the state synchronization between different virtual scene levels through the event bus method and the message queue method, thereby improving the real-time and consistency of the system. Secondly, by calculating the resource utilization rate, the resource utilization of the virtual scene level at the time point t is obtained, and the system load and user behavior are simultaneously evaluated, and the level content and display strategy are dynamically adjusted. This adjustment strategy includes maintaining the existing state of the base layer, increasing the resource allocation of the interactive layer, and reducing the light effect and background music of the decorative layer, thereby optimizing the system resource allocation, improving the overall performance and user experience, enhancing the flexibility and scalability of the system, and meeting the user's needs for efficient, interactive and personalized experience. Example 5

[0109] A virtual scene control method and system for dragging and dropping editing tools, please refer to Figure 2 ,Specifically: including layering module, initialization module, update module, transfer module and dynamic adjustment module;

[0110] The hierarchical module is used to divide the virtual scene into multiple levels, independently control and manage each level, and obtain a level set L of the virtual scene;

[0111] The initialization module is used to allocate corresponding resources to each level, so that each level in the level set L of the virtual scene obtains the required resources during initialization, and obtains the virtual scene level The set of allocated resources ;

[0112] The update module is used to dynamically control the visibility of each layer in the virtual scene, and update the layer content according to user operations and system events to obtain the virtual scene layer Update content at time t , to combine user operations and system events to dynamically update the content in the virtual scene;

[0113] The transfer module is used to mark the information transfer between different levels and realize different virtual scene levels through information transfer. State synchronization between

[0114] The dynamic adjustment module is used to adjust the virtual scene level The resource utilization is evaluated to obtain the virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t , dynamically adjust the hierarchical content and display strategy based on system load and user behavior.

[0115] In this embodiment, the virtual scene is divided into multiple levels by including a layering module, an initialization module, an update module, a transmission module and a dynamic adjustment module, and each level is independently controlled and managed, thereby improving the modular design of the system and making maintenance and expansion more convenient. The initialization module allocates the required resources to each level to ensure that each level has sufficient resources when initialized, thereby optimizing the scene loading speed and system response performance. The update module dynamically controls the visibility of each level and updates the level content in real time according to user operations and system events, significantly improving the user interaction experience and the response flexibility of the system. The transmission module achieves state synchronization between different levels by marking and transmitting information, ensuring the consistency of system operation and collaborative working ability. The dynamic adjustment module dynamically adjusts the level content and display strategy by evaluating resource utilization, combining system load and user behavior, thereby optimizing resource allocation, reducing system load and improving overall performance.

[0116] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A virtual scene control method for dragging and dropping editing tools, characterized by: The following steps are involved: S1. Divide the virtual scene into multiple levels, independently control and manage each level, and obtain the level set L of the virtual scene; S2. Allocate corresponding resources to each level so that each level in the level set L of the virtual scene obtains the required resources during initialization. The set of allocated resources ; S3, dynamically control the visibility of each layer in the virtual scene, and update the layer content according to user operations and system events to obtain the virtual scene layer Update content at time t , to combine user operations and system events to dynamically update the content in the virtual scene; S4. Mark the information transfer between different levels and realize different virtual scene levels through information transfer State synchronization between; S5. Synchronize virtual scene hierarchy Evaluate resource utilization and obtain virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t , dynamically adjust the hierarchical content and display strategy according to system load and user behavior.

2. A virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: The hierarchical set L of the virtual scene in step S1 is obtained by the following calculation formula: ; Where L represents the hierarchical set of the virtual scene, specifically the set containing all levels, Represents n virtual scene levels; Among them, the virtual scene is divided into multiple levels including basic layer, interactive layer and decorative layer; the basic layer includes the building structure and static elements of the scene; the interactive layer includes user-operable elements; the decorative layer includes the visual and auditory enhancement elements in the scene, including flowers, trees, background music and special effects.

3. The virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: In step S2, allocating corresponding resources to each layer includes determining the qualified building model of the terrain in the base layer; the buttons and information panels in the interactive layer; the lighting effects and background music in the decorative layer; the number of resources to be allocated; the location and range of the resources in the scene; and then allocating specific resources to each layer based on resource requirements. The corresponding resources are allocated to each level using the following formula: ; Where, Indicates the allocation to the virtual scene hierarchy A collection of resources, Represents specific resource items, including models, textures, and sound effects; At each level, the resource set is calculated based on the initialization , load the corresponding resources for the hierarchical set L of the virtual scene.

4. The virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: In step S3, the visibility of each layer in the virtual scene is dynamically controlled by determining the layers that need to be displayed and the layers that need to be hidden, marking them, and simultaneously using the layer visibility control formula to calculate the display status of the layer set L of the virtual scene; The hierarchical visibility control formula is obtained by the following calculation formula: ; Where, Represents the virtual scene hierarchy The display status at time t, specifically 1 for visible, 0 for hidden, Represents n virtual scene levels, and t represents a time point.

5. The virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: In step S3, the hierarchical content is updated based on user operations and system events using the following hierarchical content update formula: ; Where, Represents the virtual scene hierarchy The updated content at time t, Represents the virtual scene hierarchy The content at the previous time point t-1, Represents the user operation set, specifically all operations performed by the user at time point t, represents the system event set, specifically all system events of the system at time point t, f represents the update function, specifically the function used to calculate the virtual scene hierarchy Content update.

6. The virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: In step S4, the information transmission between different layers is marked, including marking the information content, status update, operation instruction, transmission method and content format of the transmitted information, and forming an information transmission set, wherein the transmission method includes event bus method and message queue method; Realize different virtual scene levels for information transmission The state synchronization between them is carried out by using the information passing formula: ; Where, Represents the virtual scene hierarchy Towards virtual scene level The set of information transmitted at time t, Indicates the specific information delivered in the information set, including information content, status updates, operation instructions, delivery methods and content formats. Specifically, it represents the virtual scene level, and t represents the time point.

7. The virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: In step S5, the virtual scene hierarchy is synchronized Evaluate resource utilization and obtain virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t ; Among them, resource utilization Obtained through the following calculation formula: ; Where, Represents the virtual scene hierarchy Resource utilization at time point t, Represents the virtual scene hierarchy The amount of resource j used at time point t, Represents the virtual scene hierarchy The total amount of the jth resource allocated, c represents the total number of resource types, n represents the virtual scene level, and t represents the time point.

8. The virtual scene control method for dragging and dropping editing tools according to claim 1, characterized in that: Resource utilization obtained through ,synchronize with system load and user behavior, dynamically adjust hierarchical content and display strategies; The dynamic adjustment of the hierarchical content and display strategy includes adjustment through the following dynamic adjustment formula: ; Where, , represents the virtual scene hierarchy The adjustment strategy at time point t, Represents the virtual scene hierarchy Resource utilization at time point t, Indicates the system load rate, including CPU load rate, memory load rate and width load rate. represents the user behavior operation, specifically all the operation behavior data of the user at time point t, g represents the adjustment function, specifically the function used to calculate the virtual scene hierarchy Adjustments to content and display strategies.

9. The virtual scene control method for dragging and dropping editing tools according to claim 8, characterized in that: At time point t, the virtual scene hierarchy Adjustment strategy This includes maintaining the existing status of the base layer, increasing the resource allocation of the interactive layer by 5%, and reducing the lighting effects and background music of the decorative layer by 5%. Among them, the system load rate Obtained through the following calculation formula: ; Where, Indicates the CPU load rate at time point t, Indicates the memory load rate at time point t, represents the broadband load rate at time point t; User behavior operations Obtained through the following calculation formula: ; Where, Indicates the number of user clicks. Indicates the number of user touches. Indicates user behavior, including location changes and gaze changes.

10. A virtual scene control system for dragging and dropping an editing tool, comprising the virtual scene control method for dragging and dropping an editing tool according to any one of claims 1 to 9, characterized in that: It includes layering module, initialization module, update module, transfer module and dynamic adjustment module; The layering module is used to divide the virtual scene into multiple layers, independently control and manage each layer, and obtain a layer set L of the virtual scene; The initialization module is used to allocate corresponding resources to each level, so that each level in the level set L of the virtual scene obtains the required resources during initialization, and obtains the virtual scene level The set of allocated resources ; The update module is used to dynamically control the visibility of each layer in the virtual scene, and update the layer content according to user operations and system events to obtain the virtual scene layer Update content at time t , to combine user operations and system events to dynamically update the content in the virtual scene; The transfer module is used to mark the information transfer between different levels and realize different virtual scene levels through information transfer. State synchronization between; The dynamic adjustment module is used to adjust the virtual scene level Evaluate resource utilization and obtain virtual scene hierarchy Resource utilization, including virtual scene hierarchy Resource utilization at time t , dynamically adjust the hierarchical content and display strategy according to system load and user behavior.