Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Fractals! (https://forums.graalonline.com/forums/showthread.php?t=55181)

Dach 09-02-2004 06:02 PM

Fractals!
 
1 Attachment(s)
Well, on one of my random mind adventures through the various mathematical worlds, I happened to realize how I would make a fractal drawer in Graal. Why I didn't realize it earlier is beyond me, but nonetheless I made one. It's not much of a flashy script, nor it is all that user-friendly, but it's still fun.
controls;
f -> add another degree of fractals
d -> use the mouse to draw a different starting shape
leftmouse -> add node to the shape
rightmouse -> finish drawing

there is a large triangle as the default shape, so you can just hit f upon loading the level. But it's much more fun to draw your own.
note: hitting "f" too many time may cause undesirable results...

edit: razzafrazza, someone readd .nw and .graal back to the allowed file formats!

ZeroTrack 09-02-2004 08:47 PM

This is fun =D i made something like this when showpoly first came out but it was just a poly drawing script

osrs 09-03-2004 06:06 PM

Nice work man.

amonrabr 09-03-2004 07:43 PM

pretty good, I liked it =)

Python523 09-09-2004 03:29 AM

Makes me wish I was more advanced in math... heh. Fractals are taught in abstract algebra or?

Dach 09-09-2004 06:04 AM

Quote:

Originally Posted by Python523
Makes me wish I was more advanced in math... heh. Fractals are taught in abstract algebra or?

I really don't recall ever learning about them in a class :\ . But the math used to generate them in this script is really just some geometry/trig (more directly vector manipulation, but the concepts can be picked up in trig and geometry). I'd break down the method I used, but I'm lazy x_x
this would be so much cooler if it replicated the actual polygon on each segment
oh yeah check this out http://members.aol.com/michaelangelo36/10kshowpoly.png


All times are GMT +2. The time now is 07:07 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.