Docsity

3D Object Representations - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download 3D Object Representations - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

3D Object Representations –

Octrees & Fractals

Docsity.com

Octrees

  • Octrees are hierarchical tree structures used to represent solid objects
  • Octrees are particularly useful in applications that require cross sectional views – for example medical applications
  • Octrees are typically used when the interior of objects is important

Docsity.com

Quadtree Example 1

Docsity.com

Quadtree Example 2

Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004) Docsity.com

Octrees (cont…)

Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004) Docsity.com

Octrees (cont…)

  • In 3 dimensions regions can be considered to be homogeneous in terms of colour, material type, density or any other physical characteristics
  • Voxels also have the unique possibility of being empty

Docsity.com

Octree Examples (cont…)

Taken from

http://www-evasion.inrialpes.fr/Membres/Sylvain.Lefebvre/these/

Docsity.com

Fractals

  • All of the modelling techniques covered so far use Euclidean geometry methods - Objects were described using equations
  • This is fine for manufactured objects
  • But what about natural objects that have irregular or fragmented features? - Mountains, clouds, coral…

“Clouds are not spheres, mountains are not cones, coastlines are not circles and bark is not smooth, nor does lightning travel in a straight line.” Benoit Mandelbrot

Docsity.com

Fractals

  • A fractal object has two basic characteristics:
    • Infinite detail at every point
    • A certain self similarity between object parts and the overall features of the object

The Koch Curve

Mandelbrot Set Video From: http://www.fractal-animation.net/ufvp.htmDocsity.com

Generating Fractals

  • A fractal object is generated by repeatedly applying a specified transform function to points in a region of space

• If P 0 = ( x 0 , y 0 , z 0 ) is a selected initial position,

each iteration of a transformation function F

generates successive levels of detail with the calculations:

  • In general the transformation is applied to a specified point set, or to a set of primitives

P 1 = F ( P 0 ), P 2 = F ( P 1 ), P 3 = F ( P 2 ), ...

Docsity.com

Example: The Koch Snowflake

Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004) Docsity.com

Example: Ferns

  • Very similar techniques can be used to generate vegetation

Docsity.com

Types Of Fractals

  • Fractals can be classified into three groups
    • Self similar fractals
      • These have parts that are scaled down versions of the entire object
      • Commonly used to model trees, shrubs etc
    • Self affine fractals
      • Have parts that are formed with different scaling parameters in each dimension
      • Typically used for terrain, water and clouds
    • Invariant fractal sets
      • Fractals formed with non-linear transformations Docsity.com

Random Midpoint Displacement Methods

For Topography

  • One of the most successful uses of fractal techniques in graphics is the generation of landscapes
  • One efficient method for doing this is random midpoint displacement

Docsity.com