# Creating rotating 3d

**URL:** https://forum.kirupa.com/t/creating-rotating-3d/16091
**Category:** Uncategorized
**Created:** [March 20, 2003, 9:48pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091 "2003-03-20T21:48:06Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![UncleGuito](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@UncleGuito](https://forum.kirupa.com/u/UncleGuito)
#### Post date: [March 20, 2003, 9:48pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/1 "2003-03-20T21:48:06Z")

</div>

hey i was wondering if anyone knows how to make a 3d image in flash

and second of all how to make it rotate and stuff

(please dont give me alink to [actionscript.org](http://actionscript.org) one, its too hard to understand…)

---

<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: [March 20, 2003, 9:50pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/2 "2003-03-20T21:50:05Z")

</div>

well, there’s many ways… of doing this. You can use a program like Swift-3d to make one… or you can program one in flash. I would say that if you just want to DRAW the frames for a rotating thing, it will be more complicated than doing it in actionscript

---

<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: [March 20, 2003, 9:55pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/3 "2003-03-20T21:55:10Z")

</div>

how could i do it in actionscript, cause i dont have swift, and i think that the frame by frame would take FOREVEr, so yeah

---

<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: [March 20, 2003, 10:25pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/4 "2003-03-20T22:25:08Z")

</div>

hmm… I know the general idea, since I used to do this in 7th grade with QBasic.

The first thing you need to do is figure out coordinates for every point in your object, cause you’re going to be drawing lines from point to point in each frame. Lets say you want to do a 2 dimensional E that rotates… in that case, you need 6 points…

1-------2  
|  
|  
3------4  
|  
|  
5------6

if you want a 3 dimensional figure, you need to multiply that number by two. Your coordinates are going to be in this form: (x, y, z).

Then you define an axis of rotation… if you have ONE axis of rotation, it means that two of your coordinates are going to be constantly changing. If you want things rotating around the z axis, the coordinates that are going to be changing are x and y.

also, the coordinates of your axis, if it’s the z axis, is going to be in (x, y) form. why (x, y)? because the z axis encompasses ALL of z. So no matter what z you give it, the axis is going to be there. So the z coordinate is not important.

So you’re going to be rotating the points. If you’re going to be rotating along the z axis, the z coordinate of these points will stay constant. so your points are going to be in form of (x, y, constant).

then you need to figure out what the angles are between each of your points and the axis, and increase these angles by a certain amount. You calculate the new coordinates of the points from these new angles. And then you draw your lines from point to point.

Translating this into actionscript is going to be a pain… you sure you want to do it this way?

---

<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: [March 20, 2003, 10:31pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/5 "2003-03-20T22:31:35Z")

</div>

umm i dont think so after hearing the explaination, so how do u do it the plain way, to make the cube spin with all sides appear when it spins to them

i was just experimenting, and this is the \*\*\*\* i have so far, and its not what i was looking for

if you could show me the animations and idea through this fla thatd be great… :trout:

---

<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: [March 20, 2003, 11:26pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/6 "2003-03-20T23:26:37Z")

</div>

If you have Swift 3D I’ll just send you the .t3d file if you like?

---

<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: [March 20, 2003, 11:35pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/7 "2003-03-20T23:35:31Z")

</div>

ok i have swift 3d but ive never used it. is it easy to use?

yah, if you can send that file to my email at: [uncleguito@lycos.com](mailto:uncleguito@lycos.com)  
thatd be great,

thanks a bunch

---

<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: [March 20, 2003, 11:59pm UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/8 "2003-03-20T23:59:12Z")

</div>

This is VERY basic, as I have no time at the moment.

---

<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: [March 21, 2003, 12:23am UTC](https://forum.kirupa.com/t/creating-rotating-3d/16091/9 "2003-03-21T00:23:25Z")

</div>

I got this file from [Flash thief](http://www.flashthief.com/hothomepages/index.htm). It has a killer rotating 3D box done completely in flash. The main difference between doing it this way and doing it with swift is that you can fully interact with it. But I’d shy away from putting this into any sort of portfolio unless you program it yourself… Nice effect though.
