Abstract
Functionally defined objects for realistic scenes are offered. We describe physically based visualization of three-dimensional objects based on perturbation functions; i.e., the rendering of materials occurs with regard to the laws of physics. Physically based reflection models are needed to obtain photorealistic images. The surface roughness, microrelief, and gloss suggest how smooth or rough the surface of the material is. The diffraction effects are shown taking into account the roughness of the surface. Subsurface light transport is considered and modeled using bidirectional surface scattering.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 INTRODUCTION
In physically based rendering, the interaction of materials with light, in particular, by reflection, is very important. Reflection properties affect the visual appearance of objects [1–7]. Realistic visualization of materials with complex optical properties presents a major challenge. In [8], the bidirectional reflectance of surfaces having complex optical properties is described. The bidirectional scattering distribution function (BSDF)—two-beam scattering function—describes the scattering of light on a surface. Microfacet-based BSDF models use parameterized expressions to approximate reflective properties. In [9], a two-layer model of microfacet reflection is proposed, which combines both specular and diffuse diffraction effects. The paper [10] proposes a compact representation of bidirectional reflection data that combines accurate reconstruction with efficient visualization using the integrated reflectance interpolation. The bidirectional reflection distribution functions describe the interaction of light with a point on a surface. An overview of the methods used to evaluate representations of a bidirectional reflectance distribution function (BRDF—two-beam reflectance function) is given in [11]. For storage efficiency, reflection functions are often approximated by analytical formulas. These approximations are obtained by minimizing the weighted quadratic distances. However, these indices do not correlate well with perceptual quality when the BRDF is used in scene rendering. In [12], the evaluation of the perception quality for BRDF approximations as well as analytical BRDF models by their ability to approximate tabular BRDFs were studied. Most bidirectional scattering models are either based on geometric optics and include multiple scattering but no diffraction effects or based on wave optics and include diffraction but no multiple scattering effects. In [13], a method was proposed for combining the results from single scattering scalar diffraction theory with multiple scattering geometric optics. Monte Carlo integration is used. With considering a surface microgeometry, the method enables one to compute bidirectional scattering of the surfaces with small details. Thin volumes of semi-transparent nanostructures interact coherently with incident light waves to produce fine textural coloration. Such structures are complicated by incoherent scattering due to the accompanying microgeometry. Paper [14] presents a physically based approach to the use of submicroscopic scannings of quasi-periodic one-dimensional modulations in volumes for their realistic display images.
The proposed paper presents a method for physically based rendering of functionally defined objects. To properly generate diffraction effects, wave optics is applied in the rendering. The diffraction effects are caused by changes in surface altitudes [15]. To approximate the phase shifts introduced by the base altitude field, Gabor kernels are used [16]. As a result, an analytical solution is obtained for the spatially-variable detailed distribution wave functions of the BRDF reflection factor.
The aim of the present paper is to create a physically based rendering method for functionally defined objects using graphics processing units for rendering of high-realistic models.
2 FUNCTIONALLY DEFINED OBJECTS
To describe geometric objects, we use perturbation functions of the basic quadric [15, 17]:
where \(F^{\prime}(x,y,z)\) is a free form; \(F(x,y,z)\) is the basic quadric; \(f_{i}\) is the form factor; \(i=\ 1,\dots,N\) is the number of perturbation functions; \(R_{i}(x,y,z)\) is the perturbation:
\(Q(x,y,z)\) is the perturbing quadric.
3 REFLECTANCE DISTRIBUTION WAVE FUNCTION
There are two main types of materials: dielectrics and metals. Their difference in interaction with lighting is that metals do not let light into themselves. Dielectrics have diffuse reflection when light rays penetrate the material and scatter, and then some of the light is absorbed and some emerges out. In addition, dielectrics have white highlights. Metals do not transmit light but reflect it partially or completely, which results in a colored glare. Dielectrics also reflect light, but to a much lesser extent than metals. When the light falls on materials of both types, the Fresnel effect occurs. According to this effect, the degree of reflection depends on the angle of light incidence on the surface. The more acute the angle, the more light will be reflected.
Diffraction models in wave optics are used to calculate the reflected field from a rough surface [18]. In wave optics, light is described by fields with a complex value to encode magnitude and phase.
Consider the altitude field \(h(\mathbf{s})\) [15] of a point \(\mathbf{s}=[s_{u},s_{v},h(\mathbf{s})]\) on a rough surface. The BRFD function is defined as the ratio between the incident radiation from the direction \({\omega}_{i}\) and the reflected radiation in the direction \({\omega}_{0}\). The light reflected from different points on the surface moves different distances depending on the local altitude of the surface. This causes phase shifts in the reflected waves; therefore, it must be taken into account that these waves interfere with each other.
The surface reflects light with a spatially changing phase shift, which is given by the reflection function [18]
where \(\lambda\) is the wavelength, \({\psi}={\omega}_{i}+{\omega}_{0}\) is the projection, and \(\mathbf{n}\) is the normal.
Several BRDF scalar diffraction models are known [19]: the original Harvey–Shack model, the generalized Harvey–Shack model, two modifications of these models in which the Kirchhoff diffraction formula is applied instead of the Fourier formula, and Kirchhoff’s BRDF model—the base model. In this paper, a generalized Harvey–Shack model was used to strike a balance between computation time and image quality.
Let us define the directions \({\omega}_{i}\) and \({\omega}_{0}\) as three-dimensional unit vectors. The BRDF function is calculated using the surface integral [19]
where \(H\) is the area of the altitude field (the projection of the rough surface onto the \(XY\)-plane), \(A_{H}\) is the projected area, \({\psi}\) is the 2\(D\)-projection of unit vectors, and \(F\) is the Fresnel reflection coefficient.
In Eq. (4), incident light with an infinite coherence region is used to calculate the BRDF. However, realistic light sources have finite regions, for example, inversely proportional to their solid angle.
We calculate the BRDF for a single coherence region as follows:
where \(\omega(\mathbf{s})\) is the coherence kernel, \(H_{c}\) is the part of the projection of the rough surface onto the \(XY\)-plane in the region of the coherence kernel, \(\mathbf{x}_{c}\) is the center of the coherence kernel, \(A_{c}\) is the normalization coefficient, and \(r^{*}\) is the product of \(r(\mathbf{s})\) and the coherence kernel.
When rendering for \(\omega\) (6), we use a fixed size of the coherence region—Gauss with a deviation of 10 \(\mu\)m [20]. To effectively calculate the integral in Eq. (5), an approximation of the reflection function with a phase delay \(r^{*}(\mathbf{s})\) by a weighted combination of Gabor kernels is used. Gabor kernels are best suited for representing high-frequency functions typical for \(r^{*}(\mathbf{s})\).
The Gabor kernel is defined as the product of a two-dimensional Gaussian function and an exponential (plane wave):
where \(\mathbf{c}\) is the center of the kernel, \(\zeta\) is the width, \(\mathbf{p}\) is the plane wave parameter, and \(G\) is the normalized two-dimensional isotropic Gaussian function.
Let us consider the approximation of phase shifts by Gabor kernels. Spatially changing phase shifts are introduced for different wavelengths (3). Since the function \(r(\mathbf{s})\) is difficult to calculate, we approximate it using Gabor kernels. To do this, we cover the area of the altitude field with a grid of cells. A uniform mesh is used. Grid cells are squares of the same size that correspond to the original texels of the altitude field. Next, a set of cells centered at \(\mathbf{c}_{k}\) is selected, which covers the current coherence kernel. The coherence kernel is approximated with a constant value for the cell \(w_{k}=w(\mathbf{c}_{k}-\mathbf{x}_{c})\) since the cells are smaller than the coherence region. The Gabor kernel is located in every cell of the grid for the approximation of \(r(\mathbf{s})\) in its neighborhood.
An approximation for \(r^{*}(\mathbf{s})\) can be written in the form
where \(C_{k}\) is a complex constant:
The complex constant includes a scaling factor and a phase shift. Choose \(\zeta_{k}=l_{k}/2\), where \(l_{k}\) is the cell length.
Then the altitude field \(h(\mathbf{s})\) is approximated in each cell around \(\mathbf{c}_{k}\):
where \(h^{\prime}(\mathbf{c}_{k})\) is the altitude field gradient at \(\mathbf{c}_{k}\).
We substitute this approximation into \(r(\mathbf{s})\) and obtain an approximation to the contribution of one grid cell:
where \(b\) is a binary rectangular function and \(l_{k}^{2}\) is the cell area.
We use the Gabor kernel approximation to calculate the BRDF:
where \(F_{T}\) is the Fourier transform.
The Fourier transform of the Gabor kernel is written as another Gabor kernel:
Then, we calculate sum (15) running over all the cells in the coherence region.
4 SUBSURFACE SCATTERING
In addition to direct reflection at the point of shading, light can penetrate under the surface, scatter, and exit at another point, as shown in Fig. 1.
The amount of energy passing into the lower layers is [20]
where \(F\) is the Fresnel reflection coefficient. For plastic, the reflection coefficient depends on the reflection coefficient \(\rho_{\textrm{d}}\) of the diffuse layer [21]:
where \(F_{\textrm{dr}}\) is the diffuse Fresnel reflectance.
The diffuse Fresnel reflectance corresponds to the integral of the Fresnel reflectance multiplied by the cosine of the angle along the incoming directions.
For the subsurface layer, this depends on the albedo \(a\) of the scattering material [21]:
where \(\alpha_{i}^{\prime}\) and \(\alpha_{o}^{\prime}\) are the angles of refraction of the rays with the normal to the surface (see Fig. 1).
5 RESEARCH RESULTS
The high resolution \(8K\times 8K\) of the altitude field as texture maps is used to describe the microgeometry. The texel has a fixed size of one square micron of the real world. The altitude fields are covered with a grid of cells to achieve high surface resolution. Since the texels in the altitude field form a uniform grid, we convert each texel into a Gabor kernel.
To accelerate calculations, we previously create a hierarchy as a MIP-map for each altitude field [15]. Each node contains both the positional and directional bounding boxes of its four child nodes. For each BRDF request, this hierarchy is traversed from top to bottom. Nodes that are not within the coherence regions are discarded. For this, the positional bounding boxes, as well as the directional bounding boxes to remove nodes that do not affect the direction of the request, are used.
Using the Gabor kernels that represent the altitude fields, it is easy to compute the BRDF importance sampling, which is needed to find the outgoing global illumination ray. To do this, the Gabor kernel in the coherence region is randomly selected in accordance with the weight function.
To accelerate rendering, we separate direct lighting from point lights and lighting from other lights, including the environment. This separation makes it possible to use less samples per pixel; rendering requires four to twenty-five samples on a subpixel grid.
Figure 2 shows an anisotropic brushed metal object rendered with a point light source and ambient lighting.
This scene illustrates an object with a brushed metal body illuminated by a point light source and the environment. The altitude field is anisotropic. As shown in Fig. 2, the method is able to handle anisotropy, which results in vertical lines of highlights. It can be seen from the fragment (see Fig. 2, on the right) that the method is able to create widely distributed thin peaks.
Figure 3 shows the result of subsurface scattering simulation.
Subsurface light transport is represented by the bidirectional scattering–surface reflectance distribution function (BSSRDF). The BSSRDFs lead to a generalized reflection equation.
To represent the BSSRDF, we specify the material properties that are responsible for the scattering behavior. Among these are absorption, scattering, attenuation, and albedo coefficients. The anisotropy coefficient is found for anisotropic scattering, leads to a decrease in scattering and attenuation coefficients and a reduced albedo value.
The results are obtained on the Intel Core i7-8700K 6-core CPU at 3.7 GHz and the GeForce GTX 690 (NVIDIA) GPU. The Compute Unified Device Architecture (CUDA) from NVIDIA was used for the implementation. The rendering time for the tested scenes averaged about 60–70 ms per frame.
6 CONCLUSIONS
A method for physically based rendering of functionally defined objects is presented. We have described a material reflection model based on the representation of the surface microgeometry, which allows for diffraction effects caused by smaller-scale details. The model provides a good approximation with the measured materials, including at grazing angles and away from the specular peak, and also explains the wavelength dependence observed in the measured materials. The method uses wave optics to generate diffraction effects. Gabor kernels are used to approximate the phase shifts introduced by the base altitude field. This results in an analytical solution obtained for the spatially-variable detailed wave BRDF.
REFERENCES
Y. Yan, J. Ding, and S. Lijuan, ‘‘Optimization modeling and verification of bidirectional reflectance distribution function for rough surfaces,’’ Laser Optoelectron. Progress. 55, 052901 (2018). https://doi.org/10.3788/LOP55.052901.
B. Liang, S. He, L. Tähkämö, E. Tetri, L. Cui, R. Dangol, and Liisa Halonen, ‘‘Lighting for road tunnels: The influence of CCT of light sources on reaction time,’’ Displays 61, 101931 (2020). https://doi.org/10.1016/j.displa.2019.101931
Y. Liu, J. Dai, S. Zhao, J. Zhang, T. Li, W. Shang, Y. Zheng, and Z. Wang, ‘‘A bidirectional reflectance distribution function model of space targets in visible spectrum based on GA-BP network,’’ Appl. Phys. B 126, 114 (2020). https://doi.org/10.1007/s00340-020-07455-y
Y. Liu, J. Dai, S. Zhao, J. Zhang, W. Shang, T. Li, Y. Zheng, T. Lan, and Z. Wang, ‘‘Optimization of five-parameter BRDF model based on Hybrid GA-PSO algorithm,’’ Optik 219, 164978 (2020). https://doi.org/10.1016/j.ijleo.2020.164978
S. He, Y. Ren, H. Liu, B. Liang, and G. Du, ‘‘A novel tunnel lighting method aided by highly diffuse reflective materials on the sidewall: Theory and practice,’’ Tunnelling Underground Space Technol. 122, 104336 (2022). https://doi.org/10.1016/j.tust.2021.104336
T. V. Small, S. D. Butler, and M. A. Marciniak, ‘‘Uncertainty analysis for CCD-augmented CASI®BRDF measurement system,’’ Opt. Eng. 60, 114101 (2021). https://doi.org/10.1117/1.OE.60.11.114101
T. V. Small, S. D. Butler, and M. A. Marciniak, ‘‘Solar cell BRDF measurement and modeling with out-of-plane data,’’ Opt. Express 29, 35501–35515 (2021). https://doi.org/10.1364/OE.440190
A. Sole, G. C. Guarnera, I. Farup, and P. Nussbaum, ‘‘Measurement and rendering of complex non-diffuse and goniochromatic packaging materials,’’ Visual Comput. 37, 2207–2220 (2021). https://doi.org/10.1007/s00371-020-01980-9
Y. Chai, Y. Xu, M. Xu, and L. Wang, ‘‘Two-layer microfacet model with diffraction,’’ Comput. Graphics 86, 71–80 (2020). https://doi.org/10.1016/j.cag.2019.08.017
A. Sztrajman, G. Rainer, T. Ritschel, and T. Weyrich, ‘‘Neural BRDF representation and importance sampling,’’ Computer Graphics Forum 40, 332–346 (2021). https://doi.org/10.1111/cgf.14335
M. da Silva Nunes, F. M. Nascimento, G. F. Miranda, Jr., and B. T. Andrade, ‘‘Techniques for BRDF evaluation,’’ Visual Comput. 38, 573–589 (2022). https://doi.org/10.1007/s00371-020-02035-9
G. Lavoué, N. Bonneel, J.-P. Farrugia, and C. Soler, ‘‘Perceptual quality of BRDF approximations: Dataset and metrics,’’ Comput. Graphics Forum 40, 327–338 (2021). https://doi.org/10.1111/cgf.142636
V. Falster, A. Jarabo, and J. R. Frisvad, ‘‘Computing the bidirectional scattering of a microstructure using scalar diffraction theory and path tracing,’’ Comput. Graphics Forum 39, 231–242 (2020). https://doi.org/10.1111/cgf.14140
D. S. J. Dhillon, ‘‘Physically based rendering of simple thin volume natural nanostructures,’’ in Advances in Visual Computing. ISVC 2021, Part I, Ed. by G. Bebis, V. Athitsos, T. Yan, M. Lau, F. Li, C. Shi, X. Yuan, C. Mousas, and G. Bruder, Lecture Notes in Computer Science, Vol. 13017 (Springer, Cham, 2022), pp. 400–413. https://doi.org/10.1007/978-3-030-90439-5_32
S. I. Vyatkin, ‘‘Complex surface modeling using perturbation functions,’’ Optoelectron., Instrum. Data Process. 43, 226–231 (2007). https://doi.org/10.3103/S875669900703003X
H. Hidalgo-Silva, ‘‘Gabor kernels for textured image representation and classification,’’ in Progress in Pattern Recognition, Image Analysis and Applications (CIARP), Ed. by J. F. Martinez-Trinidad, J. A. Carrasco Ochoa, and J. Kittler, Lecture Notes in Computer Science, Vol. 4225 (Springer, Berlin, 2006), pp. 929–935. https://doi.org/10.1007/11892755_96
S. I. Vyatkin and B. S. Dolgovesov, ‘‘Methods of interactive modeling and visualization of functionally defined objects for 3D web applications,’’ Optoelectron., Instrum. Data Process. 58, 91–97 (2022). https://doi.org/10.3103/S8756699022010137
J. Harvey, ‘‘Light-scattering characteristics of optical surfaces,’’ Proc. SPIE 107, 41–47 (1976). https://doi.org/10.1117/12.964594
J. E. Harvey and R. N. Pfisterer, ‘‘Evolution of the transfer function characterization of surface scatter phenomena,’’ Proc. SPIE 9961, 99610E (2016). https://doi.org/10.1117/12.2237083
S. Werner, Z. Velinov, W. Jakob, and M. B. Hullin, ‘‘Scratch iridescence: Wave-optical rendering of diffractive surface structure,’’ ACM Trans. Graphics 36, 207 (2017). https://doi.org/10.1145/3130800.3130840
H. W. Jensen, S. R. Marschner, M. Levoy, and P. Hanrahan, ‘‘A practical model for subsurface light transport,’’ in SIGGRAPH’01: Proc. 28th Ann. Conf. on Computer Graphics and Interactive Techniques, New York, 2001 (Association for Computing Machinery, New York, 2001), pp. 511–518. https://doi.org/10.1145/383259.383319
Funding
The work was supported as part of the State Assignment (project no. 121041800012-8).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
The authors declare that they have no conflicts of interest.
Additional information
Translated by I. Tselishcheva
About this article
Cite this article
Vyatkin, S.I., Dolgovesov, B.S. Physically Based Rendering of Functionally Defined Objects. Optoelectron.Instrument.Proc. 58, 291–297 (2022). https://doi.org/10.3103/S8756699022030116
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.3103/S8756699022030116