# My first 3d asctionscript! yay!

**URL:** https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646
**Category:** Uncategorized
**Created:** [April 18, 2003, 11:16pm UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646 "2003-04-18T23:16:02Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![zylum](https://avatars.discourse-cdn.com/v4/letter/z/d26b3c/32.png) [@zylum](https://forum.kirupa.com/u/zylum)
#### Post date: [April 18, 2003, 11:16pm UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/1 "2003-04-18T23:16:02Z")

</div>

i’m not sure if this would be considered a _real_ 3d engine but it does have z-sorting. this is the first time i real appretiated the power of functions. without them, the AS would be over 500 lines long but it’s only 49 right now. here’s a link to the swf…[3d\_balls.swf](http://zylum1.tripod.com/3d_balls.html)  
it uses my _patented_ circular motion. the balls are all duplicates of one ball and a function is applyed to them to convert the three imaginary coordinates (x,y,z) into two coordinates which flash can understand. the balls go around in circles around their x , z plane. each ball has a different rotation around the x axis so that the balls also move up and down rather than just side to side (the balls would only move side to side if the y and z axis weren’t rotated aroud the x axis since their movement is only on the x z plane) the scale and alpha is change relative to the z coordinate of the ball. every frame, the balls depth is swaped to become the same as their z coordinate. this acts as the z-sorting. if you would like to see a fla and further explanation, just ask. the AS isn’t terribly difficult.

- mike

---

<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: [April 18, 2003, 11:45pm UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/2 "2003-04-18T23:45:37Z")

</div>

Looks good, I saw something similar awhile back, but I can’t remember where. I’ll post a link once I can remember. =)

---

<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: [April 20, 2003, 3:27am UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/3 "2003-04-20T03:27:55Z")

</div>

Well i’d definately like to see an fla of that since you said its not terribly difficult, if you wouldn’t mind 🙂

---

<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: [April 20, 2003, 4:27am UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/4 "2003-04-20T04:27:24Z")

</div>

Congratrulations! Doesn’t it feel good to accomplish something? 🙂 Haven’t felt that for a while now…

---

<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: [April 22, 2003, 3:13am UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/5 "2003-04-22T03:13:29Z")

</div>

the AS is fairly straight forward except for the formulas which rotate the axis to match the flash coordinate system. I hope the _extensive_ internal documentation helps and if anything is unclear, please let me know and ill help

the 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: [April 23, 2003, 9:20am UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/6 "2003-04-23T09:20:24Z")

</div>

Pretty cool 🙂

---

<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: [April 23, 2003, 9:48am UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/7 "2003-04-23T09:48:56Z")

</div>

Like ITI:-) ,uuuhhhmm no, Love IT:beam:

Greetz from deamothul - the script keeper -

---

<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: [April 24, 2003, 11:35am UTC](https://forum.kirupa.com/t/my-first-3d-asctionscript-yay/18646/8 "2003-04-24T11:35:41Z")

</div>

similar to what i’m busy with now… first is a drag and drop function. and the other one has random movement… my code is still in a mess, but i’m busy cleaning up.👽

[source file for random movement perspective](http://www.geocities.com/markcq2002/perspect.zip)

markcq
