CS324e - Elements of Graphics and Visualization Fractals and 3D Landscapes.

Slides:



Advertisements
Similar presentations
1 Line replacement approach Koch Star (Snowflake) Area replacement approach Sierpenski Triangle Iterated Function System approach Heighway Dragon CSE
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.
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Sequences Lesson: SEQ-L3 Drawing Fractal Patterns Drawing Fractal Patterns Learning Outcome.
© Fluent Inc. 4/16/ Introductory GAMBIT Notes GAMBIT v2.0 Jan 2002 Fluent User Services Center Edge and Face Meshing.
Chapter 9: Recursive Methods and Fractals E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Chapter 4 Digital Multimedia, 2nd edition Vector Graphics.
The Wonderful World of Fractals
Texture Synthesis on Surfaces Paper by Greg Turk Presentation by Jon Super.
Mathematics Vocabulary – Grade K add ©Partners for Learning, Inc. To bring two or more numbers or things together to make a new total.
Transformations, Constructions and 3D Drawings
Guilford County Sci Vis V204.01
Applied Mathematics Complex Systems Fractals Fractal by Zhixuan Li.
Reflections Lesson
1 Computer Graphics Week13 –Shading Models. Shading Models Flat Shading Model: In this technique, each surface is assumed to have one normal vector (usually.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
An Introduction to Fractals By: Brian Feuer What is a Fractal? A word coined by Benoit Mandelbrot in 1975 to describe shapes that are “self-similar”
Introduction Introduction: Mandelbrot Set. Fractal Geometry ~*Beautiful Mathematics*~ FRACTAL GEOMETRY Ms. Luxton.
CS324e - Elements of Graphics and Visualization Checkerboard World.
Review of Geometric Shapes
3D Figures What is a 3D figure? A solid shape with length, width, and height rectangular prisms cube cone cylinder pyramid.
Surface Area of Prisms SECTION After completing this lesson, you will be able to say: I can represent three-dimensional figures using nets made.
Computer Graphics Texture Mapping
Infinities 6 Iteration Number, Algebra and Geometry.
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.
Random Terrain Generation By Cliff DeKoker. About my project ● Incremental development ● Focus on creating height maps that mimic real terrain ● Allow.
Fractals Douglas reeves.
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…
Identifying 3-D Figures Lesson 12 – 7. Vocabulary Three Dimensional (3 – D) Figure: Shapes that have a length, width, and depth/height Face – a flat surface.
University of Illinois at Chicago Electronic Visualization Laboratory (EVL) DarkBASIC Matrix Command Set CS 426 Chautauqua 7 October 2003 Copyright © Nicholas.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Vector Graphics Digital Multimedia Chap 이병희
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
CS418 Computer Graphics John C. Hart
Vertices, Edges and Faces By Jordan Diamond. Vertices In geometry, a vertices is a special kind of point which describes the corners or intersections.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 4 Lecture 4 - Vector Graphics.
Given the parallelogram at right, we are able to determine that its area is equal to Activity You can use a parallelogram to find the area of a triangle.
Handle By, S.JENILA AP/IT
 Introduction  Definition of a fractal  Special fractals: * The Mandelbrot set * The Koch snowflake * Sierpiński triangle  Fractals in nature  Conclusion.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Vocab 1 Vocab 2 Transformations CompositionsMiscellaneous.
Negative Space and Forming Shapes. Negative Space In art, generally, negative space is the space around and between the subjects of an image.art.
Visual C++ Programming: Concepts and Projects Chapter 10A: Recursion (Concepts)
CS559: Computer Graphics Lecture 36: Subdivision Surfaces, Fractals, and Animation Li Zhang Spring 2008 Many slides from James Kuffner’s graphics class.
3D Modelling Luke Brown GS12-9. Introduction Maya is a 3D Modelling Software which allows you to do an absolute amount of just pure Models of any type,
Fractals Lesson 6-6.
An Introduction to Programming Using Alice 2.2, Second Edition Chapter 7 Recursive Algorithms.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Fractals and L-Systems
Data Structures.
Edge and Face Meshing.
Game Design, Development, and Technology
Fractals.
Photorealistic Rendering vs. Interactive 3D Graphics
Areas of Parallelograms, Triangles and Rectangles
CS 1321.
Translations.
File Texture Mapping Pasting images on primitives.
CSE 381 – Advanced Game Programming Terrain
The Mystery of the Fractal
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Create a design (image) on the graph paper on the last page, making sure at least 3 vertices land on whole number (integer) coordinates, in the upper left.
Translation (slide) TRANSLATION a slide without turning.
Fractals What do we mean by dimension? Consider what happens when you divide a line segment in two on a figure. How many smaller versions do you get?
Chap 10. Geometric Level of Detail
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Presentation transcript:

CS324e - Elements of Graphics and Visualization Fractals and 3D Landscapes

Fractals A geometric figure in which smaller parts share characteristics of the entire figure – a detailed pattern that repeats itself – contain self similar patterns – appearance of details matches the overall figure – often described mathematically 2

Fractals Mandelbrot Set Burning Ship Fractal 3

Sierpinski Triangle Fractal Described by Polish mathematician Wacław Sierpiński in 1915 Algorithm – Pick a side length and the lower left vertex for an equilateral triangle – If the side length is less than some minimum draw the triangle – else draw three smaller Sierpinski Triangles 4

Sierpinski Triangle 5 x, y side length x +.5*side length, y x +.25 * side length, y + sqrt(3) / 4 * side length

Sierpinski Triangle min length = start length 6

Sierpinski Triangle min length = start length / 2 7

Sierpinski Triangle min length = start length / 4 8

Sierpinski Triangle min length = start length / 8 9

Sierpinski Triangle min length = start length / 16 10

Sierpinski Triangle min length = start length / 32 11

Sierpinski Triangle min length = start length / 64 12

Sierpinski Triangle min length = start length /

Close up - Self Similar Close up of bottom, right triangle from minLength = startLength /

Implementation of Sierpinski 15

Implementation of Sierpinski 16 Base Case Recursive Case

Implementation of Sierpinski 17 Base Case - Draw One Triangle

Fractal Land Example from KGPJ chapter 26 Create a mesh of quads – example 256 x 256 tiles allow the height of points in the quad to vary from one to the next split quads into one of 5 categories based on height – water, sand, grass, dry earth, stone – appearance based on texture (image file) 18

Fractal Mesh Generate varied height of quads using a "Diamond - Square" algorithm looking down on mesh heights of points A, B, C, D A B CD

Generate Fractal Mesh - Diamond Step 20 A B CD E dHeight = max height - min height Height of Point E = (Ah + Bh + Ch + Dh) / 4 + random(-dHeight/2, +dHeight/2) average of 4 corner points plus some random value in range of max and min allowed height

Square Step With height of E set generate height of 4 points around E Gh = (Ah + Eh + Eh + Ch) / 4 + random( -dHeight/2, +dHeight/2 ) 21 A B CD E F G H I

Repeat Diamond Step 22 A B CD E F G H I JK LM

Completing Mesh Continuing alternating diamond and square step until the size of the quad is 1. Each point of quad at a fixed x and z coordinate, but the y has been generated randomly Problem: if the height is allowed to vary between the min and max height for every point how different can points on a quad be? 23

A Spear Trap 24

What is the Problem? By allowing the points that form a single quad to vary anywhere in the range from min to max height we get vast differences Solution: after a pair of diamond - square steps reduce the range of the random value referred to as the flatness factor range = range / flatness 25

Flatness of

Flatness of

Flatness of

Textures Shapes in Java3D may be wrapped in a texture In FractalLand the mesh is simply a QuadArray Each texture is an image file Quad Array created and texture coordinates generated for each quad – how does image map to quad 29

Simple Textures Texture can also be applied to the primitive shapes: box, cone, sphere, cylinder From the interpolator example When creating box must add primFlag to generate texture coordinates 30

Creating Appearance Appearance for shape based on texture not material 31

Result texture wrapped and repeated as necessary can lead to odd seams, creases, and stretching 32

Combining Texture and Material can combine material and texture to create modulated material 33

Result 34

Controls Version of FractalLand shown had orbit controls to allow movement of camera anywhere in scene program includes method to add key controls and keeps camera close to the ground – as if moving across the landscape 35

Result 36

Adding Fog Java3D includes ability to add fog LinearFog ExponentialFog density of fog as function of distance from the camera fog has color and parameters to determine density of fog 37

LinearFog 38

Result 39