Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hey, i have working online on animation eclipse and got stuck in this one. will be glad if someone could help me in it -

hey, i have working online on animation eclipse and got stuck in this one. will be glad if someone could help me in it

- Find your tree Find one DECIDUOUS tree outdoors you like and take a picture of it. You will need to submit your picture with the assignment. Do some research how this kind of tree looks like when young and as it grows. The scout badge challenge here is to identify the tree without having leaves! Anyway. do your best. . Controlling generation process Modify the tree generation algorithm. e.g. by setting some constants, adding parameters. etc. . which will allow you to control the generation of the shape of the tree so it will resemble the features of your chosen tree. The generated trees should vary slightly from each other. but you should be able to tell they are of the same species. The modified algorithm from the lecture must differ at least in the following way: o the branching factor must not be 3 for all layers of branches (what we had in the lecture). Rather. it has to change in a predened manner for your species of tree. or it must change randomly. If you keep the same algorithm as with the lecture you get 0 for this part. the tree in the lecture is drawn using a single recursive method. If your tree requires it. you may experiment with one recursive method which at some point will switch into second recursive method. Many trees have different structure in the part where the main branches appear. and different for smaller branches higher in the tree crown. o For most trees the angle of the branches and side branches is not constant (or from within a single range). You must adjust angle range at some level of recursion. considering how far down the branch you are. You may want to base it in the value of the depth parameter. or you may introduce a parameter that tells you how many times you recursively called the method. . Grow your tree Write a method that will "grow" your tree by one year. This means that the existing branches get little bit thicker, new branches will grow at the ends of current ones, in some trees the branch angles change by "opening" the crown. - Adding leaves Write a method to draw leaves on branches. Usually leaves grow only on the thin branches at the branches ends. not on the thick branches close to the trunk. Your method should take a parameter that will control how many branches from the end will have leaves on. Create leaves as objects that are stored in an ArrayList for each branch. (If your chosen tree has complex leave shapes. such as maple, sweetgum. or chesnut. just ignore the complexity and draw a simplified leave shape.) w . Add keyboard control a Ctrl-R will restart the drawing with a new tree that has just a trunk and one set of branches (a young tree) o Ctrl-L toggles drawing tree with or without leaves 0 Ctrl-G will initiate growing the tree by one year o (optional) Ctri-A will start/stop animation of seasons

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions