Quick Search for:  in language:    
program,uses,concept,fractals,nature,generate
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 115. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!A#vb Undernet suczs
By Xasan on 6/30

(Screen Shot)

CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Encryption Decryption Demo
By Nikhil Raj on 6/30


Click here to see a screenshot of this code!Serial Registration
By Christian (eXonite Team) on 6/30

(Screen Shot)

Click here to see a screenshot of this code!Danger:Can pc kill me? interesting article
By Xasan on 6/30

(Screen Shot)

AniViewer
By Jerrame Hertz on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Generate realistic Trees using recursion

Print
Email
 
winzip icon
Submitted on: 5/29/2001 12:59:22 PM
By: Danish Mujeeb 
Level: Intermediate
User Rating: By 28 Users
Compatibility:VB 5.0, VB 6.0

Users have accessed this code 8599 times.
 
(About the author)
 
     This program uses the concept of fractals in nature and generates realistic Trees using recursion ( the recursion part is heavily commented ). Each branch can be thought of a small tree on its own and every other branch on that branch. Hence this program uses the concept of recursion very effectively in creating trees

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
5/29/2001 1:49:20 PM:Almar Joling
Very cool, and very nice example of 
recursion
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/29/2001 2:35:11 PM:Mike Canejo
Very nice...
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/29/2001 4:35:51 PM:M@
Good work. Nice recursion example. I 
gave you a "4" instead of a "5" because 
you need some bounds checking to 
prevent overflow errors. I got several 
while fiddling with the complexity. 
Otherwise, good job!
M@
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2001 7:08:25 AM:Dondata
Beautifull :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2001 10:08:03 AM:opello
The leafing is superb!  The branches 
make it look fake :(   Other than that, 
nice recursion and tree!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2001 12:33:19 PM:Vitaly
Way to go!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2001 3:03:44 PM:SniperBoB
VERY NICE! This is so cool, but now the 
problem is converting this to 3D and 
being able to create low poly, 
somewhat-realistic trees for a D3D 
game's level editor  :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/30/2001 3:08:52 PM:SniperBoB
oh yea, I love that font thing, Great 
idea! Also u got an excelent from me!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/31/2001 3:31:54 AM:Nathan Chere
Everyone seems to be interested in the 
recursion but I already know how to 
utilise that. What really impressed me 
is the fractal element, I'm totally new 
to using fractals so this is 
fascinating to me. 5 globes.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/17/2001 6:32:34 AM:Codin Genius
The branches look a bit fake, too 
calculated. Also you need some error 
handling, how many times did I get 
overflow errors when playing around 
with it, quite alot. Otherwize very 
cool. 4 globes, 5 if it hadn't been for 
the errors and the fake looking 
branches. Lets see if you can generate 
a landscaped garden scene, make flowers 
and different types of trees, theres an 
idea for you. ;)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/18/2001 2:02:46 PM:Chris
Amazing i gave you 5 out of 5 the tree 
looks basically real if you hind the 
trunk 
Just amazing!!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/18/2001 7:17:07 PM:Martin
Great Job, but you forgot the 
autoredraw on the rendering windows
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/18/2001 9:45:06 PM:Terry Smith
Excellent work. Needs error handling, 
auto screen clear and better branches, 
but otherwise excellent!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/18/2001 11:04:25 PM:Jason
I managed to fix the overflow error by 
changing Dim prog As Long to Dim prog! 
in the declarations section of Form1 
(tree.frm)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/20/2001 8:13:58 PM:happylobster
I have also made a tree drawing program 
tho much simpler.  Search for graphical 
tree
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/21/2002 8:14:26 AM:Dragonfly
Try putting in some random numbers to 
keep the branches from propagating all 
the same way, otherwise, looks very 
nice.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/21/2002 12:44:59 PM:Vi11
Excellent.  I gave you a five even with 
the overflow errors. Visually stunning.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.