Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

You know that photo cube applet... 3

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
You know that java photo cube applet class....

is there a flash version of something similer around somewher?



I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i have never seen anything remotely similar in flash. i suspect you would have to start from scratch and build your own...and that would not be a trivial undertaking.

i can see ways to build it without too much hassle in director but flash just isnt good enough at 3d

building a wire frame rotating cube in flash is just a few lines of actionscript but then you have to get photographs onto the faces, make each face clickable, and so on.

if you have the free time then it might be an interesting project to undertake.
 
I'm not sure it can be done in Flash at all. Like Bill says the cube framework is easy enough, my own site uses something similar as the menu system, but distorting a bitmap shape realistically will be really complex.

You can get half way there by loading the photo into a clip and then playing with the _xscale, _yscale and _rotation properties to squash and position it correctly but you won't be able to simulate perspective that way. I'd imagine even a partial solution will be really slow to execute too.

It's a doddle in Director though, only about fifteen lines of code, I did one a while back that responds to the arrow keys to rotate the cube.

 


Regards,

cubalibre2.gif
 
That's nice, quick too. But to get the proper perspective is probably beyond Flash, maybe whatever replaces MX will have the Intel 3d engine from Director...
 
thats wicked, thats very close to the java applet thingy :) nice work!

iv got a director version too, that was indeed an easy undertaking.

Macromedia seems to want to sacrifice 3D in flash in favor of plugin download size, or so i heard.

thanks for that cube im going to look into it and check out the workings :)

regards,
thomas

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
how do you build the 3d cube in actionscript?

can someone give me the code? or build a .fla and put it on their website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top