Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: The Rotating Chair Anim Advice  (Read 12152 times)

DressedForSucess

  • Full Member
  • ***
  • Posts: 119
  • ive decided to wear my thorn of crowns
    • View Profile
The Rotating Chair Anim Advice
« on: April 11, 2008, 03:31:03 pm »

Heyy

in my game, theres a chair that can rorate when the player clicks on it. it swivels around a full 360 degrees. i was wondering how i can create this animation in anim8or WITHOUT the chair moving at all - staying in the same place, by spinning around ...

any help?

im not too used to using the animation side of things just yet:P as ive never had to ...
Logged
its like quicksand, once the 3d has a hold of ya, theres no gettin out

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #1 on: April 11, 2008, 03:41:50 pm »

Do you want the upper half to swivel?  or the whole thing to just spin?
Logged

DressedForSucess

  • Full Member
  • ***
  • Posts: 119
  • ive decided to wear my thorn of crowns
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #2 on: April 11, 2008, 03:46:03 pm »

whole thing would b a good idea ...

however, i only planned on the top to swivel (Which means modelling 2 seperate models, i know that)

Can you help?
Logged
its like quicksand, once the 3d has a hold of ya, theres no gettin out

3D Joe Wiltshire

  • Sr. Member
  • ****
  • Posts: 728
  • Winter's Coming :O
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #3 on: April 11, 2008, 04:15:45 pm »

well i'm sure this can be achieved using parenting, if you want the top to follow the bottom, without moving out of place, but you want the top to rotate, you make the top part relative to and child of the bottom, i think that would work

unless, i have thought over what you said, were you asking if you could rotate the top and bottom of a single object? for what i am explaining it has to be 2 objects
Logged

ENSONIQ5

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Mission Backup Earth
Re: The Rotating Chair Anim Advice
« Reply #4 on: April 11, 2008, 10:35:46 pm »

Well, if I understand you correctly, the orientation and position of an object are separately animateable (is that a word?).  Simply animate the rotation of the chair, using any of a number of techniques (scripts, figure + sequence) and the effect is achieved.  I am not really sure what the problem is.  Of course, the centre of rotation of the chair should be in the centre of the chair, or the model will swing around in a circle, rather than spinning on the spot.
Logged

DressedForSucess

  • Full Member
  • ***
  • Posts: 119
  • ive decided to wear my thorn of crowns
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #5 on: April 12, 2008, 07:05:19 am »

Im using 3D models. I want the top part of the chair to spin around, WITHOUT moving out of place. The problem with rotating an object in anim8or is just it moves the model to the right or left, etc, whenever you rotate it. I want it to stay put ! lol

Logged
its like quicksand, once the 3d has a hold of ya, theres no gettin out

ENSONIQ5

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Mission Backup Earth
Re: The Rotating Chair Anim Advice
« Reply #6 on: April 12, 2008, 07:41:40 am »

You need to fix the axis of rotation to the centre of the chair.  Go to the Object mode and select the object you want to rotate.  At the top left of the working screen, just under the arrow button, is a button that allows you to move an object's origin.  Click it, go to a top-down view, and move the origin (which shows as a set of coloured arrows) to the centre of the chair.  I assume it is an office-style chair, so move the origin to the centre of the vertical post between the wheels bit and the seat bit.  Now, when you rotate the object in scene mode, it will rotate around that point.
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #7 on: April 12, 2008, 11:54:49 am »

Another way you can do this is to move the entire object to the center of the screen, where you can see the two axis intersecting.  In scene mode, the object rotates around this origin, so you want to move your object properly so that it rotates properly around this.
Logged

DressedForSucess

  • Full Member
  • ***
  • Posts: 119
  • ive decided to wear my thorn of crowns
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #8 on: April 12, 2008, 03:37:02 pm »

ENSONIQ5 ... i used your technique ... IN scene mode, however, the chair rotates but still doesnt stay in one place ... Ive attched some pictures to show you what i mean ...

It goes out to wide ... I want it to stay in place ...

Do i have to point down the origin arrows in a certain direction??

And that other method doesnt work sufficiently either :(
« Last Edit: April 12, 2008, 03:40:38 pm by DressedForSucess »
Logged
its like quicksand, once the 3d has a hold of ya, theres no gettin out

ENSONIQ5

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Mission Backup Earth
Re: The Rotating Chair Anim Advice
« Reply #9 on: April 12, 2008, 06:33:37 pm »

Ok, just to be certain.  Go to Object mode and select the object that is the upper part of the chair.  Combining my method and hihosilver's, go to the Top view and move the entire object so the centre of the seat coincides with the grey central crosshairs.  Now, click the button below the select mode arrow button and use the movement tool to move the coloured arrows that represent the object's centre of rotation to also coincide with the central grey crosshairs (you will need to be in wireframe mode to see them).  Now, still in the origin mode, click on the select arrow (not select mode) and click on the screen, somewhere where your object isn't so the object deselects while in origin mode (this can be important - without this sometimes the origin does not stay moved).  Now you can return to select mode (top left button) and then to scene mode, and the object should rotate about its own centre.

Also, I notice from your images that the chair is rotating wonkily.  If you deselect the "Y" and "Z" buttons when rotating, rotation will be constrained to the "X" dimension (left/right in screen coordinate mode, which you are in) and the chair will stay straight.

I hope this helps.  If it doesn't make sense (which is a distinct possibility - I have just got out of bed, its Sunday morning, and last night's indulgences are punishing me severely) I will post some screen shots.
Logged

hihosilver

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1294
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #10 on: April 13, 2008, 02:05:00 am »

If you still can't figure it out feel free to pm me the file and I'll take a look to see what's going wrong.  Then of course explain to you how to do it properly ;)
Logged

DressedForSucess

  • Full Member
  • ***
  • Posts: 119
  • ive decided to wear my thorn of crowns
    • View Profile
Re: The Rotating Chair Anim Advice
« Reply #11 on: April 13, 2008, 05:58:21 am »

THanks :)

Your advice has worked :)

I will try and render a small animation and send it to you via emial? i dont think it will be small enough to fit on here ...

But cheers :) Youve helped and solved my problem :)
Logged
its like quicksand, once the 3d has a hold of ya, theres no gettin out

ENSONIQ5

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Mission Backup Earth
Re: The Rotating Chair Anim Advice
« Reply #12 on: April 13, 2008, 08:33:31 am »

Excellent, glad we could help.  I would recommend uploading anything you do to YouTube and putting links to it here, rather than email, so anyone reading this thread in the future can see and learn from your experiences.
Logged

thecolclough

  • Sr. Member
  • ****
  • Posts: 890
  • 3D Ignoramus 1988-2002, Anim8or User 2002-present.
    • View Profile
    • www.mattghc.com
Re: The Rotating Chair Anim Advice
« Reply #13 on: April 14, 2008, 05:33:49 am »

if it's too big to post on here, the chances are it's also a bit too big for email.  (can't remember what the exact limit is on here, but still...) ensoniq's point about youtube is a very good one.  speaking of which, have you signed the Directory over on the WIP forum?

- colclough
Logged