Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl...
-
Upload
susan-booth -
Category
Documents
-
view
216 -
download
2
Transcript of Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl...
![Page 1: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/1.jpg)
Real-Time Rendering of Planets with Atmospheres
Tobias Schafhitzel, Martin Falk, Thomas ErtlUniversität Stuttgart, Germany
![Page 2: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/2.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 2
Motivation
![Page 3: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/3.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 3
Outline
Introduction Atmospheric scattering Computation of the scattering texture Rendering Results Conclusion and future work
![Page 4: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/4.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 4
Outline
Introduction Atmospheric scattering Computation of the scattering texture Rendering Results Conclusion and future work
![Page 5: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/5.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 5
Introduction
Rendering a planet’s atmosphere Physically based computation
color shifts, light attenuation Sunset, sunrise, midday
Combination with terrain rendering Real-time approach
Games CAD Explorative tools (i.e. Google Earth,…)
![Page 6: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/6.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 6
Previous Work
Atmospheric Scattering Atmospheric Scattering Effects of the Earth [Nishita et al. 93] Real-Time Atmospheric Scattering [O’Neil 04] Interactive Rendering of atmospheric Scattering Effects using Graphics Hardware [Dobashi et al. 02] Accurate Atmospheric Scattering [O’Neil 05]
Terrain Rendering Real-Time continuous Level of Detail Rendering of Height Field [Lindstrom et al. 96] Real-Time Generation of continuous Level of Detail for Height Fields [Röttger et al. 98]
![Page 7: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/7.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 7
Outline
Introduction Atmospheric scattering Computation of the scattering texture Rendering Results Conclusion and future work
![Page 8: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/8.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 8
Light scattering equation:
φ
Atmospheric Scattering
Pv
atmosphere
earth
dsPPtPPtKF
II a
P
P
csv
b
a
r )),(),(exp()(
)()(4
Pa
Pb
Pc
![Page 9: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/9.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 9
Outline
Introduction Atmospheric scattering Computation of the scattering texture Rendering Results Conclusion and future work
![Page 10: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/10.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 10
Parametrization of the 3D scattering texture:
Arbitrary height h = |Pv| For each h Arbitrary view angle θ For each θ an arbitrary angle to the sun φ
θ
Computation of the scattering texture
h
φ
Pv
![Page 11: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/11.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 11
Intersection Tests
Camera inside the atmosphere→ use 1st intersection
Camera outside→ no scattering→ move camera to outer boundary→ constant height for parameterization→ use 2nd intersection
Two textures for intersections with Inner sphere Outer sphere Easy to switch when rendering
PV
PV
PV
![Page 12: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/12.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 12
Outline
Introduction Atmospheric scattering Computation of the scattering texture Rendering Results Conclusion and future work
![Page 13: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/13.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 13
Sky: tessellated sphere View ray Rv
connect vertex Pg with camera Pv
Compute h, θ and φ and map to [0,1] φ is constant (directional light) Fetch the scattering texture (simple lookup)
Rendering the sky
θPv
φ
Pc
Pg
Rv
![Page 14: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/14.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 14
Rendering the terrain
More complex Consider structure of the terrain Naive computation fails
Distance too long Terrain color not considered
Solution Compute scattering along PvPb
Subtract contribution along PgPb
Two texture lookups:
PV
Pg
Pb
)exp()exp(
)()()(
4 v
P
P
lv
P
P
lsv ttttKF
IIb
g
b
v
r
![Page 15: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/15.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 15
Rendering the terrain II
Considering the terrain color Illumination of the terrain
Incident light is attenuated:
Reflected light is attenuated
Overall light contribution:
dsPPtKF
II cgsgr )),(exp()(
)()(4
PV
Pg
Pc
dsPPtII vgggv )),(exp()cos()(
)()()(* vgvv III
Ig
Igv
![Page 16: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/16.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 16
Outline
Introduction Atmospheric scattering Computation of the scattering texture Rendering Results Conclusion and future work
![Page 17: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/17.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 17
Results
Earth dataset (2572 x 24 x 12)
Mars dataset (652 x 24 x 12)
Earth Mars
Outside 67.26 83.51
Inside 30.31 56.02
Terrain outside 76.44 102.37
Terrain inside 35.83 61.19
All measurements in fps
![Page 18: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/18.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 18
Europe at morning
![Page 19: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/19.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 19
Alps at morning
![Page 20: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/20.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 20
Alps at midday
![Page 21: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/21.jpg)
Tobias Schafhitzel – Real-Time Rendering of Planets with Atmospheres 21
Sunrise
![Page 22: Real-Time Rendering of Planets with Atmospheres Tobias Schafhitzel, Martin Falk, Thomas Ertl Universität Stuttgart, Germany.](https://reader035.fdocuments.us/reader035/viewer/2022062801/56649e575503460f94b4fc29/html5/thumbnails/22.jpg)
Questions ?