CS 4731: Computer Graphics Lecture 5: Fractals Emmanuel Agu.

Slides:



Advertisements
Similar presentations
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Sequences Lesson: SEQ-L3 Drawing Fractal Patterns Drawing Fractal Patterns Learning Outcome.
Advertisements

ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
Complex Dynamics and Crazy Mathematics Dynamics of three very different families of complex functions: 1.Polynomials (z 2 + c) 2. Entire maps ( exp(z))
FIELD DAY TOK: Mathematics and Imagination
MEGAMENGER Supported by Resources by MEGAMENGER is an international distributed fractal building event taking place in locations all around the globe.
Chaos, Communication and Consciousness Module PH19510 Lecture 15 Fractals.
Fractals everywhere ST PAUL’S GEOMETRY MASTERCLASS II.
FRACTALS. WHAT ARE FRACTALS? Fractals are geometric figures, just like rectangles, circles, and squares, but fractals have special properties that those.
Chapter 9: Recursive Methods and Fractals E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Fractals Jennifer Trinh Benoît Mandelbrot, “father of fractal geometry”
Fractals Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.
Course Website: Computer Graphics 11: 3D Object Representations – Octrees & Fractals.
The Wonderful World of Fractals
Whiteboardmaths.com © 2009 All rights reserved
Holt Geometry 12-Ext Using Patterns to Generate Fractals 12-Ext Using Patterns to Generate Fractals Holt Geometry Lesson Presentation Lesson Presentation.
CS4395: Computer Graphics 1 Fractals Mohan Sridharan Based on slides created by Edward Angel.
Approaches To Infinity. Fractals Self Similarity – They appear the same at every scale, no matter how much enlarged.
Applied Mathematics Complex Systems Fractals Fractal by Zhixuan Li.
Bruce Wayne Fractals. What is a Fractal? According to Benoit Mandelbrot … “A fractal is by definition is a set for which the Hausdorff-Besicovitch dimension.
"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."(Mandelbrot,
Mandelbrot Fractals Betsey Davis MathScience Innovation Center.
HONR 300/CMSC 491 Computation, Complexity, and Emergence Mandelbrot & Julia Sets Prof. Marie desJardins February 22, 2012 Based on slides prepared by Nathaniel.
Amgad Hussein, Maria Tokarska, Edward Grinko, Dimitar Atassanov, Megan Varghese, Emilio Asperti.
1 GEM2505M Frederick H. Willeboordse Taming Chaos.
Structured Chaos: Using Mata and Stata to Draw Fractals
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Fractals. Similar Figures Same shape Corresponding angles are congruent Corresponding sides are proportional.
Fractals Nicole MacFarlane December 1 st, What are Fractals? Fractals are never- ending patterns. Many objects in nature have what is called a ‘self-
Introduction Introduction: Mandelbrot Set. Fractal Geometry ~*Beautiful Mathematics*~ FRACTAL GEOMETRY Ms. Luxton.
Alison Kiolbasa Heather McClain Cherian Plamoottil THE KOCH SNOWFLAKE.
CS 376 Introduction to Computer Graphics 04 / 30 / 2007 Last Lecture :( Instructor: Michael Eckmann.
Fractals Siobhán Rafferty.
L-Systems and Procedural Plants CSE 3541 Matt Boggus.
Infinities 6 Iteration Number, Algebra and Geometry.
Excel quad iteration M-set iterator Movie maker 75.
Ch 9 Infinity page 1CSC 367 Fractals (9.2) Self similar curves appear identical at every level of detail often created by recursively drawing lines.
Fractals smooth surfaces and regular shapes - Euclidean-geometry methods -object shapes were described with equations natural objects - have irregular.
Fractals. Most people don’t think of mathematics as beautiful but when you show them pictures of fractals…
Strategies and Rubrics for Teaching Chaos and Complex Systems Theories as Elaborating, Self-Organizing, and Fractionating Evolutionary Systems Fichter,
Bellwork Last Nights Homework c. 4 d
Dimension A line segment has one dimension, namely length. length = 1 unit length = 2 units Euclidean Dimension = 1.
David Chan TCM and what can you do with it in class?
Fractals in nature.
Fractal Project Mariellen Hemmerling. Fractals “A fractal is "a rough or fragmented geometric shape that can be split into parts, each of which is (at.
FRACTALS FRACTALS The Geometry of Nature ϕ π Σ Π ξ ρ τ ω ψ Ξ Ω μ ε γ λ η ζ θ β α By Michael Duong.
Self-Similarity Some examples. Self-Similarity in the Koch Curve Fractals usually possess what is called self-similarity across scales. That is, as one.
Koch Curve How to draw a Koch curve.. Start with a line segment (STAGE 0) *Divide the line into thirds *In the middle third produce an equilateral triangle.
Section 6.1 Images Viewing a Gallery of Fractals. Look for patterns.
Mandelbrot Set Fractal
Game Programming, Math and the Real World Rolf Lakaemper, CIS, Temple University.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
CSE 423 Computer Graphics | MUSHFIQUR ROUF CSE423:
Fractals! Bullock Math Academy March 22, 2014 Brian Shelburne
Fractals Ed Angel Professor Emeritus of Computer Science
 Introduction  Definition of a fractal  Special fractals: * The Mandelbrot set * The Koch snowflake * Sierpiński triangle  Fractals in nature  Conclusion.
Fractals. Dimensions Traditional Informal Definition: The dimension of a set is the number of perpendicular direction pairs you can move and stay within.
Fractals Cassi Blum.
Fractals.
Fractals Lesson 6-6.
Creating a Hat Curve Fractal Objectives: 1.To create a Hat Curve fractal on Geometer’s Sketchpad using iteration. 2.To find the length of the Hat Curve.
1 What did we learn before?. 2 line and segment generation.
Fractals and L-Systems
Iterative Mathematics
Fractal geometry.
ATCM 3310 Procedural Animation
S.K.H. Bishop Mok Sau Tseng Secondary School
The Wonderful World of Fractals
Modeling with Geometry
#31 He was seized by the fidgets,
Fractals: A Visual Display of Mathematics
Presentation transcript:

CS 4731: Computer Graphics Lecture 5: Fractals Emmanuel Agu

What are Fractals? Mathematical expressions Approach infinity in organized way Utilizes recursion on computers Popularized by Benoit Mandelbrot (Yale university) Dimensional: Line is one-dimensional Plane is two-dimensional Defined in terms of self-similarity

Fractals: Self-similarity Level of detail remains the same as we zoom in Example: surface roughness or profile same as we zoom in Types: Exactly self-similar Statistically self-similar

Examples of Fractals Clouds Grass Fire Modeling mountains (terrain) Coastline Branches of a tree Surface of a sponge Cracks in the pavement Designing antennae (

Example: Mandelbrot Set

Example: Fractal Terrain Courtesy: Mountain 3D Fractal Terrain software

Example: Fractal Terrain

Example: Fractal Art Courtesy: Internet Fractal Art Contest

Application: Fractal Art Courtesy: Internet Fractal Art Contest

Koch Curves Discovered in 1904 by Helge von Koch Start with straight line of length 1 Recursively: Divide line into 3 equal parts Replace middle section with triangular bump with sides of length 1/3 New length = 4/3

Koch Curves S3, S4, S5,S3, S4, S5,

Koch Snowflakes Can form Koch snowflake by joining three Koch curves Perimeter of snowflake grows as: where P i is the perimeter of the ith snowflake iteration However, area grows slowly and S  = 8/5!! Self-similar: zoom in on any portion If n is large enough, shape still same On computer, smallest line segment > pixel spacing

Koch Snowflakes Pseudocode, to draw K n : If (n equals 0) draw straight line Else{ Draw K n-1 Turn left 60 ° Draw K n-1 Turn right 120 ° Draw K n-1 Turn left 60 ° }

Iterated Function Systems (IFS) Recursively call a function Does result converge to an image? What image? IFS’s converge to an image Examples: The Fern The Mandelbrot set

The Fern

Mandelbrot Set Based on iteration theory Function of interest: Sequence of values (or orbit):

Mandelbrot Set Orbit depends on s and c Basic question,: For given s and c, does function stay finite? (within Mandelbrot set) explode to infinity? (outside Mandelbrot set) Definition: if |s| < 1, orbit is finite else inifinite Examples orbits: s = 0, c = -1, orbit = 0,-1,0,-1,0,-1,0,-1,…..finite s = 0, c = 1, orbit = 0,1,2,5,26,677…… explodes

Mandelbrot Set Mandelbrot set: use complex numbers for c and s Always set s = 0 Choose c as a complex number For example: s = 0, c = i Hence, orbit: 0, c, c 2, c 2 + c, (c 2 + c) 2 + c, ……… Definition: Mandelbrot set includes all finite orbit c

Mandelbrot Set Some complex number math: For example: Modulus of a complex number, z = ai + b: Squaring a complex number:  Ref: Hill Appendix 2.3

Mandelbrot Set Calculate first 4 terms with s=2, c=-1 with s = 0, c = -2+i

Mandelbrot Set Calculate first 3 terms with s=2, c=-1, terms are with s = 0, c = -2+i

Mandelbrot Set Fixed points: Some complex numbers converge to certain values after x iterations. Example: s = 0, c = i converges to – i after 80 iterations Experiment: square – i and add i Mandelbrot set depends on the fact the convergence of certain complex numbers

Mandelbrot Set Routine to draw Mandelbrot set: Cannot iterate forever: our program will hang! Instead iterate 100 times Math theorem: if number hasn’t exceeded 2 after 100 iterations, never will! Routine returns: Number of times iterated before modulus exceeds 2, or 100, if modulus doesn’t exceed 2 after 100 iterations See dwell( ) function in Hill (figure 9.49, pg. 510)

Mandelbrot Set Map real part to x-axis Map imaginary part to y-axis Set world window to range of complex numbers to investigate. E.g: X in range [-2.25: 0.75] Y in range [-1.5: 1.5] Choose your viewport. E.g: Viewport = [V.L, V.R, V.B, V.T]= [60,380,80,240] Do window-to-viewport mapping

Mandelbrot Set

So, for each pixel: Compute corresponding point in world Call your dwell( ) function Assign color based on dwell( ) return value Choice of color determines how pretty Color assignment: Basic: In set (i.e. dwell( ) = 100), color = black, else color = white Discrete: Ranges of return values map to same color E.g 0 – 20 iterations = color 1 20 – 40 iterations = color 2, etc. Continuous: Use a function

Mandelbrot Set Use continuous function

FREE SOFTWARE Free fractal generating software Fractint FracZoom Astro Fractals Fractal Studio 3DFract

References Hill, chapter 9