Improving graphics display technologies provide for highly realistic rendering of images in simulated environments such as games. Even modestly priced graphics adapters and gaming systems can render remarkably realistic scenes.
Notwithstanding the high capability of graphics hardware, realistic rendering of outdoor settings continues to present a challenge. For example, in rendering a daylight setting involving a number of plants, a system must represent how sunlight and shadow contribute to the appearance of the plants. Realistically representing leaves is particularly difficult because of the complex underlying structures of leaves that affect how leaves reflect and transmit light. Leaves are partially translucent as a function of their physical and biochemical structures. The degree to which a leaf reflects, scatters, or transmits light not only varies from plant to plant, but varies across the surface of the leaf because of variations in thickness and other characteristics.
Many efforts to render leaves rely on using bidirectional reflectance distribution functions (BRDFs) and bidirectional transmittance distribution functions (BTDF). BRDFs and BTDFs capture the translucence of leaves by modeling the reflectance and transmission of light for individual leaves as a two-dimensional function of each point of a leaf relative to that point's position on the leaf surface. Some BRDF/BTDF models have been devised based on geometrical and biochemical analyses of leaf samples. Developing these models requires detailed knowledge of internal leaf structures, and the resulting models frequently yield large data files.
To avoid this level of complexity, more compact models have been generated based on experimental data related to inorganic materials. These models are easier to create and require less data storage, but fail to accurately represent the subsurface scattering that allows for realistic rendering.
Even if a leaf can be rendered realistically, realistically representing how a leaf is illuminated by direct sunlight, reflections, shadows, and other environmental light represents an entirely different problem. Because of the way that leaves are bunched together, accurate depiction of how leaves are illuminated by sunlight involves detailed ray tracing. Ray tracing generally does not support the fast run-time shading calculations desired to render leaves in real time.
Other lighting calculation solutions, such as precomputed radiance transfer (PRT) can calculate illumination more quickly than ray tracing. However, PRT is much better suited to modeling low energy, low frequency lights, such as manmade indoor lighting, than it is for high energy, high frequency lighting such as sunlight. Using PRT to model sunlight tends to do a poor job of representing shadows and other illumination details resulting from high-frequency illumination.
Rendering of a partially translucent object is performed using a set of parameter maps derived from data measuring reflectance and transmittance of light received at the surface of the partially translucent object. Data is captured from an actual object being modeled, rather than estimated based on internal structure and composition. Parameter maps relating albedo, thickness variation, and specular intensity and roughness of the object are stored as textures to facilitate rendering. In addition, realistic rendering of illumination from high energy sources such as sunlight is effected by separating illumination into low frequency and high frequency components. Low frequency components are rendered by precomputed radiance transfer. High frequency components, which are not modeled well by precomputed radiance transfer, are modeled using a light visibility convolution integral to generate light visibility maps for positions of the high frequency light source. The different frequency components are combined to yield a realistic appearance.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit of a three-digit reference number identifies the figure in which the reference number first appears, while the left-most two digits of a four-digit reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different figures indicates similar or identical items.
Embodiments of object modeling, light computation, and object rendering are adaptable for use with non-fluid, partially translucent objects. As illustrated in the exemplary embodiments described below, plant leaves and other objects that partially reflect and partially transmit light, can be realistically modeled using data measured from actual objects, such as actual plant leaves. Reflectance and transmittance functions are adapted to the data measured. Using the reflectance and transmittance functions, parameter maps describing the object are derived and stored as textures used in rendering the object.
In addition, illumination is separately calculated for low frequency light sources, such as reflected sunlight and other environmental light, and high frequency light, such as direct sunlight. By calculating the illumination in two separate passes, light computation is performed quickly without loss of shadows and other effects resulting from high frequency light sources.
Process of Object Rendering
Modes of object modeling, light computation, and object rendering are useful for real-time rendering of any non-fluid, partially translucent object. The following sections of this detailed description will describe operation of modes for an example of plant leaves. Plant leaves are a suitable example because leaves are complex objects for which realistic rendering is desired, and plant leaves are desirable objects to include in a simulated outdoor environment. However, modes described below are also useful for modeling and rendering other translucent objects.
At 110, a parametric model of the object is created from reflectance and transmittance functions adapted to data measured from an object to be rendered. In one mode, the object is modeled with two pairs of bidirectional reflectance distribution functions (BRDFs) and bidirectional transmittance distribution functions (BTDFs) derived from captured video data of the object. A first BRDF/BTDF pair is created for the top surface of the leaf, and a second BRDF/BTDF pair is created for the bottom surface of the leaf. Each of the BTDFs relies on a thickness detail map of the object. In addition, each BRDF relies on three object maps: an albedo map, a specular roughness map, and a specular intensity map.
At 120, textures are created from the maps derived at 110. More specifically, the maps are stored as red-green-blue-alpha (RGBA) textures that may be stored in memory of the graphics device for rapid, real-time rendering of the object.
At 130 and 140, light computation is performed to facilitate rendering the object with global illumination effects. In one mode of light computation further described below, a two-pass process is used. At 130, in the first pass, precomputed radiance transfer (PRT) is used to compute indirect and low frequency lighting components. At 140, in the second pass, the contribution of direct lighting components is computed using pre-computed light visibility convolution (LVC) data for all vertices from which the direct lighting may issue.
At 140, using the textures and the two-pass light computation, the object is rendered in real-time.
Framework for Object Modeling
The thickness d 250 of the leaf slap 210 lies along the z-axis 244. More specifically, the thickness d 250 of the leaf slab 210 is defined as a function given by Eq. 1:
d=h+δ(X) (1)
As used in Eq. 1, X represents the (x, y) spatial position on the leaf slab 210 in the plane defined by the x-axis 240 and the y-axis 242. The thickness d 250 is a spatially variant function relative to an overall object thickness h. The thickness detail map representing a collection of values of thickness d 250 is included within the bidirectional transfer distribution function (BTDF) for both the upper surface and the lower surface of the leaf. The value of h can be adjusted by a user to later adjust the appearance of leaf as desired.
Rays of light 260 illuminate the upper surface 220 of the leaf slab 210, with the rays 260 representing the illumination caused by light beam μ0270. The light beam μ0 270 emanates from an angular position θ0280 relative to the z-axis 250, which represents a normal axis to the surfaces 220 and 230 of the leaf slab 210.
Between a projection 312 into the plane in which the object lies and the reference axis 306 is φi314, a horizontal angle of incidence. Between a projection 312 into the plane in which the object lies and the reference axis 306 is φr318, a horizontal angle of reflectance. Similarly, between Vi308 and the normal 304 is θi320, a vertical angle of incidence. Between Vr310 and the normal 304 is θr322, a vertical angle of incidence.
A half-vector H 324 bisects an angle between vector Vi 308 and vector Vr 310, splitting the angle into two equal angles β326. Between H 324 and N 304 is α328. The angles identified in connection with
Overview of Parametric Object Modeling
As previously described, in one mode of parametrically modeling a leaf, the model consists of two pairs of BRDFs and BTDFs. A first BRDF/BTDF pair is created for the top surface of the leaf, and a second BRDF/BTDF pair is created for the bottom surface of the leaf. Each of the BTDFs relies on a thickness detail map. In addition, each BRDF relies on three object maps: an albedo map, a specular roughness map, and a specular intensity map. These four maps are stored as red-green-blue-alpha (RGBA) textures that are stored in memory of the graphics device for rapid, real-time rendering of the object. In one mode, the maps are derived by measuring the object to be modeled. More specifically, the albedo, specular roughness, and specular intensity maps are derived from captured visual data of the object to be modeled.
Derivation of BRDF
In one mode, the BRDF is represented by ƒr. The BRDF ƒr includes two terms: a diffuse term ƒd and a glossy term ƒs as given by Eq. 2:
ƒr(X,θi,φi,θr,φr)=ƒs(X,θi,φi,θr,φr)+ƒd(X) (2)
As indicated by Eq. 2, the BRDF as a whole is spatially variant as a function of position X within the plane of the object, the angles of incidence of the illumination source θi and φi, and the angles of reflection θr and φr. However, while the glossy term ƒs is dependent on each of these spatial parameters, the diffuse term ƒd is dependent only on the position within the plane of the object.
More specifically, the spatially variant BRDF, ƒr(X, θi, φi, θr, φr), is given by Eq. 3:
The derivation of the glossy term ƒs and the diffuse term ƒd of the BRDF are described in the following sections.
Derivation of Glossy Term of BRDF
The glossy term ƒs is derived from analysis of rough surface scattering resulting from the upper surface 220 (
In Eq. 4, is the correlation length and σ is the root mean square height.
Using identities and known equations, Eq. 4 can be simplified. Referring back to the coordinate system of
Further, because the angle between Vi308 (
Vi·Vr=cos(2β) (9)
Vi·Vr=2 cos2 β−1 (10)
From the trigonometry of the coordinate system 300, values of Vi308 and Vr310 are replaceable with identities given by Eqs. 11 and 12:
Vi=(sin θi cos φi, sin θi sin φi, cos θi) (11)
Vr=(sin θr cos φr, sin θr sin φr, cos θr) (12)
Use of these identities yields Eqs. 13:
cos θi cos θr+sin θi sin θr cos(φi−φr)=Vi·Vr (13)
From Eqs. 10 and 13, the relationships can be further simplified as given by Eqs. 14 and 15:
The glossy term ƒs of the BDRF using a normalized scattering cross-section per unit area formula, as developed by Stogryn in the 1967 paper “Electromagnetic Scattering from Rough, Finitely Conducting Surface,” Radio Sciences 2 (New Series), 4, 415-428, is given by Eq. 16:
Using Eqs. 13-15, the normalized scattering cross-section formula may be reexpressed as given by Eqs. 17 and 18:
The specular roughness map is defined by spatially variant function m(X) included in the glossy term ƒs of the BRDF. The function m(X) represents the root mean square slope of the microfacets at point X as given by Eq. 19:
Substituting m(X) according to Eq. 19, and substituting cos α according to Eq. 8, Eq. 18 can be further reduced as given by Eqs. 20 and 21:
Using Eq. 21, the glossy term ƒs is given by Eq. 22:
In Eq. 22, ρs(X) represents the spatially variant specular intensity map which, like the specular roughness map m(X) is derivable from visual data captured from the object being modeled, as is further described below. Thus, in one mode of object modeling as expressed in Eq. 22, the glossy term of the BRDF is expressed in terms of the specular roughness map m(X), the spatial intensity map ρs(X), angle α328 (
Derivation of Diffuse Term of BRDF
Unlike the glossy term ƒs of the BRDF, the diffuse term ƒd of the BRDF is not a function of the angles of incidence or reflectance of the illumination coordinates. The diffuse term ƒd is only a function of position in the plane of the leaf slab 210 (
In Eq. 23, ρd(X) is the diffuse reflectance, obtainable from analysis of subsurface light transport, as described further below.
Derivation of BTDF
In one mode, the BTDF is represented by ƒt. The BTDF ƒt, in contrast to the BRDF's dual glossy and diffuse terms, includes only a diffuse term, as given by Eq. 24:
As manifested in Eq. 24, the BTDF is a function of the thickness of the thickness detail map δ(X)+h, and a plurality of constants, A, B, σa and σs. Constants A and B, in one mode, are measured from visual data collected from a representative object, as is further described in the next section. Similarly, constants σs and σa represent the scattering and absorption coefficients, respectively, of the object, which also are derivable by measuring visual data collected from the representative object. Because each of these terms are constants, the BTDF can be rewritten as given by Eq. 25:
In Eq. 25, ρt(X) is the spatially variant transmittance of the object. Like the diffuse reflectance ρd(A) of the diffuse term ƒd of the BRDF, the BTDF is dependent only on the position X within the plane of the object. Also like the diffuse reflectance ρd(X), the transmittance ρt(X) is obtainable from analysis of subsurface light transport, as described further below.
Diffuse Reflectance and Transmittance Derived from Subsurface Scattering
The diffuse reflectance ρd(X) of the BRDF and the transmittance ρt(X) are derivable from visual data captured from the object being modeled. Taking the example of a plant leaf, subsurface scattering analysis, in one mode of analysis, is based on a within-leaf radiative transfer model. One such model is LEAFMOD, an experimentally validated model proposed by Ganapol, Johnson, Hammer, Hlavka, and Peterson, in “LEAFMOD: A new within-leaf radiative transfer model,” Remote Sensing of Environment 63, 182-193 (1998).
A radiative transfer equation is expressible as given by Eq. 26:
In Eq. 26, p(Ω,Ω′) represents a general phase function given by Eq. 27:
Also in Eq. 27, σt is a scalar constant equal to a sum of scalar constants σa and σs. Eq. 27 can be reexpressed in terms of radiance values as given by Eq. 28:
In Eq. 28, I(z,μ) is the radiance at z in direction μ=cos θ, μ′=cos θ′ and ƒ(μ′,μ) is the azimuthal average of the general phase function p(Ω,Ω′)
Using Eq. 27, the optical path length is represented by Eq. 29:
τ=σtz (29)
Furthermore, using a leaf model such as LEAFMOD, the leaf interior is assumed to be constituted from an isotropic material. Accordingly, the azimuthal average of the general phase function ƒ(μ′,μ) is replaceable by the value 0.5. Accordingly, Eq. 28 can be simplified as given by Eq. 30:
In Eq. 30, ω is equal to the ratio given by Eq. 31:
A light beam μ0 (
In Eqs. 32 and 33, it is assumed that μ>0, Δ is the optical thickness defined as σth0 for a physical thickness of the leaf slab 210 of h0. The value rs is the Lambertian reflectance of a surface adjacent to the back leaf surface.
Using the foregoing equations, the diffuse reflectance ρs and the transmittance ρt are given by Eqs. 34 and 35, respectively:
In Eqs. 34 and 35, the values of I(0,−μ) and I(Δ,μ) are obtainable by solving the boundary conditions of Eqs. 32 and 33 using an fn method known in the art. An example of the FN method is described by Siewert in “The fn method for solving radiative-transfer problems in plane geometry,” Astrophysics and Space Science 58, 131-137 (1978). The FN method expands the exit radiances in a set of basic functions in the form of shifted Legendre polynomials represented by ψa(μ). Solving Eqs. 32 and 33, the diffuse reflectance ρd(X) of the BRDF and the transmittance ρt(X) are given by Eqs. 36 and 37, respectively:
In Eqs. 36 and 37, an and bn are constants determined by the FN method. N is an integer controlling the accuracy of the FN method. In one mode, N is chosen such that the solutions for an and bn are within a relative error of 10−3.
In one mode, the reflectance and transmittance are measured with a linear light source device. A surface adjacent to the upper leaf surface 220 (
Eqs. 38 and 39 yield constants because an and bn are constants. Substituting for A and B as given by Eqs. 38 and 39 into Eqs. 36 and 37, solutions for reflectance ρd(X) of the BRDF and the transmittance ρt(X) are given by Eqs. 40 and 41, respectively:
Combining Eq. 39 with the spatially variant albedo map γ(X), reflectance ρd(X) of the BRDF for any position on the leaf slab 210 (
Similarly, combining Eq. 40 with the spatially variant thickness map δ(X), transmittance ρt(X) of the BTDF is given by Eq. 42:
It should be noted that the reflectance ρd(X) of the BRDF depends on the albedo map γ(X) but not the thickness map δ(X). Conversely, the transmittance ρt(X) of the BTDF depends on the thickness map δ(X), but not on the albedo map γ(X).
Fitting BRDFs and BTDFs to Measured Data
In one mode, the reflectance and transmittance are measured with a linear light source device. Using the example of a leaf, two BRDF and BTDF pairs are acquired, including a BRDF and BTDF pair for the upper surface 220 (
More specifically, for each surface, a diffuse lobe and a reflectance lobe are fitted to the reflectance data acquired using a uniform diffuse area light source, such as a linear light source device. For each surface, this process yields the diffuse reflectance ρd(X), the specular intensity map ρs(X), the specular roughness map m(X), and the transmittance ρt(X).
From an estimated leaf thickness h and measured ρd(X) and ρt (X), σa, σsγ(X) and δ(X) are calculated. The values of σa and σs are calculated for every point (X) from Eqs. 40 and 41. Scalar constants σa and σs are averaged over each of the leaf surfaces. Once values of σa and σs have been determined, the albedo map γ(A) and the thickness map δ(X) are derived from the visual data captured using the linear light source device by solving Eqs. 42 and 43 for γ(X) and δ(X), respectively.
Recovering the parameters γ(X), δ(X), σa, and σs using the process described in the previous paragraph provides two advantages. First, redundancy in the measured diffuse transmittance ρt(X) makes the leaf model more compact. The measured ρt(X) is stored in RGB channels. By contrast, δ(X) yields only grayscale values that can be stored in an alpha-channel of one of the texture maps needed for the BRDF parameters. Thus, no separate texture map is needed to store the BTDF. A second advantage is that meaningful editing of leaf appearance can be performed by adjusting parameters such as σa, σs, and the leaf thickness h from their estimated values. Changes to these values affect the overall appearance of the leaf without having to edit the rendered image of the leaf.
Process for Deriving Parametric Models from Measured Data
At 520, using the transmittance map ρt(X) and the diffuse reflectance map ρr(X) an absorption coefficient σa and a scattering coefficient σs are calculated for each point on the surface(s) by solving the system of Eqs. 40 and 41 for σa and σs. At 530, the values of σa and σs calculated for each point are averaged to derive scalar constants to be used for σa and σs across each of the surfaces.
At 540, the albedo map γ(X) is derived from the absorption and scattering coefficients derived at 530 and the diffuse reflectance map ρr(X) using Eq. 42. At 550, the local thickness variation function δ(X) is calculated from the absorption and scattering coefficients derived at 530 and the transmittance map ρr(X) using Eq. 43.
At 560, the albedo map γ(X) is stored for each of the surfaces in the red-green-blue channels of a first texture. At 570, the local thickness variation function δ(X) is stored in the alpha channel of the first texture. At 580, the spectral intensity map ρs(X) is stored in the red-green-blue channels of a second texture. At 590, the specular roughness map m(X) is stored in the alpha channel of the second texture. The object will be rendered using these textures, as described below in connection with
Lighting Computation to Facilitate Rendering of Objects
As mentioned previously with regard to
In one mode, solar illumination is separated into direct and indirect components at each point on the surface of the object. Illumination of the object from the indirect component is determined in a first pass, and illumination of the object from the direct component is determined in a second pass. The two passes are performable in either order.
In the first pass, the indirect component and low frequency environmental light resulting from illumination other than solar illumination is performed using PRT. In the second pass, contribution of the direct component is determined using light visibility convolution data at a plurality of points from which solar illumination may be expected based on movement of the sun across the sky. The second pass does not use a low-order spherical harmonics basis used in conventional PRT. Accordingly, there is no loss of high-frequency details that would result if conventional PRT is applied to high-frequency illumination sources. The sum of the two passes results in the overall illumination of the object.
Sources of illumination are represented by a source lighting vector l given by Eq. 44:
l=S+E (44)
In Eq. 44, S represents sunlight, the high frequency illumination, while E represents lower frequency environmental light. PRT is used to precompute and store a linear operator MP at every surface point P for which illumination is to be computed, where P represents the coordinate position of a point in multi-dimensional space. The linear operator Mp transforms a source lighting vector l into a transferred incident radiance vector, as given by Eq. 45:
lT(p)=Mpl (45)
Linear operator Mp attenuates the source lighting as a function of shadowing at the point P caused by other objects, but also increases source lighting as a result of reflections. MP is a linear operator, thus, lT(P) is expressible as given by Eqs. 46 and 47:
lT(p)=Mp(S+E) (46)
lT(p)=ST(P)+ET(P) (47)
To capture high frequency detail details of soft shadows resulting from sunlight, the transferred sunlight radiance ST(P) is separated into direct and indirect components, respectively, as given by Eq. 48:
ST(P)=SdT(P)+SiT(P) (48)
SdT(P) includes all direct sunlight illumination at point P. SiT(P) includes all indirect sunlight illumination at point P, including all sunlight transmitted through other objects and sunlight reflected onto point P by other objects. Again, because MP is a linear operator, lT(P) is expressible as given by Eq. 49:
lT(p)=SdT(P)+SiT(P)+ET(P) (49)
In one mode, Mp is precomputed using a ray tracer in which both BRDF and BTDF are evaluated at each surface point. Evaluating BRDF and BTDF at each point accounts for the translucency of the leaves, resulting in an exit radiance at each point P for each view direction vP. The exit radiance e(P, vP) for each point is computed as a dot product given by Eq. 50:
e(P,vP)=b(vP)lT(P) (50)
In Eq. 50, b(vP) is a view-dependent BRDF-BTDF vector. Substituting the value of lT(P) from Eq. 49 into Eq. 50, the exit radiance e(P, vP) can be reexpressed as given by Eq. 51:
e(P,vp)=b(vp)SdT(P)+b(vp)SiT(P)+b(vp)ET(P) (51)
Because PRT is usable to represent low frequency light, it is desirable to rewrite Eq. 51 to isolate the low frequency illumination components as given by Eq. 52:
e(P,vp)=b(vp)SdT(P)+b(vp)(SiT(P)+ET(P)) (52)
The illumination from low frequency terms SiT(P)+ET(P) are obtained from PRT. E is assumed to be a low frequency illumination component. For sunlight, an inherent limitation of PRT is that only captures low frequency inter-reflections of illumination. Thus, conventional PRT is used to derive the illumination from the low frequency terms SiT(P)+ET(P).
The only modification to PRT is that only indirect components of the transferred sunlight radiance are recorded. This is a simple modification because the transfer operator MP is pre-computed using a ray tracer. Direct sunlight illumination represents the first light bounce of the ray tracer and, thus, is easily disregarded. Thus, PRT projects MP, S, and E on a low-order spherical harmonics basis, thus only low frequency visual effects are yielded by SiT(P)+ET(P). PRT is thus used to perform the first lighting computation pass.
Omitting the low frequency components from Eq. 52, only the high frequency components of the exit radiance e(P, vP) remains, as given by Eq. 53:
e(P,vp)=b(vp)SdT(P) (53)
For the second, high frequency lighting computation pass, it is desirable to compute the value of b(vp)SdT(P) without using a low order spherical harmonics basis, which would attenuate some of the desired visual effects from the high frequency illumination.
By definition, where Y is the vector position of the sun and Sd(Y) is the direct sunlight as a function of the vector position of the sun, b(vp)SdT(P) can be expressed as given in Eq. 54:
In Eq. 54, ƒr(Y, vP) is the BRDF, V(P,Y) is the visibility function of the sun at P, Yz is the z component of Y, and Ω is the hemisphere of light directions from which the illumination of the sign may be received.
Calculating b(vp)SdT(P) from Eq. 54 is a computationally involved calculation that would be impractical to calculate. However, instead of calculating the expression of Eq. 54, light-visibility convolution is computed for all vertices in the scene from where the sunlight may issue. Precomputing the light visibility convolution thereby facilitates real-time rendering of objects.
Light visibility convolution is performed by modeling the sun as an area light source in the shape of a flat, circular disk. Term Ω0 is a solid angle extending from the sun to point P, the point being analyzed. Sd(Y) is only nonzero when it falls within the angle Ω0. Because the sun is very far away, the angle Ω0 is very small. As a result, Eq. 54 can be reexpressed as given by Eq. 55:
b(vp)SdT(P)≈ƒr(Y,vp)VY
where the function VY
VY
The light visibility convolution VY
More specifically, the light visibility maps VY
Process for Computing Illumination
According to one mode, the PRT rendering pass is accelerated by creating a discrete geometry level of detail for each leaf mesh and deriving radiance transfer matrices for all level of detail meshes. At 830, radiance transfer matrices are precomputed for the finest level of mesh vertices that would be presented at the highest possible resolution for the object. At 840, radiance transfer matrices for coarse level vertices used for representing the object at a lower resolution are derived. The radiance transfer matrices for the coarse level vertices are derived by averaging the radiance transfer matrices at the finest level mesh matrices derived at 830. The finest level mesh matrices are averaged using Gaussian weights as will be understood by those skilled in the art. At 850, the current level of detail for each vertex is determined, and the appropriate radiance transfer matrix is selected. At 860, the radiance transfer matrix is computed from adjacent precomputed radiance transfer levels of detail.
At 870, the light visibility convolution integral is used to determine the direction sunlight component for each point in the scene for all possible sun directions. At 880, to reduce the size of the light visibility map, the light visibility convolution integral data is rebinned to create the light visibility map for each sun position. At 890, the light visibility map is compressed, such as by using a run length encoding scheme. The light visibility maps for each sun position are separately compressed so that only one sun visibility map is decompressed for each scene, because only one sun position will be used for each scene.
Alternative Computation of Light Visibility Convolution
Because the visibility map VY
Combining cube map 1000 and light mask 1100 generates the same result as the light visibility convolution integral. Thus, taking the pixel-wise dot product of cube map 1000 and light mask 1100 provides an efficient method for calculating the light visibility convolution integral, S0(Y)V(P,Y).
Process for Rending an Object with Global Illumination Effects
At 1210, a mesh representing the shape of the object to be rendered is generated. At 1220, textures are accessed to apply to the surfaces of the objects being rendered. As previously described, in one mode the textures include specular intensity and roughness maps, an albedo map, and a local thickness variation function. At 1230, the textures are applied.
At 1240, a first illumination pass is performed to represent the effects of indirect sunlight and other low frequency environmental illumination. As previously described, precomputed radiance transfer is well-suited for rapid computation for low frequency light. At 1250, a second illumination pass is performed to represent the effects of direct sunlight for which precomputed radiance transfer is not an ideal method. The second pass uses a light visibility map derived using the light visibility convolution integral. At 1260, the image of the textured and illuminated object is displayed.
Although this description frequently has referred to the example of plant leaves as the objects being modeled, and sunlight as a high frequency illumination source, other objects can be modeled and other light sources can be used. Other translucent bodies, such as panes of glass or plastic used in windows and other objects can be modeled using the transmittance and reflectance data previously described. Similarly, in an environment with other high frequency light sources, such as high intensity manmade lights, or an environment with multiple suns or other high intensity light sources, the two-pass process and the light visibility convolution integral can be used to compute illumination for these situations, as well.
Computing System for Implementing Exemplary Embodiments
The object modeling and illumination calculation processes may be described in the general context of computer-executable instructions, such as program modules, being executed on computing system 1300. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. Moreover, those skilled in the art will appreciate that the object rendering and illumination calculation processes may be practiced with a variety of computer-system configurations, including gaming systems, hand-held devices, multiprocessor systems, microprocessor-based or programmable-consumer electronics, minicomputers, mainframe computers, and the like. The object modeling and illumination calculation processes may also be practiced in distributed-computing environments where tasks are performed by remote-processing devices that are linked through a communications network. In a distributed-computing environment, program modules may be located in both local and remote computer-storage media including memory-storage devices.
With reference to
Computer 1310 typically includes a variety of computer-readable media. By way of example, and not limitation, computer-readable media may comprise computer-storage media and communication media. Examples of computer-storage media include, but are not limited to, Random Access Memory (RAM); Read Only Memory (ROM); Electronically Erasable Programmable Read Only Memory (EEPROM); flash memory or other memory technology; CD ROM, digital versatile discs (DVD) or other optical or holographic disc storage; magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices; or any other medium that can be used to store desired information and be accessed by computer 1310. The system memory 1330 includes computer-storage media in the form of volatile and/or nonvolatile memory such as ROM 1331 and RAM 1332. A Basic Input/Output System 1333 (BIOS), containing the basic routines that help to transfer information between elements within computer 1310 (such as during start-up) is typically stored in ROM 1331. RAM 1332 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 1320. By way of example, and not limitation,
The computer 1310 may also include other removable/nonremovable, volatile/nonvolatile computer-storage media. By way of example only,
The drives and their associated computer-storage media discussed above and illustrated in
A display device 1391 is also connected to the system bus 1321 via an interface, such as a video interface 1390. Display device 1391 can be any device to display the output of computer 1310 not limited to a monitor, an LCD screen, a TFT screen, a flat-panel display, a conventional television, or screen projector. In addition to the display device 1391, computers may also include other peripheral output devices such as speakers 1397 and printer 1396, which may be connected through an output peripheral interface 1395.
The computer 1310 will operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 1380. The remote computer 1380 may be a personal computer, and typically includes many or all of the elements described above relative to the computer 1310, although only a memory storage device 1381 has been illustrated in
When used in a LAN networking environment, the computer 1310 is connected to the LAN 1371 through a network interface or adapter 1370. When used in a WAN networking environment, the computer 1310 typically includes a modem 1372 or other means for establishing communications over the WAN 1373, such as the Internet. The modem 1372, which may be internal or external, may be connected to the system bus 1321 via the network interface 1370, or other appropriate mechanism. Modem 1372 could be a cable modem, DSL modem, or other broadband device. In a networked environment, program modules depicted relative to the computer 1310, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation,
Although many other internal components of the computer 1310 are not shown, those of ordinary skill in the art will appreciate that such components and the interconnections are well-known. For example, including various expansion cards such as television-tuner cards and network-interface cards within a computer 1310 is conventional. Accordingly, additional details concerning the internal construction of the computer 1310 need not be disclosed in describing exemplary embodiments of the object modeling and illumination calculation processes.
When the computer 1310 is turned on or reset, the BIOS 1333, which is stored in ROM 1331, instructs the processing unit 1320 to load the operating system, or necessary portion thereof, from the hard disk drive 1341 into the RAM 1332. Once the copied portion of the operating system, designated as operating system 1344, is loaded into RAM 1332, the processing unit 1320 executes the operating system code and causes the visual elements associated with the user interface of the operating system 1334 to be displayed on the display device 1391. Typically, when an application program 1345 is opened by a user, the program code and relevant data are read from the hard disk drive 1341 and the necessary portions are copied into RAM 1332, the copied portion represented herein by reference numeral 1335.
Although exemplary embodiments have been described in language specific to structural features and/or methodological acts, it is to be understood that the appended claims are not necessarily limited to the specific features or acts previously described. Rather, the specific features and acts are disclosed as exemplary embodiments.
Number | Name | Date | Kind |
---|---|---|---|
7319467 | Weyrich et al. | Jan 2008 | B2 |
Number | Date | Country | |
---|---|---|---|
20070018996 A1 | Jan 2007 | US |