PDA

View Full Version : rotating objects


gbrundin
09-18-2003, 04:55 PM
I'm in an urgent need to make the same effect as in the presentation link below. If you navigate the site you can find a function that rotates a car (go to "intelligens" and choose "360 utsikt" in the menu).

I would really need someone to tell me how that is done!

BMW swedish flash presentation (http://www.bmw.se/kampanj/E60-4/content.html)

:confused:

webguy
09-18-2003, 07:03 PM
hello gbrundin welcome to the forums!

I can't find 360 utsikt in the menus. Perhaps you are talking about QTVR, this thread might help

http://www.actionscript.org/forums/showthread.php3?s=&threadid=24981&highlight=QTVR

Though, I plan on experimenting with this in the future, because I am sure you can do it with flash, though I haven't witnessed much discussion on the topic here in the forums.

web

snapple
09-18-2003, 07:49 PM
gbrundin,

Its not under the menu you said it was, its under Exteriorens menu.

Not 100% sure on the process of building something like that though, sorry.

snapple :)

webguy
09-19-2003, 11:57 AM
Ah yes, I see what you were talking about now. Well that is taken in the same manner as a qtvr panoramic. You position the camera to face a center point along a circle at fixed positions along the perimeter of the circle. I remember a while ago when Apple did it for their iMac, I did a bunch of research and found that they used a machine with a arm that circled around the object much in the same way some dentist xRay machines work. Unfortunately I couldn't find the website again, or the camera I was talking about, but if you do enough searching for vr cameras you should come across it.

Looking at the lighting on the car I would say that they did it in opposite of the way I was saying, instead of the camera moving, the car rotates so many degrees then they take another picture. I'd say they rotated about 40 degrees per picture so they ended up with 9 pictures of a rotating car.

gbrundin
09-19-2003, 12:10 PM
Ok, thanks for the input.

But what I really wanted to know is how to create the control for the rotation i flash.

I have all the pictures (3D-renders, 40 pics, 360 degrees)) for the rotating object, but don't know how to apply a control to make them move one frame at a time to the left or right when I press the mousebutton and drag the mouse left/right. :)

Any suggestions?

:confused:

vulcanpimp
09-20-2003, 07:39 AM
its basically just a slideshow. and you designate which picture is on top by using the _xmouse. say if the xmouse is between 0 and 10 then the picture selected is 1. Then between 10 and 20 the picture is 2. You could use loadmovie or even better create a movieclip and place the 40 pictures in them. Then use gottoandstop(frame) .

gbrundin
09-20-2003, 08:20 AM
Could a slider/control bar be used in some way.

The thing is, I want to make the object (a car) rotate. When a certain angle is displayed the user should be able to click on certain items on the car to get more info in another box.

vulcanpimp
09-20-2003, 08:29 AM
yes no problem. You would then just assign the rotation to the instance by the x (or y if you want ) position of your slider.

gbrundin
09-20-2003, 12:14 PM
:D

Great. Now I just need to write a script that does just all that stuff. :)

Any help woulc be appreciated! :)

pixelwit
09-20-2003, 02:18 PM
So you weren't looking for a way to rotate an object, you were looking for a way to control a clip's current frame with a scroller? The way you phrase your question or thread title has a great effect on the answer you get.

I think this thread (http://www.actionscript.org/forums/showthread.php3?s=&threadid=31678) has what you're looking for.

-PiXELWiT
http://www.pixelwit.com

gbrundin
09-20-2003, 02:21 PM
Well, I am looking for any kind of solution to take control over a movie clip.
Drag mouse over movieclip, slider and more.

Thanks for the link btw! :) :)