Logo by reallybigname - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 16, 2024, 10:06:12 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Line Fractals  (Read 1575 times)
0 Members and 1 Guest are viewing this topic.
kronikel
Navigator
*****
Posts: 79



« on: April 14, 2011, 07:53:03 AM »

I was messing around with making fractals out of line segments and got this-
http://s200.photobucket.com/albums/aa143/kronikel/Fractals/
Not very fancy at all but I'm seeing some interesting patterns.

The method is draw a line and then pick any point on that line.
Connect that point to another random point that isn't on the first line.
So you have 2 lines, the original line and the "first generation" line, which are connected at one point.
Determine the 3 "rules" that tell you how make this "first generation" line.
1. The angle between the parent line and the new line
2. Where the new line branches off of the parent line
2. How long the new line is compared to the original line

Apply these 3 rules to every line made to make a new line.

You can also make more than one line off of the original line, and a set of "rules" for each of these first generation lines you make.

You can come up with some pretty wild pictures.
I only saved a couple but they can vary greatly.
Logged
Tglad
Fractal Molossus
**
Posts: 703


WWW
« Reply #1 on: April 14, 2011, 08:05:40 AM »

Yes, L systems  www.google.com/images?q=L+systems
Logged
kronikel
Navigator
*****
Posts: 79



« Reply #2 on: April 14, 2011, 08:10:33 AM »

It's a lot less exciting now =P
But these are still lots of fun =)

So I'm wondering, is the method I'm using exactly the same as an "L System" or just roughly?
Logged
Tglad
Fractal Molossus
**
Posts: 703


WWW
« Reply #3 on: April 14, 2011, 09:31:28 AM »

smiley
I think it is exactly the same. One day everything we ever think up will be already invented and on the internet smiley

Here are some animated ones: http://www.fractalforums.com/ifs-iterated-function-systems/fractally-animating-fractals/msg27773/#msg27773
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #4 on: April 14, 2011, 11:35:35 AM »

I used to play with l-systems back in the 1997  grin
Logged

No sweat, guardian of wisdom!
kronikel
Navigator
*****
Posts: 79



« Reply #5 on: April 14, 2011, 06:17:07 PM »

I'm a bit new to fractals, and barely old enough to count in 1997 cheesy
But since the only things I've posted on here were asking for help I figured I'd post this to make myself feel less like a leach.

Since these seem to be so widely known I did have some questions.
I read that it can be done with simple math like most fractals, adding subtracting dividing etc.
But how can you find angles and add angles together like that?
I'm using lots of trig to do it.

Getting an angle -
Angle = (ArcTan2(y2 - y, x2 - x) * (180 / Pi)) + 90;

Creating the new line -
NewX = Sin(Angle * Pi / 180) * Dist + ParentX;
NewY = Cos(Angle * Pi / 180) * -Dist + ParentY;

It has to be more simple right?
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #6 on: April 14, 2011, 07:30:27 PM »

I only know that sin(a) = sqrt(1-cos(a)^2) but don't know many more  embarrass

http://en.wikipedia.org/wiki/List_of_trigonometric_identities Maybe if you read here? Azn
Logged

No sweat, guardian of wisdom!
kronikel
Navigator
*****
Posts: 79



« Reply #7 on: April 14, 2011, 07:43:27 PM »

I've already got the trigonometric rules for creating L systems figured out, I'm just wondering how it could be done without them.
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #8 on: April 14, 2011, 08:12:29 PM »

I've already got the trigonometric rules for creating L systems figured out, I'm just wondering how it could be done without them.

Sure? Already looked at: "Compositions of trig and inverse trig functions" Azn

« Last Edit: April 14, 2011, 08:35:02 PM by DarkBeam » Logged

No sweat, guardian of wisdom!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
A new approach: Iteration of line segments, not points (new) Theories & Research scientiaesthete 6 1136 Last post September 08, 2010, 02:59:45 AM
by scientiaesthete
Line art ChaosPro The Rev 6 3588 Last post March 05, 2011, 02:46:52 PM
by The Rev
Additional command line options wanted :-) Mandelbulber Xenos 1 1919 Last post May 01, 2011, 06:27:44 PM
by Buddhi
Red Line Three Decker Tramway Mandelbulb3D Gallery mario837 0 502 Last post July 22, 2011, 08:29:55 PM
by mario837
Robot Production Line Mandelbulb3D Gallery mario837 1 703 Last post August 12, 2011, 01:56:12 PM
by DonTen

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.16 seconds with 24 queries. (Pretty URLs adds 0.006s, 2q)