CN117635790A - Vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity - Google Patents
Vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity Download PDFInfo
- Publication number
- CN117635790A CN117635790A CN202310051727.1A CN202310051727A CN117635790A CN 117635790 A CN117635790 A CN 117635790A CN 202310051727 A CN202310051727 A CN 202310051727A CN 117635790 A CN117635790 A CN 117635790A
- Authority
- CN
- China
- Prior art keywords
- virtual scene
- image
- hud
- presentation effect
- hud interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01M—TESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
- G01M11/00—Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
- G01M11/02—Testing optical properties
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B27/00—Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
- G02B27/01—Head-up displays
- G02B27/0101—Head-up displays characterised by optical features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/06—Ray-tracing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B27/00—Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
- G02B27/01—Head-up displays
- G02B27/0101—Head-up displays characterised by optical features
- G02B2027/014—Head-up displays characterised by optical features comprising information/image processing systems
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Architecture (AREA)
- Analytical Chemistry (AREA)
- Chemical & Material Sciences (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Optics & Photonics (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a vehicle-mounted head-up display presentation effect verification method, a system and a medium based on Unity, wherein the method comprises the following steps: obtaining a virtual scene; adding a scene filter to the virtual scene and configuring the virtual scene; acquiring an HUD interface image; importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image; adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model; and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image. The invention provides a convenient test environment simulation method, and can conveniently test the interface display effect of the head-up display interface through a rendering technology with realistic effect.
Description
Technical Field
The application relates to the field of data processing and data transmission, in particular to a vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity.
Background
The Head Up Display (HUD) technology refers to that light emitted by an image source is finally projected onto an imaging window (an imaging plate, a windshield, etc.) through a reflective optical design, so that a driver can directly see information such as speed per hour and navigation without lowering the head while observing the real environment outside the windshield, distraction caused by the fact that the driver looks at a dashboard or a central control screen at a low head in the driving process is avoided, driving safety coefficient is further improved, and better driving experience can be brought. When a driver drives a vehicle, the environment in which the driver is positioned is changed, so that the design of the interface displayed by the head-up display is required, i.e. the interface needs to have certain visibility in various environments as much as possible. Verification of this visibility often requires field observation by a real vehicle, which is inefficient and complex to operate.
The Unity3D is a multi-platform comprehensive game development tool developed by Unitytechnologies, which enables users to easily create interactive contents such as three-dimensional video games, building visualizations, real-time three-dimensional animations and the like, and is a comprehensive integrated professional game engine.
In 3D computer graphics, ray tracing is a rendering technique for generating images by tracing the path of light in pixels in the image plane and simulating the effect of it encountering a virtual object. This technique can produce a high degree of visual realism compared to typical scanline rendering methods.
When the visibility of the design of the head-up display interface is verified, the test environment cannot be conveniently arranged. For example, it is very cumbersome to provide a test vehicle with a piece of snow, in order to verify that the color of the snow-mode interface is reasonably used.
Therefore, the prior art has defects, and improvement is needed.
Disclosure of Invention
In view of the above problems, the invention aims to provide a vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity, which can test the interface display effect of a head-up display interface more conveniently and more quickly.
The first aspect of the invention provides a vehicle-mounted head-up display presentation effect verification method based on Unity, which comprises the following steps:
obtaining a virtual scene;
adding a scene filter to the virtual scene and configuring the virtual scene;
acquiring an HUD interface image;
importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image;
adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model;
and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image.
In the present solution, in the case of the present solution,
the virtual scene comprises a light, a camera, a patch model for displaying HUD images and an environment model.
In this scheme, add the scene filter to the virtual scene and dispose, specifically:
adding Volume configuration in the virtual scene, wherein the Volume configuration comprises an environment Volume and a post-screen processing Volume;
and importing a preset scene model into the virtual scene, and constructing an environment model of the virtual scene to obtain a virtual scene environment model.
In this scheme, will HUD interface image import virtual scene is shown, includes:
acquiring a shader;
processing the material balls of the patch model of the virtual scene through the shader to obtain a patch model for displaying the HUD image;
and displaying the imported HUD interface image through the patch model for displaying the HUD image.
In this scheme, adjust the virtual scene environment model through adjusting each item parameter of virtual scene, obtain the virtual scene environment model after the adjustment, include:
acquiring various parameter information of a virtual scene;
adjusting the parameter information of the virtual scene by an adjusting tool to obtain the adjusted parameter information of the virtual scene;
adjusting the virtual scene environment model according to the parameter information of the adjusted virtual scene to obtain an adjusted virtual scene environment model;
and the parameter information of the virtual scene comprises HUD interface parameter information and environment configuration information.
In this scheme, verify the presentation effect of HUD interface image through the presentation effect of HUD interface image at the virtual scene environment model after the adjustment, obtain the presentation effect information of HUD interface image, include:
acquiring HUD interface presentation image data;
analyzing according to the HUD interface presentation image data to obtain image attributes of the HUD interface presentation image data;
comparing the HUD interface presentation image data with a preset sample image to obtain an image attribute score of the HUD interface presentation image data;
calculating the image attribute scores of the HUD interface presentation image data according to a preset method to obtain presentation effect information of the HUD interface image;
the image attributes include image brightness, sharpness, contrast, and image ghosting.
The invention provides a vehicle-mounted head-up display presentation effect verification system based on Unity, which comprises a memory and a processor, wherein the memory comprises a vehicle-mounted head-up display presentation effect verification method program based on Unity, and the vehicle-mounted head-up display presentation effect verification method program based on Unity is executed by the processor to realize the following steps:
obtaining a virtual scene;
adding a scene filter to the virtual scene and configuring the virtual scene;
acquiring an HUD interface image;
importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image;
adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model;
and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image.
In the present solution, in the case of the present solution,
the virtual scene comprises a light, a camera, a patch model for displaying HUD images and an environment model.
In this scheme, add the scene filter to the virtual scene and dispose, specifically:
adding Volume configuration in the virtual scene, wherein the Volume configuration comprises an environment Volume and a post-screen processing Volume;
and importing a preset scene model into the virtual scene, and constructing an environment model of the virtual scene to obtain a virtual scene environment model.
In this scheme, will HUD interface image import virtual scene is shown, includes:
acquiring a shader;
processing the material balls of the patch model of the virtual scene through the shader to obtain a patch model for displaying the HUD image;
and displaying the imported HUD interface image through the patch model for displaying the HUD image.
In this scheme, adjust the virtual scene environment model through adjusting each item parameter of virtual scene, obtain the virtual scene environment model after the adjustment, include:
acquiring various parameter information of a virtual scene;
adjusting the parameter information of the virtual scene by an adjusting tool to obtain the adjusted parameter information of the virtual scene;
adjusting the virtual scene environment model according to the parameter information of the adjusted virtual scene to obtain an adjusted virtual scene environment model;
and the parameter information of the virtual scene comprises HUD interface parameter information and environment configuration information.
In this scheme, verify the presentation effect of HUD interface image through the presentation effect of HUD interface image at the virtual scene environment model after the adjustment, obtain the presentation effect information of HUD interface image, include:
acquiring HUD interface presentation image data;
analyzing according to the HUD interface presentation image data to obtain image attributes of the HUD interface presentation image data;
comparing the HUD interface presentation image data with a preset sample image to obtain an image attribute score of the HUD interface presentation image data;
calculating the image attribute scores of the HUD interface presentation image data according to a preset method to obtain presentation effect information of the HUD interface image;
the image attributes include image brightness, sharpness, contrast, and image ghosting.
The third aspect of the present invention provides a computer readable storage medium, where the computer readable storage medium includes a Unity-based vehicle-mounted head-up display presentation effect verification method program, where when the Unity-based vehicle-mounted head-up display presentation effect verification method program is executed by a processor, the steps of the Unity-based vehicle-mounted head-up display presentation effect verification method according to any one of the above are implemented.
The invention discloses a vehicle-mounted head-up display presentation effect verification method, a system and a medium based on Unity, wherein the method comprises the following steps: obtaining a virtual scene; adding a scene filter to the virtual scene and configuring the virtual scene; acquiring an HUD interface image; importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image; adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model; and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image. The invention provides a convenient test environment simulation method, and can conveniently test the interface display effect of the head-up display interface through a rendering technology with realistic effect.
Drawings
FIG. 1 shows a flow chart of a Unity-based vehicle head-up display presentation effect verification method of the present invention;
FIG. 2 is a flow chart showing a specific method for importing the HUD interface image into a virtual scene according to the present invention;
FIG. 3 is a flow chart of a method of adjusting a virtual scene environment model by adjusting parameters of a virtual scene in accordance with the present invention;
FIG. 4 illustrates a block diagram of a Unity-based vehicle head-up display presentation effect verification system of the present invention;
FIG. 5 illustrates a virtual scene configuration effect diagram of the present invention;
FIG. 6 illustrates an image of a HUD interface employed by the present invention;
FIG. 7 is a diagram showing the effect of a texture ball of a patch model for displaying HUD images in accordance with the present invention;
FIG. 8 illustrates a panel diagram of an environmental parameter adjustment tool of the present invention;
fig. 9 is a view showing the presentation effect of the interface display effect of the test head-up display interface in the sunset scene in the present invention.
Fig. 10 shows a presentation effect diagram of an interface display effect of a test head-up display interface in a foggy scene in the present invention.
FIG. 11 is a presentation effect diagram showing an interface display effect of a test head-up display interface in a snowfield scene in the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
FIG. 1 shows a flow chart of the vehicle head-up display presentation effect verification method based on Unity.
As shown in fig. 1, the invention discloses a vehicle-mounted head-up display presentation effect verification method based on Unity, which comprises the following steps:
s102, obtaining a virtual scene;
s104, adding a scene filter to the virtual scene and configuring the virtual scene;
s106, acquiring an HUD interface image;
s108, importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image;
s110, adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model;
and S112, verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image.
According to the embodiment of the invention, based on the development of the Unity engine, the main function is to import and display an image of a HUD (head up display) interface design, and different illumination and weather conditions are set through various adjusting parameters provided by a tool to simulate the display effect of the HUD interface under different environments. Firstly, establishing a virtual scene, then importing and attaching the HUD interface to the patch model, adjusting the virtual scene environment by adjusting various parameters of the scene model and the environment configuration, and verifying by observing different scene models of the virtual HUD interface and different display effects in adjustment. The invention provides a convenient test environment simulation method, and can conveniently test the interface display effect of the head-up display interface through a rendering technology with realistic effect.
In accordance with an embodiment of the present invention,
the virtual scene comprises a light, a camera, a patch model for displaying HUD images and an environment model.
The patch model for displaying the HUD image is located between the camera and the environment model, and the camera is used for capturing a virtual scene picture, and rendering and outputting the virtual scene picture. The light is used for adjusting the illumination condition of the virtual scene.
According to the embodiment of the invention, a scene filter is added to the virtual scene and is configured, specifically:
adding Volume configuration in the virtual scene, wherein the Volume configuration comprises an environment Volume and a post-screen processing Volume;
and importing a preset scene model into the virtual scene, and constructing an environment model of the virtual scene to obtain a virtual scene environment model.
It should be noted that adding Volume configuration in the scene is divided into the following two volumes:
the environment Volume, responsible for the environment configuration of the virtual scene, includes:
visual environment: the sky type is set as PhysicallyBasedSky, and AmbientMode is set as Dynamic; physicallyBasedSky: setting the type as Earth (Advanced), adding SpaceEmissionTexture for simulating night starry sky; fog: selecting Enable, volumetricFog to start the volume fog function; volummetricClouds: enable is checked to turn on the volume cloud function.
The screen post-processing Volume is responsible for adding post-processing effects for the virtual camera, including:
screen space global illumination: setting the tracking type as RayTrating; screen space reflection: setting tracking type to RayTrating
ambientOcclusion: starting RayTrading; tonemappling: setting as Neutral; exposure: mode is set to Automatic.
Adding Directionlight for simulating sunlight, and opening Screen spaces and RayTracedShadows
The preset scene model comprises an urban environment scene model and a snow environment scene model, wherein a set of urban 3D models are imported as the urban environment scene model; a Terrain component is added to the snow environment scene model, and a Terrain editor is used for drawing snow textures.
FIG. 2 is a flow chart showing a specific method for importing the HUD interface image into the virtual scene according to the present invention
As shown in fig. 2, according to an embodiment of the present invention, the HUD interface image is imported into a virtual scene and displayed, including:
s202, acquiring a shader;
s204, processing the material balls of the patch model of the virtual scene through the shader to obtain a patch model for displaying the HUD image;
and S206, displaying the imported HUD interface image through the patch model for displaying the HUD image.
In addition, a Quad grid is added to the virtual environment to display the HUD image, and balls are given to the grid. The material ball uses an HDRP/Lit coloring device provided by a Unity editor, and the coloring device has the functions of black elimination and self-luminescence, and simulates partial HUD imaging characteristics. The partial HUD imaging characteristic is that the HUD projects a picture onto a windshield by a light machine, so that the partial HUD imaging characteristic has the following characteristics: the black part of the projection picture presents transparent effect; the visibility of the projected picture (definition, brightness of the picture) is affected by ambient light, weather conditions, object color behind the windshield; color deviation caused by reflection and scattering of light.
FIG. 3 is a flow chart showing a method for adjusting a virtual scene environment model by adjusting various parameters of a virtual scene in accordance with the present invention
As shown in fig. 3, according to an embodiment of the present invention, by adjusting various parameters of a virtual scene, an adjusted virtual scene environment model is obtained, including:
s302, acquiring various parameter information of a virtual scene;
s304, adjusting the parameter information of the virtual scene through an adjusting tool to obtain the adjusted parameter information of the virtual scene;
s306, adjusting the virtual scene environment model according to the parameter information of the adjusted virtual scene to obtain an adjusted virtual scene environment model;
s308, each item of parameter information of the virtual scene includes HUD interface parameter information and environment configuration information.
It should be noted that, the HUD interface parameter information includes brightness and height information of the HUD interface image, and the environment configuration information includes illumination and weather information, including illumination angle information, fog concentration information, and whether to open the snow environment. The illumination angle information is adjusted by modifying the X value and the Y value of the Rotation of the directionlight in the virtual environment, the Fog concentration information is adjusted by modifying the FogAttenualiondistance in the Fog configuration of the environment Volume, the brightness of the HUD interface image is adjusted by modifying the Basecolor and the Emmisecolor of the HUD grid material balls, and the height of the HUD interface image is adjusted by modifying the Y value of the Position of the HUD grid.
According to the embodiment of the invention, the presenting effect of the HUD interface image is verified by the presenting effect of the HUD interface image in the adjusted virtual scene environment model, so as to obtain the presenting effect information of the HUD interface image, which comprises the following steps:
acquiring HUD interface presentation image data;
analyzing according to the HUD interface presentation image data to obtain image attributes of the HUD interface presentation image data;
comparing the HUD interface presentation image data with a preset sample image to obtain an image attribute score of the HUD interface presentation image data;
calculating the image attribute scores of the HUD interface presentation image data according to a preset method to obtain presentation effect information of the HUD interface image;
the image attributes include image brightness, sharpness, contrast, and image ghosting.
It should be noted that, the preset sample image is an image attribute configuration of the image data presented by the HUD interface with the best appearance. The preset method is to calculate the image attribute scores of the HUD interface presentation image data by a weighted calculation method, compare the HUD interface presentation image data with a preset sample image, score four image attributes of image brightness, definition, contrast and image ghost of the HUD interface presentation image data, and calculate the weights of the four image attributes of the image brightness, definition, contrast and image ghost by a weighted calculation method to obtain presentation effect information of the HUD interface image.
According to an embodiment of the present invention, further comprising:
and processing the HUD interface image through a ray tracing function, and simulating the imaging effect of the HUD interface image in the real world.
It should be noted that, the high definition rendering pipeline provided by Unity needs to be used to turn on the ray tracing function, and restore the imaging effect of the HUD in the real world in the virtual scene. The ray tracing function is to simulate physical properties of rays in the real world by utilizing an algorithm, and accurately process shadows, reflection and refraction of objects and global illumination, so that the HUD interface image is more realistic and more realistic in a virtual scene.
FIG. 4 illustrates a block diagram of the on-vehicle heads-up display presentation effect verification system of the present invention based on Unity.
As shown in fig. 4, the second aspect of the present invention provides a vehicle-mounted head-up display presentation effect verification system 4 based on Unity, which includes a memory 41 and a processor 42, where the memory includes a vehicle-mounted head-up display presentation effect verification method program based on Unity, and when the vehicle-mounted head-up display presentation effect verification method program based on Unity is executed by the processor, the following steps are implemented:
obtaining a virtual scene;
adding a scene filter to the virtual scene and configuring the virtual scene;
acquiring an HUD interface image;
importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image;
adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model;
and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image.
According to the embodiment of the invention, based on the development of the Unity engine, the main function is to import and display an image of a HUD (head up display) interface design, and different illumination and weather conditions are set through various adjusting parameters provided by a tool to simulate the display effect of the HUD interface under different environments. Firstly, establishing a virtual scene, then importing and attaching the HUD interface to the patch model, adjusting the virtual scene environment by adjusting various parameters of the scene model and the environment configuration, and verifying by observing different scene models of the virtual HUD interface and different display effects in adjustment. The invention provides a convenient test environment simulation method, and can conveniently test the interface display effect of the head-up display interface through a rendering technology with realistic effect.
In accordance with an embodiment of the present invention,
the virtual scene comprises a light, a camera, a patch model for displaying HUD images and an environment model.
The patch model for displaying the HUD image is located between the camera and the environment model, and the camera is used for capturing a virtual scene picture, and rendering and outputting the virtual scene picture. The light is used for adjusting the illumination condition of the virtual scene.
According to the embodiment of the invention, a scene filter is added to the virtual scene and is configured, specifically:
adding Volume configuration in the virtual scene, wherein the Volume configuration comprises an environment Volume and a post-screen processing Volume;
and importing a preset scene model into the virtual scene, and constructing an environment model of the virtual scene to obtain a virtual scene environment model.
It should be noted that adding Volume configuration in the scene is divided into the following two volumes:
the environment Volume, responsible for the environment configuration of the virtual scene, includes:
visual environment: the sky type is set as PhysicallyBasedSky, and AmbientMode is set as Dynamic; physicallyBasedSky: setting the type as Earth (Advanced), adding SpaceEmissionTexture for simulating night starry sky; fog: selecting Enable, volumetricFog to start the volume fog function; volummetricClouds: enable is checked to turn on the volume cloud function.
The screen post-processing Volume is responsible for adding post-processing effects for the virtual camera, including:
screen space global illumination: setting the tracking type as RayTrating; screen space reflection: setting tracking type to RayTrating
ambientOcclusion: starting RayTrading; tonemappling: setting as Neutral; exposure: mode is set to Automatic.
Adding Directionlight for simulating sunlight, and opening Screen spaces and RayTracedShadows
The preset scene model comprises an urban environment scene model and a snow environment scene model, wherein a set of urban 3D models are imported as the urban environment scene model; a Terrain component is added to the snow environment scene model, and a Terrain editor is used for drawing snow textures.
According to an embodiment of the present invention, importing and displaying the HUD interface image into a virtual scene includes:
acquiring a shader;
processing the material balls of the patch model of the virtual scene through the shader to obtain a patch model for displaying the HUD image;
and displaying the imported HUD interface image through the patch model for displaying the HUD image.
In addition, a Quad grid is added to the virtual environment to display the HUD image, and balls are given to the grid. The material ball uses an HDRP/Lit coloring device provided by a Unity editor, and the coloring device has the functions of black elimination and self-luminescence, and simulates partial HUD imaging characteristics. The partial HUD imaging characteristic is that the HUD projects a picture onto a windshield by a light machine, so that the partial HUD imaging characteristic has the following characteristics: the black part of the projection picture presents transparent effect; the visibility of the projected picture (definition, brightness of the picture) is affected by ambient light, weather conditions, object color behind the windshield; color deviation caused by reflection and scattering of light.
According to the embodiment of the invention, the virtual scene environment model is adjusted by adjusting various parameters of the virtual scene, so as to obtain the adjusted virtual scene environment model, which comprises the following steps:
acquiring various parameter information of a virtual scene;
adjusting the parameter information of the virtual scene by an adjusting tool to obtain the adjusted parameter information of the virtual scene;
adjusting the virtual scene environment model according to the parameter information of the adjusted virtual scene to obtain an adjusted virtual scene environment model;
and the parameter information of the virtual scene comprises HUD interface parameter information and environment configuration information.
It should be noted that, the HUD interface parameter information includes brightness and height information of the HUD interface image, and the environment configuration information includes illumination and weather information, including illumination angle information, fog concentration information, and whether to open the snow environment. The illumination angle information is adjusted by modifying the X value and the Y value of the Rotation of the directionlight in the virtual environment, the Fog concentration information is adjusted by modifying the FogAttenualiondistance in the Fog configuration of the environment Volume, the brightness of the HUD interface image is adjusted by modifying the Basecolor and the Emmisecolor of the HUD grid material balls, and the height of the HUD interface image is adjusted by modifying the Y value of the Position of the HUD grid.
According to the embodiment of the invention, the presenting effect of the HUD interface image is verified by the presenting effect of the HUD interface image in the adjusted virtual scene environment model, so as to obtain the presenting effect information of the HUD interface image, which comprises the following steps:
acquiring HUD interface presentation image data;
analyzing according to the HUD interface presentation image data to obtain image attributes of the HUD interface presentation image data;
comparing the HUD interface presentation image data with a preset sample image to obtain an image attribute score of the HUD interface presentation image data;
calculating the image attribute scores of the HUD interface presentation image data according to a preset method to obtain presentation effect information of the HUD interface image;
the image attributes include image brightness, sharpness, contrast, and image ghosting.
It should be noted that, the preset sample image is an image attribute configuration of the image data presented by the HUD interface with the best appearance. The preset method is to calculate the image attribute scores of the HUD interface presentation image data by a weighted calculation method, compare the HUD interface presentation image data with a preset sample image, score four image attributes of image brightness, definition, contrast and image ghost of the HUD interface presentation image data, and calculate the weights of the four image attributes of the image brightness, definition, contrast and image ghost by a weighted calculation method to obtain presentation effect information of the HUD interface image.
According to an embodiment of the present invention, further comprising:
and processing the HUD interface image through a ray tracing function, and simulating the imaging effect of the HUD interface image in the real world.
It should be noted that, the high definition rendering pipeline provided by Unity needs to be used to turn on the ray tracing function, and restore the imaging effect of the HUD in the real world in the virtual scene. The ray tracing function is to simulate physical properties of rays in the real world by utilizing an algorithm, and accurately process shadows, reflection and refraction of objects and global illumination, so that the HUD interface image is more realistic and more realistic in a virtual scene.
The third aspect of the present invention provides a computer readable storage medium, where the computer readable storage medium includes a vehicle-mounted head-up display presentation effect verification method program based on Un-performance, and when the vehicle-mounted head-up display presentation effect verification method program based on Un-performance is executed by a processor, the steps of the vehicle-mounted head-up display presentation effect verification method based on Un-performance described in any one of the above are implemented.
The invention discloses a vehicle-mounted head-up display presentation effect verification method, a vehicle-mounted head-up display presentation effect verification system and a vehicle-mounted head-up display presentation effect verification medium based on Un intensity, wherein the vehicle-mounted head-up display presentation effect verification method comprises the following steps: obtaining a virtual scene; adding a scene filter to the virtual scene and configuring the virtual scene; acquiring an HUD interface image; importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image; adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model; and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image. The invention provides a convenient test environment simulation method, and can conveniently test the interface display effect of the head-up display interface through a rendering technology with realistic effect.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Claims (10)
1. The vehicle-mounted head-up display presentation effect verification method based on Unity is characterized by comprising the following steps of:
obtaining a virtual scene;
adding a scene filter to the virtual scene and configuring the virtual scene;
acquiring an HUD interface image;
importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image;
adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model;
and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image.
2. The method for verifying a presentation effect of a vehicle-mounted head-up display based on Unity of claim 1, wherein,
the virtual scene comprises a light, a camera, a patch model for displaying HUD images and an environment model.
3. The method for verifying the on-vehicle head-up display presentation effect based on Unity according to claim 1, wherein a scene filter is added to the virtual scene and configured, specifically:
adding Volume configuration in the virtual scene, wherein the Volume configuration comprises an environment Volume and a post-screen processing Volume;
and importing a preset scene model into the virtual scene, and constructing an environment model of the virtual scene to obtain a virtual scene environment model.
4. The method for verifying the on-vehicle head-up display presentation effect based on Unity according to claim 1, wherein importing and displaying the HUD interface image into a virtual scene comprises:
acquiring a shader;
processing the material balls of the patch model of the virtual scene through the shader to obtain a patch model for displaying the HUD image;
and displaying the imported HUD interface image through the patch model for displaying the HUD image.
5. The method for verifying the on-vehicle head-up display presentation effect based on Unity according to claim 1, wherein the adjusting the virtual scene environment model by adjusting the parameters of the virtual scene to obtain the adjusted virtual scene environment model comprises:
acquiring various parameter information of a virtual scene;
adjusting the parameter information of the virtual scene by an adjusting tool to obtain the adjusted parameter information of the virtual scene;
adjusting the virtual scene environment model according to the parameter information of the adjusted virtual scene to obtain an adjusted virtual scene environment model;
and the parameter information of the virtual scene comprises HUD interface parameter information and environment configuration information.
6. The method for verifying the presentation effect of the vehicle-mounted head-up display based on Unity according to claim 1, wherein verifying the presentation effect of the HUD interface image by the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image comprises:
acquiring HUD interface presentation image data;
analyzing according to the HUD interface presentation image data to obtain image attributes of the HUD interface presentation image data;
comparing the HUD interface presentation image data with a preset sample image to obtain an image attribute score of the HUD interface presentation image data;
calculating the image attribute scores of the HUD interface presentation image data according to a preset method to obtain presentation effect information of the HUD interface image;
the image attributes include image brightness, sharpness, contrast, and image ghosting.
7. The vehicle-mounted head-up display presentation effect verification system based on Unity is characterized by comprising a memory and a processor, wherein the memory comprises a vehicle-mounted head-up display presentation effect verification method program based on Unity, and the vehicle-mounted head-up display presentation effect verification method program based on Unity is executed by the processor to realize the following steps:
obtaining a virtual scene;
adding a scene filter to the virtual scene and configuring the virtual scene;
acquiring an HUD interface image;
importing the HUD interface image, attaching the HUD interface image to a patch model and displaying the HUD interface image;
adjusting the virtual scene environment model by adjusting various parameters of the virtual scene to obtain an adjusted virtual scene environment model;
and verifying the presentation effect of the HUD interface image according to the presentation effect of the HUD interface image in the adjusted virtual scene environment model to obtain the presentation effect information of the HUD interface image.
8. The Unity-based vehicle head-up display presentation effect verification system according to claim 7, wherein importing and displaying the HUD interface image into a virtual scene comprises:
acquiring a shader;
processing the material balls of the patch model of the virtual scene through the shader to obtain a patch model for displaying the HUD image;
and displaying the imported HUD interface image through the patch model for displaying the HUD image.
9. The Unity-based vehicle-mounted head-up display presentation effect verification system according to claim 7, wherein the adjusting the virtual scene environment model by adjusting parameters of the virtual scene to obtain the adjusted virtual scene environment model comprises:
acquiring various parameter information of a virtual scene;
adjusting the parameter information of the virtual scene by an adjusting tool to obtain the adjusted parameter information of the virtual scene;
adjusting the virtual scene environment model according to the parameter information of the adjusted virtual scene to obtain an adjusted virtual scene environment model;
and the parameter information of the virtual scene comprises HUD interface parameter information and environment configuration information.
10. A computer readable storage medium, wherein the computer readable storage medium includes a vehicle-mounted head-up display presentation effect verification method program based on Unity, and when the vehicle-mounted head-up display presentation effect verification method program based on Unity is executed by a processor, the steps of the vehicle-mounted head-up display presentation effect verification method based on Unity according to any one of claims 1 to 6 are implemented.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310051727.1A CN117635790A (en) | 2023-02-02 | 2023-02-02 | Vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310051727.1A CN117635790A (en) | 2023-02-02 | 2023-02-02 | Vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117635790A true CN117635790A (en) | 2024-03-01 |
Family
ID=90027607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310051727.1A Pending CN117635790A (en) | 2023-02-02 | 2023-02-02 | Vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117635790A (en) |
-
2023
- 2023-02-02 CN CN202310051727.1A patent/CN117635790A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111508052B (en) | Rendering method and device of three-dimensional grid body | |
US7583264B2 (en) | Apparatus and program for image generation | |
Tatarchuk | Artist-directable real-time rain rendering in city environments | |
JPH07306955A (en) | Method and system for generation of three-dimensional illusion | |
US8436855B1 (en) | Efficient illumination of large three dimensional environments | |
CN107077756A (en) | Method, visualization device and computer program product for visualization of three-dimensional objects | |
CN106504310B (en) | Method of operating a graphics processing system, graphics processing unit, medium | |
Peddie | Ray tracing: a tool for all | |
CN116485984B (en) | Global illumination simulation method, device, equipment and medium for panoramic image vehicle model | |
US6163320A (en) | Method and apparatus for radiometrically accurate texture-based lightpoint rendering technique | |
US9098939B2 (en) | System and method of generating light maps | |
EP0532579A1 (en) | Image generator. | |
CN112184873A (en) | Fractal graph creating method and device, electronic equipment and storage medium | |
CN111968214A (en) | Volume cloud rendering method and device, electronic equipment and storage medium | |
CN113546410A (en) | Terrain model rendering method and device, electronic equipment and storage medium | |
EP3622486A1 (en) | Holographic illustration of weather | |
CN117523070B (en) | Computer graphics rendering method and system based on ray tracing | |
CN116168587B (en) | Driving simulation scene generation method and device and display equipment | |
CN117635790A (en) | Vehicle-mounted head-up display presentation effect verification method, system and medium based on Unity | |
Galazka et al. | CiThruS2: Open-source photorealistic 3D framework for driving and traffic simulation in real time | |
US10713836B2 (en) | Simulating lenses | |
Petit et al. | A high dynamic range rendering pipeline for interactive applications: in search for perceptual realism | |
Longhurst | Rapid Saliency Identification for Selectively Rendering High Fidelity Graphics | |
CN118400546A (en) | Live broadcast explanation method, computing device and readable storage medium | |
CN118079373A (en) | Model rendering method and device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |