Control method and device, electronic equipment and vehicle

By setting a three-dimensional image window on the next layer of the application window and setting the window background to transparent, the overlay display of three-dimensional elements and two-dimensional elements is solved, and the user experience is improved.

CN119941948APending Publication Date: 2025-05-06LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411907977.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the display interface of the application, when loading and rendering three-dimensional resources, there are problems such as large volume of installation files and long loading, which affects the user's interactive experience.

Method used

By displaying the first application window on the display panel of the electronic device, and setting the three-dimensional image window on the next layer of the first application window, superimposing the elements rendered by the three-dimensional model, setting the window background state of the first application window to be transparent or translucent to realize the superimposed display of the three-dimensional element and the two-dimensional element.

Benefits of technology

It reduces the overall loading and rendering time of application windows, improves display speed and effect, and enhances user interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119941948A_ABST
    Figure CN119941948A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a control method and device, electronic equipment and a vehicle. The control method comprises the steps that a first application program window is displayed on a display panel of the electronic equipment; a first element is drawn on the drawing surface of the first application program window; setting a three-dimensional image window on the next layer of the first application program window; a second element corresponding to the first application program window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained based on three-dimensional model rendering; setting a first window background state of the first application program window as a target state; under the condition that the background state of the first window is the target state, a first target display interface where the first element and the second element are overlapped is displayed on the display panel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of information technology, and in particular to a control method, device, electronic equipment and vehicle. Background Art

[0002] When the display interface of an application includes elements rendered based on three-dimensional resources, the application loads and renders the three-dimensional resources and displays the final interface. This causes problems such as large application installation file size and long display interface loading time. Summary of the invention

[0003] In view of this, embodiments of the present application provide at least a control method, device, electronic device, and vehicle.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a control method, including:

[0006] Displaying a first application window on a display panel of an electronic device; a first element is drawn on a drawing surface of the first application window;

[0007] The three-dimensional image window is set at a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model;

[0008] The first window background state of the first application window is set as a target state; when the first window background state is the target state, a first target display interface in which the first element and the second element are superimposed is displayed on the display panel.

[0009] The present application provides a control device, including:

[0010] A display module is used to display a first application window on a display panel of the electronic device; a first element is drawn on a drawing surface of the first application window;

[0011] A first setting module is used to set the three-dimensional image window to a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model;

[0012] The second setting module is used to set the first window background state of the first application window to a target state; when the first window background state is the target state, a first target display interface with the first element and the second element superimposed is displayed on the display panel.

[0013] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor can execute the computer program to implement the above-mentioned control method.

[0014] An embodiment of the present application provides a vehicle, comprising: a display module and a controller;

[0015] The display module is used to: display a first application window; a first element is drawn on a drawing surface of the first application window;

[0016] The controller is used to: set the three-dimensional image window to a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model;

[0017] Setting the background state of the first window of the first application window to the target state;

[0018] When the first window background state of the first application window is the target state, the display module is controlled to display a first target display interface in which the first element and the second element are superimposed.

[0019] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to implement the above control method.

[0020] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is executed in a computer device, a processor in the computer device executes some or all of the steps for implementing the above-mentioned control method.

[0021] An embodiment of the present application provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, some or all of the steps in the above control method are implemented.

[0022] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1A A schematic diagram of a control method for implementing the present invention is provided in an embodiment of the present invention;

[0024] Figure 1B A schematic diagram of the layout of windows in a window stack provided in an embodiment of the present application;

[0025] Figure 2A A second schematic diagram of an implementation flow of a control method provided in an embodiment of the present application;

[0026] Figure 2B A schematic diagram of managing a window Z order provided in an embodiment of the present application;

[0027] Figure 3 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0028] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0030] In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application. It should also be noted that, for ease of description, only the parts related to the relevant application are shown in the accompanying drawings.

[0031] The display interface can improve the user's interactive experience when using an electronic device. As users have higher and higher requirements for the display effect of the display interface, the elements in the display interface have expanded from two-dimensional (2D) elements to three-dimensional (3D) elements. Among them, 3D elements may include images obtained by rendering 3D resources through a 3D engine.

[0032] In the related art, for each application that needs to apply 3D elements, it is necessary to load and render the respective 3D resources, such as 3D scenes, 3D models, 3D engine resources, etc. This not only increases the size of the application installation files, but also the time consumption of loading and rendering 3D resources is uncontrollable, which affects the display effect of the display interface and reduces the user experience.

[0033] On this basis, the embodiment of the present application provides a control method, which can be executed by an electronic device. The electronic device may refer to a server, a laptop, a tablet computer, a desktop computer, a smart TV, a set-top box, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other devices with data processing capabilities. Figure 1A As shown, the control method includes the following steps S101 to S103:

[0034] Step S101: displaying a first application window on a display panel of an electronic device; a first element is drawn on a drawing surface of the first application window.

[0035] Here, the first application window may include a window for displaying a visual interface of an application, wherein the application may include but is not limited to a system application, a user application, and the like.

[0036] In some embodiments, the display panel may be externally connected to the electronic device or integrated into the electronic device. For example, the display panel may include an external display screen, a projection screen, etc. of the electronic device, or a display screen of a tablet computer.

[0037] The first element may include visual elements presented on a two-dimensional plane, such as graphics, images, text, etc.; it may also include elements rendered based on three-dimensional resources, such as images rendered based on three-dimensional models.

[0038] In some implementations, the first element may include a control that can be used for interaction, or may include static text or icons that are only used for display.

[0039] The drawing surface of a window can be the screen buffer of the window.

[0040] In some implementations, elements in each window are drawn on the drawing surface of that window.

[0041] Step S102: setting the 3D image window to a layer below the first application window; drawing a second element corresponding to the first application window on the drawing surface of the 3D image window, the second element being obtained by rendering based on the 3D model.

[0042] Here, the three-dimensional image window may include a window for displaying a visualization interface of a two-dimensional image obtained by rendering a three-dimensional resource.

[0043] In some implementations, the three-dimensional image window may be set as a window of a system application or a window of a user application.

[0044] For example, Figure 1BAs shown, the window stack includes a 3D image window 11, an application window 12, and an application window 13. When the application window 12 is the first application window in the above control method, the current display panel displays the application window 12. The 3D image window is set at a layer below the window 12, and the application window 13 is set at a layer below the 3D image window.

[0045] In some implementations, the three-dimensional image window may be a window currently running in the electronic device, or may be a newly added window in response to displaying the first application window.

[0046] The second element may include visual elements presented on a two-dimensional plane based on rendering of a three-dimensional model, such as graphics, images, texts, etc.

[0047] In some implementations, the second element may include a control that can be used for interaction, or may include static text or icons that are only used for display.

[0048] In some implementations, the second element may include an element related to the content or scene in the first application window.

[0049] For example, when the first application window includes a flat map, the second element may be an image of a three-dimensional scene corresponding to the flat map.

[0050] For another example, when the first application window includes weather information, the second element may be an image of a three-dimensional scene corresponding to the weather information.

[0051] In some implementations, the three-dimensional image window can be set to a lower layer of the first application window through a target application, wherein the target application may include but is not limited to a system application, a user application, and the like.

[0052] In some implementations, based on the same three-dimensional model, different second elements are obtained according to different rendering parameters.

[0053] For example, based on the same three-dimensional model, images of the three-dimensional model at different viewing angles may be obtained.

[0054] For another example, based on different rendering ranges, images of the same 3D model at different positions and sizes can be obtained.

[0055] Step S103: setting the first window background state of the first application window to the target state; when the first window background state is the target state, a first target display interface in which the first element and the second element are superimposed is displayed on the display panel.

[0056] Here, the target state can represent that the window background of the first application window is transparent or semi-transparent, that is, when the first window background state is the target state, the content located in the window background area of ​​the first application window in the three-dimensional image window of the next layer of the first application window is visible.

[0057] In some implementations, the first window background state of the first application window may be set to the target state by setting display parameters of the first application window.

[0058] It can be understood that the display area of ​​the second element is in the window background area of ​​the first application window. By viewing the first target display interface displayed in the display panel, the user can view the second element while viewing the first element in the first application window.

[0059] Combination Figure 1B The first target display interface includes a first element in the application window 12 and a second element in the three-dimensional image window 11 , and the second element is in the background area of ​​the application window 12 .

[0060] In the embodiment of the present application, by setting the three-dimensional image window to the next layer of the first application window, and setting the first window background state of the first application window to the target state, the display panel can display the first target display interface in which the first element of the first application window and the second element of the three-dimensional image window are superimposed when the first application window is displayed. In this way, when the first application window is displayed, by superimposing the three-dimensional image window and combining the second element obtained after rendering the three-dimensional resource, the content of the first target display interface can be flexibly adjusted to present the final first target display interface, realizing the fusion of the original first element in the first application window and the three-dimensional resource, enriching the display content of the first target display interface, and improving the display effect of the first application window.

[0061] It is understandable that loading two-dimensional plane elements through the first application window and loading images of three-dimensional resources through the three-dimensional image window can reduce the overall loading and rendering time of the first application window, increase the display speed of the first application window, and further improve the display effect.

[0062] It is understandable that the execution order of step S102 and step S103 is interchangeable, and the embodiment of the present application is not limited to this.

[0063] In some embodiments, after the first target display interface is displayed on the display panel, the control method may further include the following steps S111 to S114:

[0064] Step S111: Switching from displaying the first application window to displaying the second application window on the display panel; a third element is drawn on the drawing surface of the second application window.

[0065] Here, the second application window may include a window for displaying a visual interface of an application, and the second application window is different from the first application window.

[0066] In some implementations, the second application window and the first application window may be different active windows of the same application, or may be different active windows of different applications.

[0067] The third element may include a visual element presented on a two-dimensional plane.

[0068] It can be understood that the switching from displaying the first application window to displaying the second application window represents the switching display of different active windows, and the displayed contents in the windows are different.

[0069] Step S112: setting the 3D image window to a layer below the second application window.

[0070] Step S113: Update the second element of the drawing surface of the three-dimensional image window to a fourth element corresponding to the second application window; the fourth element is obtained based on the three-dimensional model rendering.

[0071] Here, the fourth element may include a visual element presented on a two-dimensional plane based on rendering of a three-dimensional model, and the three-dimensional model used to render the fourth element is the same as the three-dimensional model used to render the second element.

[0072] Step S114, setting the second window background state of the second application window as the target state; when the second window background state is the target state, a second target display interface in which the third element and the fourth element are superimposed is displayed on the display panel.

[0073] Here, the target state can represent that the window background of the second application window is transparent or semi-transparent, that is, when the second window background state is the target state, the content located in the window background area of ​​the second application window in the three-dimensional image window of the next layer of the second application window is visible.

[0074] In some implementations, the second window background state of the second application window may be set to the target state by setting display parameters of the second application window.

[0075] It can be understood that the display area of ​​the fourth element is in the window background area of ​​the second application window. By viewing the second target display interface displayed in the display panel, the user can view the fourth element while viewing the third element in the second application window.

[0076] In the embodiment of the present application, the display panel is switched from displaying the first application window to displaying the second application window with the third element drawn on the drawing surface; the three-dimensional image window is set at the next layer of the second application window, and the second element of the drawing surface of the three-dimensional image window is updated to the fourth element corresponding to the second application window; the second window background state of the second application window is set to the target state, so that the second target display interface with the third element and the fourth element superimposed is displayed on the display panel. In this way, when switching to display different application windows, corresponding to each application window, the elements obtained by loading and rendering based on the same three-dimensional model can be switched in the same three-dimensional image window; on the one hand, in the process of switching between different windows, the three-dimensional scene corresponding to the same three-dimensional model is displayed more smoothly; on the other hand, the window switching corresponding element can be obtained by loading and rendering based on the three-dimensional model through the same three-dimensional image window, and the application corresponding to the application window does not need to load and render the three-dimensional model separately when switching the two windows, which further reduces the loading time of the display interface switching process and improves the user experience.

[0077] It is understandable that the execution order of step S112, step S113 and step S114 is interchangeable, and the embodiment of the present application is not limited to this.

[0078] In some embodiments, the second element includes a first image rendered based on the three-dimensional model at a first viewing angle, and the fourth element includes a second image rendered based on the three-dimensional model at a second viewing angle; the above step S113 may include the following steps S121:

[0079] Step S121: Update the first image on the drawing surface of the three-dimensional image window to the second image.

[0080] It can be understood that the first image and the second image correspond to the same three-dimensional model under different perspectives. When switching from the first target display interface displaying the first element to the second target display interface displaying the third element, the different perspectives of the same three-dimensional model can be combined to further improve the display effects of the first element and the third element.

[0081] For example, the audio setting interface including the vehicle model at the vehicle head perspective can be switched to the seat adjustment interface including the vehicle model at the vehicle tail perspective. In this way, the parameter setting or adjustment of different positions of the vehicle can be completed based on the visualization elements of the vehicle 3D structure model.

[0082] In the embodiment of the present application, updating the second element to the fourth element may correspond to updating the first image obtained by rendering based on the three-dimensional model at the first viewing angle to the second image obtained by rendering based on the three-dimensional model at the second viewing angle. In this way, by switching the images obtained from different viewing angles of the same three-dimensional model in the three-dimensional image window, on the one hand, the three-dimensional models at different viewing angles can be combined to improve the display effect of the first element and the third element; on the other hand, the same three-dimensional model can be loaded and rendered based on the three-dimensional image window, so as to realize the smooth transition of the three-dimensional model in the background of the switched display interface at different viewing angles.

[0083] In some embodiments, the first application window comprises a first active window of a first application running in the electronic device, and the second application window comprises a second active window of a second application running in the electronic device.

[0084] Here, the first application and the second application may include but are not limited to system applications, user applications, etc., and the second application domain is different from the first application domain.

[0085] The first active window and the second active window may include a newly opened active window, and may also include an active window adjusted from being in the background to being in the foreground.

[0086] In the embodiment of the present application, the display panel switches from displaying the first active window of the first application to displaying the second active window of the second application; at the same time, the element of the drawing surface of the three-dimensional image window is updated from the second element corresponding to the first active window to the fourth element corresponding to the second active window. In this way, the three-dimensional model can be displayed through the three-dimensional image window. Different elements of the active windows of different applications can be displayed, and the interface switching of different three-dimensional display scenes under cross-application scenarios can be realized, thereby improving the transition display effect between different applications.

[0087] In some embodiments, the above step S103 may include the following steps S131:

[0088] Step S131: in response to a background flag corresponding to a first application window being a target value, setting a first window background state of the first application window to a target state.

[0089] In some implementations, whether to set the three-dimensional image window to a layer below the first application window may be determined based on a background flag corresponding to the first application window.

[0090] It can be understood that the background flag can represent the background status requirement of the first application window. When the background flag is a target value, it represents that in the first target display interface, the window background area of ​​the first application window needs to display the elements corresponding to the three-dimensional model, and further sets the first window background state corresponding to the first application window to the target state so that the first target display interface includes the second element of the three-dimensional image window.

[0091] In the embodiment of the present application, in response to the background flag corresponding to the first application window being the target value, the first window background state of the first application window is set to the target state. In this way, based on the background flag, on the one hand, the accuracy of judging whether the first application window needs to display the corresponding elements of the three-dimensional model can be improved; on the other hand, based on the judgment result, the processing efficiency of displaying the first application window can be improved.

[0092] In some embodiments, the first application window includes a first active window of a first application running in the electronic device, and the control method may further include the following steps S141 to S142:

[0093] Step S141: In response to a first trigger signal, a three-dimensional image window is started through a target program running in the electronic device; the target program is different from the first application program.

[0094] Here, the first trigger signal may include a signal for setting a three-dimensional image window, for example, may include but is not limited to: at least one of: a start signal of a first application, a request signal of a first application, a display signal of a first application window, a start signal of an electronic device, etc.

[0095] The target program may correspond to the target application program in the above control method.

[0096] Step S142: Draw a second element corresponding to the first application window on the drawing surface of the three-dimensional image window through the target program.

[0097] Exemplarily, after obtaining a start signal of the first application, a system application in the electronic device may add a three-dimensional image window and draw a second element corresponding to the first application window in the three-dimensional image window.

[0098] Exemplarily, a three-dimensional resource management application can be added by a user to an electronic device, add a three-dimensional image window in response to a startup signal of the electronic device, and after receiving a three-dimensional resource request signal from a first application, draw a second element corresponding to the first application window on the drawing surface of the three-dimensional image window.

[0099] It can be understood that the second application window in the above control method may include a second active window of a second application running in the electronic device, and the second application is different from the target program. The first trigger signal may also include: at least one of: a start signal of the second application, a request signal of the second application, a display signal of the second application window, etc.

[0100] In the embodiment of the present application, in response to the first trigger signal, a target program different from the first application program running in the electronic device is used to start a three-dimensional image window; and a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window. In this way, the three-dimensional image window is managed by the target program, and the first application program does not need to load the three-dimensional resource. By loading and rendering the three-dimensional resource through the target program, the installation file size of the first application program and the loading time of the first application window can be reduced.

[0101] In some embodiments, the control method may further include the following steps S151:

[0102] Step S151, sending a second trigger signal to the target program through the first application program;

[0103] The above step S142 may include the following step S152:

[0104] Step S152: In response to the second trigger signal, the target program draws a second element corresponding to the first active window on the drawing surface of the three-dimensional image window.

[0105] Here, the second trigger signal may include a request signal for a three-dimensional resource, corresponding to the request signal of the first application in the above control method.

[0106] In some embodiments, in response to a first trigger signal, a three-dimensional image window can be started through a target program; in response to a second trigger signal sent by the first application to the target program, a second element corresponding to the first active window can be drawn on the drawing surface of the three-dimensional image window through the target program.

[0107] In the embodiment of the present application, the target program, in response to the second trigger signal sent by the first application, draws the second element corresponding to the first active window on the drawing surface of the three-dimensional image window. In this way, the drawing of the second element in the three-dimensional image window can be completed based on the communication between the programs, thereby improving the immediacy and accuracy of the display of the first target display interface including the second element.

[0108] The user interface (UI) elements corresponding to the three-dimensional models in vehicle applications have been widely used in the human-machine interface (HMI). For example, based on the three-dimensional vehicle model of the actual scene, the user can set or control the vehicle in an interactive display interface; for another example, based on the three-dimensional environment model of the actual scene, the target object or environmental parameters such as weather in the current scene can be displayed to the user.

[0109] Compared with the layout and display of two-dimensional flat controls such as various switch settings, the interaction of elements rendered based on three-dimensional models is more intuitive and convenient. For example, three-dimensional scenes such as three-dimensional maps and three-dimensional monitoring images are more realistic for users and can improve the user experience.

[0110] In the process of combining and displaying three-dimensional resources and two-dimensional plane elements in various applications, the switching time and switching effect of the display interface will affect the user's interactive experience.

[0111] On this basis, the embodiment of the present application provides a control method that can be executed by an electronic device, and the user improves the display effect of the display interface in the process of combining the display of three-dimensional resources and two-dimensional plane elements in various applications. Figure 2A As shown, the control method includes the following steps S201 to S206:

[0112] Step S201, start the 3D process.

[0113] Here, the 3D process may correspond to the target program in the above control method, which is used to manage the three-dimensional image window, and is responsible for loading and rendering the three-dimensional resources of each application program through a separate 3D process.

[0114] Step S202: Start the application window.

[0115] Here, the application window may correspond to the first application window and the second application window in the above control method.

[0116] In implementation, when the user triggers a view in the display interface at the current moment, a new application window can be started. The application window corresponding to the display interface where the view triggered by the user is located can be a window of the same application as the started new application window, or can be a window of a different application.

[0117] Step S203: Add the application window to the window stack.

[0118] Here, the window stack may include active windows of all application programs running in the electronic device, and different active windows have different positions in the window stack.

[0119] During implementation, the position of the window in the window stack may be changed based on the order of the windows on the Z axis by adjusting the value corresponding to the Z axis order.

[0120] Step S204: determine whether a 3D scene needs to be displayed.

[0121] Here, the 3D scene may correspond to the three-dimensional scene corresponding to the three-dimensional model in the above control method.

[0122] When it is determined that the application window needs to display a 3D scene, step S205 and step S206 may be executed; when it is determined that the application window does not need to display a 3D scene, step S205 and step S206 are not executed, and the application window is directly displayed.

[0123] During implementation, the application window can be adjusted to the topmost window in the window stack by adjusting the value of the Z-axis sort of the application window, so as to display the application window.

[0124] Step S205: Set the window background state of the application window to a transparent state, notify the 3D process to start the 3D window, and insert the 3D window into the window stack.

[0125] Here, the window background state of the application window may correspond to the first window background state in the above control method.

[0126] The 3D window may correspond to the three-dimensional image window in the above control method.

[0127] During implementation, the application program corresponding to the application window may notify the 3D process to start the 3D window through inter-process communication (IPC).

[0128] Step S206: Adjust the window Z order so that the 3D window is located below the application window.

[0129] Here, the window Z order refers to the order of the windows on the Z axis.

[0130] In some embodiments, a controller can be provided through the 3D process to control the display and Z order of the 3D window during window transitions and related processes, so that the 3D window is the next layer window of the active window of the application displayed at the top in the window stack, that is, the window serving as the background in the first target display interface.

[0131] In some implementations, the 3D process may communicate with the system application and call the system interface; the system application may also be used as the 3D process.

[0132] During implementation, when the 3D process is a system application, an application interface may be provided to perform IPC communication with an application corresponding to the application window through a session of a window management service to achieve interactive control.

[0133] For example, Figure 2B As shown, the active window of the electronic device includes window 21, window 22 and window 23. Each window can be managed by a window management service, and after calculating the Z order of each window, the position of window 21, window 22 and window 23 is set based on the value of the Z order of each window.

[0134] In the embodiment of the present application, after starting the 3D process and the application window, the application window is added to the window stack, and when it is determined that the application window needs to display the 3D scene, the window background state of the application window is set to a transparent state, and the 3D process is notified to start the 3D window; the 3D window is inserted into the window stack, and the 3D window is placed below the application window by adjusting the window Z order. In this way, the two-dimensional plane elements in the application window can be combined with the elements corresponding to the three-dimensional model in the 3D window, thereby improving the display effect of the application window.

[0135] It is understandable that, through the above control method, when the application window switches and the corresponding scene switches, the final display interface can be presented in the form of window overlay, so that the scene bottom layers of different display interfaces correspond to the same window for managing 3D resources, and further realize the switching of different 3D models or different 3D scenes in the display interface. For scenes with the same 3D model at different viewing angles, a one-shot transition effect can also be realized.

[0136] The present application embodiment provides a control device, such as Figure 3 As shown, the control device 300 includes:

[0137] The display module 301 is used to display a first application window on a display panel of the electronic device; a first element is drawn on a drawing surface of the first application window;

[0138] A first setting module 302 is used to set the 3D image window in a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the 3D image window, and the second element is obtained by rendering based on the 3D model;

[0139] The second setting module 303 is used to set the first window background state of the first application window as a target state; when the first window background state is the target state, a first target display interface in which the first element and the second element are superimposed is displayed on the display panel.

[0140] In some embodiments, after the first target display interface is displayed on the display panel, the display module may also be used to: switch from displaying the first application window to displaying a second application window on the display panel; a third element is drawn on the drawing surface of the second application window;

[0141] The first setting module may also be used to: set the three-dimensional image window to a layer below the second application window;

[0142] The control device may further include an updating module, which is used to: update the second element of the drawing surface of the three-dimensional image window to a fourth element corresponding to the second application window; the fourth element is obtained by rendering based on the three-dimensional model;

[0143] The second setting module can also be used to: set the second window background state of the second application window as a target state; when the second window background state is the target state, displaying a second target display interface with the third element and the fourth element superimposed on the display panel.

[0144] In some embodiments, the second element includes a first image rendered based on the three-dimensional model at a first perspective, and the fourth element includes a second image rendered based on the three-dimensional model at a second perspective; the update module can also be used to: update the first image on the drawing surface of the three-dimensional image window to the second image.

[0145] In some embodiments, the first application window comprises a first active window of a first application running in the electronic device, and the second application window comprises a second active window of a second application running in the electronic device.

[0146] In some embodiments, the second setting module may also be used to: in response to the background flag corresponding to the first application window being a target value, set the first window background state of the first application window to a target state.

[0147] In some embodiments, the first application window includes a first active window of a first application running in the electronic device, and the control device may further include a startup module for: in response to a first trigger signal, starting the three-dimensional image window through a target program running in the electronic device; the target program is different from the first application;

[0148] The drawing module is used to draw a second element corresponding to the first application window on the drawing surface of the three-dimensional image window through the target program.

[0149] In some embodiments, the control device may further include a sending module, configured to: send a second trigger signal to the target program via the first application program;

[0150] The drawing module may also be used to: draw, through the target program, a second element corresponding to the first active window on the drawing surface of the three-dimensional image window in response to the second trigger signal.

[0151] The present application embodiment provides an electronic device, including: a memory and a processor. Figure 4 As shown, the electronic device 400 includes:

[0152] Memory 401, used to store computer programs that can be run on processor 402;

[0153] The processor 402 is used to execute the program stored in the memory 401 to implement the above control method applied to the control device.

[0154] An embodiment of the present application provides a vehicle, comprising: a display module and a controller;

[0155] The display module is used to: display a first application window; a first element is drawn on a drawing surface of the first application window;

[0156] The controller is used to: set the three-dimensional image window in a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model;

[0157] Setting the first window background state of the first application window to a target state;

[0158] When the first window background state of the first application window is the target state, the display module is controlled to display a first target display interface in which the first element and the second element are superimposed.

[0159] Here, the display module may correspond to the display panel in the above control method.

[0160] In an embodiment of the present application, based on the display module and controller in the above-mentioned vehicle, based on the three-dimensional vehicle model of the vehicle, the user can set or control the vehicle based on the first element in the first target display interface that includes the second element corresponding to the three-dimensional vehicle model, thereby improving the user's interactive experience.

[0161] In some embodiments, after displaying the first application window, the display module may also be used to: switch from displaying the first application window to displaying a second application window; a third element is drawn on a drawing surface of the second application window;

[0162] The controller may also be used to: set the three-dimensional image window to a layer below the second application window;

[0163] updating the second element of the drawing surface of the three-dimensional image window to a fourth element corresponding to the second application window; the fourth element is obtained by rendering based on the three-dimensional model;

[0164] Setting the second window background state of the second application window to a target state;

[0165] When the background state of the second window is the target state, the display module is controlled to display a second target display interface in which the third element and the fourth element are superimposed.

[0166] In some embodiments, the second element includes a first image rendered based on the three-dimensional model at a first viewing angle, and the fourth element includes a second image rendered based on the three-dimensional model at a second viewing angle;

[0167] The controller may also be configured to update the first image on the drawing surface of the three-dimensional image window to the second image.

[0168] In some embodiments, the first application window comprises a first active window of a first application running in the electronic device, and the second application window comprises a second active window of a second application running in the electronic device.

[0169] In some embodiments, the controller may also be configured to: in response to a background flag corresponding to the first application window being a target value, set a first window background state of the first application window to a target state.

[0170] In some embodiments, the first application window includes a first active window of a first application running in the electronic device, and the controller may also be used to: in response to a first trigger signal, start the three-dimensional image window through a target program running in the electronic device; the target program is different from the first application;

[0171] A second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window through the target program.

[0172] In some embodiments, the controller can also be used to: send a second trigger signal to the target program through the first application; and draw a second element corresponding to the first active window on the drawing surface of the three-dimensional image window through the target program in response to the second trigger signal.

[0173] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is executed in a computer device, a processor in the computer device executes some or all of the steps for implementing the above control method.

[0174] An embodiment of the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements some or all of the steps in the above control method.

[0175] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to implement the above control method.

[0176] The present application is described with reference to the flowchart and / or block diagram of the method, device and electronic device according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0177] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0178] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0179] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application.

[0180] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0181] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0182] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0183] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0184] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0185] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0186] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0187] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0188] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A control method, comprising: Displaying a first application window on a display panel of the electronic device; A first element is drawn on the drawing surface of the first application window; The three-dimensional image window is set at a layer below the first application window; a second element corresponding to the first application window is drawn on a drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model; The first window background state of the first application window is set as a target state; when the first window background state is the target state, a first target display interface in which the first element and the second element are superimposed is displayed on the display panel.

2. The method according to claim 1, after displaying the first target display interface on the display panel, the method further comprises: Switching from displaying the first application window to displaying the second application window on the display panel; A third element is drawn on the drawing surface of the second application window; Setting the three-dimensional image window in a layer below the second application window; updating the second element of the drawing surface of the three-dimensional image window to a fourth element corresponding to the second application window; the fourth element is obtained by rendering based on the three-dimensional model; Setting the second window background state of the second application window to a target state; When the background state of the second window is the target state, a second target display interface in which the third element and the fourth element are superimposed is displayed on the display panel.

3. The method according to claim 2, wherein the second element comprises a first image rendered based on the three-dimensional model at a first viewing angle, and the fourth element comprises a second image rendered based on the three-dimensional model at a second viewing angle; The updating the second element of the drawing surface of the three-dimensional image window to a fourth element corresponding to the second application window comprises: The first image on the drawing surface of the three-dimensional image window is updated to the second image. 4 . The method according to claim 2 , wherein the first application window comprises a first active window of a first application running in the electronic device, and the second application window comprises a second active window of a second application running in the electronic device.

5. The method according to claim 1, wherein setting the first window background state of the first application window as a target state comprises: In response to the background flag corresponding to the first application window being a target value, a first window background state of the first application window is set to a target state.

6. The method according to any one of claims 1 to 5, wherein the first application window comprises a first active window of a first application running in the electronic device, and the method further comprises: In response to a first trigger signal, starting a three-dimensional image window through a target program running in the electronic device; The target program is different from the first application program; A second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window through the target program.

7. The method according to claim 6, further comprising: Sending a second trigger signal to the target program through the first application program; Drawing a second element corresponding to the first application window on the drawing surface of the three-dimensional image window by the target program includes: By means of the target program, in response to the second trigger signal, a second element corresponding to the first active window is drawn on a drawing surface of the three-dimensional image window.

8. A control device comprising: A display module, configured to display a first application window on a display panel of the electronic device; A first element is drawn on the drawing surface of the first application window; A first setting module is used to set the three-dimensional image window in a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model; A second setting module, used to set the first window background state of the first application window to a target state; When the first window background state is the target state, a first target display interface in which the first element and the second element are superimposed is displayed on the display panel.

9. An electronic device comprising a memory and a processor, wherein the memory stores a data processing program that can be run on the processor, and the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.

10. A vehicle comprising: Display module and controller; The display module is used to: display a first application window; A first element is drawn on the drawing surface of the first application window; The controller is used to: set the three-dimensional image window in a layer below the first application window; a second element corresponding to the first application window is drawn on the drawing surface of the three-dimensional image window, and the second element is obtained by rendering based on the three-dimensional model; Setting the first window background state of the first application window to a target state; When the first window background state of the first application window is the target state, the display module is controlled to display a first target display interface in which the first element and the second element are superimposed.