Three-dimensional rendering system, method, device, computer device and storage medium
By introducing a simple rendering microkernel and functional pipeline into the vehicle infotainment platform, the problem of poor 3D rendering effect on the vehicle infotainment system has been solved, enabling fast rendering and flexible development, and making it suitable for resource-constrained vehicle infotainment platforms.
Patent Information
- Application Number
- CN202311405584.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-10-26
AI Technical Summary
Under resource constraints, the 3D rendering system of the vehicle's infotainment platform has high requirements for rapid response and memory management. Furthermore, traditional 3D engine development is inflexible and cannot meet the needs of business stability and rapid iteration.
It adopts a simple rendering microkernel, which is configured as the underlying layer of the running system. It includes multiple configurable core units and functional pipelines, and combined with business data packages, it enables fast rendering and flexible development.
The development process for 3D rendering on the vehicle-mounted system has been optimized, balancing rendering performance with development flexibility, reducing iteration complexity, lowering development costs, and making it suitable for devices with poor processing performance.
Smart Images

Figure CN117372603B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of 3D rendering technology, specifically to 3D rendering systems, methods, apparatus, computer equipment, and storage media. Background Technology
[0002] In current automotive infotainment platform applications, an increasing number of business applications require 3D representation assistance. Currently, there are two main technical approaches to achieving 3D rendering: one uses the general Android in-vehicle system as the technical foundation, with related 3D display applications running in parallel on top of this foundation; the other uses a 3D desktop middleware layer on top of the foundation, with other business units running on the 3D desktop. Both technologies have their advantages. What they have in common is that both integrate third-party 3D engine cores for 3D development, and the development process involves developing integrable plugins for the 3D engine based on business needs, using an app (application) integration method.
[0003] However, for 3D rendering systems on in-vehicle infotainment platforms, on the one hand, the limited resources allocated to these platforms place high demands on the system's rapid response and memory management; on the other hand, the business stability requirements and rapid project iteration schedules for in-vehicle scene rendering necessitate that the 3D rendering system retain a certain degree of scalability to facilitate updates. However, the application of mainstream 3D engines in the market to in-vehicle systems is quite complex and inflexible in development. Summary of the Invention
[0004] In view of this, the present invention provides a three-dimensional rendering system, method, apparatus, computer equipment and storage medium to solve the problem of poor three-dimensional rendering effect on vehicle-mounted systems.
[0005] In a first aspect, the present invention provides a three-dimensional rendering system for use in an in-vehicle infotainment system, comprising: a rendering microcore; wherein the rendering microcore is configured to run the underlying layer of the system;
[0006] The rendering microcore includes multiple core units, and at least some of the core units are configurable;
[0007] The core unit is configured to implement settings based on a scalable business data package; the business data package includes business logic scripts and business resources.
[0008] Some of the core units in the rendering microcore are configured to form corresponding functional pipelines; different functional pipelines correspond to different functions.
[0009] In some alternative implementations, the 3D rendering system also includes: a script interpretation engine;
[0010] The script interpretation engine is configured to run in the interpretation layer and interpret the business logic script.
[0011] In some alternative implementations, the rendering microkernel includes a script linking layer unit; the script linking layer unit is one of the core units.
[0012] The script linking layer unit is configured to: define the interaction interface between the script interpretation engine and the rendering microkernel, and instantiate the script interpretation engine.
[0013] In some optional implementations, the rendering microkernel includes an information exchange unit; the information exchange unit is one of the core units.
[0014] The information exchange unit is configured to: establish an information interaction channel between the business logic layer and the integrator used to integrate the rendering microcore; the business logic layer is configured to acquire the business data packet and run it on the script interpretation engine.
[0015] In some optional implementations, the information exchange channel includes: a forward message queue and a reverse message queue;
[0016] The forward message queue is configured to send messages from the integrator to the business logic layer;
[0017] The reverse message queue is configured to send messages from the business logic layer to the integrator.
[0018] In some optional implementations, the rendering microkernel includes a lifecycle management unit; the lifecycle management unit is one of the core units.
[0019] The lifecycle management unit is configured to monitor the execution process of the rendering logic in each lifecycle.
[0020] The rendering logic operation process includes:
[0021] Prepare to process resources and determine the cached current frame rendering data;
[0022] Then the first and second branches are executed simultaneously;
[0023] After execution is complete, the frame buffer is cleared and the processing resources are reclaimed;
[0024] The first branch includes: allocating the current frame rendering data to the rendering thread for rendering;
[0025] The second branch includes:
[0026] Detect interactive events;
[0027] Based on the interactive events, the corresponding update logic is executed, and animation calculations and bounding box calculations are performed to achieve scene updates;
[0028] The next frame's rendering data is determined based on the updated scene.
[0029] In some optional implementations, the core unit includes a logic node and a state setting node;
[0030] At least some of the logic nodes and at least some of the state setting nodes of the core unit are configured to be connected in sequence to form a corresponding functional pipeline;
[0031] The status setting node is configured to depend on the service data packet to set the core unit; and different service data packets correspond to different node states of the status setting node.
[0032] In some alternative implementations, the rendering microkernel may also include a pre-built resource package required for rendering.
[0033] Secondly, the present invention provides a three-dimensional rendering method, comprising:
[0034] Integrate the three-dimensional rendering system described in the first aspect, and run the rendering microkernel of the three-dimensional rendering system at the system bottom layer;
[0035] The business data package corresponding to the business requirements is determined, and the business data package is submitted to the rendering micro-core for rendering.
[0036] In some alternative implementations, the method further includes:
[0037] Based on business expansion needs, the rendering workflow is iteratively updated according to the corresponding iteration levels, and tests are conducted according to the corresponding testing methods when testing is required.
[0038] In some optional implementations, the step of iteratively updating the rendering workflow according to the corresponding iteration level based on business expansion needs, and conducting tests according to the corresponding test methods when testing is required, includes:
[0039] If the business expansion requirement only includes adding new operable objects, the rendering workflow remains unchanged;
[0040] If the business expansion requirement includes updating the business logic script without updating the core unit, update the internal iteration process in the rendering workflow and perform internal functional testing.
[0041] When the business expansion requirements include updating business logic scripts and updating core units, update the internal iteration process in the rendering workflow and the R&D iteration process of the 3D rendering system, and conduct full system testing.
[0042] In some optional implementations, determining the service data packet corresponding to the service requirements includes:
[0043] Compare the version number of the local business logic script with the version number of the latest business logic script that matches the rendering microcore;
[0044] If the two are different, obtain the latest business logic script.
[0045] Thirdly, the present invention provides a three-dimensional rendering device for use in vehicle-mounted systems, comprising:
[0046] An integration module is used to integrate the three-dimensional rendering system described in the first aspect and to run the rendering microkernel of the three-dimensional rendering system at the system's underlying layer.
[0047] The rendering module is used to determine the business data package corresponding to the business requirements and submit the business data package to the rendering micro-core for rendering.
[0048] Fourthly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the three-dimensional rendering method of the second aspect above or any corresponding embodiment thereof.
[0049] Fifthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the three-dimensional rendering method of the second aspect or any corresponding embodiment described above.
[0050] The present invention provides a 3D rendering system, method, apparatus, computer equipment, and storage medium. The 3D rendering system comprises a rendering microcore with multiple core units, and based on some of these core units, forms corresponding functional pipelines. These functional pipelines are highly correlated with the functions required by the business logic. Therefore, the rendering microcore can replace the traditional engine core. Integrators only need to integrate the rendering microcore, eliminating the need for a large and complex engine core. This optimizes the workflow of 3D rendering development on the vehicle-mounted system and is suitable for vehicle-mounted system development scenarios. The rendering microcore is relatively simple and runs at the system's low level, achieving fast rendering without using excessive processing resources, thus balancing rendering performance and development flexibility. Integrators can expand the corresponding business data packages as needed to achieve the required 3D rendering effects.
[0051] The rendering logic process only includes critical rendering nodes, simplifying the traditional rendering process. It operates based on simplified lifecycle management, improving rendering efficiency while still achieving rendering, making it suitable for devices with lower processing power, such as in-vehicle systems. The core layer's rendering microkernel performs intensive calculations such as rendering data preparation, animation data calculation, bounding box calculation, and scene updates. The business logic layer handles scene state settings, element state settings, and custom lighting models. A link layer maintains a unified and stable interface between the core layer and the business logic layer, ensuring that the rendering microkernel and the business logic layer are separate and independent, facilitating separate iterations. The information exchange unit provides an interaction channel between the business logic layer and the integrator, facilitating communication between them.
[0052] Furthermore, this 3D rendering method selects an appropriate iteration level based on business expansion needs, which can reduce the number of deep iterations, greatly simplifying iteration complexity, reducing development costs, and shortening the iteration cycle, thus enabling rapid iteration. Moreover, the vehicle-side equipment does not require frequent OTA upgrades, ensuring normal user operation. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of the present invention, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0054] Figure 1 This is a schematic diagram of the architecture of a traditional commercial 3D rendering engine;
[0055] Figure 2 This is a schematic diagram of the architecture of a three-dimensional rendering system according to an embodiment of the present invention;
[0056] Figure 3 This is a schematic diagram of the structure of a three-dimensional rendering system according to an embodiment of the present invention;
[0057] Figure 4 This is a schematic diagram of the rendering logic operation process according to an embodiment of the present invention;
[0058] Figure 5 This is a schematic diagram of the rendering microkernel operation logic according to an embodiment of the present invention;
[0059] Figure 6 This is a detailed schematic diagram of an integrated three-dimensional rendering system according to an embodiment of the present invention;
[0060] Figure 7This is a flowchart illustrating a three-dimensional rendering method according to an embodiment of the present invention;
[0061] Figure 8 This is a schematic diagram of iterative global use cases according to an embodiment of the present invention;
[0062] Figure 9 This is a structural block diagram of a three-dimensional rendering apparatus according to an embodiment of the present invention;
[0063] Figure 10 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0065] Rendering is one of the final stages in the 3D production process. Through rendering, all information in the scene (objects, materials, lighting, cameras, etc.) can be combined to generate a single or a series of rendered images. Currently, when implementing 3D rendering in in-vehicle infotainment platforms, it is all done by integrating on the basis of a third-party 3D engine core. That is, the required functions are added on top of the engine core, and the final package is integrated into the system environment.
[0066] 3D engines can be categorized by platform into client-side 3D engines and web-based 3D engines. For example, Figure 1 This diagram illustrates the structure of a commercial 3D engine for a client application. (Example:) Figure 1 As shown, developers can create integrable function packages A, B, C, D, etc., as needed, and package these function packages on the basis of the third-party engine core. These packages can then be integrated into the system environment to achieve 3D rendering. The rendering library can be the rendering library included with OpenGL (Open Graphics Library), and the system environment can be a C++ environment, etc.
[0067] While commercial engines offer vast functionality, their development approach requires integrating a large and complex engine core into the application (APP). This necessitates high processing power to achieve 3D rendering, especially for real-time rendering scenarios. However, on in-vehicle infotainment systems, the limited processing power results in poor rendering quality for applications.
[0068] This embodiment provides a 3D rendering system that employs a simpler rendering microcore and forms corresponding functional pipelines according to functions. The rendering microcore is highly related to the functions, and the corresponding functions can be realized based on the functional pipelines. When developing applications, the integrator only needs to integrate the rendering microcore, without the need for a large and complex engine core. This can optimize the workflow of 3D rendering development on the vehicle-mounted system and is suitable for vehicle-mounted system development scenarios.
[0069] This embodiment provides a 3D rendering system that can be applied to in-vehicle infotainment systems to achieve 3D rendering on the in-vehicle infotainment system. Figure 2 This is a schematic diagram of a three-dimensional rendering system according to an embodiment of the present invention, such as... Figure 2 As shown, the 3D rendering system includes a rendering microcore 200. This rendering microcore comprises multiple core units 201, some of which are configured to form corresponding functional pipelines; different functional pipelines correspond to different functions.
[0070] In this embodiment, for limited application scenarios such as in-vehicle systems, instead of using a traditional engine core, multiple core units 201 are set up, and some of these core units 201 are used to form the functional pipeline required for the rendering process, thereby functionalizing the entire rendering process. Generally, the rendering process requires a rendering pipeline; that is, the functional pipeline in this rendering microcore 200 includes the rendering pipeline. Furthermore, the rendering microcore 200 may also include other functional pipelines such as scene management pipelines, which will not be detailed here. The rendering microcore 200 can include only the functional pipelines required for the application scenario, making the rendering microcore 200 smaller and easier to integrate. For example, the rendering microcore 200 can include the functional pipelines required for in-vehicle system rendering, eliminating the need for a large and complex traditional engine core.
[0071] Furthermore, at least some core units 201 within the rendering micro-core 200 are configurable. Specifically, these core units 201 are configured to be set according to an extensible business data package; that is, the core units 201 can be configured using this business data package. This business data package includes: business logic scripts with logical functions, and business resources that can provide various resources; for example, the business logic scripts may include some setting scripts, such as JSON files for setting scene states and custom lighting models; the business resources may be resources required for 3D rendering, such as art resources and character images, specifically determined based on business needs.
[0072] Business data packages can be pre-defined and stored; for example, they can be stored on a cloud platform for later use during rendering. Figure 2As shown, cloud platform 100 stores multiple business data packets; Figure 2 In this framework, the Code and JSON files represent business logic scripts, while the remaining images represent business resources. The cloud platform 100 is an online distribution platform capable of distributing business data packages. Furthermore, this business data package is scalable, meaning it can be updated or added according to business needs. For example, updated or added business data packages can be uploaded to the cloud platform 100.
[0073] During 3D rendering, the rendering microkernel 200's functional pipeline, combined with the business data packages provided by the cloud platform 100, can complete the corresponding functions and output the results required by the business, thus achieving rendering. For example... Figure 2 As shown, the rendering microkernel 200 includes three functional pipelines A, B, and C, each used to implement different functions. It can be understood that one core unit 201 can be used to form one functional pipeline, or multiple functional pipelines. Specifically, the two core units 201 in functional pipeline A can be configured using business data packets; that is, the configuration of the corresponding core units 201 can be completed using business data packets from the cloud platform 100. For example, core unit 201 provides data processing logic, and the data it processes (i.e., business data packets) can be provided by the cloud platform 100. The core unit 201 can provide open interfaces (e.g., scene management interface, event binding interface, etc.) to accept business data packets.
[0074] Furthermore, the rendering microkernel 200 is configured to run at the system's underlying layer, such as the native layer of the Android operating system. By running the rendering microkernel 200 at the system's underlying layer, rendering speed can be guaranteed. For example, an app integrator can integrate the rendering microkernel 200 and run it at the system's native layer, thus avoiding limitations imposed by virtual machines, browsers, or other core components, ensuring rendering speed. It is understood that this 3D rendering system can be applied to various operating systems, such as Android, HarmonyOS, and Linux. This embodiment does not limit the operating system on which this 3D rendering system is applied.
[0075] The 3D rendering system provided in this invention includes a rendering microcore comprising multiple core units, and a corresponding functional pipeline is formed based on some of these core units. This functional pipeline is highly correlated with the functions required by the business, thus allowing the rendering microcore to replace the traditional engine core. Integrators only need to integrate the rendering microcore, eliminating the need for a large and complex engine core. This optimizes the workflow of 3D rendering development on the vehicle-mounted system and is suitable for vehicle-mounted system development scenarios. The rendering microcore is relatively simple and runs at the system's underlying layer, enabling fast rendering without excessive processing resources, balancing rendering performance and development flexibility. Integrators can expand the corresponding business data packages as needed to achieve the required 3D rendering effects.
[0076] This embodiment provides a 3D rendering system that can be applied to in-vehicle infotainment systems to achieve 3D rendering on the in-vehicle infotainment system. Figure 3 This is a structural framework diagram of the 3D rendering system; the 3D rendering system includes a rendering microcore, and the rendering microcore includes multiple core units; such as Figure 3 As shown, this rendering microkernel may include: a basic data structure and computation unit, a camera unit, a lighting field unit, a 3D unit, a 2D unit, a shader unit, an interaction unit, a scene management unit, a lifecycle management unit, an information exchange unit, and a script linking layer unit. Among these, the script linking layer unit and... Figure 3 The interpreter shown can form a script logic execution unit capable of executing scripts.
[0077] This rendering microkernel requires an infrastructure to run on top of it; such as Figure 1 and Figure 2 As shown, similar to traditional rendering methods, this infrastructure includes the underlying rendering library and the system environment required for program execution. The rendering library is implemented by the operating system, and a suitable rendering library can be selected based on the operating system; for example, such as... Figure 3 As shown, most in-vehicle systems choose to use OpenGL, thus allowing the use of their built-in rendering libraries; alternatively, rendering libraries such as Vulkan can be selected depending on the system version; furthermore, the corresponding EGL can be chosen as the rendering library middleware, serving as the interface between the rendering library and the native layer. In addition, for broad compatibility, C++ can be chosen as the development language, and a C++ environment can be used as the runtime environment.
[0078] Furthermore, to facilitate rendering, the microkernel can directly use certain key resources for rendering, such as... Figure 3As shown, this rendering microkernel can include pre-built resource packages. Specifically, these pre-built resource packages can include pre-built lighting models and pre-built meshes. For example, the pre-built lighting models can include various lighting models such as PBR (Physically Based Rendering), skin, Phong, Lambert, cloth, hair, car paint, and nolight. The pre-built meshes can include various geometries such as planes, cubes, spheres, and cylinders. Furthermore, pre-built dialog bubble styles can also be included.
[0079] For ease of description, this embodiment divides the entire rendering architecture into layers, with the infrastructure located in the base layer and the rendering microkernel located in the core layer. The rendering microkernel in the core layer runs on top of the base layer, and as mentioned above, the rendering microkernel can specifically run in the system's native layer to fully improve operating efficiency.
[0080] In this embodiment, the core units within the microkernel are rendered, and some of these core units have dependencies on each other. For example... Figure 3 As shown, the core unit above depends on the core unit below, namely the camera unit, light field unit, 3D unit, 2D unit, shader unit, and interaction unit, which all depend on this basic data structure and computation unit; and the scene management unit depends on the camera unit, light field unit, etc., for scene management.
[0081] In this embodiment, the basic data structures and computation units are used to implement the basic data structures, basic computation libraries, and basic tool libraries required for rendering. The basic data structures may include vectors, matrices, geometric shapes, skinned geometry, textures, shader structures, etc.; the computation libraries may include vector operations, matrix operations, raycasting algorithms, etc.; and the basic tool libraries may include object pools, thread pools, string processing libraries, etc.
[0082] This camera unit is used to construct the camera required for rendering. Specifically, the scene has only one observation position, and the rendering viewport, i.e., the camera, is constructed at this position and in this direction. The rendering position, viewport orientation, viewport angle, clipping range, and empty screen filling target (e.g., color, image, sky sphere) can be defined.
[0083] This light field unit is used to construct the light sources required for rendering. It can create a main light source, secondary light sources, and an ambient base color. The main light source is a directional, non-attenuating light source, while the secondary light sources can be non-directional, positionally attenuating light sources or spherically harmonic light fields. The ambient base color is the background color of all 3D rendered objects. The lighting effect logic is the superposition of all lighting effects. In this embodiment, multiple secondary light sources can be constructed; for example, one main light source, two secondary light sources, and one ambient base color can be constructed, for a total of four light sources.
[0084] This 3D unit is used to implement 3D processing. Specifically, it can construct the polygons, UVs (texture map coordinates), textures, etc., required for rendering. Furthermore, this 3D unit is also used for animation processing and bounding box calculation. For example, this 3D unit can include two sub-units: an animation processing sub-unit and a bounding box unit.
[0085] The animation processing subunit is used to process the mapping of animation data to vertex transformations; for example, through matrix operations, skeletal transformations and deformation animations can be mapped to model vertices. The bounding box unit is used to calculate the bounding box of a 3D object, that is, to calculate the minimum three-dimensional rectangular box that can completely enclose the 3D object, which facilitates subsequent cooperation with the interaction unit to realize interactive functions.
[0086] In this embodiment, the three-dimensional unit can construct the entire scene using the computational results of two sub-units, calculate and structure the rendering data, and thus be able to call EGL in batches at the beginning of the next lifecycle node to transmit the rendering data to the rendering library for rendering.
[0087] This two-dimensional unit is used for two-dimensional operations. Specifically, it can construct rectangles, fill image pixels, etc., and in the final stage of rendering, it can be pixel-integrated with the rendering result depending on whether it is covered by the scene.
[0088] This shader unit is used to build shaders. It can be built based on business data packages and pre-built resource packages in the rendering microkernel. Specifically, the cloud platform can store shader configuration files, which are business logic scripts. These configuration files include shader properties and JSON files for vertex shaders, fragment shaders, etc. The shader configuration file can be inserted as a code block into a specified slot in the shader structure of the built-in lighting model to generate a shader. Configuring shaders using business data packages preserves the shader's extended functionality.
[0089] For example, you can build vertex shaders (VS), pixel shaders (PS), and postprocessing shaders. The vertex shader is mainly responsible for calculations such as the geometric relationships of vertices, while the pixel shader is mainly responsible for calculations such as fragment colors. Furthermore, when submitting rendering settings, you can specify rendering object controls, adjust 3D and 2D, and postprocess the rendering results based on the postprocessing shader.
[0090] This interaction unit is used to determine interaction events, such as screen interaction events triggered by a user tapping the screen while using the app. Based on these interaction events, the unit can process corresponding script event logic. For example, the interaction unit can construct a ray from the camera to the screen interaction point, check if the ray intersects with the bounding box of a 3D object, and if an intersection exists, determine the triggering 3D interaction event based on the event type of the interaction event and the identifier of the 3D object in the bounding box, and then process the corresponding script event logic.
[0091] This scene management unit is used to manage the constructed scene. Specifically, it organizes all rendered objects into a container—the scene—in the form of a node tree; and provides a search interface based on the scene tree. Within the scene, all indivisible structures that directly contribute to scene rendering are called nodes, including: lights, cameras, 3D nodes, 2D nodes, etc.
[0092] In addition, such as Figure 3 As shown, this rendering microkernel also includes core units that do not depend on other core units, including: a lifecycle management unit, an information exchange unit, and a script logic execution unit. The lifecycle management unit is a core unit configured to monitor the rendering logic execution process in each lifecycle. The information exchange unit and the script logic execution unit are both used for information transmission.
[0093] Specifically, in the 3D rendering process, animation calculations, bounding box calculations, 3D scene interaction event calculations, and scene updates are all performed cyclically and repeatedly between specific time segments for cyclical rendering. Each repeated segment can generally be defined as a lifecycle; for example, if each frame of an image is rendered, then one frame corresponds to one lifecycle. Furthermore, within a single lifecycle, a single supervisor is needed to control and monitor the rendering logic's operation, such as the execution order and priority of each logic component. This lifecycle management unit can act as this supervisor and can also be called a lifecycle manager.
[0094] Traditional 3D rendering involves numerous nodes (such as camera ingress nodes), leading to low rendering efficiency, especially in scenarios with limited processing power, such as automotive systems, resulting in poor rendering quality. In this embodiment, the rendering logic only protects critical nodes within a single lifecycle, simplifying the rendering process and improving efficiency. Figure 4 As shown, within a single lifecycle, the rendering logic operation process managed by the lifecycle management unit includes steps S401 to S403.
[0095] Step S401: Prepare to process resources and determine the cached current frame rendering data.
[0096] In this embodiment, initialization is performed at the beginning of the lifecycle to prepare the processing resources required for rendering. Furthermore, the rendering data to be processed in this lifecycle, i.e., the current frame rendering data, is determined; this current frame rendering data may have been generated in the previous lifecycle. This current frame rendering data can be stored in a cache, and can be read from this cache; for example, in the previous lifecycle, the generated rendering data can be cached in this cache to form the current frame rendering data.
[0097] Step S402, then the first branch and the second branch are executed synchronously.
[0098] In this embodiment, after determining the rendering data for the current frame, the entire processing is divided into two branches: the first branch and the second branch are executed simultaneously. The first branch is used to render the current frame rendering data, while the second branch is used to perform event detection to determine the rendering data for the next frame.
[0099] Specifically, such as Figure 4 As shown, the first branch includes: step S4021, allocating the current frame rendering data to the rendering thread for rendering.
[0100] One approach is to utilize the rendering process to submit the current frame's rendering data to the GPU (Graphics Processing Unit) for rendering.
[0101] The second branch includes steps S4022 to S4024.
[0102] Step S4022: Detect interactive events.
[0103] Event detection can be performed based on the aforementioned interactive units, thereby detecting interactive events such as user screen clicks.
[0104] Step S4023: Execute the corresponding update logic based on the interaction event, and perform animation calculation and bounding box calculation to realize scene update.
[0105] Different interaction events can correspond to different update logic. For example, if the interaction event involves the user controlling a 3D object to move two units to the left, then the left-movement logic needs to be executed on the 3D object. If the interaction event involves the user controlling a 3D object to jump, then the logic needs to be executed to move the 3D object up and then down. Furthermore, animation calculations, bounding box calculations, and scene updates are also required. For example, animation calculations and bounding box calculations can be implemented using the animation processing sub-unit and bounding box unit of the 3D element.
[0106] Step S4024: Determine the rendering data for the next frame based on the updated scene.
[0107] After completing animation calculations, bounding box calculations, and scene updates, the corresponding rendering data can be generated, which becomes the rendering data for the next frame. For example, this next frame rendering data can be stored in a cache for rendering in the next lifecycle.
[0108] Step S403: After execution is complete, clear the frame buffer and reclaim processing resources.
[0109] In this embodiment, after the first and second branches are completed, the corresponding frame buffer can be cleared, that is, the current frame rendering data in the buffer area can be cleared; and the previously allocated processing resources can be reclaimed so that the processing resources can be reused in subsequent rendering.
[0110] In this embodiment, the rendering logic operation process managed by the lifecycle management unit only includes key rendering nodes, which simplifies the traditional rendering process. While still achieving rendering, it can also improve rendering efficiency, making it suitable for devices with poor processing performance, such as vehicle-mounted systems.
[0111] In this embodiment, since the business logic script needs to be interpreted, a script interpretation engine is also provided for the 3D rendering system; this script interpretation engine is configured to run in the interpretation layer to interpret the business logic script. For example... Figure 3 As shown, the script interpretation runs in the interpretation layer, which sits above the core layer. Furthermore, the layer that acquires business data packets is called the business logic layer, which runs on top of the script interpretation engine; the business logic scripts in the business logic layer can run as scripts within the script interpretation engine. For example, this business logic layer can transmit data with a cloud platform to obtain business data packets from the cloud platform.
[0112] In this embodiment, the script linking layer unit is configured to: define the interaction interface between the script interpretation engine and the rendering microkernel, and instantiate the script interpretation engine. Specifically, this script linking layer unit can serve as a link layer between the interpretation layer (or business logic layer) and the core layer, defining the interaction interface between the two layers to achieve interaction. The script linking layer unit can define script loading points and implement a script loader and a script executor; the script linking layer unit can load scripts from specified script locations and hand them over to the script interpretation engine for execution, thereby instantiating the script interpretation engine. For example, Figure 3As shown, the script linking layer unit and the interpreter provided by the system environment can interpret the script, and the two can constitute a script logic execution unit. For example, a script downloaded from a cloud platform (e.g., a business logic script) can be sent to the script linking layer unit, which creates a binding and injects it into the interpreter to interpret the script; the interpreter can be an open-source interpreter, which will not be described in detail here.
[0113] As described above, the script linking layer unit enables communication between the business logic layer and the core layer, serving as an information exchange channel between them. Events within the rendering microkernel are only sent back to the business logic layer via the script interpretation engine. However, after the integrator integrates the rendering microkernel, the integrator also needs to communicate with the business logic layer. Therefore, this embodiment also includes an information exchange unit.
[0114] Specifically, the information exchange unit is configured to establish an information interaction channel between the business logic layer and the integrator used to integrate the rendering microkernel. Specifically, the information exchange unit may include an initialization interface for the rendering microkernel and an information interaction channel between the integrator and the business logic layer. The initialization interface is a necessary interface for the integrator to launch the rendering microkernel and can specify startup parameters; the information interaction channel enables communication between the integrator and the business logic layer, such as transmitting messages from the business logic layer and events from the script interpretation engine.
[0115] In some optional implementations, the information exchange channel includes a forward message queue and a reverse message queue. The forward message queue is configured to send messages from the integrator to the business logic layer; the reverse message queue is configured to send messages from the business logic layer to the integrator.
[0116] For example, see Figure 5 As shown, after an integrator such as an app integrates this 3D rendering system, the information exchange unit can build an information interaction channel between the integrator and the business logic layer, acting as a relay. For example... Figure 5 As shown, the information exchange unit can construct forward message queues and reverse message queues. Messages from the integrator can be pushed into the forward message queue, through which messages are sent to the business logic layer. Messages from the business logic layer can be pushed into the reverse message queue, through which messages are sent to the integrator. For example, when a control command is received from the integrator, it can be relayed to the business logic layer via the rendering microcore relay, and the rendering core logic, operation scenarios, and event mounting can be invoked via scripts. When a business logic layer event is triggered, it can send the event to the rendering microcore, which will then forward it to the integrator. Specifically, after detecting a time within the lifecycle, the information exchange unit can batch submit messages from the forward message queue to the business logic layer and messages from the reverse message queue to the integrator.
[0117] In some optional implementations, the core unit may include logical points (LPs) and state setting nodes. At least some logical points and at least some state setting nodes of some core units are configured to be connected in series sequentially to form corresponding functional pipelines. The state setting node is configured to depend on service data packets to configure the core unit; and different service data packets correspond to different node states of the state setting node. The logical point is used to implement logical operations, such as addition, subtraction, multiplication, division, AND, OR, and NOT operations.
[0118] In this embodiment, the corresponding functional pipeline can be constructed based on the logical nodes and state setting nodes in the core unit. Specifically, see [link to documentation]. Figure 6 As shown, by utilizing the core units in the rendering microkernel, functional pipelines such as the rendering pipeline, scene management pipeline, and element component management pipeline can be formed, with each functional pipeline implementing its own function; among them, element components can represent the attributes of an entity, such as the position and orientation of the camera. Figure 6 The diamond shape in the diagram represents a status setting node. This node relies on business data packets from the cloud platform, can concatenate these packets, and implement corresponding settings based on them, thus realizing the functional pipeline. If the business data packet sent to a status setting node of a functional pipeline changes, that node will exhibit a different state, and correspondingly, the functional pipeline will output different processing results.
[0119] Figure 6 In this context, the link layer can be implemented using the aforementioned script link layer unit. The business logic layer can modify the node state of the state setting node through the stable interface provided by this link layer, thereby changing the results of the functional pipeline and controlling the processing results of the functional pipeline. Figure 6 Taking the rendering pipeline in the cloud as an example, the business data packets that the cloud platform can send can specifically be shader configuration files; if the post-processing shader ( Figure 6 In this context, Postprocessing (referring to the post-processing shader) is configured for normal effects, so the rendering pipeline can eventually output a normal rendered image; if the post-processing shader is configured for fisheye effects, the rendering pipeline will eventually output a fisheye image.
[0120] The 3D rendering system provided in this embodiment simplifies the traditional rendering process by including only key rendering nodes in its rendering logic operation. It operates based on simplified lifecycle management, improving rendering efficiency while still achieving rendering, making it suitable for devices with lower processing power, such as in-vehicle systems. The core layer's rendering microkernel performs intensive calculations such as rendering data preparation, animation data calculation, bounding box calculation, and scene updates. The business logic layer handles scene state settings, element state settings, and custom lighting models. A link layer maintains a unified and stable interface between the core layer and the business logic layer, ensuring that the rendering microkernel and the business logic layer are separate and independent, facilitating separate iterations. An information exchange unit provides an interaction channel between the business logic layer and the integrator, facilitating communication between the two.
[0121] This embodiment provides a 3D rendering method that can be used on the vehicle's infotainment system to achieve 3D rendering even when the vehicle's infotainment system has limited processing performance. Figure 7 This is a flowchart of a three-dimensional rendering method according to an embodiment of the present invention, such as... Figure 7 As shown, the process includes the following steps.
[0122] Step S701: Integrate the 3D rendering system and run the rendering microkernel of the 3D rendering system at the system's underlying layer.
[0123] When developing an app with 3D rendering capabilities, it is necessary to integrate a corresponding rendering engine core. In this embodiment, the 3D rendering system provided in the above embodiment is integrated, that is, a rendering micro-core that is highly related to the function is integrated, and the rendering micro-core runs at the system bottom layer (such as the Native layer) so that 3D rendering can be performed efficiently.
[0124] Specifically, the app developer integrates the 3D rendering system into their app. The developer provides the system environment required for the rendering microkernel to run, allowing them to launch the microkernel and begin rendering operations.
[0125] Step S702: Determine the business data package corresponding to the business requirements and submit the business data package to the rendering microkernel for rendering.
[0126] In this embodiment, during rendering, corresponding business data packages can be determined based on business requirements, such as scene states and required lighting models; for example, these business data packages can be obtained from a cloud platform. Furthermore, these business data packages are submitted to the rendering microcore using the cloud platform, enabling the core units within the rendering microcore to adaptively configure themselves based on the corresponding business data packages, allowing each functional pipeline to output the required rendering results according to business needs.
[0127] In some optional implementations, step S702, "determining the service data packet corresponding to the service requirements," may specifically include steps A1 to A2.
[0128] Step A1: Compare the version number of the local business logic script with the version number of the latest business logic script that matches the rendering microkernel.
[0129] Step A2: If the two are different, obtain the latest business logic script.
[0130] In this embodiment, by matching the versions of the business logic script and the rendering micro-core, the latest business logic script can be determined, enabling the updating of the business logic script and maintaining the timeliness of the local business logic script.
[0131] Specifically, the cloud platform can manage the business data packets, which can be represented by a unique ID to achieve management. In this embodiment, the cloud platform stores the business logic scripts and can provide version matching functionality between the rendering microkernel and the business logic scripts; for example, it can perform matching services between the business logic scripts and the rendering microkernel by using a two-way version matching method based on the version number of the business logic script and the version number of the rendering microkernel; and it can provide a service to distribute the business logic scripts when updates are needed.
[0132] For example, the integrator can choose an appropriate time to query the cloud platform for the version number of the latest business logic script that matches the local rendering micro-core version number. The integrator compares the local business logic script version with the latest business logic script version. If they are different, an update can be performed, i.e., the latest business logic script can be obtained from the cloud platform. Once the update is complete, the terminal can launch the rendering micro-core and start rendering services.
[0133] The cloud platform can be updated using hot updates. Specifically, hot updates can be performed on configurable processes (e.g., setting state settings nodes) and logical update processes within the functional pipeline, balancing app performance and development flexibility. In this embodiment, a toLua hot update scheme can be adopted. The Lua interpreter is developed in C, offering excellent compatibility, a small size, and high operational efficiency. Furthermore, Lua, as a scripting language, has a wide application base in industries such as gaming, with numerous mature case studies, ensuring development security and stability.
[0134] In this embodiment, the cloud platform also includes business resources, which are reusable 3D resources such as art resources and character resources. These business resources can be generated based on standard workflows. Specifically, the standard workflow can be a standard art workflow to meet most effects. This standard workflow can specifically be a standard Surface material workflow, a standard PBR workflow, etc.; it mainly allows for pre-created lighting models such as PBR, Blin, Lambert, and Nolight, and the generation of three special materials based on key requirements: skin, car paint, and cloth. Within the constraints of the above art workflow and lighting models, all art work and previews can be completed within the art tools and directly exported. Traditional workflows process and generate the final effect in the 3D engine editor. In this embodiment, the focus of art work is shifted to 3D art production tools, based on which corresponding art resources and other business resources are generated. The cloud platform enables the addition, updating, and distribution of these business resources.
[0135] For example, the selected art workflow can correspond to the pre-defined lighting model in the rendering microcore. Specifically, this art workflow can be PBR, PBR+Lut, Phoneg, Lambert, NoLight, etc., where the PBR Mat is consistent with the MAYA PBS material, the Phong Mat is consistent with the MAYA Phone material, the Lambert Mat is consistent with the MAYA Lambert material, and the NoLight Mat is consistent with the MAYA Surface material. In this way, it is possible to directly export from art tools and render in the engine core while maintaining consistency between the two.
[0136] Among these, business resources such as art resources can use a unified industry-standard format. Specifically, GLTF (Graphic Library Transmission Format) can be used as a unified business resource format to enable the exchange and transmission of business resources, and it has high compatibility, can be applied to more scenarios and products, and maintains the reusability of business resources in other application scenarios.
[0137] Furthermore, since the rendering microkernel integrated in this embodiment is built on the principles of minimization and high performance, it operates based on a compact functional pipeline and simplified lifecycle management. Inevitably, there will be situations where the system functions are insufficient and cannot fully meet the needs of the product. This embodiment can update the business data package through the cloud platform to expand and supplement the business logic; for example, different business needs can be met according to different vehicle models.
[0138] The 3D rendering method provided in this embodiment does not require the integrator to integrate a traditional complete engine core, nor does it require the independent development of the required function packages. It can directly integrate a rendering micro-core with functional pipelines. When the developed APP runs on devices with poor performance, such as in-vehicle systems, it can also achieve fast rendering.
[0139] In some alternative implementations, the method further includes step B1.
[0140] Step B1: Based on business expansion needs, iterate and update the rendering workflow according to the corresponding iteration levels, and conduct tests according to the corresponding testing methods when testing is required.
[0141] In this embodiment, the 3D rendering system is divided into a core layer and a business logic layer. Since the core units of the core layer can be updated by updating the business data packets of the business logic layer without updating the basic computational logic, thus meeting business expansion needs, the development iteration process can be divided into multiple iteration levels. For example, different iteration levels can be established based on whether the rendering microcore needs to be iterated. Iterating and updating the rendering workflow according to different iteration levels, and conducting adaptive testing, can shorten the iteration cycle and achieve rapid iteration.
[0142] Optionally, in this embodiment, see Figure 8 As shown, through one or more iterations of research and development, a stable version of the 3D rendering system can be generated for integration by integrators. This 3D rendering system can be based on a general and stable C++ architecture, integrating a rendering microkernel and a script interpretation engine, and can also include pre-built resource packages. For details, please refer to the description of the 3D rendering system in the above embodiments. Once a stable version of the 3D rendering system exists, the APP can integrate it and run the corresponding rendering microkernel when rendering is required.
[0143] The cloud platform stores corresponding business data packages, specifically business logic scripts and business resources. These business data packages can be generated using a production tool and saved to the cloud platform in a common format. For example, the production tool could be a specialized art workflow or other art tool that generates GLTF format business data packages, thus enabling cloud migration. Business resources can be directly migrated to the cloud. For business logic scripts, resource and script configuration can be performed using a general text editor, and the finalized business logic script can then be migrated to the cloud, achieving script configuration migration. When the integrator runs the rendering microkernel, it can set up corresponding functional pipelines based on the business data packages from the cloud platform and interpret the business logic scripts using a script interpretation engine to ultimately achieve rendering.
[0144] The above process is the initial iteration process. Figure 8The dashed box in the middle represents the process of the initial iteration.
[0145] After the initial iteration, if there is a need for business expansion, business iteration can be carried out. In this embodiment, the iteration level is divided into three levels, and the appropriate iteration level is selected according to different business expansion needs to simplify the iteration complexity.
[0146] Specifically, step B1 above, "based on business expansion needs, iteratively update the rendering workflow according to the corresponding iteration level, and conduct testing according to the corresponding testing method when testing is required," may include the following steps B11 to B13.
[0147] Step B11: If the business expansion requirements only include adding new operable objects, keep the rendering workflow unchanged.
[0148] In this embodiment, if the business expansion requirement only includes adding operable objects used in the rendering process, since operable objects are a type of business resource, meaning only business resources are updated, then during business iteration, it is only necessary to follow... Figure 8 The process shown in ① can be iterated. In this case, it is only necessary to upload the updated operable objects to the cloud. When running the rendering microkernel, the new operable objects can be used directly, and the overall rendering workflow does not need to change. That is, this type of iteration does not need to enter the internal iterative development process; and since the rendering workflow remains unchanged, no development testing is required.
[0149] Step B12: If the business expansion requirements include updating the business logic scripts without updating the core units, update the internal iteration process in the rendering workflow and perform internal functional testing.
[0150] In this embodiment, if the business expansion requirement includes updating the business logic script but does not require updating the core unit, that is, if the business logic script to be migrated to the cloud needs to be updated and the script reconfigured for cloud migration, then it can be done according to... Figure 8 The process shown in step ② is iterated. For example, new operational logic can be added based on business needs, such as nodding, adding click points, adding collision objects, etc. At this time, the corresponding business logic script needs to be modified, which involves the development of script update logic. After obtaining the business logic script from the cloud platform, the script interpretation engine will also be updated. That is, this involves the internal iteration process in the APP rendering workflow. Therefore, it is necessary to update the internal iteration process and perform corresponding internal functional tests to verify whether the business logic script is appropriate.
[0151] You can choose to add new operable objects or not, depending on the actual situation.
[0152] Generally, business expansion needs fall into this category. In such cases, the iteration cycle is normal, allowing focus on internal testing and enabling rapid iteration.
[0153] Step B13: When business expansion needs include updating business logic scripts and updating core units, update the internal iteration process in the rendering workflow and the R&D iteration process of the 3D rendering system, and conduct full system testing.
[0154] In this embodiment, if the business expansion requirements include updating not only the business logic scripts but also the core units, i.e., updating the rendering microcore, for example, adding basic computational logic to the rendering microcore, such as long-press dragging or swiping, this type of iteration requires simultaneous internal and development iterations, i.e., R&D iterations. This involves re-integrating the rendering microcore and conducting joint debugging, requiring deep iterations, complex iterations, long joint debugging times, and full system testing. Both the integrator and the developer need to conduct testing.
[0155] In this scenario, although the iterative process is complex, the frequency of core unit updates after generating a stable 3D rendering system is very low, typically only once every few months. Therefore, the number of iterations is small, and the iteration cycle is long, which can significantly reduce the number of integration attempts and debugging time. Furthermore, for vehicle-side scenarios, OTA (Over-The-Air) upgrades are required, leading to lengthy upgrade times. This low-update-frequency iterative approach in this embodiment also avoids frequent OTA upgrades, reducing the likelihood of users waiting for vehicle-side OTA updates, making it suitable for vehicle-side scenarios.
[0156] The 3D rendering method provided in this embodiment selects an appropriate iteration level based on business expansion needs, which can reduce the number of deep iterations, greatly simplify iteration complexity, reduce development costs, shorten iteration cycles, and achieve rapid iteration. Furthermore, the vehicle-side equipment does not require frequent OTA upgrades, ensuring normal user operation.
[0157] This embodiment also provides a 3D rendering apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0158] This embodiment provides a 3D rendering device for use in vehicle infotainment systems, such as... Figure 9 As shown, it includes:
[0159] The integration module 901 is used to integrate the three-dimensional rendering system described in any of the above embodiments and to run the rendering micro-core of the three-dimensional rendering system at the system bottom layer.
[0160] The rendering module 902 is used to determine the business data packet corresponding to the business requirements and submit the business data packet to the rendering micro-core for rendering.
[0161] In some alternative embodiments, the device further includes:
[0162] The iteration module is used to iterate and update the rendering workflow according to the corresponding iteration levels based on business expansion needs, and to conduct tests according to the corresponding testing methods when testing is required.
[0163] In some optional implementations, the iteration module iteratively updates the rendering workflow according to the corresponding iteration level based on business expansion needs, and performs tests according to the corresponding test methods when testing is required, including:
[0164] If the business expansion requirement only includes adding new operable objects, the rendering workflow remains unchanged;
[0165] If the business expansion requirement includes updating the business logic script without updating the core unit, update the internal iteration process in the rendering workflow and perform internal functional testing.
[0166] When the business expansion requirements include updating business logic scripts and updating core units, update the internal iteration process in the rendering workflow and the R&D iteration process of the 3D rendering system, and conduct full system testing.
[0167] In some optional implementations, the rendering module 902 determines the service data packet corresponding to the service requirements, including:
[0168] Compare the version number of the local business logic script with the version number of the latest business logic script that matches the rendering microcore;
[0169] If the two are different, obtain the latest business logic script.
[0170] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0171] In this embodiment, the 3D rendering device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0172] This invention also provides a computer device having the above-described features. Figure 9 The 3D rendering device shown.
[0173] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 10 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 10 Take a processor 10 as an example.
[0174] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0175] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0176] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0177] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0178] The computer device also includes an input device 30 and an output device 40. The processor 10, memory 20, input device 30, and output device 40 can be connected via a bus or other means. Figure 10 Taking the example of a connection between China and Israel via a bus.
[0179] Input device 30 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 40 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.
[0180] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0181] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A three-dimensional rendering system, characterized in that, Applied to in-vehicle infotainment systems, it includes: a rendering microcore; the rendering microcore is configured to run the underlying system. The rendering microcore includes multiple core units for providing different processing logics, and at least some of the core units are configurable; The core unit is configured to implement settings based on a scalable business data package; the business data package includes business logic scripts and business resources. Some of the core units in the rendering microcore are configured to form corresponding functional pipelines; different functional pipelines correspond to different functions.
2. The three-dimensional rendering system according to claim 1, characterized in that, Also includes: Script interpretation engine; The script interpretation engine is configured to run in the interpretation layer and interpret the business logic script.
3. The three-dimensional rendering system according to claim 2, characterized in that, The rendering microcore includes a script linking layer unit; the script linking layer unit is one of the core units. The script linking layer unit is configured to: define the interaction interface between the script interpretation engine and the rendering microkernel, and instantiate the script interpretation engine.
4. The three-dimensional rendering system according to claim 2 or 3, characterized in that, The rendering microcore includes an information exchange unit; the information exchange unit is one of the core units. The information exchange unit is configured to: establish an information interaction channel between the business logic layer and the integrator used to integrate the rendering microcore; the business logic layer is configured to acquire the business data packet and run it on the script interpretation engine.
5. The three-dimensional rendering system according to claim 4, characterized in that, The information exchange channels include: a forward message queue and a reverse message queue; The forward message queue is configured to send messages from the integrator to the business logic layer; The reverse message queue is configured to send messages from the business logic layer to the integrator.
6. The three-dimensional rendering system according to claim 1, characterized in that, The rendering microcore includes a lifecycle management unit; the lifecycle management unit is one of the core units. The lifecycle management unit is configured to monitor the execution process of the rendering logic in each lifecycle. The rendering logic operation process includes: Prepare to process resources and determine the cached current frame rendering data; Then the first and second branches are executed simultaneously; After execution is complete, the frame buffer is cleared and the processing resources are reclaimed; The first branch includes: allocating the current frame rendering data to the rendering thread for rendering; The second branch includes: Detect interactive events; Based on the interactive events, the corresponding update logic is executed, and animation calculations and bounding box calculations are performed to achieve scene updates; The next frame's rendering data is determined based on the updated scene.
7. The three-dimensional rendering system according to claim 1, characterized in that, The core unit includes a logic node and a status setting node; At least some of the logic nodes and at least some of the state setting nodes of the core unit are configured to be connected in sequence to form a corresponding functional pipeline; The status setting node is configured to depend on the service data packet to set the core unit; and different service data packets correspond to different node states of the status setting node.
8. The three-dimensional rendering system according to claim 1, characterized in that, The rendering microkernel also includes a pre-built resource package required for rendering.
9. A three-dimensional rendering method, characterized in that, include: The system integrates the three-dimensional rendering system according to any one of claims 1 to 8, and runs the rendering microkernel of the three-dimensional rendering system at the system's underlying layer; The business data package corresponding to the business requirements is determined, and the business data package is submitted to the rendering micro-core for rendering.
10. The method according to claim 9, characterized in that, Also includes: Based on business expansion needs, the rendering workflow is iteratively updated according to the corresponding iteration levels, and tests are conducted according to the corresponding testing methods when testing is required.
11. The method according to claim 10, characterized in that, The process involves iteratively updating the rendering workflow according to the corresponding iteration levels based on business expansion needs, and conducting tests according to the corresponding testing methods when testing is required, including: If the business expansion requirement only includes adding new operable objects, the rendering workflow remains unchanged; If the business expansion requirement includes updating the business logic script without updating the core unit, update the internal iteration process in the rendering workflow and perform internal functional testing. When the business expansion requirements include updating business logic scripts and updating core units, update the internal iteration process in the rendering workflow and the R&D iteration process of the 3D rendering system, and conduct full system testing.
12. The method according to any one of claims 9 to 11, characterized in that, The determination of the business data packet corresponding to the business requirements includes: Compare the version number of the local business logic script with the version number of the latest business logic script that matches the rendering microcore; If the two are different, obtain the latest business logic script.
13. A three-dimensional rendering device, characterized in that, The device, applied to in-vehicle infotainment systems, includes: An integration module is used to integrate the three-dimensional rendering system according to any one of claims 1 to 8, and to run the rendering microkernel of the three-dimensional rendering system at the system's underlying layer; The rendering module is used to determine the business data package corresponding to the business requirements and submit the business data package to the rendering micro-core for rendering.
14. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the three-dimensional rendering method according to any one of claims 9 to 12.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the three-dimensional rendering method according to any one of claims 9 to 12.
Citation Information
Patent Citations
Three-dimensional rendering presentation method and device
CN110796722A
Graph rendering method and device and computer storage medium
CN113888684A
Rendering method, engine, electronic equipment and storage medium
CN115393505A
