Three-dimensional scene rendering method and device, computer device and readable storage medium

By updating the rendering effect of the 3D scene in real time on the browser page, the problem of low rendering efficiency of 3D scene is solved, a high-efficiency rendering process is achieved, manpower and time costs are reduced, and user experience and system performance are improved.

CN123160740APending Publication Date: 2026-11-24GUANGZHOU KINDLINK SOFTWARE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510665009.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-22
Publication Date
2026-11-24

Smart Images

  • Figure CN123160740A_ABST
    Figure CN123160740A_ABST
Patent Text Reader

Abstract

This application relates to a three-dimensional scene rendering method, apparatus, computer device, and readable storage medium, and pertains to the field of machine vision technology. The method includes: in response to a selection operation of a target dimension image among multiple dimension images in a three-dimensional scene image displayed on a browser page, displaying a target shader corresponding to the target dimension image on the browser page; wherein the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the three-dimensional scene image; in response to an adjustment operation of the rendering parameters of the target shader, updating the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page based on the adjusted rendering parameters; this method can improve the rendering efficiency of three-dimensional scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of machine vision technology, and in particular to a three-dimensional scene rendering method, apparatus, computer device, and readable storage medium. Background Technology

[0002] During the creation and acquisition of 3D scenes, the resulting 3D scene may not meet actual requirements due to factors such as the acquisition methods, environment, and hardware performance. Therefore, post-processing of the 3D scene is necessary. To improve the rendering effect, the relevant technology involves first importing the 3D scene into professional 3D editing or modeling software for processing, adjusting the parameters of the 3D scene one by one to obtain the desired effect, and then exporting the corrected 3D scene and re-importing it into the business system. This process requires repeated file import and export operations, and after each import of a new model, environmental parameters such as position, size, and texture mapping usually need to be recalibrated in the business system, resulting in low rendering efficiency. Summary of the Invention

[0003] Therefore, it is necessary to provide a 3D scene rendering method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve rendering efficiency in response to the above-mentioned technical problems.

[0004] Firstly, this application provides a three-dimensional scene rendering method, including:

[0005] In response to the selection operation of a target dimension image among multiple dimension images in a 3D scene image displayed on a browser page, the target shader corresponding to the target dimension image is displayed on the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image;

[0006] In response to the adjustment operation of the rendering parameters of the target shader, the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page is updated based on the rendering parameters after the adjustment is completed.

[0007] In one embodiment, after the selection operation of a target dimension image among multiple dimension images in response to a 3D scene image displayed for a browser page, the method further includes:

[0008] The physical positional order of each dimension of the three-dimensional scene in the depth direction is displayed;

[0009] In response to the adjustment operation on the physical position of the target dimension image, the physical position of the target dimension image is adjusted to the target position in the physical position sequence.

[0010] In one embodiment, the 3D scene rendering method further includes:

[0011] Hidden components associated with each of the three-dimensional scenes are displayed in the three-dimensional scene;

[0012] In response to a selection operation for at least one of the dimensions in the hidden components, the selected dimensions are hidden in the browser page.

[0013] In one embodiment, the step of updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page based on the adjusted rendering parameters of the target shader in response to the adjustment operation includes:

[0014] In response to the adjustment operation of the rendering parameters of the target shader, the adjusted rendering parameters are sent as an event to the rendering pipeline corresponding to the 3D scene.

[0015] The rendering pipeline is invoked to update the rendering effect of the target dimension image in the 3D scene displayed on the browser page based on the rendering parameters after adjustment.

[0016] In one embodiment, after updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page, the method further includes:

[0017] In response to the saving operation of the rendering effect of the target dimension image in the three-dimensional scene image, a configuration file for the target dimension image is generated based on the rendering parameters after the adjustment is completed.

[0018] Store the configuration file.

[0019] In one embodiment, after updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page, the method further includes:

[0020] In response to the image fusion operation, the rendering effect of the updated target dimension image is fused with the other dimension images to obtain the fused 3D scene image, and the fused 3D scene image is displayed through the browser page.

[0021] In one embodiment, the dimensional view includes at least one of the following: background dimension, building dimension, ground dimension, 3D model dimension, panoramic dimension, user interface dimension, and focus dimension.

[0022] Secondly, this application also provides a real-time rendering device for a three-dimensional scene, comprising:

[0023] The target dimension determination module is used to respond to the selection operation of a target dimension image among multiple dimension images in a 3D scene image displayed on a browser page, and to display the target shader corresponding to the target dimension image on the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image;

[0024] The target dimension rendering module is used to respond to the adjustment operation of the rendering parameters of the target shader, and update the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page based on the rendering parameters after the adjustment is completed.

[0025] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0026] In response to the selection operation of a target dimension image among multiple dimension images in a 3D scene image displayed on a browser page, the target shader corresponding to the target dimension image is displayed on the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image;

[0027] In response to the adjustment operation of the rendering parameters of the target shader, the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page is updated based on the rendering parameters after the adjustment is completed.

[0028] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0029] In response to the selection operation of a target dimension image among multiple dimension images in a 3D scene image displayed on a browser page, the target shader corresponding to the target dimension image is displayed on the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image;

[0030] In response to the adjustment operation of the rendering parameters of the target shader, the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page is updated based on the rendering parameters after the adjustment is completed.

[0031] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0032] In response to the selection operation of a target dimension image among multiple dimension images in a 3D scene image displayed on a browser page, the target shader corresponding to the target dimension image is displayed on the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image;

[0033] In response to the adjustment operation of the rendering parameters of the target shader, the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page is updated based on the rendering parameters after the adjustment is completed.

[0034] The aforementioned 3D scene rendering method, apparatus, computer device, computer-readable storage medium, and computer program product, in response to the selection of a target dimension image among multiple dimension images in a 3D scene displayed on a browser page, displays the target shader corresponding to the target dimension image on the browser page. The dimension image includes at least one image layer, determined based on the scene types in the 3D scene image. The method intuitively displays the 3D scene image to be rendered on the browser page, and divides the multiple image layers in the 3D scene image into multiple dimension images based on the scene types, allowing flexible selection of the target dimension image to be rendered for appropriate rendering operations. Furthermore, in response to the adjustment of rendering parameters of the target shader, the rendering effect of the target dimension image in the 3D scene image displayed on the browser page is updated in real time based on the adjusted rendering parameters. After adjusting the rendering parameters of the target dimension image, the browser page can update and provide feedback in real time, allowing users to quickly see the adjustment effect. This avoids the cumbersome process of repeatedly importing files into professional software for rendering, thereby improving the rendering efficiency of 3D scenes. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is a flowchart illustrating a 3D scene rendering method in one embodiment;

[0037] Figure 2This is a flowchart illustrating the steps for adjusting the physical position of a target dimension image in one embodiment;

[0038] Figure 3 This is a flowchart illustrating the abstract management process of dimensional screens in one embodiment;

[0039] Figure 4 This is a flowchart illustrating a three-dimensional scene rendering method in another embodiment;

[0040] Figure 5 This is a structural block diagram of a real-time rendering device for a three-dimensional scene in one embodiment.

[0041] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0043] As described in the background section, the rendering methods for 3D scenes in related technologies suffer from low rendering efficiency. The inventors have discovered that this problem arises because real-time rendering of 3D images via a browser has become a crucial requirement in many application scenarios, such as urban planning, smart cities, emergency command, map navigation, and various immersive interactive systems. These systems often require directly loading and displaying large-scale geographic information data or 3D models in the browser for users to quickly browse, analyze, and operate. However, the creation and acquisition of 3D data are not always ideal. While data acquisition methods such as oblique photogrammetry or panoramic photography can efficiently acquire real-world scene information, objective factors such as weather, time, lighting, hardware resolution, and sensor sensitivity often lead to problems like underexposure, overexposure, grayish colors, and insufficient contrast in the model or panoramic image during the imaging and scanning process. Without any post-processing, the final 3D model's visual effect in the application scenario may fall far short of expectations, failing to meet users' demands for high-quality 3D rendering.

[0044] To improve the rendering effect of 3D models, the traditional approach is to first import the model into professional 3D editing or model retouching software for processing, adjusting parameters such as brightness, contrast, and color balance one by one until the desired effect is achieved. Then, the corrected 3D model is exported and re-imported into the business system so that the rendered effect can be displayed in the corresponding browser, allowing users to see if the corrected rendering has met their expectations. However, to achieve the user's desired effect, this correction process needs to be repeated. This process requires repeated file import and export operations, and after each new model is imported, environmental parameters such as position, size, and texture mapping usually need to be recalibrated in the business system. If the modeler and business personnel disagree on the adjustments, multiple rounds of communication or even rework are required, resulting in high costs and low efficiency.

[0045] For the above reasons, this application provides a 3D scene rendering method. This method imports the 3D scene to be rendered into a browser page for display. In response to the selection of multiple dimensions within the displayed 3D scene, a target dimension is determined, and the target shader corresponding to that dimension is displayed. In response to adjustments to the rendering parameters in the target shader, the target dimension is updated based on the adjusted rendering parameters. The updated target dimension rendering effect is then displayed within the 3D scene. This avoids the need for repeated adjustments when importing the 3D scene into professional software, enabling targeted, dimensional, real-time rendering via a browser, thus improving the rendering efficiency of 3D scenes.

[0046] In one embodiment, such as Figure 1 As shown, a three-dimensional scene rendering method is provided. This embodiment illustrates the application of this method to a terminal. It is understood that this method can also be applied to a server, and to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. In this embodiment, the method includes the following steps:

[0047] Step S102: In response to the selection operation of the target dimension image among multiple dimensions in the 3D scene image displayed on the browser page, the target shader corresponding to the target dimension image is displayed on the browser page.

[0048] A browser page can be content displayed through a web browser, which usually includes web page technology. Users can access the browser page by entering a URL or clicking a link to browse information, interact, and perform other operations.

[0049] Among them, three-dimensional scene graphics can refer to computer-generated three-dimensional visual effects, which are usually used in games, animations or virtual reality. Three-dimensional scenes contain depth information, realize stereoscopic effects, and allow users to experience the realism of space.

[0050] The selection operation can refer to the user selecting certain elements or objects displayed on the browser page by clicking or dragging. These elements can be text, graphics, or other interactive elements, in order to perform subsequent operations such as copying, deleting, or moving. In this embodiment, it can be a click operation on the element corresponding to the target dimension of the browser page.

[0051] The dimensional view includes at least one view layer, and is determined based on the scene types within the 3D scene view. The scene type can be a classification of the 3D scene view defined according to the actual 3D scene rendering requirements. For example, the scene type can include dynamic and static scene types; in this case, dynamic scene views are classified as dynamic scene type dimensional view, and static scene views are classified as static scene type dimensional view. Alternatively, if the scene type is a physical location type, the 3D scene view is divided into background dimensional view, building dimensional view, ground dimensional view, etc. If the background dimensional view includes a panoramic view, the number of view layers is one.

[0052] Shaders can be customizable shaders, which are programs used for graphics rendering. Shaders are responsible for determining how to render each pixel of the graphics in the target dimension of the image, and handling effects such as lighting, shadows, and textures. The main types of shaders include vertex shaders and fragment shaders.

[0053] Optionally, the terminal displays a list of multiple 3D scene images that can be rendered in real time through a browser page. In response to a selection operation on one of the 3D scene images in the list, the selected 3D scene image is displayed on the browser page. The browser page also displays multiple selectable dimensions of the 3D scene image, categorized by scene type, for adjusting rendering effects. Furthermore, in response to a selection operation on a target dimension image among the multiple dimensions of the 3D scene image displayed on the browser page, the terminal displays the target shader corresponding to the target dimension image on the browser page. It should be noted that the multiple dimensions of the 3D scene image on the browser page can be directly selected, or the browser page can have selection components corresponding to each dimension image, and a selection operation on these components can also determine the selected target dimension image.

[0054] Step S104: In response to the adjustment operation of the rendering parameters of the target shader, based on the rendering parameters after the adjustment is completed, update the rendering effect of the target dimension image in the 3D scene image displayed on the browser page.

[0055] Rendering parameters refer to various parameter settings used to control and adjust the rendering results during the 3D graphics rendering process. These parameters can affect the quality and realism of the image. The types of parameters can include lighting, materials, brightness, color balance, and resolution.

[0056] Among them, rendering effect refers to the visual representation of the final image or animation generated after the target dimension image is rendered. It describes the realism and artistic style of the relevant images of the target dimension image, and is usually reflected in aspects such as light and shadow, color, detail and special effects.

[0057] Optionally, the target shader displayed on the browser page by the terminal may include a curve of rendering parameters, with slider components or control point components on the curve, and the values ​​of the rendering parameters corresponding to the positions of the slider components or control point components on the curve. In response to adjustments made to the slider components or control point components of the target shader, the values ​​of the rendering parameters change accordingly, thereby determining the rendering parameters after adjustment. In another case, the target shader may also include input box components for rendering parameters. In response to parameter input operations in the input boxes corresponding to each rendering parameter, the adjusted rendering parameters are determined. Furthermore, based on the adjusted rendering parameters, the terminal updates the rendering effect of the target dimension image in the 3D scene displayed on the browser page. In addition, the rendering parameters adjusted by the target shader can be set according to the actual rendering needs of the technicians, including but not limited to shading rendering parameters and color balance rendering parameters.

[0058] In the aforementioned 3D scene rendering method, in response to the selection of a target dimension image among multiple dimensions in the 3D scene displayed on the browser page, the method displays the target shader corresponding to the target dimension image on the browser page. Each dimension image includes at least one image layer, and the dimension image is determined based on the scene types within the 3D scene. This method intuitively displays the 3D scene to be rendered on the browser page and divides the multiple image layers in the 3D scene into multiple dimension images based on the scene types, allowing for flexible selection of the target dimension image for appropriate rendering operations. Furthermore, in response to adjustments to the rendering parameters of the target shader, the method updates the rendering effect of the target dimension image in the 3D scene displayed on the browser page in real time based on the adjusted rendering parameters. The browser page provides real-time updates and feedback after adjusting the target dimension image's rendering parameters, allowing users to quickly see the effects of the adjustments. This avoids the cumbersome process of repeatedly importing files into professional software for rendering, thereby improving the rendering efficiency of the 3D scene.

[0059] In one exemplary embodiment, such as Figure 2 As shown, after step S102, in response to the selection operation of the target dimension image among multiple dimension images in the 3D scene image displayed on the browser page, the method further includes:

[0060] Step S202: Display the physical position order of each dimension of the 3D scene in the depth direction.

[0061] The dimensional view may include at least one of the following: background dimension (skybox), building dimension, ground dimension (earth and 3D tiles), 3D model dimension (custom 3D model), panoramic dimension (panoramic scene), user interface dimension (UI), and point of interest dimension (POI); wherein the user interface may include interactive space and / or only displayed controls.

[0062] It should be noted that, as Figure 3As shown, an abstract management flowchart for dimensional rendering is provided. The rendering process corresponding to each dimensional rendering is divided within the rendering pipeline of the 3D scene. The rendering processes of each dimensional rendering are independent and do not interfere with each other. Each dimensional rendering includes at least one Level of Detail (LOD) layer. For example, the LOD layers for architectural, ground, and 3D model dimensions include high-precision models, simplified meshes, and low-polygon versions. During subsequent rendering of this dimensional rendering, the rendering operations of each LOD layer work together to achieve the final rendering effect of this dimensional rendering. In terms of code logic, each dimensional rendering is described and managed by defining a corresponding class. For example, background rendering is abstractly managed by a separate class, SubRenderGraphName.background (defining the background dimension's rendering process as a sub-render graph named "background"). Furthermore, the dimensional renderings of each defined class are integrated into an array for management. The array is named as follows: Figure 3 The root node function of FrameGraph allows you to adjust the physical position order or rendering order of each dimension.

[0063] The depth direction can be the direction from the observer's viewpoint (e.g., camera position) towards objects in the scene. Specifically, it refers to the direction along the line of sight (or field of view) axis. This direction is usually perpendicular to the audiovisual plane in 3D space and is also a dimension that needs to be processed during the rendering process. The physical position order can be the order of the positions of multiple dimensions of the scene relative to the observer along the depth axis. This position order is determined by measuring the distance from the observer's (browser page's) viewpoint to each dimension of the scene along the depth direction. In one embodiment, the depth direction can also be the direction in the 3D scene where the ground dimension (such as the Earth or 3D tiles) faces away from the ground dimension.

[0064] Optionally, the terminal displays the physical position order of each dimension of the 3D scene in the depth direction through a browser page. For example, if the dimensional images include background dimension, building dimension, ground dimension, 3D model, panoramic dimension, user interface, and focus point, then in the case of an outdoor 3D scene, the images are arranged from near to far in the physical order of the depth direction, namely focus point, user interface, 3D model, building dimension, ground dimension, and background dimension. The terminal can arrange and display the elements corresponding to each dimension in the browser page in the order of near to far or far to near.

[0065] Step S204: In response to the adjustment operation of the physical position of the target dimension image, the physical position of the target dimension image is adjusted to the target position in the physical position sequence.

[0066] Among them, the adjustment operation can be an adjustment operation on the element or component corresponding to the target dimension screen, such as dragging, typing and other operations.

[0067] The target position can be the adjusted physical position in the depth direction of the three-dimensional scene image corresponding to the target dimension image.

[0068] Optionally, in response to a control operation on the physical position of the target dimension screen, the terminal adjusts the physical position of the target dimension screen to the target position in the physical position sequence corresponding to the control operation. For example, in response to a drag operation on the element corresponding to the target dimension screen in the element list of each dimension screen, after the movement of the element corresponding to the target dimension screen stops, the terminal determines the order of the element corresponding to the target dimension screen in the element list, which represents the physical position of the target dimension screen after adjustment.

[0069] Understandably, in some application scenarios, such as when technicians want to render the image of the background dimension, and the physical position of the background dimension is at the bottom, the physical position of the background dimension is adjusted to the top to make it easier to intuitively display the rendering effect of the background dimension.

[0070] In this embodiment, displaying the physical position order of each dimension of the image in the depth direction can help users intuitively understand the relationship between elements in three-dimensional space, thereby improving the efficiency of information transmission. Furthermore, the physical position order of each dimension of the image can be adjusted, which further improves the rendering efficiency.

[0071] In one exemplary embodiment, the 3D scene rendering method described above further includes:

[0072] Display hidden components associated with each dimension of the scene in the 3D scene; in response to a selection operation on at least one dimension of the hidden component, hide the selected dimension of the scene in the browser page.

[0073] The hidden component can be a control that allows users to hide or show a specific dimension of the scene in a 3D scene through operations such as clicking or checking.

[0074] Optionally, the terminal displays hidden components associated with each dimension of the scene in the 3D scene. As mentioned in the above embodiments, the terminal can arrange and display the elements corresponding to each dimension of the scene in the browser page in order from near to far or from far to near. The elements corresponding to each dimension of the scene may also include hidden components. In response to the selection operation of at least one dimension of the hidden components, the terminal hides the selected dimension of the scene in the 3D scene displayed in the browser page. It is understood that the number of selected dimension of the scene to be hidden is less than or equal to the total number of all dimension of the scene. In one embodiment, the technician only wants to focus on the rendering of the target dimension of the scene. Therefore, hiding the remaining dimension of the scene can not only improve the rendering effect but also reduce the resource utilization of the terminal. Accordingly, in one embodiment, the technician may also choose to hide all dimension of the scene, and can flexibly choose according to the needs of the technician.

[0075] In this embodiment, unnecessary dimensional images are hidden, reducing the amount of content displayed and lowering the rendering burden on the terminal, resulting in smoother visual performance. Especially in complex 3D scenes, hiding unnecessary dimensional images not only optimizes the user experience but also reduces the use of system resources, decreasing the burden on memory and processor, thereby further improving the rendering efficiency of 3D scene images.

[0076] In an exemplary embodiment, step S104, in response to a tuning operation on the rendering parameters of the target shader, updates the rendering effect of the target dimension image in the 3D scene displayed on the browser page based on the tuned rendering parameters, including:

[0077] In response to the adjustment of rendering parameters for the target shader, the adjusted rendering parameters are sent as events to the rendering pipeline corresponding to the 3D scene; the rendering pipeline is then invoked to update the rendering effect of the target dimension image in the 3D scene displayed on the browser page based on the adjusted rendering parameters.

[0078] Among them, event format can refer to a technical implementation method that transmits data or state changes through an event-driven mechanism.

[0079] The rendering pipeline refers to the complete processing flow of 3D graphics from data to final screen pixels, including a series of fixed or programmable processing stages. In browsers, it is typically implemented based on libraries such as WebGL (Web Graphics Library, an interface for rendering 2D and 3D graphics in the browser) or Three.js. Three.js is based on the JavaScript (a high-level programming language) library of WebGL.

[0080] Optionally, in response to the adjustment operation of the rendering parameters of the target shader, the terminal obtains the rendering parameters after adjustment, encapsulates the rendering parameters after adjustment into an event object in the form of an event, and sends it to the rendering pipeline corresponding to the 3D scene through the event system (such as the browser's event bus, the front-end framework's custom events, etc.). This calls the redrawing logic of the rendering pipeline to calculate the rendering effect of the target dimension based on the rendering parameters after adjustment, and updates the rendering effect of the target dimension in the 3D scene displayed on the browser page.

[0081] In this embodiment, the rendering parameters after adjustment are sent to the rendering pipeline of the 3D scene in the form of events to calculate the rendering effect of the target dimension scene, realizing lightweight data transmission. When the terminal re-enters the system to browse the 3D scene scene, there is no need to reload or recompile the entire 3D scene scene, thereby further improving the rendering efficiency of the 3D scene scene.

[0082] In an exemplary embodiment, after updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page in step S104, the method further includes:

[0083] In response to the saving operation of the rendering effect of the target dimension image in the 3D scene, a configuration file for the target dimension image is generated based on the rendering parameters after adjustment; the configuration file is then stored.

[0084] A configuration file is a file used to store application or system operating parameters, settings, and options. It is typically in text format, making it easy for users or the system to read and modify. Users can adjust program behavior by modifying configuration files without altering the source code, facilitating application customization and management.

[0085] Optionally, the 3D scene displayed on the browser page on the terminal also includes a component for saving files. In response to clicking the file-saving component, a corresponding save operation is performed. Responding to the save operation for the rendering effect of the target dimension image in the 3D scene, the terminal generates a configuration file for the target dimension image in text form from the adjusted rendering parameters. This configuration file is stored in a storage location such as the project root directory, a dedicated configuration directory, or a system directory corresponding to the 3D scene. When the terminal re-enters the browser page, it reads the stored configuration file and can then display the updated target dimension image in the 3D scene again. In one embodiment, the configuration file can also be stored on a cloud server, thereby reducing local memory usage. It is understood that if technicians have further rendering needs, the stored configuration file can still be modified through the system.

[0086] In this embodiment, the rendering parameters of the current 3D scene can be saved as a configuration file through the browser's save component. There is no need to manually record or repeatedly adjust them. After the terminal restarts or re-enters the browser, the configuration file can be automatically read to restore the state of the 3D scene, avoiding repeated operations and thus further improving the rendering efficiency of the 3D scene.

[0087] In an exemplary embodiment, after updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page in step S104, the method further includes:

[0088] In response to the image blending operation, the rendering effect of the updated target dimension image is blended with the other dimension images to obtain a blended 3D scene image, which is then displayed on the browser page.

[0089] Among them, fusion processing can refer to dynamically compositing the updated target dimension image in a 3D scene with other unmodified dimension images to ultimately generate a visually complete and consistent 3D scene image.

[0090] Optionally, in response to a screen blending operation (e.g., after a browser page displays the updated target dimension screen, a pop-up window appears asking whether screen blending should be performed; screen blending is determined by clicking or selecting this pop-up window), the terminal collects screen data from all dimensions, including the updated rendering result of the target dimension and the current state of other dimensions. Following a preset physical location sequence, a blending algorithm is invoked to blend the updated target dimension screen's rendering effect with the other dimensions' screens, resulting in a blended 3D scene. A graphics application programming interface (such as WebGL) is then called to render the blended 3D scene to the frame buffer and display it through the browser page.

[0091] In this embodiment, the blending algorithm is invoked in a preset physical position order to ensure that the overlay of images in each dimension (such as background layer, model layer, and effects layer) conforms to the real spatial relationship, avoiding layer misalignment or occlusion errors. The updated target dimension image is seamlessly integrated with other unchanged dimensions, maintaining the overall harmony of the scene and avoiding image fragmentation. By calling graphics application programming interfaces such as WebGL, parallel computing capabilities are directly utilized to quickly complete the blending algorithm (such as transparency blending and depth testing) and frame buffer rendering, ensuring smooth display of complex scenes.

[0092] In one exemplary embodiment, such as Figure 4 As shown, another method for rendering 3D scenes is provided, including:

[0093] Step 1: Divide the rendering process (Render Graph, representing the segments of the rendering operation). The 3D scene (3D scene view) is split into multiple "sub-graphs," which are multiple independent rendering stages or layers (Render Graphs). This allows you to apply adjustments to a specific sub-graph without affecting other sub-graphs. For example, if you only want to adjust the visual effects of the Earth and 3D buildings, you can apply filters only to the corresponding "sub-graph."

[0094] Step 2: Apply a dynamically modifiable filter and utilize the programming capabilities provided by WebGL (the browser's 3D rendering interface) to add a customizable shader (a program used to control rendering details) during rendering. This shader receives two core parameters: "shading curve" and "color balance".

[0095] The Brightness Curve specifies the adjustment range for each segment from dark to light using a curve. For example, if a user feels that the shadows are too dark, they can increase the value corresponding to the shadow area on the curve, thus making the shadow area brighter.

[0096] Color Balance uses simple numerical values ​​(R, G, B) to represent the amount of correction for red, green, or blue tones in the image, directly fine-tuning the overall color tone of the model.

[0097] Step 3: Real-time rendering updates. Whenever the user drags the slider, moves the control points on the shading curve, or modifies the R / G / B values ​​on the shader interface, the system immediately passes these new parameters to the shader (through "Uniform variables," a type of parameter that updates in real time during the rendering process), and then immediately redraws the image in the browser, allowing the user to instantly see the adjusted effect.

[0098] Step 4: Lightweight data transfer. The system sends the latest "shading curve" and "color balance" parameters (the rendering parameters after adjustment) to the rendering pipeline through an event mechanism. There is no need to reload or recompile the entire 3D model. This saves waiting time and eliminates the tedious process of modelers repeatedly manipulating files.

[0099] Step 5: The user clicks the button (Save Component) to directly save the final effect (rendering effect). When the user is satisfied with the adjusted visual effect, they can directly save the values ​​of these brightness curves and color balance in the browser, just like saving a simple configuration file (without needing to re-output a new 3D model). Subsequent access to the business system will allow the user to read the previously saved adjustment parameters and immediately restore the desired visual effect.

[0100] In this embodiment, the technical solution simplifies the post-processing workflow of the 3D model by directly adjusting the brightness curves and color balance on the browser side, reducing manpower and time costs. Traditional model retouching processes require repeated importing, exporting, and resetting of the model between professional model retouching software and the business system. If there are communication discrepancies between the model retoucher and business personnel, multiple reworks may occur, wasting significant time and effort. With this solution, users can directly adjust the model and panoramic image visually (e.g., by dragging curves or sliders) within the same browser environment and immediately see the effects. This significantly reduces reliance on external model retouching work and reduces the burden of cross-departmental communication and waiting, thereby greatly improving overall work efficiency. Regarding previewability, users see exactly what they get, making fine-tuning of highlights, shadows, or color deviations without estimation or waiting for lengthy import and rendering processes. Especially in projects involving large amounts of oblique photogrammetry data or panoramic images, this real-time adjustment directly in the rendering pipeline can simultaneously cover multiple scenes or large-scale geographical data, quickly unifying the visual style and avoiding problems such as localized model retouching and overall inconsistency that may occur with traditional methods. Even if modifications are needed later, only previously saved adjustment parameters need to be called and fine-tuned, significantly reducing repetitive business operation process nodes. Furthermore, since all adjustments are based on the Shader programmable pipeline, developers can flexibly extend other post-processing functions (such as sharpening, saturation adjustment, specific color gamut transformation, etc.) according to specific business needs, and integrate these functions with this technical solution into a unified browser-side visualization toolchain. In summary, the value of this invention is not only reflected in accelerating workflows and saving labor costs, but also in providing greater autonomy and flexibility for future 3D visualization and business scenario expansion.

[0101] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0102] Based on the same inventive concept, this application also provides a real-time rendering apparatus for a three-dimensional scene to implement the three-dimensional scene rendering method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more embodiments of the real-time rendering apparatus for three-dimensional scenes provided below can be found in the limitations of the three-dimensional scene rendering method described above, and will not be repeated here.

[0103] In one exemplary embodiment, such as Figure 5 As shown, a real-time rendering device 500 for a 3D scene is provided, including: a target dimension determination module 501 and a target dimension rendering module 502, wherein:

[0104] The target dimension determination module 501 is used to respond to the selection operation of the target dimension image among multiple dimension images in the 3D scene image displayed on the browser page, and to display the target shader corresponding to the target dimension image in the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image;

[0105] The target dimension rendering module 502 is used to respond to the adjustment operation of the rendering parameters of the target shader, and update the rendering effect of the target dimension in the 3D scene displayed on the browser page based on the adjusted rendering parameters.

[0106] Furthermore, in one embodiment, the target dimension determination module 501 is also used to display the physical position order of each dimension image in the depth direction in the three-dimensional scene image; in response to the adjustment operation of the physical position of the target dimension image, the physical position of the target dimension image is adjusted to the target position in the physical position order.

[0107] Furthermore, in one embodiment, the target dimension determination module 501 is also used to display hidden components associated with each dimension of the three-dimensional scene in the three-dimensional scene screen; in response to a selection operation for at least one dimension of the hidden components, the selected dimension of the hidden components is hidden in the browser page.

[0108] Furthermore, in one embodiment, the target dimension rendering module 502 is also used to respond to the adjustment operation of the rendering parameters of the target shader, send the adjusted rendering parameters to the rendering pipeline corresponding to the 3D scene in the form of an event; and call the rendering pipeline to update the rendering effect of the target dimension image in the 3D scene displayed on the browser page based on the adjusted rendering parameters.

[0109] Furthermore, in one embodiment, the target dimension rendering module 502 is also used to generate a configuration file for the target dimension image based on the rendering parameters after adjustment in response to the saving operation of the rendering effect of the target dimension image in the three-dimensional scene image; and store the configuration file.

[0110] Furthermore, in one embodiment, the target dimension rendering module 502 is also used to respond to the image fusion operation by fusing the rendering effect of the updated target dimension image with other dimension images to obtain a fused 3D scene image, and display the fused 3D scene image through a browser page.

[0111] Each module in the aforementioned real-time 3D scene rendering device 500 can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0112] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a three-dimensional scene rendering method. The display unit of the computer device is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0113] Those skilled in the art will understand that Figure 6The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0114] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0115] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0116] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0118] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0119] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0120] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A three-dimensional scene rendering method, characterized in that, The method includes: In response to the selection operation of a target dimension image among multiple dimensions in a 3D scene image displayed on a browser page, the target shader corresponding to the target dimension image is displayed on the browser page; the multiple dimensions include at least one image layer, and the multiple dimensions are determined based on each scene type in the 3D scene image; In response to the adjustment operation of the rendering parameters of the target shader, the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page is updated based on the rendering parameters after the adjustment is completed.

2. The method according to claim 1, characterized in that, Following the selection operation of a target dimension image among multiple dimensions in response to a 3D scene displayed on a browser page, the method further includes: The physical positional order of each dimension of the three-dimensional scene in the depth direction is displayed; In response to the adjustment operation on the physical position of the target dimension image, the physical position of the target dimension image is adjusted to the target position in the physical position sequence.

3. The method according to claim 1, characterized in that, The method further includes: Hidden components associated with each of the three-dimensional scenes are displayed in the three-dimensional scene; In response to a selection operation for at least one of the dimensions in the hidden components, the selected dimensions are hidden in the browser page.

4. The method according to claim 1, characterized in that, The step of responding to the adjustment operation of the rendering parameters of the target shader, and updating the rendering effect of the target dimension image in the 3D scene image displayed on the browser page based on the adjusted rendering parameters, includes: In response to the adjustment operation of the rendering parameters of the target shader, the adjusted rendering parameters are sent as an event to the rendering pipeline corresponding to the 3D scene. The rendering pipeline is invoked to update the rendering effect of the target dimension image in the 3D scene displayed on the browser page based on the rendering parameters after adjustment.

5. The method according to claim 1, characterized in that, After updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page, the method further includes: In response to the saving operation of the rendering effect of the target dimension image in the three-dimensional scene image, a configuration file for the target dimension image is generated based on the rendering parameters after the adjustment is completed. Store the configuration file.

6. The method according to claim 1, characterized in that, After updating the rendering effect of the target dimension image in the 3D scene displayed on the browser page, the method further includes: In response to the image fusion operation, the rendering effect of the updated target dimension image is fused with the other dimension images to obtain the fused 3D scene image, and the fused 3D scene image is displayed through the browser page.

7. The method according to any one of claims 1-6, characterized in that, The dimensional view includes at least one of the following: background dimension, building dimension, ground dimension, 3D model dimension, panoramic dimension, user interface dimension, and focus dimension.

8. A real-time rendering device for a three-dimensional scene, characterized in that, The device includes: The target dimension determination module is used to respond to the selection operation of a target dimension image among multiple dimension images in a 3D scene image displayed on a browser page, and to display the target shader corresponding to the target dimension image on the browser page; the dimension image includes at least one image layer, and the dimension image is determined based on each scene type in the 3D scene image; The target dimension rendering module is used to respond to the adjustment operation of the rendering parameters of the target shader, and update the rendering effect of the target dimension image in the three-dimensional scene image displayed on the browser page based on the rendering parameters after the adjustment is completed.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.