AI-based virtual reality special effects cinema scene optimization method and system
Through AI, the virtual reality system is optimized, and the rendering components and graphics processing units of virtual special effects scenes are extracted and matched, which solves the efficiency problem of the virtual reality system in rendering high-complex scenes and achieves high-quality rendering effects.
Patent Information
- Application Number
- CN202410657009.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-05-24
AI Technical Summary
When rendering a high-complex scene, existing virtual reality systems are difficult to efficiently manage and schedule rendering components, resulting in insufficient rendering quality and efficiency.
Using an AI-based method, the rendering components of the target virtual special effects scene are extracted, the associated graphics processing unit is determined, and the scene drawing unit is enabled based on the rendering scheduling information to achieve precise matching and efficient processing.
It improves the targetedness and accuracy of scene rendering, optimizes the allocation of graphics processing resources, generates high-quality special effects theater scene drawing results, and improves the virtual reality experience and overall rendering performance.
Smart Images

Figure CN118485781B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an AI-based virtual reality special effects theater scene optimization method and system. Background Art
[0002] With the continuous development of science and technology, virtual reality (VR) technology has attracted more and more attention and has been widely used in many fields such as games, film and television, and education. Virtual reality technology generates a three-dimensional virtual world through computer simulation to provide users with an immersive environment experience. However, in order to provide a more realistic visual experience, the rendering quality and efficiency of virtual reality scenes have become key technical challenges.
[0003] In traditional virtual reality systems, scene rendering mainly relies on the graphics processing unit (GPU). However, as the complexity of the scene increases, a single GPU often cannot meet the requirements of efficient rendering. In addition, different scene elements may require different rendering strategies and optimization methods, which puts higher requirements on the rendering capability and flexibility of the system.
[0004] To meet these challenges, existing virtual reality systems usually use multiple scene rendering components to meet the rendering requirements of different scene elements. However, how to efficiently manage and schedule these rendering components to ensure high-quality rendering of the scene remains an urgent problem to be solved. Summary of the invention
[0005] In view of this, the purpose of this application is to provide an AI-based virtual reality special effects theater scene optimization method and system.
[0006] According to the first aspect of the present application, there is provided an AI-based virtual reality special effects theater scene optimization method, which is applied to a virtual reality service system, and the method includes:
[0007] Based on a virtual scene startup activity for a target virtual special effect scene, a plurality of target scene rendering components in a virtual special effect theater are extracted; the virtual special effect theater encapsulates a scene rendering instruction set, the scene rendering instruction set corresponds to the target virtual special effect scene, and the target scene rendering component is a scene rendering component corresponding to the scene rendering instruction set enabled;
[0008] Determine the graphics processing unit associated with each of the target scene rendering components, and extract the scene drawing unit having rendering scheduling information from each of the graphics processing units;
[0009] The scene drawing unit is enabled based on the rendering scheduling information to draw the target virtual special effect scene and generate a special effect theater scene drawing result of the target virtual special effect scene.
[0010] In a possible implementation of the first aspect, enabling the scene drawing unit based on the rendering scheduling information to draw the target virtual special effects scene and generate a special effects theater scene drawing result of the target virtual special effects scene includes:
[0011] identifying a backward scene drawing unit having rendering scheduling information with the forward scene drawing unit;
[0012] The rendering data generated by the forward scene drawing unit and corresponding to the rendering scheduling information is transmitted to the component interface of the target scene rendering component corresponding to the backward scene drawing unit;
[0013] Using the rendering data transmitted to the component interface as a rendering source, enabling the scene drawing unit associated with the target scene rendering component where the component interface is located;
[0014] When all the scene drawing units complete the drawing, a special effects theater scene drawing result of the target virtual special effects scene is generated.
[0015] In a possible implementation manner of the first aspect, the scene drawing unit is a target graphics processing unit; and the method further includes:
[0016] Determine a non-target graphics processing unit, wherein the non-target graphics processing unit includes a graphics processing unit that does not have rendering scheduling information among the graphics processing units associated with each of the target scene rendering components, and a graphics processing unit that is running but does not participate in drawing the target virtual special effect scene;
[0017] The to-be-rendered data corresponding to the non-target graphics processing unit is cached, so that the scene rendering component corresponding to the non-target graphics processing unit is in a pause mode.
[0018] In a possible implementation of the first aspect, the method further includes:
[0019] When the target graphics processing unit completes drawing, the cached data to be rendered is transferred again to the scene rendering component corresponding to the non-target graphics processing unit, so that the scene rendering component corresponding to the non-target graphics processing unit cancels the pause mode.
[0020] In a possible implementation of the first aspect, the method further includes:
[0021] When the virtual scene system is activated, obtaining parallel graphics processing units corresponding to each virtual special effect scene presented by the virtual scene system, wherein the parallel graphics processing units include a plurality of graphics processing units having rendering scheduling information;
[0022] For each virtual special effect scene, loading the scene rendering components corresponding to each graphics processing unit in the parallel graphics processing unit corresponding to the virtual special effect scene into the scene rendering instruction set matching the virtual special effect scene;
[0023] According to the scene rendering instruction set, each graphics processing unit in the parallel graphics processing unit is configured to generate a virtual special effects theater that matches the virtual special effects scene and is configured with the scene rendering instruction set.
[0024] In a possible implementation of the first aspect, the target virtual special effects scene includes a three-dimensional rendering scene of a virtual special effects theater screen; the scene drawing unit includes a terrain rendering unit and a three-dimensional object rendering execution unit corresponding to the rendering result of the terrain rendering unit;
[0025] The enabling of the scene drawing unit based on the rendering scheduling information to draw the target virtual special effect scene and generate a special effect theater scene drawing result of the target virtual special effect scene includes:
[0026] Activating the terrain rendering unit to render the target terrain portion in the virtual special effects cinema screen;
[0027] Using a plurality of the three-dimensional object rendering execution units matching the number of key points of the target terrain portion, positioning and rendering the three-dimensional objects in the target terrain portion based on each of the key points;
[0028] The virtual special effects cinema picture is three-dimensionally rendered according to the positioning rendering data corresponding to each of the key points to generate a three-dimensional rendering presentation result of the virtual special effects cinema picture.
[0029] In a possible implementation of the first aspect, the method further includes:
[0030] When the number of target scene rendering components used to operate the three-dimensional object rendering execution unit in the virtual special effects theater is not greater than the number of key points of the target terrain part, determining the number of target scene rendering components to be expanded;
[0031] Based on the number of target scene rendering components that need to be expanded, target scene rendering components corresponding one to one to the expanded three-dimensional object rendering execution units are added in the virtual special effects theater.
[0032] In a possible implementation of the first aspect, performing three-dimensional rendering on the virtual special effects cinema picture according to the positioning rendering data corresponding to each of the key points to generate a three-dimensional rendering display result of the virtual special effects cinema picture includes:
[0033] For each of the key points, clustering the positioning rendering data corresponding to the key point to generate cluster data corresponding to each of the key points;
[0034] The virtual special effects cinema picture is three-dimensionally rendered according to the cluster data corresponding to each of the key points to generate a three-dimensional rendering display result of the virtual special effects cinema picture.
[0035] In a possible implementation of the first aspect, the step of clustering the positioning rendering data corresponding to each of the key points to generate cluster data corresponding to each of the key points includes:
[0036] Extracting cluster-related features from the positioning rendering data corresponding to the key points, wherein the cluster-related features include position coordinates, color information, and normal vectors;
[0037] Randomly select K positioning rendering data points as initial cluster centers, each positioning rendering data point being selected from the positioning rendering data;
[0038] Allocating each other positioning rendering data point to the nearest initial cluster center, calculating the distance between each positioning rendering data point and each initial cluster center for each positioning rendering data point, and allocating the positioning rendering data point to the sub-cluster where the nearest cluster center is located based on the calculated distance;
[0039] For each cluster, the average value of all the positioning and rendering data points within the cluster is calculated, and the average value is used as the new initial cluster center. Then, for each positioning and rendering data point, the step of calculating the distance between the positioning and rendering data point and each initial cluster center is returned until the iteration stop condition is met. According to the clustering result, the cluster data of each key point is extracted, and the cluster data includes the cluster label to which each key point belongs, the coordinates of the center point of the cluster label, and the distribution of the positioning and rendering data points within the cluster label;
[0040] In a possible implementation of the first aspect, the step of performing three-dimensional rendering on the virtual special effects cinema picture according to the cluster data corresponding to each of the key points to generate a three-dimensional rendering display result of the virtual special effects cinema picture includes:
[0041] Loading resource files required for the virtual special effects theater scene, the resource files including terrain models, three-dimensional object models, map textures, and lighting information;
[0042] Initialize an empty rendering scene in the rendering engine and set the corresponding background color and ambient light;
[0043] configuring one or more virtual cameras to simulate the viewing angle of an observer in a virtual special effects theater;
[0044] According to the distribution of the positioning rendering data points in the cluster label in the cluster data of each key point, each key point is matched with one or more three-dimensional object models, and the cluster label in the cluster data and the center point coordinates of the cluster label are used to place the matched three-dimensional object model at a corresponding position in the rendering scene;
[0045] Configure corresponding lighting information and map texture information for the rendering scene according to the resource file;
[0046] According to the camera viewing angle of the virtual camera and the distribution of the positioning rendering data points in the cluster label, the rendering order of the rendering scene is optimized, and the final rendering result is output to the virtual reality interaction system.
[0047] According to the second aspect of the present application, a virtual reality service system is provided, which includes a processor and a readable storage medium, wherein the readable storage medium stores a program, which, when executed by the processor, implements the aforementioned AI-based virtual reality special effects theater scene optimization method.
[0048] According to the third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when it is monitored that the computer-executable instructions are executed, the aforementioned AI-based virtual reality special effects theater scene optimization method is implemented.
[0049] According to any of the above aspects, by starting the virtual scene activity for the target virtual special effects scene, the target scene rendering component associated with the specific scene rendering instruction set is accurately extracted, thereby achieving accurate matching and efficient processing of the scene rendering task, and improving the pertinence and accuracy of the scene rendering. Secondly, by determining the graphics processing unit associated with each target scene rendering component, and extracting the scene drawing unit containing rendering scheduling information from these graphics processing units, the graphics processing resources can be allocated more reasonably, avoiding resource waste and unnecessary computing overhead. Finally, based on the rendering scheduling information, the scene drawing unit is enabled to achieve efficient drawing of the target virtual special effects scene, and generate high-quality special effects theater scene drawing results, which not only improves the visual experience of the virtual reality special effects theater, but also optimizes the overall rendering performance and efficiency. Therefore, through intelligent scene rendering component extraction and resource allocation, the rendering quality and efficiency of the virtual reality special effects theater scene are significantly improved, bringing users a smoother and more realistic viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 A schematic diagram of a flow chart of a method for optimizing a virtual reality special effects theater scene based on AI provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of the component structure of a virtual reality service system for implementing the above-mentioned AI-based virtual reality special effects theater scene optimization method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0053] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings 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. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0054] 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 device comprising 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.
[0055] The meanings of some terms involved in the following embodiments are first explained below:
[0056] Target virtual special effects scene: refers to the specific virtual scene that the user wants to render and display. This scene may contain specific visual effects, light and shadow, objects, etc. to meet the user's display or experience needs. For example, a science fiction-themed scene may contain science fiction elements such as future buildings and flying cars.
[0057] Virtual scene startup activities: refers to a series of initialization activities and operations performed in a virtual environment to load and display a specific virtual scene. For example, this may include loading 3D models, textures, setting lights and camera angles, etc.
[0058] Virtual special effects cinema: a virtual environment used to simulate cinema effects and display various virtual special effects scenes, which may include specific sound effects, light and shadow effects, etc., to enhance the user's immersion and viewing experience. For example, it is like a simulated cinema, but the movies played are not real movies, but virtual scenes generated by computers.
[0059] Target scene rendering component: refers to the software component or module responsible for rendering part or all of the content of a specific virtual scene. For example, one rendering component may be responsible for rendering water effects in the scene, while another may be responsible for rendering vegetation.
[0060] Scene rendering instruction set: a set of instructions or commands that instruct the rendering engine in the virtual environment on how to render a specific scene, including settings for various visual effects such as color, light and shadow, and texture. For example, the instruction set may include specific instructions such as "set the sky to sunset tones" or "turn on shadow effects."
[0061] Graphics Processing Unit (GPU): A part of computer hardware that is specifically designed to handle graphics-related computing tasks and can speed up the rendering of 3D graphics. For example, graphics cards produced by companies such as NVIDIA and AMD contain powerful GPUs.
[0062] Scene drawing unit: A hardware or software unit within a graphics processing unit (GPU) that is responsible for performing specific rendering tasks. For example, a scene drawing unit may be responsible for drawing an object in a scene, such as a building or a character.
[0063] Rendering scheduling information: It is information that instructs the scene drawing unit when and how to render, including the order and time of rendering. For example, a drawing unit may start working after another drawing unit is completed, and this information is determined by the rendering scheduling information.
[0064] The result of scene rendering in the special effects theater is the complete scene effect presented in the virtual special effects theater after a series of rendering processes. For example, the complete scene with various visual effects that users see in the virtual special effects theater is the result of scene rendering.
[0065] Figure 1The flowchart of the method for optimizing a virtual reality special effects theater scene based on AI provided by an embodiment of the present application is shown. It should be understood that in other embodiments, the order of some steps in the method for optimizing a virtual reality special effects theater scene based on AI can be interchanged according to actual needs, or some steps can be omitted or deleted. The detailed steps of the method for optimizing a virtual reality special effects theater scene based on AI are described as follows.
[0066] Step S110, based on the virtual scene startup activity for the target virtual special effect scene, extract multiple target scene rendering components in the virtual special effect theater. The virtual special effect theater encapsulates a scene rendering instruction set, the scene rendering instruction set corresponds to the target virtual special effect scene, and the target scene rendering component is a scene rendering component corresponding to the scene rendering instruction set enabled.
[0067] In this embodiment, for example, the server receives an instruction to start a target virtual special effects scene called Mysterious Forest. The target virtual special effects scene is a forest environment full of fantasy elements, which requires specific scene rendering components to show its unique visual effects. The server begins to extract scene rendering components corresponding to the "Mysterious Forest" scene from the virtual special effects theater. These scene rendering components include dedicated renderers responsible for rendering natural elements such as trees, grass, and water. These renderers are encapsulated in the scene rendering instruction set of the virtual special effects theater, and these instruction sets are specially designed for natural scenes such as "Mysterious Forest". The server extracts these target scene rendering components and prepares for the next step of rendering.
[0068] Step S120, determining the graphics processing unit associated with each of the target scene rendering components, and extracting the scene drawing unit having rendering scheduling information from each of the graphics processing units.
[0069] In this embodiment, the server has extracted the target scene rendering components required for the "Mysterious Forest" scene. Next, the server begins to determine the GPUs associated with these target scene rendering components. In this process, the server checks the status and configuration of each GPU, looking for those GPUs that have been assigned rendering tasks and have relevant rendering scheduling information. Through this step, the server successfully identified the specific GPUs responsible for handling tasks such as tree rendering, grass rendering, and water rendering. These GPUs all have scheduling information on how to efficiently render specific elements in the "Mysterious Forest" scene.
[0070] Step S130 , enabling the scene drawing unit based on the rendering scheduling information to draw the target virtual special effects scene, and generating a special effects theater scene drawing result of the target virtual special effects scene.
[0071] In this embodiment, after determining the scene drawing units with rendering scheduling information, the server begins to enable the corresponding scene drawing units according to the rendering scheduling information. For example, the graphics processing unit responsible for tree rendering begins to gradually draw each tree in the forest according to the priority and resource allocation in the rendering scheduling information. Similarly, the graphics processing units responsible for grass and water rendering also work according to their respective scheduling information. In this process, the various scene drawing units work together to build a complete visual representation of the virtual special effects scene of the "mysterious forest". Finally, when all the scene drawing units have completed their respective rendering tasks, the server generates a special effects theater scene drawing result that integrates all rendering results, that is, a lifelike and fantasy-filled "mysterious forest" virtual scene.
[0072] Based on the above steps, by starting the virtual scene activity for the target virtual special effects scene, the target scene rendering component associated with the specific scene rendering instruction set is accurately extracted, thereby achieving accurate matching and efficient processing of the scene rendering task, and improving the pertinence and accuracy of the scene rendering. Secondly, by determining the graphics processing unit associated with each target scene rendering component and extracting the scene drawing unit containing rendering scheduling information from these graphics processing units, the graphics processing resources can be allocated more reasonably, avoiding resource waste and unnecessary computing overhead. Finally, based on the rendering scheduling information, the scene drawing unit is enabled to achieve efficient drawing of the target virtual special effects scene, and generate high-quality special effects theater scene drawing results, which not only improves the visual experience of the virtual reality special effects theater, but also optimizes the overall rendering performance and efficiency. Therefore, through intelligent scene rendering component extraction and resource allocation, the rendering quality and efficiency of the virtual reality special effects theater scene are significantly improved, bringing users a smoother and more realistic viewing experience.
[0073] In a possible implementation, step S130 includes:
[0074] Step S131 , identifying a backward scene drawing unit having rendering scheduling information with the forward scene drawing unit.
[0075] In this embodiment, when the server processes the rendering task of the "Mysterious Forest" virtual special effects scene, it will first identify the forward scene drawing units in the scene, which are usually responsible for the preliminary rendering of scene elements. Then, the server can find the backward scene drawing units associated with the forward scene drawing units, which are usually responsible for further detail processing and optimization based on the preliminary rendering. In this process, the server determines which backward scene drawing units need to receive the rendering data of the forward units by checking the rendering scheduling information, and performs subsequent processing.
[0076] For example, in the "Mysterious Forest" scene, the forward scene drawing unit may first render the basic layout and general terrain of the forest, and the backward scene drawing unit needs to add leaf details, light and shadow effects, etc. based on this information. The server identifies the backward scene drawing unit responsible for processing these subsequent rendering tasks by comparing the rendering scheduling information.
[0077] Step S132: transmitting the rendering data generated by the forward scene rendering unit and corresponding to the rendering scheduling information to the component interface of the target scene rendering component corresponding to the backward scene rendering unit.
[0078] Once the relevant backward scene drawing units are identified, the server will start passing the rendering data generated by the forward units to these backward units. These data contain the preliminary rendered scene elements, as well as the instructions and parameters required for further rendering. The server can ensure that these data are accurately sent to the rendering component interface corresponding to the backward scene drawing unit for subsequent processing.
[0079] For example, during the rendering process of the "Mysterious Forest", the server passes the basic layout and terrain data of the forest rendered by the forward scene drawing unit to the backward scene drawing unit responsible for adding details and light and shadow effects through an efficient data transmission mechanism. These data are received through a specific component interface to ensure the continuity and accuracy of the rendering.
[0080] Step S133: using the rendering data transmitted to the component interface as a rendering source, and enabling the scene drawing unit associated with the target scene rendering component where the component interface is located.
[0081] When the backward scene drawing units receive the rendering data transmitted by the forward units, the server can instruct these backward units to use these data as rendering sources and start further rendering work. This means that the server can activate the rendering components associated with these backward scene drawing units and let them start performing operations such as detail rendering and light and shadow processing based on the received data.
[0082] For example, in the "Mysterious Forest" scene, the server activated the backward scene drawing unit and began to add details such as leaf texture and light and shadow projection based on the basic forest layout and terrain data received. These backward units used efficient rendering algorithms and graphics processing technology to gradually make the initially rendered scene more vivid and realistic.
[0083] Step S134, when all the scene drawing units have completed drawing, a special effects theater scene drawing result of the target virtual special effects scene is generated.
[0084] When all the forward and backward scene drawing units have completed their respective rendering tasks, the server can merge the rendering results of these units into a complete virtual special effects scene. This process involves complex operations such as color correction and image synthesis to ensure that the output of each rendering unit can be seamlessly connected to form a visually coherent and layered scene.
[0085] For example, after the rendering task of the "Mysterious Forest" was completed, the server accurately synthesized and processed the rendering results of each scene drawing unit. In the end, the server generated an amazing "Mysterious Forest" virtual special effects scene, which included lifelike trees, sparkling streams, and a mysterious atmosphere under the interweaving of light and shadow. The scene is not only visually fascinating, but also shows every detail and dynamic effect of the forest through sophisticated rendering technology.
[0086] In a possible implementation, the scene drawing unit is a target graphics processing unit. The method further includes:
[0087] Step A110, determining non-target graphics processing units, wherein the non-target graphics processing units include graphics processing units that do not have rendering scheduling information among the graphics processing units associated with the target scene rendering components, and graphics processing units that are running but not participating in drawing the target virtual special effects scene.
[0088] Step A120: Cache the to-be-rendered data corresponding to the non-target graphics processing unit, so that the scene rendering component corresponding to the non-target graphics processing unit is in a pause mode.
[0089] In this embodiment, when processing a graphics rendering task, the server will first identify all graphics processing units (GPUs) related to scene rendering. Among these GPUs, the server can further distinguish which are target graphics processing units with rendering scheduling information, that is, GPUs that need to participate in the current target virtual special effects scene drawing, and which are non-target graphics processing units that do not have rendering scheduling information, or GPUs that are in a running state but do not participate in the current scene drawing.
[0090] For example, suppose the server manages a rendering farm with multiple GPUs. When the server receives a task to render a virtual special effects scene of "city night scene", it first checks the status and task queue of each GPU. In this process, the server finds that GPU1, GPU2, and GPU3 are assigned rendering scheduling information and will participate in the rendering of different parts of "city night scene", such as GPU1 is responsible for rendering buildings, GPU2 is responsible for rendering streets, and GPU3 is responsible for rendering lighting effects. Although GPU4 and GPU5 are in operation, they are not assigned any rendering tasks related to "city night scene" and are therefore identified as non-target graphics processing units.
[0091] Once the non-target graphics processing units are identified, the server can cache the rendering data that these units were originally scheduled to process, which means that the data will not be processed immediately, but will be temporarily stored in the server's memory, awaiting subsequent instructions or scheduling.
[0092] In the rendering task of "City Night Scene", GPU4 was originally planned to process the rendering data of some other scenes, but because it was not assigned to the rendering task of "City Night Scene", the server can transfer this data to the cache area. Similarly, if GPU5 is running but not involved in the current task, the data it was originally going to process will also be cached. The advantage of this is that the resources of these GPUs can be freed up so that they can be reallocated to other tasks that need to be rendered, or enter low power mode to save energy.
[0093] After caching the data, the server can send instructions to the scene rendering components corresponding to the non-target graphics processing units to put them into pause mode. This ensures that these components do not continue to process unnecessary data, thereby saving computing resources and power consumption.
[0094] For example, during the rendering of "City Night Scene", the server can send pause instructions to GPU4 and GPU5 to put their rendering components into a low-power or dormant state, which means that these GPUs will not perform any rendering calculations until the server sends new instructions or scheduling information to them. In this way, the server can manage its rendering resources more effectively and ensure that each GPU works in the most efficient state.
[0095] In a possible implementation, the method further includes:
[0096] Step A130, when the target GPU completes drawing, the cached data to be rendered is transferred again to the scene rendering component corresponding to the non-target GPU, so that the scene rendering component corresponding to the non-target GPU cancels the pause mode.
[0097] When the server detects that the target graphics processing units (such as GPU1, GPU2 and GPU3) involved in drawing the current target virtual special effects scene have completed their drawing tasks, that is, all elements such as buildings, streets and lighting effects in the "city night scene" have been rendered, the server can proceed to the next step.
[0098] At this point, the server can review the previously cached data to be rendered, which was originally intended to be processed by non-target graphics processing units (such as GPU4 and GPU5). Since these units were previously identified as not participating in the current scene rendering, their data to be rendered was temporarily stored in the server's cache, and these graphics processing units were placed in pause mode to save resources.
[0099] Now that the target GPUs have completed their tasks, the server begins to redistribute the data to be rendered in the cache to non-target GPUs. This process is accomplished through an efficient data transfer mechanism to ensure that the data can reach the designated GPU quickly and accurately.
[0100] As the data to be rendered is passed to the non-target graphics processing units, the server can simultaneously send instructions to the scene rendering components of these units, commanding them to cancel the pause mode, which means that GPU4 and GPU5 will be reactivated and start processing the previously cached rendering tasks.
[0101] For example, after the "city night scene" rendering task is completed, the server checks that GPU1, GPU2 and GPU3 have successfully completed the rendering of buildings, streets and lights. At this time, the server takes out the data to be rendered that was previously cached for GPU4 and GPU5 from the memory. This data may include textures, models or lighting information of other virtual scenes, which are unrelated to the previous "city night scene" task.
[0102] The server sends the data to be rendered to GPU4 and GPU5 respectively through an efficient data bus or network interface. At the same time, the server sends instructions to the scene rendering components of the two GPUs to notify them to cancel the pause state and prepare to start new rendering work.
[0103] After receiving the data and instructions, GPU4 and GPU5 will reinitialize their scene rendering components, load the cached data to be rendered, and start calculating and drawing according to the preset rendering process. In this way, the graphics processing resources of the server are fully utilized and can quickly start the next task after completing one rendering task.
[0104] In a possible implementation, the method further includes:
[0105] Step B110, when the virtual scene system is activated, obtaining parallel graphics processing units corresponding to each virtual special effect scene presented by the virtual scene system, wherein the parallel graphics processing units include a plurality of graphics processing units having rendering scheduling information.
[0106] In this embodiment, when the virtual scene system is activated, the server can first perform an initialization operation. In this process, the server can identify and obtain each virtual special effect scene to be presented by the system, and determine the parallel graphics processing units (GPUs) corresponding to these scenes. These parallel graphics processing units are multiple graphics processing units with rendering scheduling information, and they will be jointly responsible for the rendering of the virtual special effect scene.
[0107] For example, suppose the virtual scene system is a system that simulates an urban environment, which contains multiple different virtual special effects scenes, such as "city center", "suburban scenery" and "night scene mode". When the system starts, the server can automatically detect and identify these scenes, and then determine which GPUs will render each scene. For example, the "city center" scene may be processed in parallel by GPU1 and GPU2, the "suburban scenery" is handled by GPU3 and GPU4, and the "night scene mode" may be rendered by GPU2 and GPU3.
[0108] Step B120, for each virtual special effect scene, loading the scene rendering components corresponding to each graphics processing unit in the parallel graphics processing units corresponding to the virtual special effect scene into the scene rendering instruction set matching the virtual special effect scene.
[0109] After determining the parallel graphics processing units corresponding to each virtual special effects scene, the server can enable the corresponding GPU for each scene and load the scene rendering components on these GPUs into the scene rendering instruction set that matches the virtual special effects scene. This process ensures that each GPU can perform efficient rendering work according to the preset instruction set.
[0110] For example, taking the "city center" scene as an example, the server can enable the scene rendering components on GPU1 and GPU2, and load these components into the rendering instruction set specially designed for this scene. These instruction sets can include complex rendering tasks such as how to render the texture of buildings, how to handle light and shadow effects, and how to simulate pedestrian and vehicle flows. By loading these instruction sets, GPU1 and GPU2 can accurately know how to work together to present a realistic "city center" scene.
[0111] Step B130, configuring each graphics processing unit in the parallel graphics processing unit according to the scene rendering instruction set, and generating a virtual special effects theater that matches the virtual special effects scene and is configured with the scene rendering instruction set.
[0112] Finally, the server can perform detailed configuration of each GPU in the parallel graphics processing unit according to the loaded scene rendering instruction set, including setting rendering parameters, assigning rendering tasks, optimizing rendering processes, etc. After completing these configurations, the server can generate a virtual special effects theater that fully matches the virtual special effects scene and has been configured with the corresponding scene rendering instruction set.
[0113] For example, in the "city center" scene, the server can configure GPU1 and GPU2 in detail according to the rendering instruction set. For example, GPU1 may be configured to render the appearance and texture of buildings, while GPU2 is responsible for processing lighting effects and dynamic elements (such as moving cars and walking pedestrians). Through this configuration, the server can ensure that each GPU can maximize its performance advantages, thereby jointly presenting a high-quality, high-fidelity "city center" virtual special effects theater.
[0114] In a possible implementation, the target virtual special effects scene includes a three-dimensional rendering scene of a virtual special effects theater screen. The scene drawing unit includes a terrain rendering unit and a three-dimensional object rendering execution unit corresponding to the rendering result of the terrain rendering unit.
[0115] Step S130 may include:
[0116] Step S131, enabling the terrain rendering unit to render the target terrain portion in the virtual special effects cinema screen.
[0117] In this embodiment, when the server is preparing to draw the target virtual special effects scene, it will first enable the terrain rendering unit, which is specifically responsible for rendering the terrain part of the virtual special effects theater screen, that is, the natural landforms such as the ground, mountains, rivers, etc. in the scene.
[0118] For example, suppose the server is preparing a virtual special effects theater scene called "Mysterious Canyon". First, the server can enable the terrain rendering unit and start rendering the terrain of the canyon, including the direction and depth of the canyon, the surrounding mountains, rivers and other natural features. The server can carefully depict every corner of the canyon based on the preset terrain data and material maps to ensure the authenticity and delicacy of its landform features.
[0119] Step S132: using a plurality of the three-dimensional object rendering execution units matching the number of key points of the target terrain portion, respectively positioning and rendering the three-dimensional objects in the target terrain portion based on each of the key points.
[0120] After completing the rendering of the terrain, the server can identify key points on the terrain, which can be mountain peaks, river intersections, building locations, etc. Then, the server can call the 3D object rendering execution units that match the number of these key points to position and render the 3D objects at each key point.
[0121] For example, in the "Mysterious Canyon" scene, the server identified several key points, such as the entrance to the canyon, a prominent mountain peak, and a cabin by the river. For these key points, the server can allocate a corresponding number of 3D object rendering execution units. For example, one unit is responsible for rendering the boulder at the entrance of the canyon, another unit is responsible for rendering the signal tower on the mountain peak, and another unit is responsible for rendering the cabin and its surrounding environment. Each rendering execution unit will accurately locate and render the corresponding 3D object based on the location and characteristics of the key points.
[0122] Step S133, performing three-dimensional rendering on the virtual special effects cinema picture according to the positioning rendering data corresponding to each of the key points, and generating a three-dimensional rendering display result of the virtual special effects cinema picture.
[0123] After completing the rendering of three-dimensional objects on the terrain and key points, the server can integrate all these rendering data and perform the final three-dimensional rendering of the entire virtual special effects theater picture. This process will be carried out based on the positioning rendering data corresponding to each key point to ensure the continuity and authenticity of the picture.
[0124] For example, in the "Mysterious Canyon" scene, the server has completed the rendering of the terrain and three-dimensional objects at key points. Now, it will perform the final three-dimensional rendering of the entire picture based on these rendering data, which includes adjusting the light and shadow effects, adding environmental atmosphere (such as fog, sunlight, etc.), optimizing the texture and details of the object, etc. After this series of processing, the server finally generates a realistic and fascinating three-dimensional rendering display result of the "Mysterious Canyon" virtual special effects theater picture, which can be displayed to the audience through the large screen of the theater, bringing them an immersive visual experience.
[0125] In a possible implementation, the method further includes:
[0126] When the number of target scene rendering components used to operate the three-dimensional object rendering execution unit in the virtual special effects theater is not greater than the number of key points of the target terrain part, the number of target scene rendering components to be expanded is determined.
[0127] Based on the number of target scene rendering components that need to be expanded, target scene rendering components corresponding one to one to the expanded three-dimensional object rendering execution units are added in the virtual special effects theater.
[0128] In this embodiment, when the server is ready to render a complex virtual special effects theater scene, it will first evaluate whether the number of scene rendering components currently available is sufficient to handle all key points on the terrain. Key points are areas of the terrain that require special attention and high-quality rendering, such as mountains, buildings, or other important feature points. If the server finds that the number of existing scene rendering components is not enough to cover all key points, it will calculate how many more scene rendering components need to be added to meet the demand.
[0129] For example, suppose the server is preparing a virtual special effects theater scene called "Future City", which contains a large number of key terrain features such as high-rise buildings, streets, and parks. After preliminary evaluation, the server found that there are 50 key points in the terrain that require high-quality rendering, but the current system only has 40 available scene rendering components. Therefore, the server determines that 10 target scene rendering components need to be expanded to ensure that each key point can be properly rendered.
[0130] Once the number of scene rendering components that need to be expanded is determined, the server will start the corresponding expansion operations, which usually involves allocating more computing resources, initializing new rendering components, and matching them with the newly added 3D object rendering execution units. In this way, each newly added rendering execution unit will have a dedicated scene rendering component to control its operation, thereby ensuring the rendering quality and efficiency of the entire scene.
[0131] For example, in the "Future City" scene, the server has determined that 10 target scene rendering components need to be added. To achieve this, the server can first allocate additional computing resources, such as CPU cores or GPU processing units. Then, it will initialize these 10 new scene rendering components and pair them with 10 newly added 3D object rendering execution units, so that each rendering execution unit has a dedicated scene rendering component to guide it to perform high-quality rendering work. In this way, the server ensures that every key point in the "Future City" scene can be presented to the audience with the best effect.
[0132] In a possible implementation, step S133 may include:
[0133] Step S1331 : for each of the key points, cluster the positioning rendering data corresponding to the key point to generate cluster data corresponding to each of the key points.
[0134] Step S1332, performing three-dimensional rendering on the virtual special effects cinema picture according to the cluster data corresponding to each of the key points, and generating a three-dimensional rendering display result of the virtual special effects cinema picture.
[0135] In this embodiment, when the server processes the 3D rendering of the virtual special effects cinema screen, it will first focus on the key points in the scene. These key points are usually important elements in the scene and require special rendering processing. In order to more effectively manage the rendering data of these key points, the server can perform group processing on these data.
[0136] For example, suppose the server is processing a virtual special effects theater scene called "Castle Adventure". In this scene, key points may include the castle's gate, tower, fountain in the courtyard, etc. For these key points, the server can collect their positioning rendering data, which contains information such as the position, color, texture, etc. of each key point. Next, the server can divide these data into different clusters (or groups) according to their characteristics and rendering requirements. For example, the castle's gate and tower may be divided into one cluster because of their importance, while the fountain and other decorations in the courtyard may be divided into another cluster. This cluster processing helps the server to perform subsequent rendering work more efficiently.
[0137] After completing the clustering of key point data, the server can start 3D rendering based on these cluster data. Each cluster data will be processed separately to ensure that the rendering effect of each key point can meet the expected standards.
[0138] For example, continuing with the "Castle Adventure" scene, after the server completes the data clustering, it will start 3D rendering of each cluster. For the cluster of castle gates and towers, the server can use finer textures and more complex lighting models to highlight their importance. For the cluster of fountains and other decorations in the courtyard, the server can adopt a slightly simpler rendering strategy to balance the overall effect of the picture and rendering efficiency. Through this processing method, the server can eventually generate a realistic and layered 3D rendering display result of the "Castle Adventure" virtual special effects theater picture, which not only retains the unique characteristics of each key point, but also achieves efficient and high-quality rendering through reasonable resource allocation and optimization.
[0139] In a possible implementation, step S1331 may include:
[0140] Step S1331-1, extracting cluster-related features from the positioning rendering data corresponding to the key points, wherein the cluster-related features include position coordinates, color information, and normal vectors.
[0141] Step S1331 - 2 : randomly selecting K positioning rendering data points as initial cluster centers, each positioning rendering data point being selected from the positioning rendering data.
[0142] Step S1331-3, assigning each other positioning rendering data point to the nearest initial cluster center, for each positioning rendering data point, calculating the distance between the positioning rendering data point and each initial cluster center, and assigning the positioning rendering data point to the cluster where the nearest cluster center is located based on the calculated distance.
[0143] Step S1331-4, for each cluster, calculate the average value of all the positioning rendering data points within the cluster, and use the average value as the new initial cluster center, then return to the step of calculating the distance between the positioning rendering data point and each initial cluster center for each positioning rendering data point, until the iteration stop condition is met, and extract the cluster data of each key point according to the clustering result, the cluster data includes the cluster label to which each key point belongs, the center point coordinates of the cluster label, and the distribution of the positioning rendering data points within the cluster label.
[0144] In this embodiment, the server first extracts cluster-related features from the positioning rendering data corresponding to the key points. These features will be used for subsequent cluster analysis to help classify similar data points into one category.
[0145] For example, suppose the server is processing a virtual special effects theater scene called "Ancient City Ruins". In this scene, key points may include the walls, gatehouses, statues, etc. of the ancient city. The server can extract clustering association features such as position coordinates, color information, and normal vectors from the positioning rendering data of these key points. For example, for the key points of the city wall, the server can extract its position coordinates (to determine the specific position of the city wall in the scene), color information (reflecting the material and lighting effects of the city wall), and normal vectors (indicating the direction of the surface of the city wall).
[0146] The server can randomly select K positioning rendering data points as initial clustering centers, and these clustering centers will serve as the starting points for subsequent clustering.
[0147] For example, in the "Ancient City Ruins" scene, the server can randomly select K key points of positioning rendering data as the initial clustering center. For example, it can select a part of the city wall, a corner of the gate tower, and a certain position of the statue as the initial clustering center.
[0148] Next, the server may calculate the distance between each positioning rendering data point and each initial cluster center, and assign each data point to the cluster to which the nearest cluster center is located.
[0149] For example, in the "Ancient City Ruins" scene, the server can calculate the distance between the positioning rendering data of each key point and the initial cluster center. For example, the positioning rendering data of a certain part of the city wall can be assigned to a cluster centered on a certain part of the city wall because it is closest to the cluster center.
[0150] The server can continuously iteratively calculate the average value of all the positioning and rendering data points in each cluster and use the average value as the new cluster center. Then, the data points are redistributed to the nearest cluster center until a certain iteration stop condition is met (such as the change of the cluster center is less than a certain threshold or the maximum number of iterations is reached).
[0151] For example, in the "Ancient City Ruins" scene, the server can continuously calculate the average value of all positioning rendering data points within each cluster (such as city walls, gatehouses, statues, etc.) and update the cluster center. For example, as the iteration proceeds, the cluster center of the city wall part can gradually move to a point that better represents the position of the entire city wall. This process will continue until the position of the cluster center is basically stable and no longer changes significantly.
[0152] Finally, the server can extract the cluster data of each key point according to the clustering results. These data include the cluster label to which each key point belongs, the coordinates of the center point of the cluster label, and the distribution of the positioning rendering data points within the cluster label.
[0153] For example, in the "Ancient City Ruins" scene, the server will eventually extract the cluster data of each key point (such as city walls, gatehouses, statues, etc.). For example, for a key point on a city wall, the server can record which cluster it belongs to, the coordinates of the center point of the cluster, and the distribution of data points within the cluster (such as the distribution of various parts of the city wall). This information will help the server perform subsequent rendering work more efficiently and improve image quality and rendering speed.
[0154] In a possible implementation, step S1332 may include:
[0155] Step S1332-1, loading the resource files required for the virtual special effects theater scene, the resource files including terrain model, three-dimensional object model, map texture, and lighting information.
[0156] Step S1332-2, initialize an empty rendering scene in the rendering engine, and set the corresponding background color and ambient light.
[0157] Step S1332-3, configuring one or more virtual cameras to simulate the viewing angle of an observer in a virtual special effects theater.
[0158] Step S1332-4, according to the distribution of the rendering data points located in the cluster label in the cluster data of each key point, each key point is matched with one or more three-dimensional object models, and the cluster label in the cluster data and the center point coordinates of the cluster label are used to place the matching three-dimensional object model at the corresponding position in the rendering scene.
[0159] Step S1332-5: configuring corresponding lighting information and map texture information for the rendering scene according to the resource file.
[0160] Step S1332-6, optimizing the rendering order of the rendering scene according to the camera viewing angle of the virtual camera and the distribution of the positioning rendering data points in the cluster label, and outputting the final rendering result to the virtual reality interaction system.
[0161] In this embodiment, the server first loads various resource files required for the virtual special effects theater scene. These files are basic elements for building and rendering the scene.
[0162] For example, suppose the server is preparing a virtual special effects theater scene called "Future City". It will first load relevant resource files from the resource library, including the terrain model of the future city (such as high-rise buildings, street layout, etc.), various 3D object models (such as cars, pedestrians, plants, etc.), map textures (such as the material texture of the building's exterior wall), and lighting information (such as the position, intensity and color of the sun, etc.).
[0163] Next, the server can initialize an empty rendering scene in the rendering engine and set the background color and ambient light for it to prepare for subsequent rendering work.
[0164] For example, in a "future city" scene, the server can create a blank three-dimensional space in the rendering engine, set the background color to light blue to simulate the sky, and configure soft ambient light to simulate natural lighting effects.
[0165] The server can then configure one or more virtual cameras that will simulate different perspectives of an observer in the virtual special effects theater.
[0166] For example, in the "Future City", the server can configure a virtual camera at street level to simulate the perspective of pedestrians; and configure another virtual camera high in the sky to simulate the perspective of drones or high-rise buildings. In this way, the urban landscape can be displayed from different angles during rendering.
[0167] The server may match each key point with one or more three-dimensional object models based on previously generated clustering data, and place the matched three-dimensional object models at corresponding positions in the rendering scene using information in the clustering data.
[0168] For example, in the "Future City", the server can place 3D object models such as high-rise buildings, parks, and vehicles at appropriate locations in the scene based on cluster data. For example, a high-rise model can be accurately placed at a certain location on the map based on the center point coordinates in the cluster data.
[0169] Next, the server can configure the corresponding lighting information and map texture information for the rendering scene according to the previously loaded resource files to enhance the realism and details of the scene.
[0170] For example, in the "Future City", the server can set the position and color of the sun according to the loaded lighting information to produce realistic light and shadow effects on the buildings. At the same time, the server will also apply map textures to objects such as buildings and streets to make them look more realistic.
[0171] Finally, the server can optimize the rendering order of the rendering scene according to the virtual camera's viewing angle and cluster data to improve rendering efficiency, and output the final rendering results to the virtual reality interactive system for users to watch.
[0172] For example, in the "future city", the server can render distant buildings and backgrounds first, and then render nearby objects and details to ensure that important visual elements can be clearly displayed. After rendering, the server can transmit the generated images to the virtual reality interactive system, allowing users to experience the landscape of this future city in an immersive way.
[0173] Further, Figure 2 FIG. 1 is a schematic diagram showing a hardware structure of a virtual reality service system 100 for implementing the method provided in the embodiment of the present application. Figure 2 As shown, the virtual reality service system 100 may include at least one processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 and a controller 108 for communication functions. It can be understood by those skilled in the art that Figure 2 The structure shown is for illustration only and does not limit the structure of the virtual reality service system 100. For example, the virtual reality service system 100 may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0174] The memory 104 can be used to store software programs and modules of application software, such as program instructions corresponding to the above-mentioned method embodiments in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, to implement the above-mentioned AI-based virtual reality special effects theater scene optimization method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the virtual reality service system 100 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0175] The transmission device 106 is used to receive or send data via a network. A specific example of the above network may include a wireless network provided by a communication provider of the virtual reality service system 100. In one example, the transmission device 106 includes a network adapter, which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency module, which is used to communicate with the Internet wirelessly.
[0176] It should be noted that the order of the above embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of the embodiments of the present application. Other embodiments are within the scope of the attached claims. In some cases, the exceptions or steps recorded in the claims can be performed according to an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or can be advantageous.
[0177] Each embodiment in the embodiments of the present application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the above different embodiments, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0178] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program. The above program may be stored in a computer-readable storage medium, and the above storage medium may be a read-only memory, a disk or an optical disk, etc.
Claims
1. A virtual reality special effects theater scene optimization method based on AI, It is characterized in that Applied to a virtual reality service system, the method comprises: Based on a virtual scene startup activity for a target virtual special effect scene, a plurality of target scene rendering components in a virtual special effect theater are extracted; the virtual special effect theater encapsulates a scene rendering instruction set, the scene rendering instruction set corresponds to the target virtual special effect scene, and the target scene rendering component is a scene rendering component corresponding to the scene rendering instruction set enabled; Determine the graphics processing unit associated with each of the target scene rendering components, and extract the scene drawing unit having rendering scheduling information from each of the graphics processing units; Activating the scene drawing unit based on the rendering scheduling information to draw the target virtual special effects scene and generate a special effects theater scene drawing result of the target virtual special effects scene; The enabling of the scene drawing unit based on the rendering scheduling information to draw the target virtual special effect scene and generate a special effect theater scene drawing result of the target virtual special effect scene includes: identifying a backward scene drawing unit having rendering scheduling information with the forward scene drawing unit; The rendering data generated by the forward scene drawing unit and corresponding to the rendering scheduling information is transmitted to the component interface of the target scene rendering component corresponding to the backward scene drawing unit; Using the rendering data transmitted to the component interface as a rendering source, enabling the scene drawing unit associated with the target scene rendering component where the component interface is located; When all the scene drawing units complete the drawing, a special effects theater scene drawing result of the target virtual special effects scene is generated.
2. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 1, It is characterized in that The scene drawing unit is a target graphics processing unit; the method further comprises: Determine a non-target graphics processing unit, wherein the non-target graphics processing unit includes a graphics processing unit that does not have rendering scheduling information among the graphics processing units associated with each of the target scene rendering components, and a graphics processing unit that is running but does not participate in drawing the target virtual special effect scene; The to-be-rendered data corresponding to the non-target graphics processing unit is cached, so that the scene rendering component corresponding to the non-target graphics processing unit is in a pause mode.
3. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 2, It is characterized in that The method further comprises: When the target graphics processing unit completes drawing, the cached data to be rendered is transferred again to the scene rendering component corresponding to the non-target graphics processing unit, so that the scene rendering component corresponding to the non-target graphics processing unit cancels the pause mode.
4. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 1, It is characterized in that The method further comprises: When the virtual scene system is activated, obtaining parallel graphics processing units corresponding to each virtual special effect scene presented by the virtual scene system, wherein the parallel graphics processing units include a plurality of graphics processing units having rendering scheduling information; For each virtual special effect scene, loading the scene rendering components corresponding to each graphics processing unit in the parallel graphics processing unit corresponding to the virtual special effect scene into the scene rendering instruction set matching the virtual special effect scene; According to the scene rendering instruction set, each graphics processing unit in the parallel graphics processing unit is configured to generate a virtual special effects theater that matches the virtual special effects scene and is configured with the scene rendering instruction set.
5. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 1, It is characterized in that The target virtual special effects scene includes a three-dimensional rendering scene of a virtual special effects theater screen; the scene drawing unit includes a terrain rendering unit and a three-dimensional object rendering execution unit corresponding to the rendering result of the terrain rendering unit; The enabling of the scene drawing unit based on the rendering scheduling information to draw the target virtual special effect scene and generate a special effect theater scene drawing result of the target virtual special effect scene includes: Activating the terrain rendering unit to render the target terrain portion in the virtual special effects cinema screen; Using a plurality of the three-dimensional object rendering execution units matching the number of key points of the target terrain portion, positioning and rendering the three-dimensional objects in the target terrain portion based on each of the key points; The virtual special effects cinema picture is three-dimensionally rendered according to the positioning rendering data corresponding to each of the key points to generate a three-dimensional rendering presentation result of the virtual special effects cinema picture.
6. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 5, It is characterized in that The method further comprises: When the number of target scene rendering components used to operate the three-dimensional object rendering execution unit in the virtual special effects theater is not greater than the number of key points of the target terrain part, determining the number of target scene rendering components to be expanded; Based on the number of target scene rendering components that need to be expanded, target scene rendering components corresponding one to one to the expanded three-dimensional object rendering execution units are added in the virtual special effects theater.
7. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 5, It is characterized in that The three-dimensional rendering of the virtual special effects cinema picture is performed according to the positioning rendering data corresponding to each of the key points to generate a three-dimensional rendering display result of the virtual special effects cinema picture, including: For each of the key points, clustering the positioning rendering data corresponding to the key point to generate cluster data corresponding to each of the key points; The virtual special effects cinema picture is three-dimensionally rendered according to the cluster data corresponding to each of the key points to generate a three-dimensional rendering display result of the virtual special effects cinema picture.
8. The method for optimizing virtual reality special effects theater scenes based on AI according to claim 7, It is characterized in that The step of grouping the positioning rendering data corresponding to each of the key points to generate group data corresponding to each of the key points includes: Extracting cluster-related features from the positioning rendering data corresponding to the key points, wherein the cluster-related features include position coordinates, color information, and normal vectors; Randomly select K positioning rendering data points as initial cluster centers, each positioning rendering data point being selected from the positioning rendering data; Allocating each other positioning rendering data point to the nearest initial cluster center, calculating the distance between each positioning rendering data point and each initial cluster center for each positioning rendering data point, and allocating the positioning rendering data point to the sub-cluster where the nearest cluster center is located based on the calculated distance; For each cluster, the average value of all the positioning and rendering data points within the cluster is calculated, and the average value is used as the new initial cluster center. Then, for each positioning and rendering data point, the step of calculating the distance between the positioning and rendering data point and each initial cluster center is returned until the iteration stop condition is met. According to the clustering result, the cluster data of each key point is extracted, and the cluster data includes the cluster label to which each key point belongs, the coordinates of the center point of the cluster label, and the distribution of the positioning and rendering data points within the cluster label; The step of performing three-dimensional rendering on the virtual special effects cinema screen according to the cluster data corresponding to each of the key points to generate a three-dimensional rendering display result of the virtual special effects cinema screen comprises: Loading resource files required for the virtual special effects theater scene, the resource files including terrain models, three-dimensional object models, map textures, and lighting information; Initialize an empty rendering scene in the rendering engine and set the corresponding background color and ambient light; configuring one or more virtual cameras to simulate the viewing angle of an observer in a virtual special effects theater; According to the distribution of the positioning rendering data points in the cluster label in the cluster data of each key point, each key point is matched with one or more three-dimensional object models, and the cluster label in the cluster data and the center point coordinates of the cluster label are used to place the matched three-dimensional object model at a corresponding position in the rendering scene; Configure corresponding lighting information and map texture information for the rendering scene according to the resource file; According to the camera viewing angle of the virtual camera and the distribution of the positioning rendering data points in the cluster label, the rendering order of the rendering scene is optimized, and the final rendering result is output to the virtual reality interaction system.
9. A virtual reality service system, It is characterized in that The virtual reality service system includes a processor and a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed by the processor, the AI-based virtual reality special effects theater scene optimization method described in any one of claims 1 to 8 is implemented.
