Fractals Week 10, Lecture 19

Similar documents
CGT 581 G Procedural Methods Fractals

Hei nz-ottopeitgen. Hartmut Jürgens Dietmar Sau pe. Chaos and Fractals. New Frontiers of Science

Fractal Coding. CS 6723 Image Processing Fall 2013

Fractals & Iterative Function Systems

Fractals in Nature and Mathematics: From Simplicity to Complexity

Fractal Geometry. LIACS Natural Computing Group Leiden University

Fractals: a way to represent natural objects

Fractal Geometry. Prof. Thomas Bäck Fractal Geometry 1. Natural Computing Group

Clouds, biological growth, and coastlines are

Fractals. Moreno Marzolla Dip. di Informatica Scienza e Ingegneria (DISI) Università di Bologna.

CS 543: Computer Graphics Lecture 3 (Part I): Fractals. Emmanuel Agu

Fractals and Multi-Layer Coloring Algorithms

Lecture 8: Modelling Urban Morphology:

Computer Graphics (CS 543) Lecture 2c: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)


CGT 511 Procedural Methods

Fractal Image Compression

Exploring the Effect of Direction on Vector-Based Fractals

lecture 9 Object hierarchies - call trees and GL_MODELVIEW stack - fractals - L systems

Computer Graphics 4731 Lecture 5: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Session 27: Fractals - Handout

CSE 167: Lecture #15: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

Procedural modeling and shadow mapping. Computer Graphics CSE 167 Lecture 15

7. Stochastic Fractals

L-Systems and Affine Transformations

Solid models and fractals

Fun with Fractals and Functions. CHAMP at University of Houston March 2, 2015 Houston, Texas

Generation of 3D Fractal Images for Mandelbrot and Julia Sets

Mathematics 350 Section 6.3 Introduction to Fractals

1/16. Emergence in Artificial Life. Sebastian Marius Kirsch Back Close

CSC 470 Computer Graphics. Fractals

Outline. Solid models and fractals. Constructive solid geometry. Constructive solid geometry COM3404. Richard Everson

Fractals and the Chaos Game

Fractal Image Coding (IFS) Nimrod Peleg Update: Mar. 2008

Modeling. Michael Kazhdan ( /657) HB FvDFH Modeling Seashells, Fowler et al. 1992

Fractals: Self-Similarity and Fractal Dimension Math 198, Spring 2013

UNIT 9C Randomness in Computation: Cellular Automata Principles of Computing, Carnegie Mellon University

CSE 167: Lecture #17: Procedural Modeling. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 28 November 8, 2012

Fractals, Fibonacci numbers in Nature 17 mai 2015

Images of some fractals

An Introduction to Fractals

CSE 167: Introduction to Computer Graphics Lecture #16: Procedural Modeling

o Represent 3D objects in a computer? o Manipulate 3D objects with a computer? o CAD programs o Subdivision surface editors :)

Lecture 3: Some Strange Properties of Fractal Curves

MAADHYAM. Nurturing Gifted Minds. Printed Under Gifted Education Abhiyaan An Initiative By The Office Of Principal Scientific Advisor To The

Stat 45: Our Fractal World? Topics for Today. Lecture 1: Getting Started. David Donoho Statistics Department Stanford University. Sierpinski Gaskets

Chapel Hill Math Circle: Symmetry and Fractals

COASTLINES AND FRACTAL GEOMETRY: ESTIMATING LENGTH AND GENERATING ISLANDS. Miranda Bradshaw Dallas Pullen Math 365 Wright 5/8/12

The Computational Beauty of Nature

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss

Space Filling: A new algorithm for procedural creation of game assets

Fun with Fractals Saturday Morning Math Group

3D Modeling: Surfaces

4.3 Discovering Fractal Geometry in CAAD

Complexity is around us. Part one: the chaos game

CHAOS Chaos Chaos Iterate

Department of Computer Science Yale University Office: 314 Watson Closely related to mathematical induction.

XPM 2D Transformations Week 2, Lecture 3

Fractals. Fractals. Beautiful designs of infinite structure and complexity Qualities of Fractals:

XPM 2D Transformations Week 2, Lecture 3

Some geometries to describe nature

Outline. Properties of Piecewise Linear Interpolations. The de Casteljau Algorithm. Recall: Linear Interpolation

Journal of Applied Mathematics and Computation (JAMC), 2018, 2(1), 13-20

More recursion, Divide and conquer

Iterated Functions Systems and Fractal Coding

CS 536 Computer Graphics Intro to Curves Week 1, Lecture 2

A TECHNOLOGY-ENHANCED FRACTAL/CHAOS COURSE. Taeil Yi University of Texas at Brownsville 80 Fort Brown Brownsville, TX

CS 112 Introduction to Programming

Scientific Calculation and Visualization

Fixed Point Iterative Techniques An Application to Fractals

Outline. The de Casteljau Algorithm. Properties of Piecewise Linear Interpolations. Recall: Linear Interpolation


Line Drawing Week 6, Lecture 9

3D Transformations World Window to Viewport Transformation Week 2, Lecture 4

FRACTALS AND THE SIERPINSKI TRIANGLE

Fractals. Materials. Pencil Paper Grid made of triangles

Chapter 12: Fractal Geometry The Koch Snowflake and Self-Similarity

CS39N The Beauty and Joy of Computing

Section 9.5. Tessellations. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

IMGD 4000 Technical Game Development II Procedural Content Generation

Self-Similar Snowflakes with Optional Fractal Extension

Fractals. University. 1 The approach and terminology used here are from Michael Frame s Fractal course taught for many years at Yale

IJSRD - International Journal for Scientific Research & Development Vol. 4, Issue 01, 2016 ISSN (online):

Cover-Based Method KD Tree Algorithm for Estimating Fractal Characteristics

Literature Review. Bruce Alcock. A Procedural, Minimal Input, Natural Terrain Plug-in for Blender. Supervisors: Kevin Glass and Shaun Bangay

On Fractal Dimension: A Review

Copyright 2009 Pearson Education, Inc. Chapter 9 Section 7 - Slide 1 AND

Applications. 44 Stretching and Shrinking

Study of Fractal Antennas and Characterization

Variations on Genetic Cellular Automata

ARi. Amalgamated Research Inc. What are fractals?

2.3 Recursion 7/21/2014 5:12:34 PM

12.2 Plants. CS Dept, UK

ITERATIVE OPERATIONS IN CONSTRUCTION CIRCULAR AND SQUARE FRACTAL CARPETS

An Improved Algorithm for Image Fractal Dimension

A space filling algorithm for generating procedural geometry and texture

Is the Fractal Model Appropriate for Terrain?

A Fractal Model of Mountains with Rivers

The Iterative Process

Transcription:

CS 430/536 Computer Graphics I Fractals Week 0, Lecture 9 David Breen, William Regli and Maim Peysakhov Geometric and Intelligent Computing Laboratory Department of Computer Science Dreel University http://gicl.cs.dreel.edu Overview Fractal representations Algorithms for drawing fractals Mandelbrot Set Brownian Motion 994 Foley/VanDam/Finer/Huges/Phillips ICG Introduction to Fractals Term Fractal coined by Benoit Mandelbrot Properties of fractal: Self-similarity (small portion looks like the whole object ) Have fractional dimensions Non-differentiable Infinite length Length of the Fractals Lewis Richardson (96) measured length of coastlines Total length increase as measurement stick reduced Does this mean coastlines are infinite in length? Construction of Koch Curve 3 4 Koch Curve Properties of Koch Curve Has no tangent at any point Length of the curve at iteration n is (4/3) n Step Num of segments Length of segment Total length 0 00 4 6.04858*0 60 Koch curve is.686 dimensional object 0.3333333 0..94033*0-48.3333333.7777778 3.798*0 http://www.arcytech.org/java/fractals/ 5 6

Fractal Dimensions D line of unit length divided into n segments looks like the whole line scaled by /n D square of unit area divided into n segments looks like the whole square scaled by /n / i.e. 4 segments, each one / the size of the original Divide an object into n segments where each segment is scaled by /s s = n /d d = log(n)/log(s) = log(4)/log() The square is divided into 4 parts and each part is / the size of the original d = log(4)/log() = Fractal Dimensions s = n /d d = log(n)/log(s) Koch curve divides line into 4 parts, each part is /3 the size of the original Therefore the dimension of the Koch curve is: 4 d = 3, n/ d = s d = log(4) log(3) = log(n) =.686... log(s) 7 8 Space Filling Fractals Sierpinski Triangle Peano curve (890) Fills a D region Fractal dimension - s = n /d 9 segments /3 original size = log(9)/log(3) Construction of Peano Curve 9 0 http://www.arcytech.org/java/fractals/ Naturally Occurring Fractals Fractals often occur in nature All natural fractals are grown We can model natural objects with fractals Production Systems In 968 A. Lindenmayer developed a formalism describing plant growth. Called L-system L-system consists of: Seed cell (aiom) Production rules Brain Lungs Kidney Aiom: B Rules: B=>F[-B][+B] F=>FF 3

Plantlike Fractals Plantlike Fractals 4 5 Plantlike Fractals 3 Affine Transformation Fractals Fractal often described to contain miniature versions of itself. We can use affine transformations to describe where these miniatures should be placed Translation Rotation Scaling Self-affine fractals may have different scaling factors in different dimensions 6 7 Multiple Reduction Copy Machine Algorithm Can be simulated with real copy machine Copy machine takes a seed image Creates several transformed copies of it as an output. Procedure is recursive MRCM Eamples 8 9 3

Problems with MRCM Iterated Functional System To get good image we must compute MRCM to large depth Computing time grows eponentially with depth Problem amplified when the reduction in size during one iteration is small Observations: Fractal consist entirely of points Randomly and recursively apply affine transformation L i (p) to point p Converges to a fractal Fern Leaf 0 500 points 5000 points IFS Algorithm IFS Generated Tree Pick random point of the seed image Randomly pick one of the affine transformations Transform the point Continue recursively Fern Leaf 3 Mandelbrot Set Mandelbrot Set n = n- +c for some comple number c For some c, 0 as n c Mandelbrot Set For some c, as n For others neither For each c in the comple plane 0 =0 for (n= to n ma ) { n = n +c if ( n >) break Mandelbrot Set } If (n < n ma ) color c = white else color c = black 4 5 Magnified region from http://www.astro.su.se/~aleis/fractals/ 4

Mandelbrot Set Newton Set f() = 3 - n+ = n - f() / f'() 6 Recorded with XaoS 7 Recorded with XaoS Phoeni Set z n + = z n + Re(c) + Im(c) * z n - Brownian Motion The dance of pollen grains in a water drop (Robert Brown in 87) Eplained by Albert Einstein in 905 Self-similar motion Infinite length Used to simulate rivers mountains and other random natural phenomena 8 9 Recorded with XaoS Fractional Brownian Motion Fractional BM (fbm) is a generalization of BM to include memory Integral on progress of random walk fbm characterized by it s power spectrum BM has /f power spectrum fbm had /f β power spectrum with.0 β 3.0 Think of β as controlling terrain roughness XMOUNTAINS Landscape generated by the XMOUNTAINS program by Steven Booth Realistic, self-similar image 30 Voss & Saupe in The Science of Fractal images 3 5

XMOUNTAINS: Changing Fractal Dimension Random Midpoint Displacement fbm computations are time consuming RMD are faster to compute but less realistic Basic idea: Start with (D) 4 (3D) random points. Compute the midpoint for each interval Displace the midpoint at random but based on the difference between end points 3 34 Michael Shantz @ University of Waterloo RMD Algorithm Controlling the Topography Generate points a and b at random y mid = (/)(y(a)+y(b))+r y r = s ( b-a ) r g () s - is a surface roughness y(b) parameter y(a) r g ()- returns a Gaussian random value a (mean = 0, variance = ) In 3D version: y m = (/4)(y(a)+y(b)+y(c)+y(d))+r b y a b d c y y(b) y(a) y mid a a+b b y a e b h d g m f c To model real environments we want to control the placement of peaks and valleys We can do it by setting up Control Surfaces. Calculate random elevations based on: Elevation of control surface Average elevation of the midpoint 35 36 Fractal Mountains Ken Musgrave Cellular Automata 37 Invented by John von Neumann in 940s Thoroughly studied by Wolfram Mechanism to study reproduction Dynamic system Discrete in space Discrete in time 38 6

Cellular Automata in Nature Conus Tetile Seashell Process which creates seashells has been linked to a one-dimensional CA 39 Source: wikipedia.org 40 7