# 3d

**URL:** <https://forum.kirupa.com/t/3d/4884>\
**Category:** Uncategorized\
**Created:** [August 23, 2002, 7:14pm UTC](https://forum.kirupa.com/t/3d/4884 "2002-08-23T19:14:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![natalia](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@natalia](https://forum.kirupa.com/u/natalia)\
**Post date:** [August 23, 2002, 7:14pm UTC](https://forum.kirupa.com/t/3d/4884/1 "2002-08-23T19:14:21Z")

</div>

Hi there,

I was wondering how i would make a 3-D shape in Flash, then have the shape move in accordance to mouse position.

eg. be able to rotate/flip a cube or a triangular prism just by moving the mouse around.

I don’t own any 3D programs, so is there any way i can sorta cheat and make 3D shapes in Flash?

Thanks.  
=) :ninja:

---

<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:** [August 23, 2002, 8:43pm UTC](https://forum.kirupa.com/t/3d/4884/2 "2002-08-23T20:43:58Z")

</div>

Well the shape would have to be made with actionscript to be able to produce that 3D look…I’ll search for a tutorial on that if I can find one but pom is the pro at finding tutorials!

---

<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:** [August 23, 2002, 9:07pm UTC](https://forum.kirupa.com/t/3d/4884/3 "2002-08-23T21:07:46Z")

</div>

[click to go to a site full of trial & full versions of software,you will find usefull stuff here!](http://download.com.com/)

And see the attachment for a 3D animation

---

<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:** [August 24, 2002, 1:20am UTC](https://forum.kirupa.com/t/3d/4884/4 "2002-08-24T01:20:02Z")

</div>

Thx DMX but the Vortex thing doesn’t really help me… i want to be able to move the thing like X Y mouse position, but i dunno how to do that… ☹

---

<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:** [August 24, 2002, 6:21am UTC](https://forum.kirupa.com/t/3d/4884/5 "2002-08-24T06:21:46Z")

</div>

hummm the only good way to do 3D in flash I’ve found is using swift 3d… but then I don’t know of any way for flash to move the animation around itself. Flash doesn’t know how to create motion between 3d objects. But I’m sure there’s a way to do it with action script, since 3-d in flash is just a whole bunch of keyframes. I dunno, like when the mouse is over a certain area the clip of 3-d is advanced one frame… without swift you could create all the frames of a 3d animation yourself and go from there but that would take way too long and I honestly don’t know what I’m talking about anymore.

cheers!

---

<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:** [August 25, 2002, 8:03am UTC](https://forum.kirupa.com/t/3d/4884/6 "2002-08-25T08:03:12Z")

</div>

click on the link I gave you b4 ok.

by the way,heres another vortex with movement.

---

<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:** [August 25, 2002, 8:06pm UTC](https://forum.kirupa.com/t/3d/4884/7 "2002-08-25T20:06:41Z")

</div>

here’s an example of the effect i want to achieve… it’s sorta 3D, but either way i don’t know how to do it…

it’s the shape you can rotate with your mouse

> **[Buy Domains - napkindesign.com is for sale!](https://www.buydomains.com/lander/napkindesign.com?domain=napkindesign.com&utm_source=napkindesign.com&utm_medium=click&utm_campaign=TDFS-OO-BDLander&traffic_id=TDFS-OO-BDLander&traffic_type=tdfs)**
>
> Buy a domain and see how a premium domain can be the best investment. Your business starts here. Buy a domain today.

---

<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:** [August 26, 2002, 1:14am UTC](https://forum.kirupa.com/t/3d/4884/8 "2002-08-26T01:14:03Z")

</div>

To do that, you need to programme a 3D engine. Kinda hard on the math formulas. If you want, I’ve built one, very easy to customize. Or do you want to make it yourself?  
Here’s an idea of what I’ve done: [http://membres.lycos.fr/museebranly/flash/contest/bit3D14.html](http://membres.lycos.fr/museebranly/flash/contest/bit3D14.html)

pom :asian:

---

<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:** [August 26, 2002, 1:25am UTC](https://forum.kirupa.com/t/3d/4884/9 "2002-08-26T01:25:12Z")

</div>

Hey Ilyas, I personally would love to learn how to do something like that. I need to start learning the Math part of AS now that I got most of the other stuff figured 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:** [August 26, 2002, 2:00am UTC](https://forum.kirupa.com/t/3d/4884/10 "2002-08-26T02:00:45Z")

</div>

Mmm, I didn’t notice this was the F5 Forum… It doesn’t make too much difference, only the fill is only doable with MX.

For a very good introduction to this, you can check Brandon Williams’ site (I don’t have the address, sorry, just use google). Lots of math, lots of fun, a beautiful fla (in Flash 5): a great site (he’s a real genius).

pom :asian:

---

<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:** [August 26, 2002, 2:02am UTC](https://forum.kirupa.com/t/3d/4884/11 "2002-08-26T02:02:52Z")

</div>

I am a Flash MXer right here…haha.

\<B\>\<I\>EDIT: Ilyas: did you ever get that JS script I posted for your friend?\</I\>\</B\>

---

<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:** [August 26, 2002, 7:49pm UTC](https://forum.kirupa.com/t/3d/4884/12 "2002-08-26T19:49:21Z")

</div>

hey sure, thx pom, i’d be happy if you’d build me a 3-D thing. How the heck do you start making the math formulas, though? it seems so confusing… :-\

---

<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:** [August 27, 2002, 9:30am UTC](https://forum.kirupa.com/t/3d/4884/13 "2002-08-27T09:30:01Z")

</div>

Lost\>\> Nope. I haven’t been there much lately, and I must have missed it. Can you repost? Please?

Nat\> You’re using Flash 5, right? It would be better if you had MX though… Anyway, the 3D engine basics:

You have a basic structure that is a point. It has 3 properties: x position, y position and z position. Be careful, these are different from \_x and \_y (precisely because there’s a z component).

The most practical way to represent this is an array (you could even consider building a new class Point, subclass of Array, and give it particular methods and all, now that I think of it --\> Flash MX, of course).

Now that we have the point’s position, we have to rotate it. To do so, you have to get into linear algebra and some aspirin. Because you are going to use rotation matrixes, yeah baby, yeah!! I don’t have time to explain that (besides, Brandon Williams did it quite extensively on his site), but basically you can get the new point after rotation by multiplying the current point by particular values, depending around which direction you want to rotate.

And that’s it! 😛 Before I go on, was that part clear?

pom :asian:

---

<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:** [August 27, 2002, 3:45pm UTC](https://forum.kirupa.com/t/3d/4884/14 "2002-08-27T15:45:46Z")

</div>

All Clear here. I actually did something like this on a Graphing Calculator, so I know exactly what you mean there. We used forumlas and matrices to rotate a cube.

---

<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:** [August 27, 2002, 8:41pm UTC](https://forum.kirupa.com/t/3d/4884/15 "2002-08-27T20:41:05Z")

</div>

hey thx lol that sounds complicated… i don’t have MX because i don’t have any money, i’m not yet 18…

---

<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:** [August 28, 2002, 9:34am UTC](https://forum.kirupa.com/t/3d/4884/16 "2002-08-28T09:34:47Z")

</div>

Well, Nat, no offence here, but I’m afraid it will be hard for you to understand. [SIZE=1]I sound like Obi Wan, don’t you think? You’re still young, Anakin, and still have much to learn about the force…[/SIZE] I’ll try and make you a fla.

And Lost, if you’ve done that already, you can check Ultrashock (but I think it is also in Fresh Flash) for a killer tutorial by Brandon Williams about cameras in Flash. 3D classes and all, a real nightmare. 😛

pom :asian:

---

<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:** [August 28, 2002, 4:55pm UTC](https://forum.kirupa.com/t/3d/4884/17 "2002-08-28T16:55:21Z")

</div>

Ok, that tutorial explained mostly how to multiply matrices, but I already knew that. So now it is time for me to get crackin on some equations and bump up on my arrays knowledge. Shouldn’t be TOO difficult.

---

<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:** [August 28, 2002, 7:01pm UTC](https://forum.kirupa.com/t/3d/4884/18 "2002-08-28T19:01:31Z")

</div>

well yea, i’m quite new to flash… but i taught myself all my other programs/programming languages, but i seem to be having the most trouble w. flash… maybe taking a course in it isn’t such a bad idea.

---

<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:** [August 29, 2002, 8:39am UTC](https://forum.kirupa.com/t/3d/4884/19 "2002-08-29T08:39:42Z")

</div>

Lost\>\> Did you check the files???

pom :asian:

---

<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:** [August 29, 2002, 3:39pm UTC](https://forum.kirupa.com/t/3d/4884/20 "2002-08-29T15:39:00Z")

</div>

Oh wow, I feel stupid, I didn’t even notice that little link in the corner that says source files. I downloaded them now. I will check them out later.

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