Vehicle machine background switching display method and system, electronic device and medium
By employing layered processing of a 3D rendering engine and dual-camera technology in the vehicle infotainment system, combined with layer gradient transitions, the problems of poor visual continuity and abrupt scene transitions in the switching display of in-vehicle terminal applications in the vehicle infotainment system have been solved, achieving a smooth transition effect of "one shot to the end".
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- DONGFENG MOTOR GRP
- Filing Date
- 2026-02-10
- Publication Date
- 2026-06-30
AI Technical Summary
In existing in-vehicle infotainment systems, there are issues with abrupt scene transitions and poor visual continuity when switching between in-vehicle terminal applications or vehicle model function modules. In particular, when resource loading timing is not properly arranged, screen stuttering and visual gaps are likely to occur.
Employing scene layering processing, camera track control, and layer gradient transition technology using a 3D rendering engine, the system separates the car model layer from the background layer and assigns the car model the highest display priority. Combined with synchronized movement of dual cameras and gradient transition layers, it achieves a seamless "one-shot" transition of the car system background.
It achieves a smooth transition of the vehicle's background scene, improves visual continuity and fluency, avoids screen jumps and stutters during scene switching, and ensures that the car model is always clearly visible during the transition.
Smart Images

Figure CN122308996A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, system, electronic device, and medium for switching vehicle background displays. Background Technology
[0002] In current in-vehicle infotainment systems, the switching of display or vehicle model functions between in-vehicle terminals suffers from abrupt scene transitions and poor visual continuity. Summary of the Invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art, and proposes a method, system, electronic device and medium for switching vehicle background display.
[0004] In a first aspect, embodiments of the present invention provide a method for switching the background display of a vehicle infotainment system, including:
[0005] Acquire pre-made scene resource data for the starting scene and the target scene;
[0006] The pre-made scene resource data is processed into scene layers based on element attributes to obtain a car model layer, a starting scene background layer, and a target scene background layer, and the car model layer is set as the highest display priority.
[0007] Configure a first camera to render the car model layer, and configure a second camera to render both the car model layer and the initial scene background layer simultaneously.
[0008] Create a transition layer and perform a gradient transition based on the transition layer;
[0009] When the first camera stops moving, the rendering configuration of the first camera is switched to simultaneously render the car model layer and the target scene background layer and output the rendering result.
[0010] In some embodiments, acquiring the pre-fabricated scene resource data of the starting scene and the target scene includes:
[0011] Start the rendering engine and initialize the rendering environment;
[0012] Identify the starting and target scenarios of the transition link;
[0013] Acquire the pre-made scene resource data of the starting scene and the target scene; wherein, the pre-made scene resource data includes model files, texture maps, animation data and lighting preset parameters.
[0014] In some embodiments, configuring a first camera to render the vehicle model layer and configuring a second camera to simultaneously render the vehicle model layer and the initial scene background layer includes:
[0015] Control the first camera to move along a pre-made track or a smooth transition track;
[0016] While controlling the movement of the first camera, a second camera is created;
[0017] Set the parameters of the second camera to be the same as those of the first camera;
[0018] Configure the first camera to render the car model layer, and configure the second camera to render both the car model layer and the initial scene background layer simultaneously.
[0019] In some embodiments, controlling the first camera to move along a pre-fabricated track or a smooth transition track includes:
[0020] When switching scenes, the system calls pre-made tracks based on the preset commonly used scene switching track library.
[0021] When switching scenes to custom or non-standard paths, a dynamic generation mode is used to generate smooth transition tracks.
[0022] Control the first camera to move along the pre-made track or smooth transition track.
[0023] In some embodiments, generating a smooth transition track using a dynamic generation mode includes:
[0024] Obtain the current actual position of the first camera and the endpoint position of the target scene;
[0025] Based on the current actual position and the target scene endpoint position, a smooth transition track is generated according to a preset interpolation algorithm.
[0026] In some embodiments, creating a transition layer and performing a gradient transition based on the transition layer includes:
[0027] Create a transition layer, and use the transition layer to carry the rendering content of the second camera;
[0028] The car model layer rendered by the first camera is set to the highest display priority;
[0029] The transparency of the transition layer is linked to the transition process of the orbital motion of the first camera;
[0030] The transparency of the transition layer is controlled to gradually decrease as the trajectory of the first camera moves.
[0031] In some embodiments, the method further includes:
[0032] After the vehicle infotainment system background switching display is completed, delete the second camera and the transition layer;
[0033] The first camera is controlled to render the car model layer and the target scene background layer to obtain a composite image;
[0034] The composite image is output to the vehicle's display screen via a hardware acceleration channel;
[0035] Reset the rendering state to normal mode.
[0036] Secondly, embodiments of the present invention provide a vehicle infotainment system for switching display backgrounds, comprising:
[0037] The resource acquisition module is used to acquire pre-made scene resource data for the starting scene and the target scene;
[0038] The scene layering module is used to perform scene layering processing on the pre-made scene resource data based on element attributes to obtain the car model layer, the starting scene background layer and the target scene background layer, and to set the car model layer as the highest display priority.
[0039] The rendering allocation module is used to configure the first camera to render the car model layer and to configure the second camera to render both the car model layer and the initial scene background layer simultaneously.
[0040] The layer transition module is used to create transition layers and perform gradient transitions based on these transition layers.
[0041] The rendering switching module is used to switch the rendering configuration of the first camera to simultaneously render the car model layer and the target scene background layer and output the rendering result when the first camera stops moving.
[0042] Thirdly, embodiments of the present invention provide an electronic device, including:
[0043] One or more processors;
[0044] Memory, used to store one or more programs;
[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above.
[0046] Fourthly, embodiments of the present invention provide a computer-readable medium on which a computer program is stored, the computer program being executed by a processor to implement the steps of any of the methods described above.
[0047] The in-vehicle background switching display method provided by the present invention includes: acquiring pre-made scene resource data of a starting scene and a target scene; performing scene layering processing on the pre-made scene resource data based on element attributes to obtain a vehicle model layer, a starting scene background layer, and a target scene background layer, and setting the vehicle model layer as the highest display priority; configuring a first camera to render the vehicle model layer, and configuring a second camera to simultaneously render the vehicle model layer and the starting scene background layer; creating a transition layer, and performing a gradient transition based on the transition layer; when the first camera stops moving, switching the rendering configuration of the first camera to simultaneously render the vehicle model layer and the target scene background layer and outputting the rendering result. This invention separates the car model layer from the initial scene background layer and the target scene background layer, and assigns the car model layer the highest display priority to ensure that the car model is continuously displayed during the transition, thereby improving the visual continuity perception. By using the synchronous movement of dual cameras and differentiated rendering in conjunction with the gradient of the transition layer, the initial scene background naturally fades away with the transition process. When the first camera stops moving, the rendering configuration of the first camera is switched to render both the car model layer and the target scene background layer simultaneously, so that the overall picture is smooth without jumps or breaks, achieving a smooth transition effect of "one shot to the end". Attached Figure Description
[0048] Figure 1 This is a flowchart illustrating a method for switching the background display of an in-vehicle infotainment system according to an embodiment of the present invention.
[0049] Figure 2 This is a schematic diagram of the software flow in the vehicle system according to an embodiment of the present invention;
[0050] Figure 3 This is a schematic diagram of a vehicle model layer involved in 3D scene layering processing in an embodiment of the present invention;
[0051] Figure 4 This is a schematic diagram of the starting scene background layer involved in 3D scene layering processing in an embodiment of the present invention;
[0052] Figure 5 This is a schematic diagram of the target scene background layer involved in 3D scene layering processing in an embodiment of the present invention;
[0053] Figure 6 This is a schematic diagram of a transition layer that implements a gradient transition in an embodiment of the present invention;
[0054] Figure 7 This is a schematic diagram illustrating the gradual decrease in transparency of a layer in an embodiment of the present invention.
[0055] Figure 8 This is a schematic diagram illustrating the completion of a gradient transition in a layer according to an embodiment of the present invention;
[0056] Figure 9A structural block diagram of a vehicle background switching display system provided in an embodiment of the present invention;
[0057] Figure 10 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0058] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0059] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.
[0060] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0061] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.
[0062] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.
[0063] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual.
[0064] In a related technology, a method for switching functional modules of a car model involves first modifying the scene parameters to the parameters after the scene switch, and then combining scene overlay and scene hiding to enable seamless transitions between different scenes, completing a one-shot transition without loading all scene resources, thus reducing system performance consumption.
[0065] However, this solution, which overlays the first scene onto the second scene and then hides the first, lacks a layer gradient transition mechanism. It fails to dynamically adjust parameters such as layer transparency and spatial coordinate mapping during the transition, easily leading to visual discontinuities and abrupt scene changes during the transition. This makes it difficult to achieve a truly smooth "one-shot" effect, resulting in insufficient smoothness in scene transitions. Furthermore, this solution loads the second scene resources only after hiding the first scene. When the second scene resources are large, incomplete resource readiness can cause screen stuttering or blanking, disrupting the smoothness of the transition. This is because the lack of a pre-loading and scene transition synchronization mechanism prevents smooth resource integration during the transition, indicating an unreasonable timing of resource loading.
[0066] In another related technology, there is an application switching display method, which involves a display method for switching applications on an in-vehicle terminal. By responding to the application switching command, a full-screen floating window (with a display level higher than the application) is launched. The last frame rendering data of the current second application is first displayed in the floating window, followed by the target transition animation. After the target first application is launched, its first frame rendering data is displayed, thereby achieving a one-shot switching of in-vehicle applications and improving the smoothness of the switching.
[0067] However, the transition animations in this solution are independent abstract animations, not bound to the 3D spatial logic of the application scene (such as the position of the car model and the depth of the background). Due to the lack of a correlation mechanism with the scene's layered parameters, the spatial continuity during transitions is insufficient, far inferior to the natural connection effect achieved by 3D rendering solutions through camera trajectory movement and layer gradients. The transition animations lack correlation with the scene, easily creating visual disjointedness. The full-screen floating window is positioned above all applications, and during transitions, it completely obscures key information at the bottom layer, such as the status bar. Because it does not adopt a layered rendering strategy, it cannot prioritize the display of core content like layered solutions, resulting in the floating window's layered design potentially obscuring key information. The transition animation duration is fixed. If it does not match the startup time of the first application, such as a slow startup, screen freezes easily. Because it does not dynamically adjust according to the resource loading progress, while layer gradient solutions can flexibly adapt and avoid stuttering, the synchronization between the animation duration and resource loading is difficult to dynamically adapt.
[0068] To address at least one of the technical problems existing in the aforementioned related technologies, the present invention provides a method for switching the background display of a vehicle infotainment system. Figure 1 This is a flowchart illustrating a method for switching the background display of a vehicle infotainment system, as provided in an embodiment of the present invention.
[0069] As one embodiment of the present invention, such as Figure 1 As shown, the in-vehicle infotainment system background switching display method includes:
[0070] Step S1: Obtain pre-made scene resource data for the starting scene and the target scene;
[0071] Step S2: Perform scene layering processing on the pre-made scene resource data based on element attributes to obtain the car model layer, the starting scene background layer, and the target scene background layer, and set the car model layer as the highest display priority;
[0072] Step S3: Configure the first camera to render the car model layer, and configure the second camera to render both the car model layer and the initial scene background layer simultaneously;
[0073] Step S4: Create a transition layer and perform a gradient transition based on the transition layer;
[0074] Step S5: When the first camera stops moving, switch the rendering configuration of the first camera to render the car model layer and the target scene background layer simultaneously and output the rendering result.
[0075] It should be noted that the execution subject in this embodiment can be an electronic device, which can be a computer device with data processing function, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment, the execution subject is a computer device as an example for explanation.
[0076] Specifically, this embodiment uses the in-vehicle background scene based on the Android system as an example. Based on 3D real-time rendering technology, scene layering technology, and camera track control technology, by using layered rendering and layer gradient transition technology in the 3D rendering engine, a seamless "one-shot" transition effect for the in-vehicle background scene is achieved, solving problems such as abrupt scene switching and poor visual continuity in the in-vehicle system.
[0077] For example, the vehicle background switching display method in this embodiment uses scene layering processing of the 3D rendering engine, camera track motion control, layered display of vehicle model and background, and layer gradient transition technology to meet the user's needs for spatial continuity and naturalness, continuous visibility of core information, and smooth transition without lag when switching vehicle backgrounds. It solves the problems of no linkage between transition animation and the real-time posture of the vehicle model and the spatial distribution of background objects in the 3D scene, abrupt jumps in the position of the vehicle model and the background perspective when the animation starts and ends, lack of spatial continuity, and disjointed transition effects. It also solves the problems of no layered transition when switching scenes, direct replacement of the overall picture, synchronous abrupt change in the display state of the vehicle model and the background, resulting in visual impact and failure to achieve a smooth "one-shot" feel, and lack of layered design in the transition. Finally, it solves the problems of fixed transition duration, slow loading of new scene causing the picture to stay on the transition frame, and fast loading causing forced switching before the animation is completed, disrupting the switching rhythm and causing the transition duration to be out of sync with the loading.
[0078] In some embodiments, acquiring pre-fabricated scene resource data of the starting scene and the target scene includes: starting the rendering engine and initializing the rendering environment; identifying the starting scene and the target scene of the transition link; and acquiring pre-fabricated scene resource data of the starting scene and the target scene; wherein the pre-fabricated scene resource data includes model files, texture maps, animation data, and preset lighting and shadow parameters.
[0079] Specifically, such as Figure 2 As shown, the 3D rendering service is started. In the vehicle infotainment system, the 3D rendering service is usually a standalone software application or a software module integrated into other software applications. In this embodiment, the rendering engine needs to be started first to initialize the rendering environment, including setting the resolution, frame rate, and other configurations.
[0080] For example, in a vehicle infotainment system, the 3D graphics function can run as a background service program responsible for handling all 3D graphics requests, or it can be a library (SDK or dynamic link library) directly embedded into the main program such as a desktop application, navigation application, or vehicle settings application, existing as a functional component within these applications. Here, the rendering engine can include running instances of graphics engines such as OpenGL ES, Vulkan, or Unity / Unreal. After the engine starts, it establishes drawing rules and benchmarks, such as setting resolution, frame rate, color depth, shadow quality, and anti-aliasing on / off, among other graphics parameters.
[0081] Specifically, such as Figure 2 As shown, load all pre-made scene resources. Identify the starting scene and target scene involved in the transition link, such as switching from the desktop scene to the vehicle center scene, and batch load the complete resource packages of the two types of scenes (target scene and starting scene), including model files (such as detailed parts of the car model, scene terrain, building components), texture maps (such as car paint texture, road surface material, skybox), animation data (such as dynamic effects of the car model, interactive animation of scene elements), and preset lighting and shadow parameters, etc.
[0082] For example, this embodiment employs an intelligent resource scheduling strategy. Based on the user's operational intent, such as clicking a switch button, it determines the current location (starting scene, e.g., desktop) and the destination (target scene, e.g., vehicle center). To address the issue of unreasonable resource loading timing, the required resource packages are loaded in batches before the transition begins, allowing them to be read into memory (video memory) all at once. By preparing all materials in advance, when the camera begins to move for a "one-shot" transition, the scene does not need to stop waiting to load files, thus achieving a truly smooth transition. Here, the pre-made scene resource data includes model files, texture maps, animation data, and lighting preset parameters. Among them, model files define the shape and structure of objects, such as the detailed parts of a car model, the undulations of the terrain, and the geometric shape of buildings; texture maps define the details and texture of the object's surface, such as the reflection of car paint, the roughness of the road surface, and the background image of the skybox; animation data defines the dynamic behavior of objects, such as the rotation of the car model's wheels, the dynamic effect of opening and closing car doors, and the leaves swaying in the wind in the scene; lighting preset parameters define the calculation rules for lighting and shadows, such as the position of the sun, the intensity of light, and the softness or hardness of shadows.
[0083] In some embodiments, the pre-made scene resource data is processed by scene layering based on element attributes to obtain a car model layer, a starting scene background layer and a target scene background layer, and the car model layer is set as the highest display priority.
[0084] Specifically, such as Figure 2 As shown, the 3D scene is layered. The layering logic in this embodiment is as follows: the car model layer is independently separated from the background layer (including the starting and target scene backgrounds), and the car model layer is given the highest display priority. This is the foundation for ensuring the car model remains consistently visible during transitions. For the starting and target scenes involved in the transition, they are divided into independent layers based on element attributes: the car model (including interior and exterior detail models) is extracted separately as a car model layer, given the highest display priority, ensuring the car model is always the visual focus (e.g., ...). Figure 3 As shown); environmental elements such as roads, sky, and buildings are integrated into the starting scene background layer and the target scene background layer respectively, which facilitates subsequent individual control of rendering logic (such as...). Figure 4 and Figure 5 (As shown).
[0085] Understandably, scene transitions in related technologies often employ a complete replacement approach, where the old scene disappears entirely and the new scene appears entirely. However, this embodiment achieves seamless transitions and spatial coherence by independently controlling different parts of the scene through layering. For example, the background can gradually fade out while the car model remains stationary or moves continuously. This embodiment establishes three independent rendering objects: a car model layer, a starting scene background layer, and a target scene background layer.
[0086] For example, this embodiment uses element attributes for layering, decomposing the complex 3D scene into two main logical layers: a vehicle model layer and a background layer. The vehicle model layer (i.e., the foreground / core layer) includes all the detailed components of the vehicle model. This layer is extracted separately and is no longer part of the background environment. It is given the highest display priority; in the rendering pipeline, regardless of changes to other layers, the vehicle model layer is always drawn on top and will not be obscured by the background. The background layer (environment layer) includes all environmental elements except the vehicle model, such as roads, sky, and buildings. This embodiment integrates the starting scene and the target scene into independent layers, resulting in two independent entities: a starting scene background layer and a target scene background layer.
[0087] In this embodiment, by assigning the car model layer the highest display priority, the car model remains clearly visible even during complex rendering processes involving scene transitions, layer overlays, and transparency blending. It will not be accidentally obscured or disappear due to errors in the background transition logic, ensuring the car model remains the visual focus. By separating the car model from the background, subsequent steps (such as dual-camera rendering and transparency gradients) can execute different instructions for different layers, facilitating independent control of the rendering logic. This embodiment, through scene layering, independently divides and binds the car model layer and background layer to spatial coordinates. Combined with the smooth movement of the camera along the track, this ensures the car model remains the visual focus during transitions, avoiding abrupt positional jumps and ensuring consistent spatial logic.
[0088] In some embodiments, configuring a first camera to render the vehicle model layer and configuring a second camera to simultaneously render the vehicle model layer and the initial scene background layer includes: controlling the first camera to move along a pre-made track or a smooth transition track; creating a second camera while controlling the movement of the first camera; setting the parameters of the second camera to be consistent with the parameters of the first camera; configuring the first camera to render the vehicle model layer and configuring the second camera to simultaneously render the vehicle model layer and the initial scene background layer.
[0089] In some embodiments, controlling the first camera to move along a pre-made track or a smooth transition track includes: when switching scenes is a basic scene switch, calling a pre-made track based on a preset common scene switching track library; when switching scenes is a custom or non-standard path, generating a smooth transition track using a dynamic generation mode; and controlling the first camera to move along the pre-made track or the smooth transition track.
[0090] In some embodiments, a smooth transition track is generated using a dynamic generation mode, including: obtaining the current actual position of the first camera and the endpoint position of the target scene; and generating a smooth transition track based on the current actual position and the endpoint position of the target scene according to a preset interpolation algorithm.
[0091] Specifically, such as Figure 2 As shown, the camera moves along the track. A library of commonly used scene switching tracks is pre-set (e.g., a standard arc track for switching from a navigation scene to a vehicle center scene). Pre-made tracks are directly called for high-frequency switching needs, improving the efficiency of basic scene transitions. At the same time, a dynamic generation mode is used. When the scene switching is a custom or non-standard path, a smooth transition track is generated in real time based on the camera's current actual position and the target scene's endpoint position, using an interpolation algorithm (e.g., Bézier curves) to ensure adaptability for special scene switching.
[0092] For example, compared to a single camera movement method, this embodiment intelligently employs different strategies to generate camera tracks based on the actual usage scenario, balancing efficiency and flexibility. For standardized, high-frequency scenarios, a pre-built track mode is used, pre-designing and storing a library of commonly used scene switching tracks, including optimized standard arc tracks that can be directly called upon, resulting in fast response and low resource consumption, thereby improving the efficiency of basic scene transitions. For personalized, special scenarios, a dynamic generation mode is used, generating smooth transition tracks based on real-time interpolation algorithms (such as Bézier curves). The combination of these two approaches ensures that the camera can find an optimal, smooth motion path for any scene switching requirement, laying the foundation for seamless visual transitions.
[0093] In this embodiment, a continuous path is established in 3D space by calling a pre-made track or dynamically generating a track. The camera no longer teleports from point A to point B, but "flies" along this track. Combined with scene layering, the background smoothly changes and the car model is continuously displayed as the camera moves on the track, thus visually eliminating the sense of disjointed scene transitions and achieving a true "one-shot" effect.
[0094] Specifically, such as Figure 2 As shown, the car model and background are displayed in layers. This embodiment employs a dual-camera mechanism: by creating two cameras with synchronized parameters but differentiated rendering content (camera 1 renders only the car model, and camera 2 renders the entire content of the initial scene), an independently controllable visual carrier is provided for subsequent layer transitions. Simultaneously with starting the movement of the camera (camera 1, the first camera), a new camera (camera 2, the second camera) is created. This camera (camera 2) maintains real-time consistency with the core parameters of the original main camera (camera 1) in the scene, such as its world coordinate position, world coordinate rotation, and field of view. The rendering layers of the two cameras are configured differently: camera 1 is only responsible for rendering the car model layer separated in the above 3D scene layering process; camera 2 is responsible for simultaneously rendering the car model layer and the background layer of the initial scene (i.e., rendering the entire content of the initial scene).
[0095] For example, this embodiment employs a dual-camera collaborative mechanism, assigning two independent cameras to two different visual tasks: Camera 1 (foreground photographer) is configured to render only the car model, ignoring all backgrounds to ensure the car model image is clean, pure, and unaffected by background interference; Camera 2 (panoramic photographer) simultaneously renders both the car model layer and the initial scene background layer to provide a complete snapshot of the "old scene" that is about to fade out. Although the content rendered by Camera 1 and Camera 2 differs, their perspectives are the same. When the entire shot begins to move in a single take, the two cameras move synchronously and along the same trajectory, their relative positions and orientations remaining unchanged.
[0096] It should be noted that this embodiment physically separates the car model, an element that needs to remain continuous, from the background, an element that needs to change, by creating two cameras with synchronized perspectives but different rendered content, and generates two independent rendering results. This provides the necessary and perfect technical prerequisite for the compositing operation that allows the car model to always cover the background while the background gradually becomes transparent.
[0097] In some embodiments, creating a transition layer and performing a gradient transition based on the transition layer includes: creating a transition layer that carries the rendering content of the second camera; controlling the vehicle model layer rendered by the first camera to have the highest display priority; binding the transparency of the transition layer to the transition process of the track motion of the first camera; and controlling the transparency of the transition layer to gradually decrease as the transition process of the track motion of the first camera progresses.
[0098] In some embodiments, when the first camera stops moving, the rendering configuration of the first camera is switched to simultaneously render the vehicle model layer and the target scene background layer and output the rendering result.
[0099] Specifically, the camera can be instructed to continue rendering on the car model layer without hiding or fading out. The background layer can be instructed to perform a gradual change in transparency (from the initial scene background to the target scene background), or a smooth movement in spatial position. In this embodiment, the transition is implemented by introducing an independent transition layer to carry the content of camera 2, combined with a design that dynamically changes transparency as the transition progresses, and the switching logic of camera 1 rendering the target scene when the transition is complete, thus achieving a smooth "one-shot" transition effect.
[0100] For example, such as Figure 2 As shown, the layers achieve a gradient transition:
[0101] a. Create a new layer (transition layer) using a Texture as its container. This layer (transition layer) is independent of the previous car model layer and background layer, and is specifically designed to carry the complete rendering content of the new camera (camera 2) in the above-mentioned layered display of the car model and background (i.e., the car model + background of the initial scene), such as... Figure 6 As shown.
[0102] b. Maintain the highest display priority for the car model layer rendered by camera 1, ensuring it always covers the new layer (transition layer); bind the opacity of the new layer (transition layer) to the transition process of the camera track movement, gradually reducing the opacity as the transition progresses (camera 1 moves towards the target position), such as... Figure 7 As shown.
[0103] c. When the transition is complete (camera 1 stops moving), the opacity of the new layer (transition layer) drops to exactly 0 (the content rendered by camera 2 completely disappears). At this moment, immediately switch the rendering configuration of camera 1, changing it from rendering only the car model layer to rendering both the car model layer and the target scene background layer simultaneously. This ultimately achieves a "one-shot" transition from the starting scene to the target scene, with the car model displayed continuously without any gaps. Figure 8 As shown.
[0104] It should be noted that this embodiment employs a 3D scene layering process, independently separating and binding the car model layer and background layer to spatial coordinates. Combined with the smooth camera movement along the track in the camera movement step, this ensures the car model remains visually focused throughout the transition, avoiding abrupt positional jumps and ensuring spatial logical continuity. This solves the problem of disconnect between transition animations and 3D scene spatial logic. In the layered display of the car model and background, the dual cameras move synchronously and render differently. This, combined with the gradual transparency change of the new layer in the gradient transition step, allows the initial scene background to naturally fade away with the transition. Simultaneously, the layer allows camera 1 to switch and render the target scene background in the gradient transition step, resulting in a smooth transition without jumps or breaks, achieving a seamless "one-shot" transition. The 3D scene layering process assigns the highest priority to the car model layer. In the layered display of the car model and background step, camera 1 continuously renders the car model layer, ensuring key elements remain visible and allowing the car model to be continuously displayed throughout the transition, avoiding the fragmentation of core elements and improving the user's visual perception of continuity.
[0105] In some embodiments, the method further includes: after the vehicle background switching display is completed, deleting the second camera and the transition layer; controlling the first camera to render the vehicle model layer and the target scene background layer to obtain a composite image; outputting the composite image to the vehicle display screen through a hardware acceleration channel; and resetting the rendering state to normal mode.
[0106] Specifically, such as Figure 2 As shown, the rendering results are output as follows: After the transition is completed, the newly created camera 2 and the transition layer (Texture carrier) are destroyed to release resources; the original main camera (camera 1) continues to render the car model layer and the target scene background layer, and outputs the composite image to the vehicle display screen through the hardware acceleration channel, while monitoring the frame rate to ensure stable output; the rendering state is reset to normal mode to prepare for the next switch and achieve a complete closed loop.
[0107] The in-vehicle background switching display method provided in this embodiment includes: acquiring pre-made scene resource data of the starting scene and the target scene; performing scene layering processing on the pre-made scene resource data based on element attributes to obtain a car model layer, a starting scene background layer, and a target scene background layer, and setting the car model layer as the highest display priority; configuring a first camera to render the car model layer, and configuring a second camera to simultaneously render the car model layer and the starting scene background layer; creating a transition layer, and performing a gradient transition based on the transition layer; when the first camera stops moving, switching the rendering configuration of the first camera to simultaneously render the car model layer and the target scene background layer and outputting the rendering result. This embodiment separates the car model layer from the initial scene background layer and the target scene background layer, and assigns the car model layer the highest display priority to ensure that the car model is continuously displayed during the transition, thereby improving the visual continuity perception. By using the synchronous movement of dual cameras and differentiated rendering in conjunction with the gradient of the transition layer, the initial scene background naturally fades away with the transition process. When the first camera stops moving, the rendering configuration of the first camera is switched to render both the car model layer and the target scene background layer simultaneously, so that the overall picture is smooth without jumps or breaks, achieving a smooth transition effect of "one shot to the end".
[0108] Reference Figure 9 , Figure 9 This is a structural block diagram of an embodiment of the vehicle-mounted background switching display system of the present invention. Figure 9 As shown, the vehicle background switching display system includes:
[0109] Resource acquisition module 10 is used to acquire pre-made scene resource data of the starting scene and the target scene;
[0110] Scene layering module 20 is used to perform scene layering processing on the pre-made scene resource data based on element attributes to obtain a car model layer, a starting scene background layer and a target scene background layer, and to set the car model layer as the highest display priority.
[0111] The rendering allocation module 30 is used to configure the first camera to render the car model layer and to configure the second camera to render both the car model layer and the initial scene background layer simultaneously.
[0112] Layer transition module 40 is used to create a transition layer and perform a gradient transition based on the transition layer;
[0113] The rendering switching module 50 is used to switch the rendering configuration of the first camera to simultaneously render the car model layer and the target scene background layer and output the rendering result when the first camera stops moving.
[0114] The vehicle background switching display system provided in this embodiment separates the vehicle model layer from the initial scene background layer and the target scene background layer, and assigns the vehicle model layer the highest display priority to ensure that the vehicle model is continuously displayed during the transition, thereby improving the visual continuity perception. By using the synchronous movement of dual cameras and differentiated rendering in conjunction with the gradient of the transition layer, the initial scene background naturally fades away with the transition process. When the first camera stops moving, the rendering configuration of the first camera is switched to render both the vehicle model layer and the target scene background layer simultaneously, so that the overall picture is smooth without jumps or breaks, achieving a smooth transition effect of "one shot to the end".
[0115] In addition, for technical details not described in detail in this embodiment of the vehicle background switching display system, please refer to the vehicle background switching display method provided in any embodiment of the present invention, which will not be repeated here.
[0116] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 10 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 10 As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement any of the vehicle background switching display methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processors and the memory, configured to enable information interaction between the processors and the memory.
[0117] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).
[0118] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.
[0119] In some embodiments, the one or more processors 101 include a field-programmable gate array.
[0120] This invention also provides a computer-readable medium. The computer-readable medium stores a computer program, which, when executed by a processor, implements the steps in any of the vehicle infotainment system background switching display methods described in the above embodiments. The computer-readable storage medium can be volatile or non-volatile.
[0121] This invention also provides a computer program product, including computer-readable code, or a non-volatile computer-readable storage medium carrying computer-readable code. When the computer-readable code is run in the processor of an electronic device, the processor in the electronic device executes the above-described vehicle background switching display method.
[0122] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).
[0123] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0124] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0125] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
[0126] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0127] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0128] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0129] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0130] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0131] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.
Claims
1. A method for switching a background display of a car machine, characterized by, include: Acquire pre-made scene resource data for the starting scene and the target scene; The pre-made scene resource data is processed into scene layers based on element attributes to obtain a car model layer, a starting scene background layer, and a target scene background layer, and the car model layer is set as the highest display priority. Configure a first camera to render the car model layer, and configure a second camera to render both the car model layer and the initial scene background layer simultaneously. Create a transition layer and perform a gradient transition based on the transition layer; When the first camera stops moving, the rendering configuration of the first camera is switched to simultaneously render the car model layer and the target scene background layer and output the rendering result.
2. The method of claim 1, wherein, The acquisition of pre-fabricated scene resource data for the starting scene and the target scene includes: Start the rendering engine and initialize the rendering environment; Identify the starting and target scenarios of the transition link; Acquire the pre-made scene resource data of the starting scene and the target scene; wherein, the pre-made scene resource data includes model files, texture maps, animation data and lighting preset parameters.
3. The method of claim 1, wherein, The configuration of the first camera to render the car model layer and the configuration of the second camera to simultaneously render the car model layer and the initial scene background layer include: Control the first camera to move along a pre-made track or a smooth transition track; While controlling the movement of the first camera, a second camera is created; Set the parameters of the second camera to be the same as those of the first camera; Configure the first camera to render the car model layer, and configure the second camera to render both the car model layer and the initial scene background layer simultaneously.
4. The method according to claim 3, characterized in that, The control of the first camera to move along a pre-made track or a smooth transition track includes: When switching scenes, the system calls pre-made tracks based on the preset commonly used scene switching track library. When switching scenes to custom or non-standard paths, a dynamic generation mode is used to generate smooth transition tracks. Control the first camera to move along the pre-made track or smooth transition track.
5. The method according to claim 4, characterized in that, The method of generating a smooth transition track using a dynamic generation mode includes: Obtain the current actual position of the first camera and the endpoint position of the target scene; Based on the current actual position and the target scene endpoint position, a smooth transition track is generated according to a preset interpolation algorithm.
6. The method according to claim 1, characterized in that, The creation of a transition layer, and the application of a gradient transition based on the transition layer, includes: Create a transition layer, and use the transition layer to carry the rendering content of the second camera; The car model layer rendered by the first camera is set to the highest display priority; The transparency of the transition layer is linked to the transition process of the orbital motion of the first camera; The transparency of the transition layer is controlled to gradually decrease as the trajectory of the first camera moves.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: After the vehicle infotainment system background switching display is completed, delete the second camera and the transition layer; The first camera is controlled to render the car model layer and the target scene background layer to obtain a composite image; The composite image is output to the vehicle's display screen via a hardware acceleration channel; Reset the rendering state to normal mode.
8. A vehicle-mounted infotainment system for switching backgrounds, characterized in that, include: The resource acquisition module is used to acquire pre-made scene resource data for the starting scene and the target scene; The scene layering module is used to perform scene layering processing on the pre-made scene resource data based on element attributes to obtain the car model layer, the starting scene background layer and the target scene background layer, and to set the car model layer as the highest display priority. The rendering allocation module is used to configure the first camera to render the car model layer and to configure the second camera to render both the car model layer and the initial scene background layer simultaneously. The layer transition module is used to create transition layers and perform gradient transitions based on these transition layers. The rendering switching module is used to switch the rendering configuration of the first camera to simultaneously render the car model layer and the target scene background layer and output the rendering result when the first camera stops moving.
9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 7.
10. A computer-readable 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 as described in any one of claims 1 to 7.