Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-02-2004, 06:02 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Fractals!

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!
Attached Files
File Type: zip fractals.zip (1.1 KB, 171 views)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #2  
Old 09-02-2004, 08:47 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
This is fun =D i made something like this when showpoly first came out but it was just a poly drawing script
__________________

Reply With Quote
  #3  
Old 09-03-2004, 06:06 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Nice work man.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #4  
Old 09-03-2004, 07:43 PM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
pretty good, I liked it =)
Reply With Quote
  #5  
Old 09-09-2004, 03:29 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Makes me wish I was more advanced in math... heh. Fractals are taught in abstract algebra or?
Reply With Quote
  #6  
Old 09-09-2004, 06:04 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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
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
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:23 PM.


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