Display method, device, vehicle and storage medium
By acquiring and rendering the format data of the target model, the problem of being unable to replace the three-dimensional car model on the car instrument display screen in the existing technology is solved, and user-personalized three-dimensional car model replacement is realized, thereby improving the user experience.
Patent Information
- Application Number
- CN202211422963.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-14
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-11-14
AI Technical Summary
Existing technologies cannot realize the replacement of three-dimensional car models in automobile instrument display screens, resulting in a reduced user experience.
By obtaining the format data of the target model, writing it into the preset field of the model data template, and rendering and displaying it, the replacement of the three-dimensional car model can be achieved.
It enhances the user's driving experience and meets the user's demand for replacing personalized three-dimensional car models.
Smart Images

Figure CN115712475B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a display method, device, vehicle and storage medium. Background Art
[0002] Conventional instruments in general cars include a speedometer, tachometer, oil pressure gauge, water temperature gauge, fuel gauge, charging meter, etc. In some vehicles, the skin corresponding to the content displayed on the instrument is replaceable, but it only includes replacing the pictures, and it is difficult to replace the three-dimensional car model in the instrument display screen. Therefore, the existing method for replacing the content of vehicle instruments cannot meet the user's demand for replacing the displayed three-dimensional car model, thereby reducing the user experience and bringing some driving inconvenience to the car owner.
[0003] Therefore, it is necessary to propose a new technical solution to achieve replacement of the three-dimensional car model displayed on the instrument display screen. Summary of the Invention
[0004] In view of this, the present application provides a display method, device, vehicle and storage medium, which are intended to enable users to change the display style of the car model on the instrument display screen according to their personal preferences.
[0005] In a first aspect, the present application provides a display method applied to a vehicle instrument, the method comprising:
[0006] Get the format data of the target model;
[0007] Writing the format data into a preset field of a model data template to obtain model data of the target model;
[0008] The target model is rendered according to the model data of the target model, and the target model is displayed in the interface of the vehicle instrument.
[0009] Optionally, the format data includes:
[0010] Vertex data, texture data, normal data, and face data;
[0011] Writing the format data into a preset field of the model data template includes:
[0012] The vertex data, the texture data, the normal data and the surface data are respectively written into the preset fields of the corresponding model data template.
[0013] Optionally, writing the vertex data, the texture data, the normal data, and the surface data into corresponding preset fields of the model data template respectively includes:
[0014] Writing the vertex data into the vertex field of the model data template;
[0015] Writing the texture data into the texture field of the model data template;
[0016] Writing the normal data into the normal field of the model data template;
[0017] The face data is written into the face field of the model data template.
[0018] Optionally, obtaining the format data of the target model includes:
[0019] Get the configuration file of the target model;
[0020] The configuration file is automatically parsed to obtain the storage path of the target model, and the format data of the target model is obtained by parsing the file corresponding to the storage path.
[0021] Optionally, rendering the target model according to the model data of the target model includes:
[0022] A grid structure corresponding to the target model is created according to the model data of the target model, and the target model is rendered using the grid structure.
[0023] In a second aspect, the present application provides a display device, comprising:
[0024] The acquisition module is used to obtain the format data of the target model;
[0025] A reading and writing module, used for writing the format data into a preset field of the model data template to obtain the model data of the target model;
[0026] A display module is used to render the target model according to the model data of the target model and display the target model in the interface of the vehicle instrument.
[0027] Optionally, the format data includes:
[0028] Vertex data, texture data, normal data, and face data;
[0029] The read-write module is specifically used for:
[0030] The vertex data, the texture data, the normal data and the surface data are respectively written into the preset fields of the corresponding model data template.
[0031] Optionally, writing the vertex data, the texture data, the normal data, and the surface data into corresponding preset fields of the model data template respectively includes:
[0032] Writing the vertex data into the vertex field of the model data template;
[0033] Writing the texture data into the texture field of the model data template;
[0034] Writing the normal data into the normal field of the model data template;
[0035] The face data is written into the face field of the model data template.
[0036] Optionally, obtaining the format data of the target model includes:
[0037] Get the configuration file of the target model;
[0038] The configuration file is automatically parsed to obtain the storage path of the target model, and the format data of the target model is obtained by parsing the file corresponding to the storage path.
[0039] Optionally, the display module is specifically configured to create a grid structure corresponding to the target model according to the model data of the target model, and render the target model using the grid structure.
[0040] In a third aspect, the present application provides a vehicle comprising a memory and a processor, wherein the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the vehicle executes any of the methods described in the first aspect.
[0041] In a fourth aspect, the present application provides a computer storage medium having codes stored therein. When the codes are executed, a vehicle executing the codes implements the method described in any one of the first aspects above.
[0042] The present application provides a display method. When executing the method, the format data of the target model is first obtained, the format data is written into the preset field of the model data template to obtain the model data of the target model, and then the target model is rendered according to the model data of the target model, and the target model is displayed on the display screen of the vehicle instrument, so that the user can replace the model on the vehicle instrument display screen according to personal preference. In this way, by obtaining the format data of the target theme and creating a three-dimensional car model according to the format data, the effect of being able to replace the three-dimensional car model is achieved. In this way, the user's driving experience can be enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the following briefly introduces the drawings required for use in the embodiment or the prior art description. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A flowchart of a display method provided in an embodiment of the present application;
[0045] Figure 2 This is an example diagram of a model Obj format provided in an embodiment of the present application;
[0046] Figure 3 An example diagram of a model format provided in an embodiment of the present application;
[0047] Figure 4 A schematic structural diagram of a display device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following describes embodiments of the present application in more detail with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustrative purposes only and are not intended to limit the scope of protection of the present application.
[0049] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0050] It should be noted that the concepts of "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units. It should be noted that the modifications of "one" and "a plurality of" mentioned in this application are illustrative and not restrictive. Those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or more".
[0051] The embodiment of the present application provides a display method. The styles displayed on the existing vehicle instrument display screen are basically fixed. Even if there are replaceable three-dimensional car models, they are of several types inherent in the vehicle when it leaves the factory. Some users hope to have more types of three-dimensional car models to choose from. Therefore, the types of three-dimensional car models in the existing vehicle instrument display screen cannot meet the users' replacement needs.
[0052] The present application provides a display method, device, vehicle and storage medium, which can replace the style of the three-dimensional car model in the instrument display screen, meet the user's personalized setting needs, and improve the user's driving experience.
[0053] Example 1
[0054] See also Figure 1 , Figure 1 The flowchart of the display method provided in the embodiment of the present application includes:
[0055] S101: Acquire format data of the target model.
[0056] The target model is the model that will be displayed on the instrument display screen after the user selects it in the theme mall. When the user selects the target model, the instrument human-computer interaction interface will download the file package of the target theme and obtain the format data corresponding to the target model.
[0057] After parsing the configuration file, the name and storage path corresponding to the target model will be obtained. According to the name and storage path, the storage file of the target model can be obtained in Obj format. Figure 2 , Figure 2 This is a model Obj format example provided in an embodiment of the present application. The format data can be obtained after manually parsing the file.
[0058] S102: Writing the format data into a preset field of a model data template to obtain model data of the target model.
[0059] Before building a three-dimensional car model, it is necessary to build a model data template. The model data template has a reserved position corresponding to the format data. After obtaining the format data corresponding to the target model, the format data needs to be written into the preset field of the model data template to obtain the complete model data corresponding to the target model.
[0060] It should be noted that the model data template consists of two parts, one part is a fixed and unchangeable field, and the other part is a changeable field, which is a preset field. When changing the model, you only need to write the format data of the target model into the preset field.
[0061] S103: Rendering the target model according to the model data of the target model, and displaying the target model in the interface of the vehicle instrument.
[0062] After obtaining the model data corresponding to the target model, the target model needs to be rendered, that is, the original car model is replaced with the target model, and the target model is converted from the form of data model data to a grid state to replace the original model.
[0063] In one implementation of the embodiment of the present application, the format data includes:
[0064] Vertex data, texture data, normal data, and face data;
[0065] Writing the format data into a preset field of the model data template includes:
[0066] Writing the vertex data into the vertex field of the model data template;
[0067] Writing the texture data into the texture field of the model data template;
[0068] Writing the normal data into the normal field of the model data template;
[0069] The face data is written into the face field of the model data template.
[0070] After decompressing the target model's configuration file, the target model's name and storage path are obtained. This storage path allows the corresponding Obj file to be retrieved. Parsing this file yields the corresponding format data, including vertex data, texture data, normal data, and face data. It should be noted that 3D models can be in Obj file format, requiring manual parsing to generate custom format data. A 3D model is composed of vertex data, face data, normal data, and textures. In the parsed Obj file, "v" represents vertex data, "vt" represents vertex texture data, "vn" represents vertex normal data, and "f" represents face data. A face is composed of vertex data, texture data, and normal data, for example: fv1 / vt1 / vn1 v2 / vt2 / vn2 v3 / vt3 / vn3...
[0071] It is understandable that the texture data has two coordinate axes, U and V, and is therefore called UV coordinates. The "UV" in three-dimensional modeling can be understood as the "skin" of a three-dimensional model. The "skin" is unfolded and then drawn on a two-dimensional plane and assigned to the object. Each point on the image is accurately mapped to the surface of the model object, and the gaps between points are smoothly interpolated by the software. The process of creating a model of the target subject according to the format data goes through the "UV mapping" and "UV unfolding" processes, where UV mapping is a planar representation of the surface of a three-dimensional model for easy packaging of textures. The process of creating UV mapping is called UV unfolding, which is based on modeling polygonal meshes. After "UV mapping" and "UV unfolding", the mesh properties are dynamically set to achieve the purpose of switching models.
[0072] After obtaining the data required to construct the three-dimensional model, the vertex data is written into the vertex field of the model data template, the texture data is written into the texture field of the model data template, the normal data is written into the normal field of the model data template, and the surface data is written into the surface field of the model data template, for example Figure 3 The model data example diagram in , from which the model data corresponding to the target model can be obtained.
[0073] In one implementation of the present application, the preset model data template is a model data template dynamically created via the Kanzi interface. The model data template is dynamically created via the Kanzi interface, and the format data required for model creation is written into the model data template. Dynamically creating a model data template means that different dynamically created model data templates can be created for different Obj format files to enable the replacement of different styles of 3D vehicle models.
[0074] In one implementation of the embodiment of the present application, obtaining the format data of the target model includes:
[0075] Get the configuration file of the target model;
[0076] The configuration file is automatically parsed to obtain the storage path of the target model, and the format data is obtained by manually parsing the file corresponding to the storage path.
[0077] When the user downloads and uses a new 3D model, the instrument human-machine interface will parse the new skin configuration file to obtain the specific location where the target model is stored and the name of the model. The Obj file of the model can be found according to the storage path and the corresponding model name. After manual parsing, the following can be obtained: Figure 3 Obj file of a model shown.
[0078] In one implementation of the embodiment of the present application, creating the target model according to the model data of the target model includes creating a grid structure corresponding to the target model according to the model data, setting the grid structure using the set Property method, and creating the target model. Figure 3 The example model format shown in the figure also requires creating a mesh based on the model data to obtain the final display form of the target model. It should be noted that in addition to the car model, the 3D model can also include a 3D virtual portrait, a dial display, and various 3D images. The specific form can be set according to the user's personal preference and is not specifically limited here.
[0079] The above embodiment provides a display method. When executing the method, the format data of the target model is first obtained, and the format data is written into a preset field of the model data template to obtain the model data of the target model. Then, based on the model data of the target model, the target model is rendered and displayed on the display screen of the vehicle instrument, so that the user can replace the model on the vehicle instrument display screen according to personal preference. In this way, by obtaining the format data of the target theme and creating a three-dimensional vehicle model based on the format data, the effect of being able to replace the three-dimensional vehicle model is achieved. In this way, the user's driving experience can be enhanced.
[0080] Example 2
[0081] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a display device provided in an embodiment of the present application, the device comprising:
[0082] The acquisition module 400 is used to obtain the format data of the target model;
[0083] The reading and writing module 410 is used to write the format data into a preset field of the model data template to obtain the model data of the target model;
[0084] The display module 420 is used to render the target model according to the model data of the target model and display the target model in the interface of the vehicle instrument.
[0085] In one implementation of the embodiment of the present application, the display module format data includes:
[0086] Vertex data, texture data, normal data, and face data;
[0087] Writing the format data into a preset field of the model data template includes:
[0088] Writing the vertex data into the vertex field of the model data template;
[0089] Writing the texture data into the texture field of the model data template;
[0090] Writing the normal data into the normal field of the model data template;
[0091] The face data is written into the face field of the model data template.
[0092] In one implementation of the embodiment of the present application, the preset model data template is:
[0093] Model data template dynamically created through the Kanzi interface.
[0094] In one implementation of the embodiment of the present application, the acquisition module is further configured to acquire a configuration file of the target model;
[0095] The configuration file is automatically parsed to obtain the storage path of the target model, and the format data is obtained by manually parsing the file corresponding to the storage path.
[0096] Optionally, the display module is further configured to create a grid structure corresponding to the target model according to the model data, set the grid structure using a set Property method, and create the target model.
[0097] The above embodiment provides a display device. The device is capable of acquiring target model format data, writing the format data into a preset field of a model data template, obtaining model data for the target model, and then rendering the target model based on the model data. The target model is then displayed on the display screen of the vehicle instrument panel, allowing the user to change the model on the vehicle instrument panel display screen according to their personal preferences. In this way, by acquiring the format data of the target theme and creating a three-dimensional vehicle model based on the format data, the effect of being able to change the three-dimensional vehicle model is achieved. This can enhance the user's driving experience.
[0098] The embodiments of the present application also provide corresponding vehicles and computer storage media for implementing the solutions provided in the embodiments of the present application.
[0099] The vehicle includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the vehicle executes the method described in any embodiment of the present application.
[0100] It should be noted that the computer-readable medium mentioned above in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0101] The computer storage medium stores codes, and when the codes are executed, the vehicle executing the codes implements the method described in any embodiment of the present application.
[0102] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] Through the description of the above embodiments, it can be known that those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by means of software plus a general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a read-only memory (ROM) / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network communication device such as a router) to execute the methods described in each embodiment or certain parts of the embodiments of the present application.
[0104] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment. Some or all of the modules can be selected according to actual needs to achieve the purpose of the embodiment. Those of ordinary skill in the art can understand and implement it without paying any creative work.
[0105] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0106] It should also be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The device and apparatus embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. A person of ordinary skill in the art can understand and implement it without expending creative work.
[0107] The above is merely one specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A display method, characterized in that: Applied to a vehicle instrument, the method includes: Get the format data of the target model; Writing the format data into a preset field of a model data template to obtain model data of the target model; Rendering the target model according to the model data of the target model, and displaying the target model in the interface of the vehicle instrument; The target model is the model that the user selects in the theme mall and will be displayed on the instrument display screen; The model data template consists of two parts, one part is fixed and unchangeable fields, and the other part is changeable fields, which are preset fields. When changing the model, you only need to write the format data of the target model into the preset fields.
2. The method according to claim 1, characterized in that The format data includes: Vertex data, texture data, normal data, and face data; Writing the format data into a preset field of the model data template includes: The vertex data, the texture data, the normal data and the surface data are respectively written into the preset fields of the corresponding model data template.
3. The method according to claim 2, characterized in that Writing the vertex data, the texture data, the normal data, and the surface data into corresponding preset fields of the model data template includes: Writing the vertex data into the vertex field of the model data template; Writing the texture data into the texture field of the model data template; Writing the normal data into the normal field of the model data template; The face data is written into the face field of the model data template.
4. The method according to claim 1, wherein The method of obtaining the format data of the target model includes: Get the configuration file of the target model; The configuration file is automatically parsed to obtain the storage path of the target model, and the format data of the target model is obtained by parsing the file corresponding to the storage path.
5. The method according to claim 1, characterized in that Rendering the target model according to the model data of the target model includes: A grid structure corresponding to the target model is created according to the model data of the target model, and the target model is rendered using the grid structure.
6. A display device, characterized in that: The device comprises: The acquisition module is used to obtain the format data of the target model; A reading and writing module, used for writing the format data into a preset field of the model data template to obtain the model data of the target model; A display module, configured to render the target model according to the model data of the target model and display the target model in an interface of a vehicle instrument; The target model is the model that the user selects in the theme mall and will be displayed on the instrument display screen; The model data template consists of two parts, one part is fixed and unchangeable fields, and the other part is changeable fields, which are preset fields. When changing the model, you only need to write the format data of the target model into the preset fields.
7. The device according to claim 6, characterized in that The acquisition module is specifically used for: Get the configuration file of the target model; The configuration file is automatically parsed to obtain the storage path of the target model, and the format data is obtained by manually parsing the file corresponding to the storage path.
8. The device according to claim 6, characterized in that The display module is specifically used for: A grid structure corresponding to the target model is created according to the model data of the target model, and the target model is rendered using the grid structure.
9. A vehicle, characterized in that: The vehicle includes: a memory, a processor, and a vehicle instrument; The vehicle instrument is used to display the target model; The memory stores computer instructions, and when the computer instructions are executed by the processor, the method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method for automatically transforming DWG three-dimensional model into X three-dimensional model
CN104750913A
Vehicle-mounted instrument content three-dimensional display method and device
CN114816631A