Flash realization of simple virtual reality: Product Display effect

Source: Internet
Author: User

  Effect Demo:

Use the mouse to drag on the teapot to see the effect!

Forget when in where to see a rotating effect, the brain is hot, just I just learned a little 3DMAX, I imitated such a super simple super naïve effect. I hope we can borrow methods do not borrow effect, or I have become a sinner, fraught may not be good, good, I immediately introduce the general practice:

First of all you want to 3DMAX, not too strong, I am also rookie level, but want to do a good thing to show the words can not be taken every angle to shoot, you learn 3DMAX, I am trying to become CG master, hahaha. Interested in doing Cger friends can home my qq:258597679

In fact, the teapot is the simplest model, but also Max's own, I was in the material and lighting and animation to the rendering of the small deal, the knowledge is only a few days to understand things. But it's totally different to understand and master. These pictures I've been shading are just random.

I used 3DMAX to give the teapot a 360-degree rotation animation of the total shading more than 100 pictures just took 28 pictures, so feel a bit not smooth.

All right. The drawing is not much said, want to learn 3DMAX I can give the tutorial, hehe

Then use PS to process the PNG format to make the teapot's background transparent, and this should be known to everyone.
Inside the Flash made a 28-frame MC, 28 different angles of the picture to import the MC. Drag the MC into the main scene with the instance name: Mc_1.

The new 2 MC, named AS and As_2 respectively, put the as_2 in as inside, select As_2 Open the Action panel add as follows:

Onclipevent (MouseMove) {
Star = _root._xmouse;
if (star>end) {
_root.mc_1.nextframe;
if (_root.mc_1._currentframe = = 28) {
_root.mc_1.gotoandstop (1);
}
} else {
_root.mc_1.nextframe ();
if (_root.mc_1._currentframe = = 1) {
_root.mc_1.gotoandstop (28);
}
}
end = _root._xmouse;
}

The code is simple. I will not comment ~ ~ ~ ~ (I am also more lazy-_-!!! )

Then select the connection in the right menu of the movie clip as, the identifier named "as" in the panel tick "Export for action script" and "Export in first" to add the following as in the Mc_1 action panel:

Onclipevent (MouseDown) {
Attachmovie ("as", "as", 1);
}
Onclipevent (mouseUp) {
This.as.unloadMovie ();
}

And in the mc_1 of the layer where the first to add: Stop ();

OK. Test Film ~ ~ ~ ~ ~ ~ ~ Welcome everyone's Bricks ~~~hoho. I am a little stupid, forgive me, forgive!!!



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.