Flashadvisor logo
:: Desktop Shortcut
:: Flash Help
Advices from Experts

 Submit Here! · Link to Us · Newsletter · Tell a Friend ·

      Add Tutorial |

 

Advertise here

Create Speaking Characters for your website and Flash movies. 15 Day Free Trial




PHP Scripts

 

 Home > Tutorials  > 3D



The yellow parallelogram is the parallelogram that we want to have.
To make it from the square, we have to decrease horizontal and vertical sizes
of initial square to p and q correspondingly (we shall

How To Create the 3D Object in Flash

Author: Sergey Kamenev | Email


Advertisement

Now the last thing that we have to do. See pic.5.



Pic.5




m
find them), rotate on φ, squeeze  ------ times (φ, m and n we have to find, too) and rotate
n

back on σ (it is marked on pic.5 by dotted arc, we shall determine it, too).

Let's calculate p and q. From similarity of the triangles ACD and CDK ([DK] is perpendicular dropped from the point named by D on the diagonal d):





dq
------ = ------,
qg

where g is the length of the segment [KC]. Hence:



        
q = d g

and g we can find from the triangle ACD1:


g = cos τ.

Here is:


d2 = l2 + w2 - 2 l w cos γ,

where d is the biggest diagonal of the parallelogram, l and w are lengths of its sides,
and cos γ is the angle between w and l. Let's calculate smaller diagonal f of the parallelogram:



f2 = l2 + w2 - 2 l w cos (180° - γ) = l2 + w2 + 2 l w cos γ,

and here is from the triangle-quater of the parallelogram:




a2d2
------ = ------ + w2 - d w cos τ,
44

and here is from this:












d2w2
------ + w2 - ------
44

cos τ = ---------------------------.
d w

So, τ we already have found. Let's find the angle named by φ:




g
sin φ = ------,
q

The coefficient of squeezing δ is:




m
δ = ------,
k




            
k = q2 - g2,




            
m = m2 - g2.

The "back" rotation angle is:


σ = 180° - γ - τ.


| 1 | 2 | 3 | 4 |

Rate This Tutorial :
We hope the information helped you. If you have any questions or comments, please don't hesitate to post them on the Forums section
Submit your Tutorial at Click Here
  

Home | About Us | Contact Us | Feedback | Advertise with us

Best viewed in 800x600 resolution with Internet Explorer.

Site Developed and Hosted by  ethicsolutions.com
All rights reserved with FlashAdvisor

Flash is a registered trademark of Adobe Systems, Inc.

12 users online