College of Computer and Information Science, Northeastern UniversityOctober 13, 20151 CS U540 Computer Graphics Prof. Harriet Fell Spring 2007 Lecture.

Slides:



Advertisements
Similar presentations
Iteration, the Julia Set, and the Mandelbrot Set.
Advertisements

What is a Fractal? A fractal is a mathematical object that is both self-similar and chaotic. self-similar: As you magnify, you see the object over and.
Jason Stredwick, MSU 2004 L-Systems Lindenmayer Systems algorithmicbotany.org.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
NUMERIC Mathematics Lecture Series Nipissing University, North Bay, Ontario Exploring the Math and Art Connection 6 February 2009 Dr. Daniel Jarvis Mathematics.
So far we’ve done… Dynamics and chaos Thermodynamics, statistical mechanics, entropy, information Computation, Turing machines, halting problem Evolution,
L systems (Aristid Lindenmayer)
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”
L-systems Presented by Luv Kohli COMP258 October 30, 2002 Images copyright © 1992 D. Fowler, P. Prusinkiewicz, and J. Battjes.
Fractals Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.
The infinitely complex… Fractals Jennifer Chubb Dean’s Seminar November 14, 2006 Sides available at
Procedural Modeling L-Systems Procedural Terrain Procedural Behavior Based on the slides from Spring 2007.
Simulating Trees with Fractals and L-Systems Eric M. Upchurch CS 579.
CS39N The Beauty and Joy of Computing Lecture #11 Recursion III It has been a challenge to power electronic components implanted within a body.
Fractals Complex Adaptive Systems Professor Melanie Moses March
CS4395: Computer Graphics 1 Fractals Mohan Sridharan Based on slides created by Edward Angel.
Fractals Joceline Lega Department of Mathematics University of Arizona.
LANGUAGE AND GRAMMARS © University of LiverpoolCOMP 319slide 1.
College of Computer and Information Science, Northeastern UniversityAugust 12, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2007.
Approaches To Infinity. Fractals Self Similarity – They appear the same at every scale, no matter how much enlarged.
Mandelbrot Set the Who Is Mandelbrot?  Benoit Mandelbrot –Mandelbrot was born in Poland in He studied mathematics in France under Gaston Julia.
HONR 300/CMSC 491 Computation, Complexity, and Emergence Mandelbrot & Julia Sets Prof. Marie desJardins February 22, 2012 Based on slides prepared by Nathaniel.
Morphogenesis and Lindenmayer Systems (L-systems) Gabriela Ochoa
IlliDOL: A Framework for Exploration of L- Systems in Three Dimensions Vilas Dhar Math 198 Spring 2003.
Computing & Information Sciences Kansas State University Lecture 37 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 37 of 42 Monday, 28 April.
Structured Chaos: Using Mata and Stata to Draw Fractals
Algorithmic Art Mathematical Expansions –Geometric, Arithmetic Series, Fibonacci Numbers Computability –Turing Fractals and Brownian Motion, CA –Recursive.
Fractals for Kids Clint Sprott Department of Physics University of Wisconsin - Madison Presented at the Chaos and Complex Systems Seminar in Madison, Wisconsin.
College of Computer and Information Science, Northeastern UniversityOctober 5, CS G140 Graduate Computer Graphics Prof. Harriet Fell Spring 2006.
L-Systems and Procedural Plants CSE 3541 Matt Boggus.
The Artificial Life of Plants Przemyslaw Prusinkiewicz, Mark Hammel, Radom´ır Mˇech Department of Computer Science University of Calgary Calgary, Alberta,
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.
Examining the World of Fractals. Myles Akeem Singleton Central Illinois Chapter National BDPA Technology Conference 2006 Los-Angeles, CA.
L-Systems Lindenmayer Systems Prusinkiewicz and Lindenmayer
Summer School „Modelling and Simulation with GroIMP“ / Tutorial for beginners University of Göttingen (Germany), September, 2010 Winfried Kurth Some.
Main Points: - Python Turtle - Fractals
Lindenmayer systems Martijn van den Heuvel May 26th, May 26th, 2011.
L-system and SVG 2D SVG Tree 2002/10/16.
Computer Science Term 1, 2006 Tutorial 3 Assignment 4 – Special Effects.
Evolutionary Robotics Using A Formal Grammar To Evolve Robot Bodies and Brains Hornby, G.S., Pollack, J. (2001) Creating high-level components with a generative.
How to Draw a Tree L-Systems in Computer Graphics Steven Janke.
Fractals Douglas reeves.
1 10/27/ :26 UML Simplicity in Complexity. 2 10/27/ :26 UML Rewriting Systems Classic Example: Koch 1905 Initiator Generator.
Mathematics Numbers: Percentages Science and Mathematics Education Research Group Supported by UBC Teaching and Learning Enhancement Fund Department.
WORKSHOP “Fractal patterns…” Morahalom, May, 2009 Fractal patterns in geology, and their application in mathematical modelling of reservoir properties.
David Chan TCM and what can you do with it in class?
Imagine you were playing around with Apophysis when some other GHP Math student student came up behind you and said “Gee that’s pretty! What is that a.
LINDFERN Lindenmayer Systems in VPython Nick Langhammer.
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
Experimenting with Grammars to Generate L-Systems October 29, 2007
Fractals Ed Angel Professor Emeritus of Computer Science
Fractals Cassi Blum.
Fractals.
Fractals Lesson 6-6.
Development of structure. Additional literature Prusinkiewicz P, Lindenmayer A., 1990, The algorithmic beauty of plants, Springer Korvin G., 1992, Fractal.
Grafika Komputer dan Visualisasi Disusun oleh : Silvester Dian Handy Permana, S.T., M.T.I. Fakultas Telematika, Universitas Trilogi Pertemuan 12 : Realisme.
Computer Science We use computers, but the focus is on applied problem solving. One of my favorite videos talks about computer sciencecomputer science.
1 What did we learn before?. 2 line and segment generation.
Experimenting with Grammars to Generate L-Systems – in JFLAP March 31, 2011 Prof. Susan Rodger Computer Science Dept.
Grammars, L-Systems Jim Whitehead UC Santa Cruz School of Engineering courses.soe.ucsc.edu/courses/cmps265/Spring14/01 23 Apr 2014.
Fractals and L-Systems
Game Design, Development, and Technology
Iterative Mathematics
Computer Graphics Lecture 40 Fractals Taqdees A. Siddiqi edu
ATCM 3310 Procedural Animation
CS5310 Graduate Computer Graphics
Prof. Susan Rodger Computer Science Dept
Presentation transcript:

College of Computer and Information Science, Northeastern UniversityOctober 13, CS U540 Computer Graphics Prof. Harriet Fell Spring 2007 Lecture 32 – March 23, 2009

College of Computer and Information Science, Northeastern UniversityOctober 13, Today’s Topics Fractals  Mandelbrot Set Julia Sets  L-Systems

College of Computer and Information Science, Northeastern UniversityOctober 13, Fractals The term fractal was coined in 1975 by Benoît Mandelbrot, from the Latin fractus, meaning "broken" or "fractured". (colloquial) a shape that is recursively constructed or self-similar, that is, a shape that appears similar at all scales of magnification. (mathematics) a geometric object that has a Hausdorff dimension greater than its topological dimension.

College of Computer and Information Science, Northeastern UniversityOctober 13, Mandelbrot Set Mandelbrotset, rendered with Evercat's program.Evercat

College of Computer and Information Science, Northeastern UniversityOctober 13, Mandelbrot Set

College of Computer and Information Science, Northeastern UniversityOctober 13, What is the Mandelbrot Set? We start with a quadratic function on the complex numbers. The Mandelbrot Set is the set of complex c such that

College of Computer and Information Science, Northeastern UniversityOctober 13, Example

College of Computer and Information Science, Northeastern UniversityOctober 13, (Filled-in) Julia Sets The Julia Set of f c is the set of points with 'chaotic' behavior under iteration. The filled-in Julia set (or Prisoner Set), is the set of all z whos orbits do not tend towards infinity. The "normal" Julia set is the boundary of the filled-in Julia set. c = – 1c = –.5 +.5ic = – 5 +.5i

College of Computer and Information Science, Northeastern UniversityOctober 13, Julia Sets and the Mandelbrot Set Some Julia sets are connected others are not. The Mandelbrot set is the set of c   for which the Julia set of f c (z) = z 2 + c is connected. Map of 121 Julia sets in position over the Mandelbrot set (wikipedia)

College of Computer and Information Science, Northeastern UniversityOctober 13, A fractal is formed when pulling apart two glue-covered acrylic sheets.

College of Computer and Information Science, Northeastern UniversityOctober 13, Fractal Form of a Romanesco Broccoli photo by Jon Sullivan

College of Computer and Information Science, Northeastern UniversityOctober 13, L-Systems An L-system or Lindenmayer system, after Aristid Lindenmayer (1925–1989), is a formal grammar (a set of rules and symbols) most famously used to model the growth processes of plant development, though able to model the morphology of a variety of organisms.L-system or Lindenmayer system L-systems can also be used to generate self- similar fractals such as iterated function systems.

College of Computer and Information Science, Northeastern UniversityOctober 13, L-System References Przemyslaw Prusinkiewicz & Aristid Lindenmayer, “The Algorithmic Beauty of Plants,” Springer,

College of Computer and Information Science, Northeastern UniversityOctober 13, L-System Grammar G = {V, S, ω, P}, where  V (the alphabet) is a set of variables  S is a set of constant symbols  ω (start, axiom or initiator) is a string of symbols from V defining the initial state of the system  P is a set of rules or productions defining the way variables can be replaced with combinations of constants and other variables. A production consists of two strings - the predecessor and the successor.

College of Computer and Information Science, Northeastern UniversityOctober 13, L-System Examples Koch curve (from wikipedia) A variant which uses only right-angles.  variables : F  constants : + −  start : F  rules : (F → F+F−F−F+F) Here, F means "draw forward", + means "turn left 90°", and - means "turn right 90°" (see turtle graphics).turtle graphics

Turtle Graphics class Turtle { double angle;// direction of turtle motion in degrees double X;// current x position double Y;// current y position double step;// step size of turtle motion boolean pen;// true if the pen is down public void forward(Graphics g) // moves turtle forward distance step in direction angle public void turn(double ang) // sets angle = angle + ang; public void penDown(), public void penUp() // set pen to true or false }

College of Computer and Information Science, Northeastern UniversityOctober 13, My L-System Data Files Koch Triangle Form// title 4// number of levels to iterate 90// angle to turn F// starting shape F:F+F-F-F+F// a rule F F+F-F-F+F F+F-F-F+F+F+F-F-F+F-F+F-F-F+F- F+F-F-F+F+F+F-F-F+F Go to Eclipse

College of Computer and Information Science, Northeastern UniversityOctober 13, More Variables Dragon When drawing, treat L and R just like F L L:L+R+ R:-L-R LL+R+L+R+ + -L-R + L+R+ + -L-R L+R+ - -L-R +

College of Computer and Information Science, Northeastern UniversityOctober 13, A Different Angle Sierpinski Gasket 6 60 R L:R+L+R R:L-R-L R L-R-L R+L+R- L-R-L -R+L+R

College of Computer and Information Science, Northeastern UniversityOctober 13, Moving with Pen Up Islands and Lakes 2 90 F+F+F+F F:F+f-FF+F+FF+Ff+FF-f+FF-F-FF-Ff-FFF f:ffffff// f means move forward with the pen up F+F+F+F next slide F+f-FF+F+FF+Ff+FF-f+FF-F-FF-Ff-FFF

College of Computer and Information Science, Northeastern UniversityOctober 13, Islands and Lakes One Side of the Box F+f-FF+F+FF+Ff+FF-f+FF-F-FF-Ff-FFF

College of Computer and Information Science, Northeastern UniversityOctober 13, FF-[-F+F+F]+[+F-F-F] Using a Stack to Make Trees Tree1 [ push the turtle state onto the stack 4 ] pop the turtle state from the stack 22.5 F F:FF-[-F+F+F]+[+F-F-F] and I add leaves here

Stochastic L-Systems seed: 2454 // different seeds for different trees derivation length: 3 axiom: F F--> F[+F]F[-F]F : 1/3 F--> F[+F]F : 1/3 F--> F[-F]F : 1/3

College of Computer and Information Science, Northeastern UniversityOctober 13, D Turtle Rotations Heading, Left, or, Up vector tell turtle direction. +(θ) Turn left by angle θ◦ around the U axis. −(θ) Turn right by angle θ◦ around the U axis. &(θ) Pitch down by angle θ◦ around the L axis. ∧ (θ) Pitch up by angle θ◦ around the L axis. \(θ) Rollleftbyangleθ◦ around the H axis. /(θ) Roll right by angle θ◦ around the H axis. | Turn around 180◦ around the U Roll the turtle around the H axis so that H and U lie in a common vertical plane with U closest to up.

College of Computer and Information Science, Northeastern UniversityOctober 13, A Mint A model of a member of the mint family that exhibits a basipetal flowering sequence.

College of Computer and Information Science, Northeastern UniversityOctober 13, Flow “Flow means we need a certain amount of time to load our knowledge and skills into our brain RAM. And the more big or small interruptions we have, the less likely we are to ever get there.” -- Kathy Sierra

College of Computer and Information Science, Northeastern UniversityOctober 13, Slow Down, Brave Multitasker, and Don’t Read This in Traffic Check messages once an hour, at most. In a recent study, a group of Microsoft workers took, on average, 15 minutes to return to serious mental tasks, like writing reports or computer code, after responding to incoming or instant messages.Microsoft