LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


  #1  
Old 03-04-2005, 07:03 PM
artcross artcross is offline
Registered User
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0
artcross is on a distinguished road
cube...please help!!!!

Please bear with me. I need help with this I've been trying to do this for 2 weeks now.

Here's what I'm trying to accomplish. I have a spinning cube made w/ Eric Lin's tutorial here: (http://ericlin2.tripod.com/skew/cube3d5t.html). I have the cube rotating so that the top of the box is always showing, which is not natural (if it keeps spinning just on the y axis, when it turns 180degrees, you should be able to see the bottom). The only way I could think of accomplishing this is by constantly rotating the cube on the y and z axis with the y having a high degree rotation than z so when applied together, it seems seemless.
Actionscript:
onClipEvent (enterFrame) {
	if (_root.rotate) {
		_root.navigation.groupRotateZ(_root.navigation.pointArray,-1.2);
		_root.navigation.groupRotateY(_root.navigation.pointArray,-5);
		_root.navigation.updateClip();
		updateAfterEvent();
However, it is not perfect, as you can see. ANY OTHER WAYS TO ACHIEVE THIS?

Second problem, i want the cube to stop rotating when it reaches each face. Right now, i am using the setInterval to spin for 3 sec, then stop. However, depending on whether or not the computer skips when loading, the cube will not stop in the right place...I need something more concrete. I tried making an argument along the lines of

if (ptA==pt on the cube when the face is where i need it to be)

Last edited by Scottae : 03-05-2005 at 02:08 AM Reason: Format with AS tags
Reply With Quote
  #2  
Old 03-04-2005, 07:08 PM
artcross artcross is offline
Registered User
 
Join Date: Feb 2005
Posts: 5
Rep Power: 0
artcross is on a distinguished road
stopmovement();

But it is unsuccessful. Any ideas?

And finally, on the buttons on the right, when rolled over, I want them to spin to a specific face. Can anybody please help me? I'm going crazy trying to figure this out.

You can view my pathetic attemp here: http://www.isitcontagious.com/jon/supercollider6.html
Reply With Quote
  #3  
Old 03-05-2005, 08:29 AM
puppy's Avatar
puppy puppy is offline
Guide
 
Join Date: Dec 2002
Posts: 2,875
Rep Power: 13
puppy is on a distinguished road
3D

why don't you just make it in some 3D tool, and then export?
__________________
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Papervision3D cube face fullscreen spark ActionScript 3.0 0 11-04-2010 06:05 PM
3D cube sie975 Newbies 3 01-21-2009 02:38 AM
strechy cube turkeyman Flash MX ActionScript 1 09-15-2005 09:47 AM
cube frustration Katcham Flash MX 2004 0 08-17-2005 02:01 PM
Cube w/ faces artcross Flash MX 2 02-25-2005 03:52 PM




All times are GMT. The time now is 03:50 PM.