Display method and device of 3D car model, electronic equipment and storage medium

By simulating the multi-dimensional sky environment and the sense of time lapse in the 3D car model display, the problem of insufficient realistic display effect of 3D car model in the existing technology is solved, and a more realistic and vivid display effect is achieved.

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

Patent Information

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

AI Technical Summary

Technical Problem

The existing 3D car model display method is not realistic enough, especially in simulating the passage of time and environmental changes.

Method used

The engine tool determines multiple environmental elements and environmental parameters at the set time, builds a dynamic display environment based on these parameters, simulates the changes in the sky environment with time, and realizes the display of 3D car models that are automatically adjusted with time and environment changes by simulating the reflection effect of 3D car models in the display environment.

Benefits of technology

Multi-dimensional simulation of the sky environment is realized, providing a rich sense of time lapse, enhancing the realistic nature of the display effect, and making the 3D car model display time flow effects closer to the real world.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120070737A_ABST
    Figure CN120070737A_ABST
Patent Text Reader

Abstract

The invention relates to a 3D car model display method and device, electronic equipment and a storage medium, and the method comprises the steps that a plurality of environment elements and a plurality of environment parameters corresponding to each environment element at a set moment are determined through an engine tool, and the environment elements are factors affecting the 3D car model display effect in the sky environment; determining the environmental parameters at any intermediate moment based on the environmental parameters at the two set moments which are closest to each other; according to the calculated environment parameters of the multiple moments, a dynamic display environment is constructed, and the dynamic display environment is used for simulating the change of the sky environment along with time rotation; and simulating the reflection effect of the 3D car model in the display environment to obtain 3D car model display which is automatically adjusted along with time and environment changes. According to the invention, the verisimilitude of the display effect is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of car model display, and particularly to a display method, device, electronic device and storage medium for 3D car models. Background Art

[0002] The 3D car model display is generally used to simulate the body presentation effect of a vehicle in a real environment, enabling users to more intuitively understand the current vehicle body. Currently, there are two display methods for 3D car models. The first is to pre-render the lighting and environmental conditions at several specific time points (such as early morning, noon, dusk, etc.) to display the appearance of the vehicle at these fixed moments. This method is relatively simple to produce, only requiring the rendering of the lighting and environment at several specific time points, but the scene is static and users cannot experience the sense of time passing. The second is to dynamically adjust the intensity, direction, and color of the light in the scene to simulate a simple day-night alternation. This method has a certain sense of time passing, but it mainly focuses on the changes in light, with limited simulation depth and breadth, and the visual effect presented is still relatively monotonous, lacking the richness of environmental changes brought about by the passage of time in the real world.

[0003] The current 3D car model display methods all have different degrees of defects, and the display effect of 3D car models is not realistic enough. Summary of the Invention

[0004] This application provides a display method, device, electronic device and storage medium for 3D car models to solve the problem that the display effect of 3D car models is not realistic enough.

[0005] In a first aspect, this application provides a display method for a 3D car model, the method comprising:

[0006] Determining a plurality of environmental elements and a plurality of environmental parameters corresponding to each environmental element at a set moment through an engine tool, wherein the environmental elements are factors in the sky environment that affect the 3D car model display effect;

[0007] Determining the environmental parameters at any intermediate moment based on the environmental parameters at the two closest set moments;

[0008] Constructing a dynamic display environment according to the calculated environmental parameters at multiple moments, wherein the dynamic display environment is used to simulate the changes that occur in the sky environment as time rotates;

[0009] Obtaining a 3D car model display that automatically adjusts with time and environment by simulating the reflection effect of the 3D car model in the display environment.

[0010] Optionally, the environmental elements include lighting, clouds, sky, environmental fog, and stars;

[0011] The environmental parameters of the light include the light position, light angle, light intensity, and light color;

[0012] The environmental parameters of the cloud include the cloud movement speed, cloud thickness, and cloud color;

[0013] The environmental parameters of the sky include the sky brightness and sky color;

[0014] The environmental parameters of the environmental fog include the fog thickness, fog color, and the light generated by the Tyndall effect;

[0015] The environmental parameters of the stars include the star transparency, star size, and star color.

[0016] Optionally, the ground reflection of the simulated 3D car model includes:

[0017] Obtaining an image of the vehicle bottom through a photographing device that shoots from bottom to top;

[0018] Cropping and flipping the vehicle bottom image to generate a reflection image of the vehicle;

[0019] Adding a noise map to the reflection image, where the noise map is used to simulate the blurred effect of the reflection;

[0020] Overlaying a shadow map with a gray - black tone on the blurred reflection image, and the shadow map is used to simulate the shadow effect that should be present in the vehicle body area that cannot be illuminated by light.

[0021] Optionally, the reflection of the vehicle body on the ambient light includes:

[0022] Capturing the environmental parameters of the current light through a reflection probe and applying the environmental parameters of the light to the shader;

[0023] Using the shader to calculate the environmental parameters of the light and the ground information to obtain the reflection color and reflection intensity of the vehicle body, where the ground information includes the physical characteristics and visual attributes of the ground material.

[0024] Optionally, simulating the reflection of car paint includes:

[0025] Adjusting the specular highlight and metallicity of the car paint under the current light through the rendering pipeline, so that the car paint has specular reflection and metallic luster under the light.

[0026] Optionally, determining the environmental parameters at any intermediate moment based on the environmental parameters at the two closest set moments includes:

[0027] Determine the first environmental parameter at the first moment and the second environmental parameter at the second moment, where the first moment and the second moment are two pre-set moments that are closest to each other, and the parameter categories of the first environmental parameter and the second environmental parameter are the same;

[0028] Process the first environmental parameter and the second environmental parameter by means of linear interpolation to calculate the environmental parameter at the intermediate moment, where the intermediate moment is any moment between the first moment and the second moment.

[0029] In a second aspect, the present application provides a display device for a 3D car model, and the device includes:

[0030] A first determination module, configured to determine a plurality of environmental elements and a plurality of environmental parameters corresponding to each environmental element at a set moment through an engine tool, where the environmental elements are factors in the sky environment that affect the display effect of the 3D car model;

[0031] A second determination module, configured to determine the environmental parameter at any intermediate moment based on the environmental parameters at two set moments that are closest to each other;

[0032] A construction module, configured to construct a dynamic display environment according to the environmental parameters at a plurality of calculated moments, where the dynamic display environment is used to simulate the changes that occur in the sky environment as time rotates;

[0033] A simulation module, configured to obtain a 3D car model display that automatically adjusts with time and the environment by simulating the reflection effect of the 3D car model in the display environment.

[0034] Optionally, the environmental elements include light, clouds, sky, environmental fog, and stars;

[0035] The environmental parameters of the light include the light position, light angle, light intensity, and light color;

[0036] The environmental parameters of the clouds include the cloud movement speed, cloud thickness, and cloud color;

[0037] The environmental parameters of the sky include the sky brightness and sky color;

[0038] The environmental parameters of the environmental fog include the fog thickness, fog color, and light generated by the Tyndall effect;

[0039] The environmental parameters of the stars include the star transparency, star size, and star color.

[0040] In a third aspect, the present application provides an electronic device, including: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus.

[0041] In a fourth aspect, the present application further provides a computer storage medium storing computer-executable instructions for executing the method for displaying a 3D car model according to any one of the above in the present application.

[0042] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art: The multi-dimensional simulation of the sky environment is realized through multiple environmental elements and multiple environmental parameters, and a rich sense of time passage is provided by calculating the environmental parameters at any moment. Based on the multi-dimensional simulation of the sky environment and the sense of time passage, a more realistic time flow effect is realized. In addition, combined with the reflection effect of the 3D car model in the dynamic display environment, the present application realizes different display effects of the 3D car model during the time rotation process, enhancing the vividness of the display effect. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

[0046] Figure 1 It is a flowchart of a method for displaying a 3D car model provided by an embodiment of the present application;

[0047] Figure 2 It is an effect diagram of a 3D car model at different time points provided by an embodiment of the present application;

[0048] Figure 3 It is a schematic diagram of the corresponding relationship between environmental elements and environmental parameters provided by an embodiment of the present application;

[0049] Figure 4A schematic diagram of the 24-hour time rotation transitioned through Lerp provided by the embodiments of the present application;

[0050] Figure 5 A schematic structural diagram of a display device for a 3D car model provided by the embodiments of the present application;

[0051] Figure 6 A schematic structural diagram of an electronic device provided by the embodiments of the present application. Detailed implementation manners

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

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

[0054] To solve the problems mentioned in the background art, according to one aspect of the embodiments of the present application, an embodiment of the display of a 3D car model is provided.

[0055] The following will combine with the detailed implementation manners to provide a detailed description of a method for displaying a 3D car model provided by the embodiments of the present application, which is applied to a processor, such as Figure 1 As shown, the specific steps are as follows:

[0056] Step 101: Determine multiple environmental elements and multiple environmental parameters corresponding to each environmental element at a set moment through an engine tool, where the environmental elements are factors affecting the display effect of the 3D car model in the sky environment;

[0057] Step 102: Determine the environmental parameters at any intermediate moment based on the environmental parameters at the two closest set moments;

[0058] Step 103: Construct a dynamic display environment according to the calculated environmental parameters at multiple moments, where the dynamic display environment is used to simulate the changes in the sky environment as the time rotates;

[0059] Step 104: By simulating the reflection effect of the 3D car model in the display environment, a 3D car model display that automatically adjusts with time and environment is obtained.

[0060] Technicians use engine tools to determine multiple sky environment elements that affect the display effect of the 3D car model. These environmental factors include, but are not limited to, lighting, clouds, stars, fog, and skyboxes. These elements together constitute the background atmosphere of the vehicle display. For each selected environmental element, multiple corresponding parameters are defined at different set times (such as early morning, noon, dusk, night), such as lighting position, lighting intensity, cloud movement speed, star transparency, fog thickness, and sky color, etc. By simulating various environmental elements and various environmental parameters through engine tools, the depth and breadth of the simulated environment are extended, and the richness of the environmental changes brought about by the passage of time in the real world is increased.

[0061] Among them, the engine tool can adopt the Unity engine. The Unity engine is a cross-platform game development engine, which is not only used to create three-dimensional and two-dimensional video games, but also applied to the development of simulations, augmented reality (AR), virtual reality (VR), and more interactive content.

[0062] The processor obtains the environmental elements and environmental parameters at each set time, and then based on the environmental parameters at the two closest set times, uses the interpolation algorithm to calculate the environmental parameters at any time between these two set times. In this way, even during the transition period between two set times, users can experience delicate and realistic environmental changes. This method can not only achieve a smooth sense of time passing, but also ensure the coherence and naturalness of environmental changes, ensuring that the environmental state at each time point from dawn to late at night can be accurately captured and reproduced.

[0063] The processor constructs a dynamic display environment based on the calculated environmental parameters at multiple times to simulate the changes in the sky environment as time rotates. This dynamic environment is not limited to the change of light, but also includes detailed adjustments in many aspects such as the flow of clouds, the twinkling of the starry sky, and the density of fog. In this way, a more rich and vivid visual experience can be created, making the 3D car model display not just a simple switch of static pictures, but a continuous and vivid scene evolution.

[0064] In the above dynamic display environment, the processor simulates the reflection effect of the 3D car model at each moment, realizing the real-time rendering effect of the 3D car model in the environment where time rotates, thereby obtaining multiple renderings of the 3D car model as time rotates. Figure 2 For the renderings of the 3D car model as time rotates, in the order from left to right, they are the renderings of the 3D car model in the early morning, afternoon, dusk, and night. From Figure 2It can be seen that the four pictures truly simulate the display effects of the vehicle at different time points of a day.

[0065] In this application, multi-dimensional simulation of the sky environment is achieved through multiple environmental elements and multiple environmental parameters, and a rich sense of time passage is provided by calculating the environmental parameters at any moment. Based on the multi-dimensional simulation of the sky environment and the sense of time passage, a more realistic time flow effect is realized. Additionally, combined with the reflection effect of the 3D car model in the dynamic display environment, this application realizes different display effects of the 3D car model during the time rotation process, enhancing the vividness of the display effect.

[0066] To create a realistic and dynamically changing environment to enhance the display effects of the 3D car model at different time periods, environmental elements can be set to include lighting, clouds, sky, environmental fog, and stars, and the environmental parameters of each environmental element are also different. As Figure 3 shown, the specific contents are as follows.

[0067] 1. Environmental parameters of lighting.

[0068] Position: As time goes by, the positions of the sun and other light sources constantly change, which directly affects the shadow distribution in the scene and the reflection characteristics of the object surface.

[0069] Rotation: The angle of light irradiation affects the length and shape of the shadow, as well as the highlight position on the object surface.

[0070] Color: The color of the lighting changes with time, with an orange-red tone in the morning and evening and a tendency towards white or blue at noon. This color change enhances the visual realism.

[0071] Intensity: The lighting intensity varies significantly at different time points, from the soft morning light in the early morning to the strong direct sunlight at noon, and then to the warm afterglow in the evening. These changes need to be accurately simulated.

[0072] By adjusting the lighting position, lighting angle, lighting intensity, and lighting color, ensure that the lighting conditions at each set moment can accurately reflect the changes in the real world, thereby providing users with an immersive visual experience.

[0073] 2. Environmental parameters of clouds.

[0074] Speed: The speed and flow pattern of clouds vary throughout the day. Fast-paced clouds can enhance the sense of motion, while slow clouds create a serene atmosphere.

[0075] Noise (NoisePower): Simulates the complex textures and irregular shapes in natural clouds. By adjusting the noise intensity, the roughness and smoothness of the cloud surface can be controlled.

[0076] Opacity: Controls the visibility of the clouds, making some areas clearer and others more blurred, adding a sense of hierarchy.

[0077] Color: The color of the clouds changes according to weather conditions and time periods. For example, the bright white in sunny days contrasts sharply with the dull gray in cloudy days.

[0078] Combining noise and opacity can precisely control the thickness of the clouds. For example, when setting a high noise value and medium opacity, clouds with complex structures but a sense of transparency can be generated; while a low noise value combined with high opacity is suitable for showing thick and heavy cumulonimbus clouds.

[0079] Use shaders or specific plugins to generate dynamic clouds, and finely adjust the state of the clouds through movement speed, noise, transparency, and color, so that they show unique visual characteristics at different time periods.

[0080] 3. Environmental parameters of the skybox.

[0081] Brightness: As the day gradually transitions to night, the overall brightness of the sky changes significantly, from a bright blue sky to a deep night sky, and this process requires a smooth transition.

[0082] Color: The color of the sky also changes with time. For example, the golden hues in the early morning and at dusk, and the deep blue background of the starry sky at night.

[0083] Select a suitable material sphere and update the appearance of the skybox in real time by adjusting the sky brightness and sky color to ensure it matches the current time period.

[0084] 4. Environmental parameters of environmental fog.

[0085] Thickness: The density of the fog directly affects the line of sight penetration. Thin fog can make distant objects appear faintly visible, while thick fog completely obscures the line of sight.

[0086] Color: The color of the fog usually depends on the surrounding environment and light source. In the early morning, it may have some blue tones, while at dusk it is orange-yellow.

[0087] The formula for the light generated by the Tyndall effect is:

[0088]

[0089] Among them, L represents the transmitted light, Lsun is the illumination light, P(s) represents the light transmittance at s, I(s) represents the illumination intensity at s, H(s) represents the horizontal distance from the light source to s, V is the vertical distance from the light source to point s, θ is the light incident angle, and β is the longitudinal magnification.

[0090] Use shaders and combine the above parameters to calculate the light generated by the Tyndall effect, thereby achieving a realistic fog effect and enhancing the scene depth and realism.

[0091] 5. Environmental parameters of the starry sky.

[0092] Fading effect (AlphaChange): The process of stars gradually appearing from day to night, achieved by adjusting the transparency.

[0093] Size scaling (ScaleChange): Simulate the sense of distance, making the stars appear to be of different sizes.

[0094] Brightness and color alternation (ColorRGBChange): Adjust the brightness and color to make the stars look like they are twinkling.

[0095] By finely adjusting the transparency, size, brightness, and color parameters of the stars, a realistic starry sky effect is simulated, especially at night, bringing a more spectacular visual enjoyment to users.

[0096] Exemplarily, in the early morning, the east is slightly red and the light is not strong. Therefore, set the three-dimensional coordinates of the illumination position to (13, 5, 22), the angle to (45°, 0°, 0°), the color to #D8CECA, and the light intensity to 2 lux. The clouds are relatively thick, basically stationary, and red in color. Therefore, set the thickness to 0.8 m, the moving speed to 0.005 m / s, and the color to #D8B5A4. The skybox is relatively dark and light blue in color. Therefore, set the brightness to 6 cd / m2 and the color to #A9B5C1. The environmental fog is relatively thick, red in color, and the Tyndall effect is obvious. Therefore, set the thickness to 0.8 m, the color to #C6C6C6, and calculate the Tyndall effect using the above formula.

[0097] Optionally, the reflection effects of the 3D car model in the display environment include paint reflection, ground mirror reflection, and body reflection of ambient light. Each reflection is explained below.

[0098] Paint reflection refers to the reflection characteristics of the vehicle surface material under different illumination conditions, which can exhibit metallic luster and specular reflection effects. By adjusting the reflection attributes of the paint, the 3D model can more realistically imitate the visual effects presented by real vehicles under various ambient light conditions. This not only enhances the visual realism but also allows users to more intuitively feel the details such as the color and texture of the paint.

[0099] Ground mirror reflection refers to the reflection phenomenon presented at the bottom of the vehicle or the part close to the ground. It usually appears as a blurred but recognizable reflection, which increases the depth and authenticity of the scene, making the audience feel that the vehicle is truly parked in a specific environment.

[0100] The reflection of the vehicle body on ambient light refers to the reflection effect that changes dynamically according to the surrounding environment. This characteristic enables the vehicle surface to not only reflect static background elements but also respond to real-time lighting conditions and the presence of other dynamic objects, greatly enhancing the interactivity and immersion of the 3D vehicle model.

[0101] As an optional implementation method, simulating the ground reflection of the vehicle includes the following:

[0102] Step S11: Obtain an image of the vehicle bottom through a photographing device that shoots from bottom to top;

[0103] Step S12: Crop and flip the image of the vehicle bottom to generate an inverted image of the vehicle;

[0104] Step S13: Add a noise map to the inverted image, where the noise map is used to simulate the blurred effect of the reflection;

[0105] Step S14: Overlay a shadow map with a grayish-black tone on the blurred inverted image, and the shadow map is used to simulate the shadow effect that should be present in the areas of the vehicle body that cannot be illuminated by light.

[0106] Use a camera specifically placed near the ground, with its view angle facing upwards towards the bottom of the vehicle model. This camera is responsible for capturing the image of the vehicle bottom and its surrounding environment, ensuring that a high-quality basic image can be obtained. Then the processor appropriately crops the captured image, only retaining the part containing the vehicle bottom. Then the image is vertically flipped so that the vehicle part in the image looks like a real reflection, ensuring that the angle and position of the reflection are accurate.

[0107] The processor first superimposes an image with random noise (noise map) on the flipped image. The role of the noise map is to simulate the slight blur commonly seen in real-world reflections, so that the finally presented reflection is not overly clear but has an appropriate sense of blur, enhancing the realism. Then the processor creates a shadow map with a grayish-black tone and superimposes it on the blurred image. The color and brightness of this shadow map should conform to the characteristics of the actual shadow, ensuring that areas such as under the vehicle body where light cannot shine show a grayish-black shadow effect. This not only increases the realism of the reflection but also conforms to physical laws, further improving the visual quality.

[0108] Next, the processor can also appropriately adjust the overall transparency of the reflection image according to the different ground materials. For example, for smooth surfaces such as glass or water, the reflection will be clearer; while for rough surfaces such as asphalt roads, the reflection will appear more blurred and have a lower transparency. By setting the transparency reasonably, the requirements of different scenarios can be better matched. Finally, the processor performs real-time lighting calculations, using the light source information in the scene (such as sunlight, streetlights, etc.), to dynamically adjust the color and brightness of the reflection, ensuring that the reflection changes with the ambient light, increasing the sense of reality, making the reflection not only statically realistic but also able to respond in real time to changes in external conditions.

[0109] In this application, through the precise capture and processing of the vehicle bottom image, as well as the reasonable addition of noise maps and shadow maps, the generated reflection image is closer to the reflection characteristics in the real world. The realistic reflection effect not only makes the vehicle look more three-dimensional but also allows users to be more easily immersed in the display scene, as if being in a real environment. This immersive experience helps to enhance the user's interest and engagement.

[0110] As an optional implementation manner, the simulation of the vehicle body's reflection of ambient light includes the following:

[0111] Step S21: Capture the environmental parameters of the current lighting through a reflection probe and apply the environmental parameters of the lighting to the shader;

[0112] Step S22: Use the shader to calculate the environmental parameters of the lighting and the ground information to obtain the reflection color and reflection intensity of the vehicle body, where the ground information includes the physical characteristics and visual attributes of the ground material.

[0113] To accurately simulate the reflection effect of the vehicle in different environments, the processor first uses the Reflection Probe technology to capture the lighting information of the surrounding environment. These probes can be deployed at key positions throughout the scene to collect data on various lighting conditions including direct light sources, indirect light sources, and ambient light. Each probe generates a spherical map or a cube map, recording the 360-degree omnidirectional light distribution around that point.

[0114] Once the reflection probe has completed data acquisition, these lighting environment parameters are passed to the shader responsible for rendering the object's surface. In this way, the shader can obtain key information such as the lighting intensity, lighting direction, and lighting color in the current environment. After determining the lighting conditions, the processor acquires the ground information, that is, the physical and visual properties of the ground material, which include but are not limited to factors such as the roughness, glossiness, and absorption characteristics of the ground. The shader will adjust the final reflected effect based on this ground information. For example, a smoother ground will reflect light more strongly and clearly, while a rough surface will cause the reflection to become scattered and blurred.

[0115] Based on all the above input parameters (lighting environment parameters and ground information), the shader performs complex mathematical operations to calculate the reflected color and intensity that the vehicle's surface should have under specific lighting conditions. This process not only takes into account the nature of the light source itself but also comprehensively considers the influence of the ground material on light, ensuring that the reflected effect conforms to physical laws and has visual realism.

[0116] This application makes the vehicle's reflection effect more realistic by introducing a reflection probe and performing precise calculations in combination with lighting environment parameters and ground information. Whether it is a static display or a dynamic driving simulation, users can feel the light and shadow changes close to the real world. When the user changes the viewing angle or the vehicle moves, the reflection effect will be updated in real time. This interactive experience enhances the user's immersion and makes it easier for them to engage in the virtual environment. This application is applicable to a variety of different lighting conditions and ground types, from sunny city streets to dark and damp underground garages, and can accurately reproduce the corresponding reflection characteristics, greatly expanding the application scenarios.

[0117] As an optional implementation, simulating the reflection of car paint includes the following: adjusting the highlight and metallicity of the car paint under the current lighting through the rendering pipeline to make the car paint have high-gloss reflection and metallic luster under the light.

[0118] To achieve a more realistic paint reflection effect, corresponding adjustments need to be made during the rendering process according to the characteristics of the paint material, which specifically include the following two aspects: 1. Specular reflection: The surface of the paint usually has a certain gloss, especially obvious specular spots will appear when illuminated by strong light. Therefore, it is necessary to strengthen this effect by adjusting the relevant settings in the rendering pipeline, such as improving the accuracy of the surface normal map and optimizing the specular reflection coefficient in the lighting model, to make the specular look sharper and more concentrated. 2. Metallic luster: For paints with a metallic texture, special treatment of their unique luster performance is also required. This means not only considering the direct reflection of light, but also the soft glow generated by the scattering of metal particles. To this end, additional parameters such as metallicity can be introduced in the rendering pipeline to control the degree of this special luster, so that the paint looks both cold and deep like metal.

[0119] As an optional implementation method, determining the environmental parameters at any intermediate moment based on the environmental parameters at the two closest set moments includes the following content.

[0120] Step S31: Determine the first environmental parameter at the first moment and the second environmental parameter at the second moment, where the first moment and the second moment are two closest moments set in advance, and the parameter categories of the first environmental parameter and the second environmental parameter are the same;

[0121] Step S32: Process the first environmental parameter and the second environmental parameter using linear interpolation to calculate the environmental parameter at the intermediate moment, where the intermediate moment is any moment between the first moment and the second moment.

[0122] During different time periods of a day, the states of environmental elements such as lighting, clouds, skybox, and environmental fog will change significantly. To accurately capture these changes, a series of environmental parameters need to be set for each key time point (such as early morning, noon, dusk, night). For each environmental parameter between the selected key time points, use the Lerp formula to calculate the parameter value at any moment between these two key time points. For example, if you want to calculate the lighting intensity, use the lighting intensities at the current moment and the target moment as inputs to obtain the lighting intensity at that moment; similarly, the same processing is done for other parameters such as cloud thickness and sky color. For each environmental parameter, the above process needs to be repeated to ensure that all environmental parameters can transition smoothly over time. Finally, combine all the calculated parameter values to construct a complete environmental state for rendering the scene at a specific time point. Figure 4 To show a schematic diagram of the environment for 24 hours a day based on the early morning environment, noon environment, dusk environment, and night environment.

[0123] During the specific calculation process, the processor selects two closest critical moments as reference points, namely the first moment and the second moment, so as to obtain a smooth transition of the intermediate state through interpolation. For the two selected moments, the corresponding environmental parameters are determined respectively. These parameter categories must be the same to ensure the effectiveness of subsequent interpolation calculations. For example, light intensity, cloud thickness, sky color, fog concentration, etc. Then the Lerp (linear interpolation) formula is used to calculate the environmental parameters at any intermediate moment. The Lerp formula is as follows:

[0124] Now=Lerp(Start,Target,Time / AllTime)

[0125] Where Start is the environmental parameter value at the starting moment, Target is the environmental parameter value at the target moment, Time is the time elapsed currently, and AllTime is the total time length.

[0126] Exemplarily, if it is necessary to transition from early morning to noon and only consider the parameter of light intensity, then the light intensity in the early morning is Imorning, and the light intensity at noon is Inoon. If the current time is t and the total time from early morning to noon is T, then the light intensity It at any moment t can be calculated as follows: It=Lerp(Imorning,Inoon,t / T), and this formula will return a value between Imorning and Inoon, indicating the light intensity at the moment t.

[0127] The same logic applies to other environmental parameters, such as cloud thickness, sky color, etc., and only the corresponding parameter types need to be replaced. This can ensure that the changes in the entire environment are coherent and natural, thereby providing a more realistic visual experience.

[0128] Through the application of the Lerp formula to each environmental parameter respectively, this application can effectively achieve a smooth transition from one time point to another, thereby generating a more vivid and realistic 3D car model display effect.

[0129] This application provides an overall process for a 3D car model display method, including the following steps.

[0130] First, the preparation stage.

[0131] Parameter setting: For environmental elements such as light, clouds, skybox, environmental fog, and starry sky, a series of environmental parameters are preset according to the characteristics of different time periods in a day (such as early morning, noon, dusk, night). These parameters include but are not limited to position, direction, color, intensity, moving speed, opacity, brightness, etc.

[0132] In the preparation stage, adjust and record the environmental configurations for each important moment to ensure that the environmental effects at these moments meet expectations.

[0133] Second, the real-time simulation stage.

[0134] Based on the recorded key frame parameters, use the linear interpolation formula Now = Lerp(Start, Target, TimeAllTime) to calculate the transitional state between any given time points, thus achieving a smooth transition from one moment to another. This step ensures the coherence and naturalness of the environmental changes.

[0135] According to the results calculated by Lerp, update elements such as lighting, clouds, skybox, environmental fog, and starry sky in the scene in real time to reflect the current time and environmental conditions.

[0136] Third, the optimization of the car model reflection.

[0137] Paint reflection: Adjust the material properties to make the paint surface show appropriate metallic luster and specular reflection.

[0138] Ground specular reflection: Use a special camera to capture the image of the bottom of the car model, and generate a realistic reflection effect after processing.

[0139] Ambient reflection of the car body: Capture the lighting information of the surrounding environment through a reflection probe to achieve real-time reflection and enhance the realism of the car model.

[0140] Fourth, the display stage.

[0141] Integrate all the above calculation and rendering results, and finally present to the user a 3D car model display that can dynamically adjust with time and environmental changes, providing an immersive user experience.

[0142] This application can achieve the following technical effects:

[0143] 1. Multi-dimensional environmental simulation: By precisely adjusting the parameters of multiple environmental elements such as lighting, clouds, skybox, environmental fog, and starry sky, continuous and natural environmental changes within 24 hours are achieved.

[0144] 2. Moment Lerp technology: Use the linear interpolation algorithm to interpolate and calculate the environmental parameters at different time points to ensure a smooth transition of environmental changes and provide an immersive visual experience.

[0145] 3. Optimization of car model reflection: Combining paint reflection, ground specular reflection, and real-time ambient light reflection technologies improves the realism of the 3D car model in different environments, allowing users to feel a more vivid and realistic display effect.

[0146] 4. Low performance consumption: By simulating the sky environment, its performance consumption is much lower than that of real-time ray tracing simulation.

[0147] Based on the same technical concept, the present application provides a display device for a 3D car model, as Figure 5 shown, the device includes:

[0148] A first determination module 501, configured to determine a plurality of environmental elements and a plurality of environmental parameters corresponding to each environmental element at a set moment through an engine tool, where the environmental elements are factors affecting the display effect of the 3D car model in the sky environment;

[0149] A second determination module 502, configured to determine the environmental parameters at any intermediate moment based on the environmental parameters at the two closest set moments;

[0150] A construction module 503, configured to construct a dynamic display environment according to the calculated environmental parameters at multiple moments, where the dynamic display environment is used to simulate the changes that occur in the sky environment as time rotates;

[0151] A simulation module 504, configured to obtain a 3D car model display that automatically adjusts with time and environment by simulating the reflection effect of the 3D car model in the display environment.

[0152] Optionally, the environmental elements include light, clouds, sky, environmental fog, and stars;

[0153] The environmental parameters of light include light position, light angle, light intensity, and light color;

[0154] The environmental parameters of clouds include cloud movement speed, cloud thickness, and cloud color;

[0155] The environmental parameters of the sky include sky brightness and sky color;

[0156] The environmental parameters of environmental fog include fog thickness, fog color, and the light generated by the Tyndall effect;

[0157] The environmental parameters of stars include star transparency, star size, and star color.

[0158] Optionally, the simulation module 504 is configured to:

[0159] Obtain an image of the vehicle bottom through a shooting device that shoots from bottom to top;

[0160] Crop and flip the image of the vehicle bottom to generate an inverted image of the vehicle;

[0161] Add a noise map to the inverted image, where the noise map is used to simulate the blurred effect of the reflection;

[0162] Overlay a shadow map with grayish-black tones on the blurred reflection image. The shadow map is used to simulate the shadow effect that should be present in the areas of the vehicle body that cannot be illuminated by light.

[0163] Optionally, the simulation module 504 is configured to:

[0164] Capture the environmental parameters of the current light through a reflection probe and apply the environmental parameters of the light to the shader;

[0165] Use the shader to calculate the reflection color and reflection intensity of the vehicle body based on the environmental parameters of the light and the ground information, where the ground information includes the physical characteristics and visual attributes of the ground material.

[0166] Optionally, the simulation module 504 is configured to:

[0167] Adjust the highlights and metallicity of the vehicle paint under the current light through the rendering pipeline, so that the vehicle paint has specular reflection and metallic luster under the light.

[0168] Optionally, the second determination module 502 is configured to:

[0169] Determine the first environmental parameters at the first moment and the second environmental parameters at the second moment, where the first moment and the second moment are two closest moments set in advance, and the parameter categories of the first environmental parameters and the second environmental parameters are the same;

[0170] Process the first environmental parameters and the second environmental parameters using linear interpolation to calculate the environmental parameters at the intermediate moment, where the intermediate moment is any moment between the first moment and the second moment.

[0171] As Figure 6 shown, an embodiment of the present application provides an electronic device, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604. Among them, the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.

[0172] The memory 603 is used to store computer programs.

[0173] In an embodiment of the present application, when the processor 601 is used to execute the program stored on the memory 603, it implements the 3D vehicle model display method provided by any one of the foregoing method embodiments.

[0174] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the 3D vehicle model display method provided by any one of the foregoing method embodiments.

[0175] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0176] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

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

[0178] The above description is only the specific implementation manners of the present application, enabling those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for displaying a 3D car model, characterized in that: The method comprises: Determine multiple environmental elements and multiple environmental parameters corresponding to each environmental element at a set time through an engine tool, wherein the environmental elements are factors that affect the display effect of the 3D car model in the sky environment; Determine the environmental parameters at any intermediate time based on the environmental parameters at the two closest set times; Constructing a dynamic display environment according to the calculated environmental parameters at multiple moments, wherein the dynamic display environment is used to simulate the changes of the sky environment over time; By simulating the reflection effect of the 3D car model in the display environment, a 3D car model display that automatically adjusts with time and environmental changes is obtained.

2. The method according to claim 1, characterized in that The environmental elements include lighting, clouds, sky, ambient fog and stars; The environmental parameters of the lighting include lighting position, lighting angle, lighting intensity and lighting color; The cloud environmental parameters include cloud moving speed, cloud thickness and cloud color; The environmental parameters of the sky include sky brightness and sky color; The environmental parameters of the environmental fog include fog thickness, fog color and light generated by the Tyndall effect; The environmental parameters of the stars include star transparency, star size and star color.

3. The method according to claim 1, characterized in that The reflection effect is the reflection effect of the car model on the ground, and the reflection effect of the simulated 3D car model in the display environment includes: Acquire the bottom image of the vehicle by using a camera that shoots from bottom to top; Cropping and flipping the bottom image of the vehicle to generate a reflection image of the vehicle; Adding a noise map to the reflection image, wherein the noise map is used to simulate a blur effect of the reflection; A shadow map in gray and black tones is superimposed on the blurred reflection image, and the shadow map is used to simulate the shadow effect that should be present in the area of ​​the vehicle body that cannot be illuminated by light.

4. The method according to claim 1, characterized in that The reflection effect is the reflection of the vehicle body to the ambient light. The reflection effect of the simulated 3D car model in the display environment includes: Capture the current lighting's environment parameters through reflection probes and apply the lighting's environment parameters to the shader; A shader is used to calculate the environmental parameters of the lighting and ground information to obtain the reflection color and reflection intensity of the vehicle body, wherein the ground information includes the physical characteristics and visual attributes of the ground material.

5. The method according to claim 1, characterized in that The reflection effect is the reflection of the car paint, and the reflection effect of the simulated 3D car model in the display environment includes: The highlight and metalness of the car paint under the current light are adjusted through the rendering pipeline so that the car paint has highlight reflection and metallic luster under the light.

6. The method according to claim 1, characterized in that Determining the environmental parameters at any time in between based on the environmental parameters at the two closest set times includes: Determine a first environmental parameter at a first moment and a second environmental parameter at a second moment, wherein the first moment and the second moment are two pre-set moments that are closest to each other, and the first environmental parameter and the second environmental parameter have the same parameter category; The first environmental parameter and the second environmental parameter are processed by linear interpolation to calculate the environmental parameter at an intermediate moment, wherein the intermediate moment is any moment between the first moment and the second moment.

7. A 3D car model display device, characterized in that: The device comprises: A first determination module is used to determine multiple environmental elements and multiple environmental parameters corresponding to each environmental element at a set time through an engine tool, wherein the environmental elements are factors that affect the display effect of the 3D car model in the sky environment; A second determination module is used to determine the environmental parameters at any intermediate time based on the environmental parameters at the two closest set time moments; A construction module, used to construct a dynamic display environment according to the calculated environmental parameters at multiple moments, wherein the dynamic display environment is used to simulate the changes of the sky environment over time; The simulation module is used to simulate the reflection effect of the 3D car model in the display environment to obtain a 3D car model display that automatically adjusts with time and environmental changes.

8. The device according to claim 7, characterized in that The environmental elements include lighting, clouds, sky, ambient fog and stars; The environmental parameters of the lighting include lighting position, lighting angle, lighting intensity and lighting color; The cloud environmental parameters include cloud moving speed, cloud thickness and cloud color; The environmental parameters of the sky include sky brightness and sky color; The environmental parameters of the environmental fog include fog thickness, fog color and light generated by the Tyndall effect; The environmental parameters of the stars include star transparency, star size and star color.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-6 when executing a program stored in a memory.

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 6 is implemented.