4 . 11. trees and vegetation
DESCRIPTION
4 . 11. Trees and Vegetation. Rendering of trees and vegetation. Vegetation. Rendering flora. Video not available in on-line slides. Grass. Grass is typically rendered using (randomly) placed intersecting quads which are texture mapped and rendered with an alpha test. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/1.jpg)
4.11. TREES AND VEGETATIONRendering of trees and vegetation
![Page 2: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/2.jpg)
VEGETATIONRendering flora
![Page 3: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/3.jpg)
Video not available in on-line slides
![Page 4: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/4.jpg)
Grass
Grass is typically rendered using (randomly) placed intersecting quads which are texture mapped and rendered with an alpha test.
The grass quad are crossed (using a star-like configuration) to ensure good visual quality independent of the line of sight.
![Page 5: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/5.jpg)
GrassDifferent alpha/depth tests can be used at runtime to suitably render a clump of grass quads and provide the appearance of densely packed grass.
![Page 6: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/6.jpg)
Grass
In a vertex shader the top two vertices of each quad can be animated (using a combination of sinusoidal waves) to provide a natural looking wave modelled motion due to wind effects.
By having separate animation parameters for each cluster or clump of grass, more chaotic (i.e. natural) behaviour can be introduced.
![Page 7: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/7.jpg)
GrassWhen lighting the grass, the quad’s normal may also be updated to reflect the grass movement.
Alternatively, the colour change can be simulated by directly modifying the rendered colour based on the oscillations.
![Page 8: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/8.jpg)
TREESRendering trees
![Page 9: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/9.jpg)
Video not available in on-line slides
![Page 10: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/10.jpg)
Trees
At a distance, a tree can be adequately rendered using a billboard or imposter.
Up close, trees are typically separated into two different parts: •solid component of the tree (trunk and branches)•foliage or leaves.
The trunk and the branches are represented using a triangle mesh. Leaves are represented using an image of a leaf group textured using a quad.
![Page 11: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/11.jpg)
Minor branches can be
approximated by simple
polygon strips
![Page 12: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/12.jpg)
Leaves are rendered as
texture mapped quads
![Page 13: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/13.jpg)
More sophisticat
ed tree rendering deals with issues such
as silhouette clipping
![Page 14: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/14.jpg)
Or accurate
leaf shadowing /
lighting
![Page 15: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/15.jpg)
DIRECTED READINGDirected reading regarding trees and vegetation
Directed
reading
![Page 16: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/16.jpg)
Directed reading: Directed
reading
• Read GPU Gems - Rendering Countless Blades of Waving Grass – for coverage of how to render grass• Read Creation and
Rendering of Realistic Trees – for an early paper on generating trees• Read GPU Gems 3 - Next-
Generation SpeedTree Rendering – for an exploration of current tree rendering approaches
![Page 17: 4 . 11. Trees and Vegetation](https://reader035.vdocuments.net/reader035/viewer/2022062410/568165ed550346895dd91230/html5/thumbnails/17.jpg)
Summary
To do:Read the directed
readingThink if you would like
to implement either approach within your project
Today we explored:
Overview of vegetation rendering
Overview of tree rendering