Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for...

12
Computer Graphic Tools for Automotive Paint Engineering Gary W. Meyer University of Minnesota * Recent developments in computer graphics software and hardware have made it possible to write computer graphics programs that can be used to solve automotive paint engineering problems. New surface reflection models have been created for simulating the appearance of automotive paint, and the hardware available today on graphics cards allows these reflection models to be evaluated in real-time. Three interactive computer graphic programs have been written that demonstrate the potential of using the new software and hardware to find answers to engineering problems involving automotive surface coatings. The first program allows the color appearance of new metallic and pearlescent automotive paints to be designed, the second application demonstrates how video projectors can be used to make an object appear as if it has been covered with automotive paint, and the third program is a virtual reality simulation of spraying automotive paint onto a surface. INTRODUCTION Computer graphics software and hardware has advanced to the point where innovative computer graphics programs can be written to address automotive paint engineering problems. New computer graphic reflection models have been developed that allow traditional automotive paint measurements to be employed when making renderings of automotive surface coatings. Computer graphic cards now have special purpose hardware that permits these reflection models to be evaluated at interactive rates. The new car paint reflection models and special purpose graphics hardware let new applications be written to accomplish tasks related to automotive paint engineering. These tasks include designing the color of new automotive paints, prototyping the appearance of new paints by using video projectors, and creating virtual automotive spray paint simulations. The technical advance that will make this new generation of automotive paint engineering tools possible involves software for modeling light reflection from car paint and hardware for evaluating that reflection model at interactive rates. The automotive paint model makes use of standard color appearance measurements for car paint including ASTM gloss and multi-angle Lab color measurements. The programmable shaders now available on graphics cards allow this complicated reflection model to be evaluated in real-time. This permits an object to be rotated and moved on the screen so that its color appearance can be inspected. The color appearance of the paint can be changed interactively by modifying the parameters of the reflection model. The new reflection models and shader technology are discussed in the next section of this paper. * Department of Computer Science and Engineering, 4-192 EE/CS Building, 200 Union St. SE, Minneapolis, MN 55455

Transcript of Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for...

Page 1: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

Computer Graphic Tools for Automotive Paint Engineering

Gary W. Meyer University of Minnesota*

Recent developments in computer graphics software and hardware have made it possible to write computer graphics programs that can be used to solve automotive paint engineering problems. New surface reflection models have been created for simulating the appearance of automotive paint, and the hardware available today on graphics cards allows these reflection models to be evaluated in real-time. Three interactive computer graphic programs have been written that demonstrate the potential of using the new software and hardware to find answers to engineering problems involving automotive surface coatings. The first program allows the color appearance of new metallic and pearlescent automotive paints to be designed, the second application demonstrates how video projectors can be used to make an object appear as if it has been covered with automotive paint, and the third program is a virtual reality simulation of spraying automotive paint onto a surface. INTRODUCTION Computer graphics software and hardware has advanced to the point where innovative computer graphics programs can be written to address automotive paint engineering problems. New computer graphic reflection models have been developed that allow traditional automotive paint measurements to be employed when making renderings of automotive surface coatings. Computer graphic cards now have special purpose hardware that permits these reflection models to be evaluated at interactive rates. The new car paint reflection models and special purpose graphics hardware let new applications be written to accomplish tasks related to automotive paint engineering. These tasks include designing the color of new automotive paints, prototyping the appearance of new paints by using video projectors, and creating virtual automotive spray paint simulations. The technical advance that will make this new generation of automotive paint engineering tools possible involves software for modeling light reflection from car paint and hardware for evaluating that reflection model at interactive rates. The automotive paint model makes use of standard color appearance measurements for car paint including ASTM gloss and multi-angle Lab color measurements. The programmable shaders now available on graphics cards allow this complicated reflection model to be evaluated in real-time. This permits an object to be rotated and moved on the screen so that its color appearance can be inspected. The color appearance of the paint can be changed interactively by modifying the parameters of the reflection model. The new reflection models and shader technology are discussed in the next section of this paper.

* Department of Computer Science and Engineering, 4-192 EE/CS Building, 200 Union St. SE, Minneapolis, MN 55455

Page 2: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

The new automotive paint engineering tools facilitated by these hardware and software advances are just beginning to emerge. An interactive computer graphics program to design new car paint colors is now possible because of the advanced surface reflection models and the ability to evaluate these models in real-time at each screen position. Video projectors have become brighter and cheaper, and, when driven by an advanced video card, they can be directed at a three-dimensional object to make the object look as if it was painted a new color. The new graphics cards can also be used to produce a video signal for a head mounted display and offer an immersive simulation of applying automotive paint by using a spray gun. These emerging automotive paint engineering applications are described in separate sections of this paper. BACKGROUND Reflection Model To simulate the look of automotive paint, a reflectance model has been developed that is based on standard appearance measurements.1 The goal of this work was to find the correspondence between the parameters of existing computer graphic reflection models and two appearance measurements that are used in industry. The two aspects of surface reflection that are captured by the model include how light reflects from the top layer of the paint (gloss) and from the metal flake below the surface (aspecular measurements). This section describes the individual components of the model and how they are combined to create a complete model. To develop the portion of the model that accounts for surface gloss, a virtual glossmeter was constructed. A glossmeter is a simple instrument that is used to determine the ratio between the amount of light incident on a surface and the quantity of light reflected from that surface.2 The entrance and exit apertures of the simulated device are shown in Figure 1. To use the virtual glossmeter, the entrance aperture is discretized, an incident light direction is selected, a computer graphics reflection model is evaluated, and the resulting light distribution is numerically integrated across the exit aperture (see Figure 2). The process is repeated for all incoming directions defined by the discretized entrance aperture, and a ratio between incident and reflected light is calculated. This ratio determines the gloss value for the parameters used to evaluate the reflection model. Duplicating the procedure for a range of parametric values results in a correspondence between gloss and the model's parameters (see Figure 3). Light that is not reflected from the top of the paint interacts with the colorants and the metal flakes that are located below the surface. The metal flakes determine the shape of the reflectance function that is produced by this subsurface interaction, and the colorants alter the spectral distribution of the light that is reflected away from the surface. The change in color, caused by the colorants, is a function of the angle of reflection. Experimental studies have shown that the rate of variation in both the color and the intensity of the reflection can be characterized by a low order polynomial.3 The change in CIE Lab coordinates with aspecular angle (an angle measured using the specular reflection direction as zero) can be fit using a second order polynomial. This simple

Page 3: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

function is used to model the part of automotive paint reflection that is due to subsurface interaction. The complete reflection model for automotive paint includes both the light reflected from the exterior face of the paint and the light reflected from the metal flakes and the colorant below the surface of the paint. A linear combination of the gloss model and the aspecular model is used to create the final reflection model for the car paint. Figure 4 shows how the reflection lobes for the two parts of the model are combined to create the complete reflection function. Real Time Shading The simulation of color and appearance has been greatly facilitated by the recent development of real-time shading technology. A shader is a small special purpose piece of computer code that is executed as the color of each pixel in a computer graphic picture is determined. Because shaders are programmable, they make it possible to implement a wide range of surface reflection models including the automotive paint model described in the preceding section. Shaders include reflection model variables that can be altered to change the spectral and the spatial distribution of the light reflected from the material that is being rendered. For the automotive reflection model these variables include the aspecular measurements and the gloss of the paint. Changing the value of the reflection model parameters at interactive rates makes it possible to consider several alternative color appearances and, in this manner, to design the color of the surface coating. There are a number of technical issues that must be kept in mind when working with real-time shaders. The computer code for shaders is written using special purpose programming languages such as NVIDEA Cg, DirectX 9.0, and OpenGL 2.0. Once the shader has been composed it is turned into a set of low level machine instructions by using a compiler. These machine instructions must be downloaded onto the graphics card where they will be executed by a special purpose graphics processor. The process of downloading the compiled code takes time and limits how quickly a shading model can be updated. There is also a restriction on how many shading instructions can be placed on the card and on the number of those instructions that can be executed as each pixel color is determined. These limitations must be kept in mind when designing shader code. AUTO PAINT DESIGN PROGRAM An interactive computer interface has been developed to allow stylists to design new automotive paint colors.4 The interface is based on the reflectance model for automotive paint that was described in the background section of this paper. The user makes modifications to the aspecular reflectance values that define the color appearance of the paint, and the result of making those changes is immediately displayed in a computer graphic simulation. The adjustments can be made directly to the reflectance curve for the paint, or the alterations can be accomplished indirectly by using several novel interfaces. Once the design has been completed the desired aspecular reflectance values for the paint

Page 4: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

can be written to a file. Given the expected reflectance properties of the coating, paint manufacturers can determine the formula necessary to produce the paint. The interface for the styling program provides several novel ways to adjust the color appearance of an automotive paint. A simple slider is available to change the ASTM standard gloss of the paint from 0 to 100. The aspecular reflectance curve for the paint is drawn as part of the interface, and the reflectance values at the standard measurement angles can be directly manipulated. As adjustments are made to the reflectance data, the program fits a second order curve to the points and redraws the curve. A second order fit is maintained because experiments have shown that the reflectance curve of metallic automotive paints usually has this characteristic. To provide a more natural interface for designers, interactive controls are also provided to allow the average hue, saturation, and brightness of the data values to be adjusted and to permit the face and flop color of the paint to be directly specified (see Figure 5). As modifications are made to the reflectance properties of the paint, a new computer graphic image is generated to show the change in the paint's color appearance (see Figure 6). This update occurs at interactive rates because programmable shaders are available on modern graphics hardware. The new reflectance function, used to determine the color of each pixel in the image, is downloaded as a shader to the graphics card. The effect of environmental lighting is also taken into account by combining the new reflectance function with a set of pre-filtered environment maps. To facilitate this lighting calculation, the reflectance function is fit to a finite set of special basis lobes.5 These basis functions have been found, by experiment, to be an optimal set for representing the reflectance functions produced by the paint design program. Representing the reflectance function in this way limits the number of necessary pre-filtered environment maps and accelerates the environmental lighting calculation. Design exercises were conducted to demonstrate that the paint design program could be employed to create new automotive colors.6 Stylists used the interface to design new colors, often starting with an existing paint finish and making adjustments to it. The desired measurements for the new paint were then downloaded into formulation software and the necessary paint mixture was determined. The results were considered adequate for initial styling exercises. APPEARANCE SIMULATION USING PROJECTORS The automotive paint reflection model discussed in the background section of this paper has been used to develop two new types of shader lamps. A shader lamp involves the use of a video projector to create the illusion that an object has a color appearance different from its normal surface finish.7 The concept of shader lamps was advanced by employing the automotive surface reflection model to simulate the appearance of a real material: car paint. A new type of shader lamp, involving the color appearance of a flexible sheet of material, was also introduced. In addition, traditional shader lamps were extended by adding illuminating light sources and environmental reflections to the

Page 5: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

simulation. The use of the automotive paint reflection model with shader lamps is described in this section. A new type of shader lamp was developed that allows the user to manipulate a flexible sheet of material and examine how light reflects from the surface of the sheet as its shape changes.8 The approach involved a piece of plastic acetate that was tracked by a magnetic positioning system while it was held in front of a video projector. Two edges of the sheet (bonded to back-projection screen) were attached to rigid plastic sticks and, given the tracked position and orientation of the sticks, the shape of the plastic sheet was approximated by a Hermite surface. Given the position of an imaginary light source and the viewer's eyes (both of which can also be tracked), the surface normal was determined at each point on the sheet and the automotive reflection model was evaluated. Given the results of this shading calculation, a computer driven video projector was used to produce the required color at each point on the surface of the sheet (see Figure 7). The video projector employed a spherical projection lens to spread the light out across the plastic sheet and to provide a large depth of field. Improvements were also made to the traditional shader lamp paradigm where video projectors are used to make solid three dimensional objects assume different color appearances.9 One technical advance involved painting the objects with a dark grey projection screen material to improve the rendition of metallic colors. In addition to the video projector that was used to change the color of the object, other video projectors were employed to imitate light sources and to illuminate the area surrounding the objects (see Figure 8). Environment mapping techniques were also employed to incorporate the reflection of surrounding objects into the reproduction. To validate the quality of the simulation, comparisons were made between real objects painted with automotive lacquer and the simulations created using shader lamps. The automotive paint design program described in the previous section was connected to the shader lamp simulation to provide an interactive interface that could be used to change the color of the object. VIRTUAL SPRAY PAINT PROGRAM A virtual reality based spray paint simulation program is also under development. This software is intended to teach automotive technicians the correct method to use when applying car paint. The student wears a tracked head mounted display that generates a view for each eye of the object to be sprayed, and they hold a tracked pointing device in their hands that determines the position and orientation of the spray paint gun. The advantage of this virtual approach includes the fact that the training is administered under controlled conditions, the performance of the student can be carefully monitored, and there is no waste of paint or exposure to harmful fumes. The research was based on an existing spray paint simulation program that taught painters how to spray standard household paint onto flat sheet metal. Several improvements have already been made to extend the capability of the existing spray paint software and make it more appropriate for use in automotive applications. The most important enhancement has been the introduction of the automotive paint

Page 6: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

reflection model described in the background section of this paper. The addition of this model makes it possible to separately apply the base metallic coat and the final clearcoat. The paint also appears to have metallic and pearlescent properties as the user looks at the surface from different directions. Another advance has been the development of software that makes it possible to apply paint to a curved surface instead of being restricted to flat sheet metal. Improving the reflection model and adding curved surfaces allows the user to spray complex automotive shapes such as the car hood shown in Figure 9. A number of features must still be added to the virtual spray paint program. The simulation of paint flaws, such as orange peel and paint runs, will improve the realism of the software. The addition of these imperfections will also make it possible to create an educational module that teaches students how to identify these problems and shows them how they are produced due to poor spray painting technique. Another training capability to be added involves the correct set up of the spray gun to apply the paint. Proper adjustment of the gun is critical to achieve satisfactory results. Finally, mixing or shading the paint to achieve a proper match is a critical skill that an automotive spray painter must master. It would be valuable to extend the simulation program to include such training. CONCLUSIONS Even though they were not developed for this purpose, the paint design, shader lamp, and virtual spray paint applications described in this paper demonstrate the potential of using the new computer graphics hardware and software to solve automotive paint engineering problems. The paint design program illustrates how a new paint color with specific reflectance properties can be created. This capability could be used to fix a paint mismatch problem between two components of a car (for example, the body and the bumper cover) by designing a special "touch-up" paint for one of the parts. The shader lamp application shows how video projectors can be employed to make a simple cylindrical shape assume a different color. This work could be extended so that a new color scheme is tested by projecting it onto an actual car before the car is painted. Finally, the virtual spray paint program was created to improve the quality of the paint jobs done by automotive repair technicians. An application similar to this could be used to test the motions that will be followed by a robot as it paints a car on the assembly line. The examples in this paper provide only a small indication of how computer graphics will be used in the future to help visualize and solve automotive paint engineering problems. Important questions still remain regarding our ability to make judgments about reality from simulations, and critical tests with human subjects must be performed to resolve this key issue. However, the desire to apply computer graphics to real world surface coatings problems will continue to grow as graphics processing power increases, displays become brighter, images gain resolution, and hardware costs decrease. The day will come when paint engineers regularly use desktop workstations to answer color appearance questions just as mechanical engineers have used computer graphics to solve geometric design problems for over 30 years.

Page 7: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

ACKNOWLEDGEMENTS This paper summarizes research that was done jointly over a number of years with Jonathan Konieczny, Clement Shimizu, and Harold Westlund. The work was performed at the University of Minnesota Digital Technology Center. The author would like to thank DuPont Automotive Products for providing paint samples and reflectance measurements. This research was partially funded by the National Institutes of Standards and Technology and by the National Science Foundation under grant number EEC-0438693. REFERENCES (1) Westlund, H., and Meyer, G., "Applying Appearance Standards to Light Reflection

Models," Proceedings of SIGGRAPH’01, 501-510, (2001). (2) Hunter, R., and Judd, D., "Development of a method of classifying paints according to

gloss," ASTM Bulletin, (1939). (3) Alman, D., "Directional color measurement of metallic flake finishes," Proceedings

of the ISCC Williamsburg Conference on Appearance, 53–56, (1987). (4) Shimizu, C., Meyer, G., and Wingard J., "Interactive Goniochromatic Color Design,"

Eleventh Color Imaging Conference, 16-22, (2003). (5) Shimizu, C., and Meyer, G., "Computer Aided Color Appearance Design using

Environment Map Based Lighting," Eurographics Workshop on Computational Aesthetics in Graphics, Visualization, and Imaging, 223-230, (2005).

(6) Meyer, G., Shimizu, C., Eggly, A., Fischer, D., King, J., and Rodriguez, A.,

"Computer Aided Design of Automotive Finishes," Proceedings of 10th Congress of the International Colour Association, 685-688, (2005).

(7) Raskar, R., Welch, G., Low, K., and Bandyopadhyay, D., "Shader lamps: Animating

real objects with image-based illumination," Proceedings of the 12th EurographicsWorkshop on Rendering Techniques, 89-102, (2001).

(8) Konieczny, J., Shimizu, C., Meyer, G., and Colucci, D., "A Handheld Flexible

Display System," Proceedings of IEEE Visualization 2005, 591-597, (2005). (9) Konieczny, J., and Meyer, G., "Material and Color Design Using Projectors," CGIV

2006: Third European Conference on Colour in Graphics, Imaging, and Vision, 438-442, (2006).

Page 8: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

Figure 1 - Entrance and exit apertures for the virtual glossmeter.

Figure 2 - Numerical integration across the exit aperture of the virtual glossmeter.

Page 9: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

Figure 3 - Gloss versus roughness for the Ward isotropic reflection model.

Figure 4 - Linear combination of gloss reflection model and metallic paint reflection model.

Page 10: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

Figure 5 - Automotive paint design program interface for selecting face and flop colors.

Figure 6 - Computer graphic image produced by automotive paint design program.

Page 11: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

Figure 7 - Back projection onto flexible sheet to simulate metallic appearance.

Figure 8 - Shader lamp setup used to make cylindrical object assume metallic color appearance. Upper projector projects color while right projector provides general illumination.

Page 12: Computer Graphic Tools for Automotive Paint Engineering · PDF fileComputer Graphic Tools for Automotive Paint Engineering ... Recent developments in computer graphics software and

Figure 9 - Virtual spray paint system simulates application of automotive paint to complex three dimensional shape.