Posts: 165
Joined: Sep 2005
Reputation:
6
Hi,
Yes it is totally possible to do a rotate like that spinning on its vertical center using a rotatey effect.
Here is a snippet of code that does a door opening effect...
<camera x="0" y="0" />
<animation type="WindowOpen">
<effect type="rotatey" start="90" end="0" center="0,0" time="150" reversible="false" />
</animation>
I think in order to achive effect you want it would be something like...
<camera x="0" y="0" />
<animation type="WindowOpen">
<effect type="rotatey" start="0" end="360" center="auto" time="150" reversible="false" />
</animation>
not sure if the camera x and y should be the center of image also but hopefully thats a starting point.
Posts: 3,379
Joined: Feb 2009
Reputation:
15
mcborzu
Skilled Skinner
Posts: 3,379
Thx for the answer, tried playing with it but those type of effects are above my head right now. I was just changing values and guessing not really understanding what I was doing but good to know its possible just got to get the basics down so I know what I'm doing instead of just guessing...thx again.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Basically:
1. The camera coordinates specify where the camera is - the camera always looks straight into the screen, so it defines where the perspective begins.
2. The y axis is vertical and x axis horizontal. The z axis points into (or out of - I can't recall the direction offhand) the screen. rotaten rotates about the n-axis, i.e. the axis is held fixed, and all points rotate around it.
3. rotatey then will rotate about a vertical line. rotatex rotates about a horizontal line, and rotatez rotates about a line pointing into the screen (e.g. like the hands on a clock).
4. The center position defines where that line exists in (x,y,z) space. The most obvious is for the rotatez, where it defines the center of the clock.
5. The start and end are in degrees, and times as always are in milliseconds.
Some pictorial examples (eg some anim gifs perhaps?) would be useful. It's easiest to get the hang of by ignoring the camera at first and moving a rotatex or rotatey around the screen by altering the center.
Note that the camera position is meaningless for a rotatez, as there is no depth being used (z is always fixed).
Cheers,
Jonathan