Function module switching method, device and equipment of car model and storage medium

By receiving functional module switching instructions in the 3D car model, modifying and loading scene parameters, realizing scene superposition and hiding, and using Tween animation for parameter transition, the problem of high system performance consumption and poor user experience during functional module switching is solved, and seamless switching and performance optimization is achieved.

CN120066643APending Publication Date: 2025-05-30CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510035150.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

During the switching of functional modules of 3D car models, the prior art is difficult to provide users with a better visual experience while reducing system performance consumption.

Method used

By receiving switching instructions for the functional module, determining and modifying scene parameters, realizing scene overlay and hiding, loading corresponding resource information, and using Tween animation to transition between car model and camera parameters, achieving seamless switching.

Benefits of technology

It realizes seamless connection when switching functional modules, reduces system performance consumption and improves user visual experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066643A_ABST
    Figure CN120066643A_ABST
Patent Text Reader

Abstract

The invention relates to a function module switching method and device of a car model, equipment and a storage medium. According to the scheme, firstly, a function module switching instruction is received; the function module switching instruction is an instruction for switching a first function module into a second function module; determining a first scene parameter of the first scene and a second scene parameter of the second scene; the first scene is a scene corresponding to a first function module, and the second scene is a scene corresponding to a second function module; modifying the first scene parameter into a second scene parameter; displaying the second scene in the first scene in an overlapping manner, and hiding the first scene; and loading the resource information corresponding to the second scene. Visibly, when the function modules are switched, the scene parameters are modified into the scene parameters after scene switching, and then scene superposition and scene hiding are combined, so that switching between different scenes can be seamlessly connected, and one-mirror-to-bottom switching is completed; moreover, resources of all scenes do not need to be loaded, so that the consumption of system performance is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of scene switching, and particularly to a method, device, equipment and storage medium for switching function modules of a vehicle model. Background Art

[0002] Currently, in the switching of different function modules of a 3D (3Dimensional) vehicle model, it often involves the switching of cameras, models, and scenes. Different switching methods have significant differences in implementation methods, and the corresponding user experiences also vary greatly. Common function module switching methods include: single-scene one-shot switching method, cross-scene switching method, and cross-project switching method. The single-scene one-shot switching method sets all function modules in one scene, providing the best user experience, but it will greatly increase the resources in the scene, increasing the consumption of the CPU (Central Processing Unit) and memory; while in the cross-scene switching method and cross-project switching method, each scene or project only includes the corresponding function modules. Although less resources are used, the function modules can only be hard-switched during the switching, resulting in a poor user experience.

[0003] Therefore, how to reduce the consumption of system performance and provide a better visual experience for users when switching function modules is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0004] The present application provides a method, device, equipment and storage medium for switching function modules of a vehicle model, so as to reduce the consumption of system performance and provide a better visual experience for users when switching function modules.

[0005] In a first aspect, the present application provides a method for switching function modules of a vehicle model, including:

[0006] Receiving a function module switching instruction; the function module switching instruction is an instruction to switch the currently used first function module to a second function module;

[0007] Determining a first scene parameter of a first scene and a second scene parameter of a second scene; the first scene is the scene corresponding to the first function module, and the second scene is the scene corresponding to the second function module;

[0008] Modifying the first scene parameter to the second scene parameter;

[0009] Superimposing and displaying the second scene on the first scene and hiding the first scene;

[0010] Loading the resource information corresponding to the second scene.

[0011] Optionally, determining the first scene parameter of the first scene and the second scene parameter of the second scene includes:

[0012] Determining the first vehicle model parameter and the first camera parameter of the first scene;

[0013] Determining the second vehicle model parameter and the second camera parameter of the second scene.

[0014] Optionally, modifying the first scene parameter to the second scene parameter includes:

[0015] Transitioning the first vehicle model parameter to the second vehicle model parameter and the first camera parameter to the second camera parameter through a Tween animation;

[0016] Wherein, the Tween animation presents the parameter transition effect in an animated form on the interface, and the parameter transition effect includes: the effect of transitioning the first vehicle model parameter to the second vehicle model parameter, and the effect of transitioning the first camera parameter to the second camera parameter.

[0017] Optionally, modifying the first vehicle model parameter to the second vehicle model parameter and the first camera parameter to the second camera parameter through the Tween animation includes:

[0018] Through the Tween animation, modifying the vehicle model position value in the first vehicle model parameter to the vehicle model position value in the second vehicle model parameter, and modifying the vehicle model rotation value in the first vehicle model parameter to the vehicle model rotation value in the second vehicle model parameter;

[0019] Through the Tween animation, modifying the camera position value in the first camera parameter to the camera position value in the second camera parameter, modifying the camera rotation value in the first camera parameter to the camera rotation value in the second camera parameter, and modifying the viewport value in the first camera parameter to the viewport value in the second camera parameter.

[0020] Optionally, superimposing the second scene on the first scene includes:

[0021] Superimposing the second scene on the first scene through a scene addition module, and rendering the first scene and the second scene respectively.

[0022] Optionally, hiding the first scene includes:

[0023] Performing a fade-out operation on the first scene to hide the first scene.

[0024] Optionally, after loading the resource information corresponding to the second scene, it further includes:

[0025] Remove the first scenario through the scenario offloading module.

[0026] In a second aspect, the present application provides a function module switching device for a vehicle model, including:

[0027] A receiving module, configured to receive a function module switching instruction; the function module switching instruction is an instruction to switch a currently used first function module to a second function module;

[0028] A determining module, configured to determine first scenario parameters of a first scenario and second scenario parameters of a second scenario; the first scenario is a scenario corresponding to the first function module, and the second scenario is a scenario corresponding to the second function module;

[0029] A modifying module, configured to modify the first scenario parameters to the second scenario parameters;

[0030] A display module, configured to superimpose and display the second scenario on the first scenario;

[0031] A hiding module, configured to hide the first scenario;

[0032] A loading module, configured to load resource information corresponding to the second scenario.

[0033] In a third aspect, the present application provides an electronic device, including:

[0034] A processor, a memory, and a computer program stored on the memory and executable on the processor, and the processor executes the above function module switching method of the present application through the computer program.

[0035] In a fourth aspect, the present application further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above function module switching method of the present application.

[0036] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art: The present application provides a function module switching solution for a vehicle model. First, a function module switching instruction is received; the function module switching instruction is: an instruction to switch the currently used first function module to a second function module; the first scene parameter of the first scene and the second scene parameter of the second scene are determined; the first scene is the scene corresponding to the first function module, and the second scene is the scene corresponding to the second function module; the first scene parameter is modified to the second scene parameter; the second scene is superimposed on the first scene and the first scene is hidden; the resource information corresponding to the second scene is loaded. It can be seen that when the present application switches function modules, the scene parameter is modified to the scene parameter after the scene switching, and then combined with scene superposition and scene hiding, the switching between different scenes can be seamlessly connected to complete the seamless switching; moreover, the present application does not need to load the resources of all scenes, reducing the consumption of system performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and, together with the specification, are used to explain the principles of the present invention.

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0039] One or more embodiments are exemplarily illustrated by the pictures in the corresponding accompanying drawings. These exemplary illustrations do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements, unless otherwise stated, and the drawings in the figures do not constitute a proportional limitation.

[0040] Figure 1 It is a schematic flow chart of a function module switching method for a vehicle model provided by the embodiments of the present application;

[0041] Figure 2 It is a schematic diagram of a vehicle control scene before modifying the scene parameter provided by the embodiments of the present application;

[0042] Figure 3 It is a schematic diagram of a vehicle control scene after modifying the scene parameter provided by the embodiments of the present application;

[0043] Figure 4 It is a schematic diagram of a partial navigation scene provided by the embodiments of the present application;

[0044] Figure 5 It is a schematic diagram of a navigation scene after loading the resource information provided by the embodiments of the present application;

[0045] Figure 6 Schematic diagram of the process of switching function modules of another car model provided by an embodiment of the present application;

[0046] Figure 7 Schematic diagram of the process of switching function modules of another car model provided by an embodiment of the present application;

[0047] Figure 8 Schematic diagram of the overall process of switching the vehicle control scenario to the navigation scenario provided by an embodiment of the present application;

[0048] Figure 9 Schematic diagram of the structure of a device for switching function modules of a car model provided by an embodiment of the present application;

[0049] Figure 10 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Specific embodiments

[0050] In the related art, generally, different switching methods are used according to the differences between function modules. The commonly used methods are roughly as follows:

[0051] 1. Single-scene one-shot switching: All modules are in one scene, and developers use the coordinate and rotation changes of the camera and the car model to display different perspectives and implement the applications of different functions. This method is the simplest and most convenient, and the user experience is the best. However, it will greatly increase the resources in the scene and increase the consumption of the CPU and memory.

[0052] 2. Cross-scene switching: Different modules use different scenes, and only the functions of the module are in each scene. This method enables multi-module parallel development, and the resources of each scene are small. However, when switching, it can only be a hard cut, and the user experience is lacking.

[0053] 3. Cross-project switching: Similar to cross-scene switching, each project only has the functions of the module, and each module can also be developed using different engines without affecting each other. Similarly, when using this method, the switching can only be a hard cut, and the user experience is poor.

[0054] Therefore, in the embodiments of the present application, a method, device, equipment, and storage medium for switching function modules of a car model are provided, so as to reduce the consumption of system performance and give users a better visual experience when switching function modules.

[0055] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are some but not all of the embodiments of this application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.

[0056] The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present invention. In addition, the present invention may repeat reference numerals and / or letters in different examples. This repetition is for the purpose of simplification and clarity and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0057] See Figure 1 , which is a schematic flowchart of a method for switching function modules of a vehicle model provided by an embodiment of this application. The method specifically includes the following steps:

[0058] S101. Receive a function module switching instruction; the function module switching instruction is: an instruction to switch the currently used first function module to a second function module;

[0059] In this application, the function module is a function module with a 3D vehicle model, and the function module includes: a vehicle control module, an air conditioning module, an automatic parking module, a 3D navigation module, etc., which are not specifically limited herein. The function module switching instruction is: an instruction to switch the first function module to the second function module. The first function module is the currently used function module, that is: the first function module is the function module before switching, and the second function module is the function module after switching. For example: if the currently used is the vehicle control module and the user currently switches the vehicle control module to the 3D navigation module, at this time, the vehicle control module is the first function module and the 3D navigation module is the second function module. In this embodiment, the receiving of the function module switching instruction can be generated in various forms, which are not specifically limited herein. For example: generated by a touch instruction of the user on the vehicle screen, or generated by the user's voice instruction, etc.

[0060] S102. Determine the first scene parameter of the first scene and the second scene parameter of the second scene; the first scene is the scene corresponding to the first function module, and the second scene is the scene corresponding to the second function module;

[0061] In this application, each functional module has a corresponding scenario. For the purpose of distinction in this application, the scenario of the first functional module is called the first scenario, and the scenario corresponding to the second functional module is called the second scenario. Therefore, the process of switching the first functional module to the second functional module in this application is the process of switching the first scenario to the second scenario. After switching to the second scenario, the functions of the second functional module can be realized in the second scenario. For example: if the vehicle control module is currently in use and the user wants to switch the vehicle control module to the 3D navigation module, then the first functional module is the vehicle control module, the first scenario is the vehicle control scenario, the second functional module is the 3D navigation module, and the second scenario is the navigation scenario. Therefore, in order to switch the vehicle control module to the 3D navigation module, it is necessary to switch the vehicle control scenario to the navigation scenario at this time. Among them, the scenario parameters are parameters related to the vehicle model and the camera. For the purpose of distinction, the parameters of the first scenario in this application are called the first scenario parameters, and the parameters of the second scenario are called the second scenario parameters.

[0062] S103. Modify the first scenario parameters to the second scenario parameters;

[0063] In order to realize the switching of scenarios in this application, the scenario parameters can be first switched from the scenario parameters of the first scenario to the scenario parameters of the second scenario. This way of modifying the scenario parameters in this application can, without changing the background of the first scenario, first adjust the vehicle model and camera parameters in the first scenario to the parameters of the second scenario to achieve a preliminary transition of scenario switching.

[0064] See Figure 2 , which is a schematic diagram of the vehicle control scenario before modifying the scenario parameters disclosed in the embodiment of this application. See Figure 3 , which is a schematic diagram of the vehicle control scenario after modifying the scenario parameters disclosed in the embodiment of this application; if the vehicle control module is currently in use by the user, see Figure 2 , which is a schematic diagram of the vehicle control scenario. When the scenario parameters are not modified, the display position of the vehicle model in the vehicle control scenario is relatively forward. If it is necessary to switch the vehicle control module to the 3D navigation module at present, it is necessary to modify the vehicle control scenario to the navigation scenario at this time and modify the scenario parameters in the vehicle control scenario to the scenario parameters of the navigation scenario. See the modified vehicle control scenario in Figure 3 . It can be seen that after modifying the scenario parameters, the background of the vehicle control scenario has not changed, but the position and rotation direction of the vehicle model have changed. Figure 3 The position and rotation direction of the vehicle model in

[0065] S104. Superimpose and display the second scenario on the first scenario and hide the first scenario;

[0066] In this embodiment, after the scene parameters of the first scene are modified to the scene parameters of the second scene, the second scene needs to be superimposed and displayed on the first scene, and the first scene needs to be hidden. This application can use Unity (content creation and operation platform) multi-scene superposition technology to superimpose and display the second scene on the first scene. Among them, since the scene parameters have been pre-modified to the parameters of the second scene, the position and other information of the car model do not change when the second scene is superimposed and displayed in this application. In this way, when the scene is switched, the position angle of the car model rendered on the screen can be seamlessly connected.

[0067] See also Figure 4 , is a schematic diagram of a partial navigation scenario disclosed in an embodiment of the present application. Figure 4 Scene parameters in the navigation scene, and Figure 3 The scene parameters of the vehicle control scene are the same, so Figure 4 The position angle and other information of the car model Figure 3 The information of the car model position angle and so on is the same; this application is Figure 3 The navigation scene is superimposed on the vehicle control scene, and the vehicle control scene is hidden. The resulting navigation scene diagram is as follows Figure 4 Among them, when the navigation scene is superimposed on the vehicle control scene, due to Figure 4 The scene parameters in Figure 3 The scene parameters in the video are the same, so from the user's visual perspective, the information such as the position and angle of the car model has not changed, thereby achieving seamless connection of the information such as the position and angle of the car model when the scene is switched.

[0068] S105: Load resource information corresponding to the second scene.

[0069] After the second scene is superimposed on the first scene, this application only displays the basic information of the second scene, and has not yet loaded the resource information of the second scene. Therefore, this application also needs to load the resource information corresponding to the second scene. Figure 4 As shown, in the navigation scenario, only the current driving direction and ground information are included, and no other resources are displayed. Figure 5 , is a schematic diagram of a navigation scenario after loading resource information disclosed in an embodiment of the present application. By comparing Figure 4 and Figure 5 It can be seen that Figure 5 After loading the resource information of the navigation scene, complete ground information, scenes on both sides of the road and other information are presented. At this point, the vehicle control scene has been successfully switched to the navigation scene.

[0070] In summary, in the present application, each functional module has a corresponding scenario. When switching functional modules, first modify the scenario parameters to the scenario parameters after the scenario switch, and then, through the methods of scenario overlay and scenario hiding, enable seamless switching between different scenarios to complete the seamless switching in one shot; moreover, this method does not require loading the resources of all scenarios, reducing the consumption of system performance.

[0071] See Figure 6 , which is a schematic flowchart of another method for switching functional modules of a vehicle model provided by an embodiment of the present application. The method specifically includes the following steps:

[0072] S201. Receive a functional module switching instruction; the functional module switching instruction is an instruction to switch the first functional module currently in use to the second functional module;

[0073] S202. Determine the first vehicle model parameters and the first camera parameters of the first scenario; the first scenario is the scenario corresponding to the first functional module;

[0074] S203. Determine the second vehicle model parameters and the second camera parameters of the second scenario; the second scenario is the scenario corresponding to the second functional module;

[0075] S204. Transition the first vehicle model parameters to the second vehicle model parameters and the first camera parameters to the second camera parameters through a Tween animation; wherein, the Tween animation shows the parameter transition effect in the form of an animation on the interface, and the parameter transition effect includes: the effect of transitioning the first vehicle model parameters to the second vehicle model parameters and the effect of transitioning the first camera parameters to the second camera parameters.

[0076] S205. Overlay and display the second scenario on the first scenario and hide the first scenario;

[0077] S206. Load the resource information corresponding to the second scenario.

[0078] In this application, the scene parameters specifically include vehicle model parameters and camera parameters. Among them, the vehicle model parameters specifically include vehicle model position parameters and vehicle model rotation parameters, and the camera parameters include vehicle model position parameters, vehicle model rotation parameters, and viewport parameters. For the sake of distinction, this application refers to the vehicle model parameters of the first scene as the first vehicle model parameters, the camera parameters of the first scene as the first camera parameters, the vehicle model parameters of the second scene as the second vehicle model parameters, and the camera parameters of the second scene as the second camera parameters. Among them, the parameter values recorded in this application include: the xyz (vehicle model position values) of the Position (vehicle model position parameter) under the Transform (transformation component) of the vehicle model, the xyz (vehicle model rotation values) of the Rotation (vehicle model rotation parameter), and the xyz (camera position values) of the Position (camera position parameter) under the Transform (transformation component) of the Main Camera (main camera) in the scene, the xyz (camera rotation values) of the Rotation (camera rotation parameter), and the Field of View (viewport value) in the Projection (perspective and orthographic module).

[0079] Moreover, when modifying the scene parameter values in this application, specifically under the action of the Tween animation, the various scene parameters in the first scene are transitioned to the scene parameters in the second scene. The Tween animation displays the parameter transition effect in the form of an animation on the interface. The parameter transition effect includes: the effect of transitioning the first vehicle model parameters to the second vehicle model parameters, and the effect of transitioning the first camera parameters to the second camera parameters. In this way, in this application, before the scene is switched, the vehicle model parameters and camera parameters in the current first scene can be transitioned to the vehicle model parameters and camera parameters in the second scene to be switched, and the parameter transition effect is displayed on the interface through the Tween animation, thereby realizing the preliminary switching of the scene. In some embodiments of this application, the process of modifying the first vehicle model parameters to the second vehicle model parameters and the first camera parameters to the second camera parameters through the Tween animation includes: through the Tween animation, modifying the vehicle model position values in the first vehicle model parameters to the vehicle model position values in the second vehicle model parameters, and modifying the vehicle model rotation values in the first vehicle model parameters to the vehicle model rotation values in the second vehicle model parameters; through the Tween animation, modifying the camera position values in the first camera parameters to the camera position values in the second camera parameters, modifying the camera rotation values in the first camera parameters to the camera rotation values in the second camera parameters, and modifying the viewport value in the first camera parameters to the viewport value in the second camera parameters.

[0080] For example, when switching the vehicle control scene to the navigation scene, it is necessary to transition the Position and Rotation of the objects in the vehicle control scene, as well as the Position, Rotation, and Field of View of the camera, to the corresponding data in the navigation scene. In order to save performance, when performing the transition step, this application can also start an asynchronous loading method (SceneManager.LoadSceneAsync) to load the navigation scene into memory first, improving the scene switching efficiency.

[0081] In summary, this application uses the Unity multi-scene overlay technology, combined with camera and vehicle model control, and realizes the seamless switching across scenes by changing the position information and rotation information of the vehicle model, as well as the position information, rotation information, and FOV of the camera. It makes the user seemingly switch different modules in one scene, but actually switches the scenes, thus providing a better visual experience for the user while ensuring low performance consumption.

[0082] See Figure 7 , which is a schematic flowchart of a method for switching function modules of a vehicle model provided by an embodiment of this application. The method specifically includes the following steps:

[0083] S301. Receive a function module switching instruction; this function module switching instruction is an instruction to switch the currently used first function module to the second function module;

[0084] S302. Determine the first scene parameters of the first scene and the second scene parameters of the second scene; the first scene is the scene corresponding to the first function module, and the second scene is the scene corresponding to the second function module;

[0085] S303. Modify the first scene parameters to the second scene parameters;

[0086] S304. Through the scene addition module, superimpose and display the second scene under the first scene, and render the first scene and the second scene respectively;

[0087] S305. Perform a fade-out operation on the first scene to hide the first scene;

[0088] S306. Load the resource information corresponding to the second scene.

[0089] S307. Remove the first scene through the scene unloading module.

[0090] In this application, after modifying the first scene parameters to the second scene parameters, the scene addition module (LoadSceneMode.Additive) can be used to superimpose and display the second scene under the first scene, and the GPU (Graphics Processing Unit) is used to render the first scene and the second scene simultaneously. This application can render the two scenes separately, which can save memory consumption and CPU occupancy rate. Moreover, since the scene parameters of the two scenes have been transitioned when the two scenes are superimposed and displayed in this application, the position and angle of the vehicle models in the two scenes rendered on the screen can be seamlessly connected, thereby improving the user's visual experience. Further, when hiding the first scene in this application, the first scene can be gradually hidden by performing a fade-out operation on the first scene to achieve an interface transition for scene switching. After hiding the first scene, the second scene can be displayed on the interface. For example, when switching the vehicle control scene to the navigation scene, the navigation scene needs to be superimposed and displayed under the current vehicle control scene, and the vehicle control scene and the navigation scene are rendered separately. Since the Position, Rotation, and FOV under the Transform of these two scenes are the same, seamless switching of the scenes can be achieved.

[0091] Moreover, after hiding the first scene in this application, the scene unloading module (SceneManager.UnloadScene) can also be used to remove the first scene. At this time, the screen will display only the second scene. In this way, the memory resources occupied by the first scene can be reduced. Through the above steps, seamless switching of the cross-scene one-shot can be completed.

[0092] See Figure 8 , which is a schematic diagram of the overall process for switching the vehicle control scene to the navigation scene provided by the embodiment of the present invention. Through Figure 8 it can be seen that first, the scene parameters under the vehicle control scene and the navigation scene need to be obtained. The scene parameters include: the xyz of the Position of the vehicle model, the xyz of the Rotation, and the xyz of the Position, the xyz of the Rotation, and the Field of View of the camera. Then, the vehicle model and the camera of the vehicle control scene are transitioned to the navigation scene, the navigation scene is loaded and superimposed and displayed under the vehicle control scene; the superimposed effect of the two scenes is rendered simultaneously on the screen, the objects in the vehicle control scene gradually fade, the navigation scene is displayed and starts to load map information, and the vehicle control scene is removed to complete the one-shot. If it is necessary to switch back to the vehicle control scene, the above process can be executed again to switch back to the previous scene in one-shot.

[0093] In summary, the present application can utilize the multi-scenario overlay technology to render multiple scenarios simultaneously, use Tween animation to complete the switching of the vehicle model transform information, camera Transform, and FOV between different scenarios, enabling seamless connection between different scenarios and achieving a seamless one-shot switching. Moreover, this method allows separate rendering of different scenario resources, saving memory consumption and CPU occupancy rate. It enables seamless cross-scenario switching, providing a better user experience during use and also allowing developers to develop different modules in parallel, thus improving development efficiency.

[0094] See Figure 9 , Figure 9 which is a schematic structural diagram of a function module switching device for a vehicle model provided by an embodiment of the present application. The device specifically includes:

[0095] A receiving module 11 for receiving a function module switching instruction; the function module switching instruction is an instruction to switch the currently used first function module to a second function module;

[0096] A determining module 12 for determining the first scene parameters of the first scene and the second scene parameters of the second scene; the first scene is the scene corresponding to the first function module, and the second scene is the scene corresponding to the second function module;

[0097] A modifying module 13 for modifying the first scene parameters to the second scene parameters;

[0098] A display module 14 for superimposing and displaying the second scene on the first scene;

[0099] A hiding module 15 for hiding the first scene;

[0100] A loading module 16 for loading the resource information corresponding to the second scene.

[0101] As an optional embodiment, the determining module includes:

[0102] A first determining unit for determining the first vehicle model parameters and the first camera parameters of the first scene;

[0103] A second determining unit for determining the second vehicle model parameters and the second camera parameters of the second scene.

[0104] As an optional embodiment, the modifying module is specifically configured to: transition the first vehicle model parameters to the second vehicle model parameters and the first camera parameters to the second camera parameters through Tween animation;

[0105] Among them, the Tween animation presents a parameter transition effect in an animated form on the interface, and the parameter transition effect includes: an effect of transitioning the first vehicle model parameters to the second vehicle model parameters, and an effect of transitioning the first camera parameters to the second camera parameters.

[0106] As an optional embodiment, the modification module includes:

[0107] A first modification unit, configured to modify the vehicle model position value in the first vehicle model parameters to the vehicle model position value in the second vehicle model parameters, and modify the vehicle model rotation value in the first vehicle model parameters to the vehicle model rotation value in the second vehicle model parameters through the Tween animation;

[0108] A second modification unit, configured to modify the camera position value in the first camera parameters to the camera position value in the second camera parameters, modify the camera rotation value in the first camera parameters to the camera rotation value in the second camera parameters, and modify the viewport value in the first camera parameters to the viewport value in the second camera parameters through the Tween animation.

[0109] As an optional embodiment, the display module is specifically configured to: superimpose and display the second scene under the first scene through the scene addition module, and render the first scene and the second scene respectively.

[0110] As an optional embodiment, the hiding module is specifically configured to: perform a fade-out operation on the first scene to hide the first scene.

[0111] As an optional embodiment, the function module switching device further includes:

[0112] A removal module, configured to remove the first scene through the scene unloading module.

[0113] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0114] See Figure 10 , Figure 10 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device specifically includes:

[0115] A processor 21, a memory 22, and a computer program stored on the memory 22 and executable on the processor 21. The processor 21 executes the function module switching method described in any of the above method embodiments through the computer program.

[0116] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0117] The memory 22 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 22 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 22 is at least used to store the following computer program 221. After the computer program is loaded and executed by the processor 21, it can implement the relevant steps in the function module switching method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 22 may further include an operating system 222 and data 223, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 222 may include Windows, Unix, Linux, etc.

[0118] In some embodiments, the electronic device may further include a display screen 23, an input / output interface 24, a communication interface 25, a sensor 26, a power supply 27, and a communication bus 28.

[0119] Of course, Figure 10 The structure of the shown electronic device does not constitute a limitation on the electronic device in the embodiments of the present application. In actual applications, the electronic device may include more or fewer components than Figure 10 shown, or combine certain components.

[0120] In another exemplary embodiment, a computer storage medium is also provided. When the program instructions are executed by a processor, the function module switching method described in any of the above method embodiments is implemented. Among them, the storage medium may include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.

[0121] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and will not be elaborated herein.

[0122] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" as used herein may also include the plural forms. The terms "include", "comprise", "contain", and "have" are inclusive and thus specify the presence of the stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or their combinations. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be executed in the particular order described or illustrated, unless the execution order is explicitly stated. It should also be understood that alternative or additional steps may be used.

[0123] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for switching functional modules of a car model, characterized in that: include: Receive function module switching instructions; The function module switching instruction is an instruction for switching the first function module currently in use to the second function module; Determine a first scene parameter of a first scene, and a second scene parameter of a second scene; the first scene is a scene corresponding to the first functional module, and the second scene is a scene corresponding to the second functional module; Modifying the first scene parameter to the second scene parameter; Displaying the second scene overlaid on the first scene, and hiding the first scene; Load resource information corresponding to the second scene.

2. The method for switching functional modules according to claim 1, characterized in that: The determining of a first scene parameter of the first scene and a second scene parameter of the second scene includes: Determining first car model parameters and first camera parameters of the first scene; Determine second car model parameters and second camera parameters of the second scene.

3. The method for switching functional modules according to claim 2, characterized in that: The modifying the first scene parameter to the second scene parameter includes: Transitioning the first car model parameters to the second car model parameters and the first camera parameters to the second camera parameters through Tween animation; Among them, the Tween animation displays the parameter transition effect on the interface in the form of animation, and the parameter transition effect includes: the effect of transitioning the first car model parameters to the second car model parameters, and the effect of transitioning the first camera parameters to the second camera parameters.

4. The method for switching functional modules according to claim 3, characterized in that: Modifying the first car model parameter to the second car model parameter and the first camera parameter to the second camera parameter by the Tween animation includes: By means of the Tween animation, the vehicle model position value in the first vehicle model parameter is modified to the vehicle model position value in the second vehicle model parameter, and the vehicle model rotation value in the first vehicle model parameter is modified to the vehicle model rotation value in the second vehicle model parameter; Through the Tween animation, the camera position value in the first camera parameter is modified to the camera position value in the second camera parameter, the camera rotation value in the first camera parameter is modified to the camera rotation value in the second camera parameter, and the viewport value in the first camera parameter is modified to the viewport value in the second camera parameter.

5. The method for switching functional modules according to claim 1, characterized in that: Displaying the second scene overlaid on the first scene includes: The second scene is superimposed and displayed on the first scene through a scene adding module, and the first scene and the second scene are rendered separately.

6. The method for switching functional modules according to claim 1, characterized in that: The hiding of the first scene comprises: A fade operation is performed on the first scene to hide the first scene.

7. The method for switching functional modules according to any one of claims 1 to 6, characterized in that: After the resource information corresponding to the second scene is loaded, the method further includes: The first scene is removed by a scene uninstallation module.

8. A functional module switching device for a car model, characterized in that: include: A receiving module, used for receiving a function module switching instruction; The function module switching instruction is an instruction for switching the first function module currently in use to the second function module; A determination module, used to determine a first scene parameter of a first scene, and a second scene parameter of a second scene; the first scene is a scene corresponding to the first functional module, and the second scene is a scene corresponding to the second functional module; A modification module, used for modifying the first scene parameter into the second scene parameter; A display module, configured to display the second scene superimposed on the first scene; A hiding module, used for hiding the first scene; A loading module is used to load resource information corresponding to the second scene.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the function module switching method described in any one of claims 1 to 7 of the present application through the computer program.

10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the function module switching method described in any one of claims 1 to 7 of the present application.