# 3D with Flash

**URL:** <https://forum.kirupa.com/t/3d-with-flash/2912>\
**Category:** flash\
**Created:** [January 25, 2002, 10:50pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912 "2002-01-25T22:50:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2002, 10:50pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/1 "2002-01-25T22:50:46Z")

</div>

Hello people,\rI wondered : what’s the main idea behind 3D in Flash. I mean, I’ve seen a lot of scripts to make rotating squares or triangles or whatever, but never managed to understand how they were made. Any 3D expert ?\r\rpom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2002, 11:17pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/2 "2002-01-25T23:17:53Z")

</div>

i struggled with many tutorials but never got anything happening until i lifted code from [this page](http://travel-horizons.com/it/thindex.asp?n=1453). specifically the examples by guy watson.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2002, 11:30pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/3 "2002-01-25T23:30:33Z")

</div>

Thanks Supra. One question though : what do the 3d\_draw movies have to do with 3D ?\r\rpom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 25, 2002, 11:38pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/4 "2002-01-25T23:38:29Z")

</div>

hmm, i’m not sure, and the link is broken from here right now, i’ll try again later.\r\rmore specifically, the code i lifted from [3d\_spiral.fla](http://www.flashguru.co.uk/downloads/3d_spiral.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 26, 2002, 2:11am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/5 "2002-01-26T02:11:27Z")

</div>

do you know the concept of addition of angles and stuff? 3d involves some heavy-duty math. i struggled with it for about a week before being able to write script without reference. if you’re good in math, then we can be off to a good start with your learning, if not, i’ll find that site that helped me understand it. it’s really not that hard once you uderstand it. but there are still some things that i am trying to figure out.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 26, 2002, 10:04am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/6 "2002-01-26T10:04:01Z")

</div>

Well, yes, no bragging, I’m good at math, but I’ve never done any geometry. Topology, vectorial spaces, differential equations, I can handle. But draw a line, and I can’t remember what my name is. Doh ! Maudit !\r\rpom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 26, 2002, 10:27am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/7 "2002-01-26T10:27:34Z")

</div>

Supra, your link to this knowledge base is just GREAT!!\rWhere do you find this stuff?\rThanx anyway…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 26, 2002, 10:50pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/8 "2002-01-26T22:50:01Z")

</div>

[chattyfig.figleaf.com\r[url=“http://www.quantumwave.com/html/flashcode.html”]www.quantumwave.com/html/flashcode.html\r[url=“http://www.debreuil.com/docs/ch01\_Intro.htm”]www.debreuil.com/docs/ch01\_Intro.htm\r[url=“http://www.layer51.com/proto/”]www.layer51.com/proto/](http://chattyfig.figleaf.com)\r\reverything you ever wanted to know about flash…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2002, 12:31am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/9 "2002-01-27T00:31:11Z")

</div>

merci !

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 28, 2002, 9:06pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/10 "2002-01-28T21:06:17Z")

</div>

OK, so in order to understand the 3d spiral, I figured I had to look at 3d spring first. Verdict is : I can’t understand it. The code in the viewer is all right, but the projection function I can’t understand.\rMovieclip.prototype.projection=function(){\r&nbsp &nbsp &nbsp &nbsp pers=\_root.d/z //so this must be the perspective effect, but how did you get to that formula ? And what does it represent ?\r&nbsp &nbsp &nbsp &nbsp \_x=pers_x //why ?\r&nbsp &nbsp &nbsp &nbsp \_y=-pers_y //idem\r&nbsp &nbsp &nbsp &nbsp \_xscale=\_yscale=pers\*100\r}\rAnd last thing. Flash considers that the z axis goes through the screen (not out of the screen), right ?\r\rAnd Thoriphe, I’d really appreciate it if you teached me the 3d basics.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 29, 2002, 2:55am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/11 "2002-01-29T02:55:29Z")

</div>

its a little too confusing for 12 year olds! ive been working on if and uh… the other thing, hit tests, 3dnes… man its too much hard work and stuff… I cant figure anything out because its all too confusing for meee! ( though im way past the basics i cant get into advanced 🙂 ) oo one more thing how you put flashes into this text box thing? i cant seem to be able to do it ☹ .\r

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 30, 2002, 8:13am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/12 "2002-01-30T08:13:43Z")

</div>

First of all, what Firedrake asked about putting the animations in the box guys, that would be nice to know how to do.\r\rSecondly,\r Firedrake, You don’t seem to see it because your only 12 as you say. Your frustration is the biggest hurdle. When you get frustrated, as you undoubtedly will over and over, take a quick break, let your forehead cool down, and then return, not expecting NOT to get frustrated again, but that you will learn bits and peices along everyone of those journeys. And at your pace, with your knowledge, you will either be making excellent money building ultra cool websites, or you will be in Jail for hacking into the Pentagons missile Library, probably the former, as hacking is much more frustrating. Relax, and give yourself the credit due…And pace yourself, lest you wear yourself out.\r\rpj\rWho also counsels 12 year old genious’s on the side (bills in the mail)\rAlso, take a look at my name that phollows…and I am 39

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 30, 2002, 9:09am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/13 "2002-01-30T09:09:46Z")

</div>

pers=\_root.d/z;\r\rhmm, looks like something’s missing. come to think of it, i think i changed mine from when i lifted it, mine reads:\r\rpers = (z+\_root.d)/\_root.d;\r\rthat makes more sense. ; )\r\r\_root.d is a constant that defines how much perspective there is. it’s usually a moderately large number, it needs to be a fair amount bigger than z. the larger \_root.d is, the less the perspective effect, it’s an inverse thing.\r\rsee how as z gets larger, pers gets larger, and vice versa? but not by too much. say \_root.d=600 and the z for a given vertices is 30. that leaves you with 630/600, which is 1.05.\r\r\_x=pers_x;\r\_y=pers_-y;\r\ri’m not sure why the negative on y. i’ve made them both positive in my code.\r\rimagine you’ve two points are 10m apart. if you were close to them they’d appear very far apart, you’d have to turn your head to see one then the other. now imagine them from 100m away, well now they seem really close together. by multiplying the x,y values by the pers (which was derived from the z) we make points that are further away appear closer together, and vice-versa.\r\ri’m not sure what the difference is between going through the screen and out of the screen(?). but i think you’ve got it right. big z = close to you, small z = far away.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 30, 2002, 11:10pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/14 "2002-01-30T23:10:43Z")

</div>

Yeah, well, that’s what I thought.\rwith : pers=\_root.d/z\rthe greater z, the lower pers, hence the smaller the dot, which isn’t logical.\rpers = (z+\_root.d)/\_root.d; works too, but as you said, it’s much less dynamic than the other one.\r\rOK, so you’re explanation is very intuitive. It works, very well, but I’ve had the fisfortune to look at the code for a spinning square, and the equations for rotation in 3D looks a lot more convincing (even though a lot less understandable).\r\rGoing in the screen, out of the screen, you know… 0] \r\rpom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2002, 9:27am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/15 "2002-02-03T09:27:24Z")

</div>

I want to download your flash

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2002, 11:18am UTC](https://forum.kirupa.com/t/3d-with-flash/2912/16 "2002-02-03T11:18:58Z")

</div>

Hi ! How are you Sharier ? Eveything OK ?\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2002, 8:52pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/17 "2002-02-03T20:52:30Z")

</div>

ugg… my head hurts looking at that Supra… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2002, 9:48pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/18 "2002-02-11T21:48:26Z")

</div>

Any idea how I could make a capital “F” in 3 dimensiosn spin and everything?\r\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2002, 10:41pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/19 "2002-02-11T22:41:04Z")

</div>

once you have an engine that works by connecting a set of vertices, it’s just a matter of specifying the right set of vertices.\r\ran F is a much more complex shape than a cube … it’ll run slower.\r\rif you’re looking for a way to do it without building the 3d engine, i’d recommend exporting frame by frame from 3d max.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2002, 10:44pm UTC](https://forum.kirupa.com/t/3d-with-flash/2912/20 "2002-02-11T22:44:36Z")

</div>

OK. What if I don’t have 3DSMAX ? Do I have to build that engine ? And do you mean by connecting a set of vertices. I’m really sorry, but that’s something I’ve never done, so all this looks pretty much like chinese to me.\r\rpom 0]

[Next page](https://forum.kirupa.com/t/3d-with-flash/2912.md?page=2)
