Fracals and LSystems分形L系统

上传人:仙*** 文档编号:40463538 上传时间:2021-11-15 格式:PPT 页数:17 大小:514.50KB
返回 下载 相关 举报
Fracals and LSystems分形L系统_第1页
第1页 / 共17页
Fracals and LSystems分形L系统_第2页
第2页 / 共17页
Fracals and LSystems分形L系统_第3页
第3页 / 共17页
点击查看更多>>
资源描述
Fractals and L-SystemsBrian Cavalier15-462November 25, 1997Overview The notion of a fractal Self similarity and Iteration Fractal Dimension Fractal Uses L-SystemsWhats With Euclid Anyway? (Motivation) Arent spheres, cubes, and polygons good enough? Well, it depends on your intent, but . Not many interesting real-world objects are really traditional geometric objects. Coastlines, trees, lightning These could be modeled with cylinders, polygons, etc, but . Their true level of complexity can only be crudely approximated with traditional geometric shapesFirst, a Question How long is the coast line of Britain? How would you measure it?A Solution? Start by looking at it from a satellite Pick equally spaced points and draw lines between them. Then measure the lines Now you know the length, right? Well, sort of . What if you move closer and decrease the distance between the points? Suddenly what looked like a straight stretch of coast becomes bays and peninsulasThe Notion of a Fractal “. a geometrically complex object, the complexity of which arises through the repetition of form over some range of scales.” - Ken Musgrave, Texturing and Modeling Say what?Self-Similarity and Iteration Simple Shapes repeat themselves exactly at different scales Koch curves and snowflakes Statistical Statistics of a random geometry are similar at different scales Trees, rivers, mountains, lightningPhysical Dimension A point, line, plane, and cube all have physical dimension that we accept as being 0, 1, 2, and 3 respectively. Mandelbrots view Dimension is a scale-dependent term Consider zooming in on a ball of threadFractal Dimension In the Euclidian plane we usually speak of topological dimension, which is always an integer. Fractal dimensions can have non-integer values. What does a dimension of, say, 2.3 mean? 2 is the underlying Euclidian dimension of the fractal The fractional value “slides” from 0 to 0.9999. as the fractal goes from occupying its Euclidian dimension, e.g. plane, to densely filling some part of the next higher dimension.Simple Fractals Using Iteration Use mathematical iteration and simple logic to produce amazing images One kind, you have already seen in the Koch and Sierpinski fractals Another kind is more numerical Mandelbrot Julia fractional Brownian motionMandelbrot Set - How? Simple algorithm using points on the complex plane Pick a point on the complex plane The corresponding complex number has the form: x + i*y, where i = sqrt( - 1 ) Iterate on the function Zn = Zn-1 2 + C Where Z0 = 0, and Z1 = C2 + C What does Z do? It either Remains near the origin, or Eventually goes toward infinityMandelbrot Set - How? (2) To produce pretty pictures, do this for every point C on the complex plane where -2.5 x 1.5, and -1.5 y 2, the iteration will go to infinity. Color the point C based on the number of iterationsJulia Sets Just a variant on Mandelbrot Sets There is an entire Julia Set corresponding to each point in the complex plane. An infinite number of Julia Sets Most interesting sets tend to be those found by using points just outside the Mandlebrot set. Similar Iteration formula, but vary Z not C Zn = Zn-12 + CFractional Brownian Motiondouble fBm( Vector point, double H, double lacunarity, double octaves ) if ( firstTimeCalled ) initialize exponent table for octavesfor( i=0 to octaves-1 ) value = BasisFuction( point )*exponentForOctave( i );point.x *= lacunarity;point.y *= lacunarity;point.z *= lacunarity;if( octaves not and integer ) value += fractionalPartOf( octaves ) * BasisFunction( point )*exponentForOctave( i );return value;Cool, But What are They Good For? Not just neat pictures in 2D Procedural Textures Terrain Generation Other Realism Music?!?L-Systems Remember the Koch Curve & Snowflake? Think of it as a grammar:Just Add Water . L-Systems “grow” based on their production rules Plants Cells Can control the iteration of production rules and actually animate the growth Grammars of fine enough granularity could simulate growth at the cell level . talk about eating CPU cycles .
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 压缩资料 > 基础医学


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!