Page 1 of 1

Rotation as an animation

Posted: Wed May 18, 2011 2:57 pm
by richardPVP
I want an image of a circle with a pattern on it to rotate on screen. (The context is looking down on the north pole of the earth - an irregular pattern on the circle representing the ice- and seeing the earth rotate, showing where it is daylight and where it is night-time.)

I have tried using a photographic image and using a repeat of the rotate function moving 1 degree each time but the image quality just degrades as the image rotates. I also have failed to get a graphic to move using the rotate function.

Could someone please offer some guidance.

Many thanks

Richard

Re: Rotation as an animation

Posted: Wed May 18, 2011 3:03 pm
by SparkOut
rotate by is a command, and performs an operation on the target object to change the renderable data. Repeated issues of the rotate command will be destructive to the original image.

the angle of an image is a property that you can set, where it has no effect on the image data but is used by the rendering engine to display the image at a particular angle of rotation.

Rather than

Code: Select all

rotate image "theWorldFromAbove" by 1
you could

Code: Select all

set the angle of image "theWorldFromAbove" to the angle of image "theWorldFromAbove" + 1
HTH
SparkOut

Re: Rotation as an animation

Posted: Mon Aug 27, 2012 11:16 am
by Surbhit29
Hi SparkOut,

Is it possible to rotate group of objects? Is it posible to treat a group of objects as one object and then rotate all of them to a particular angle?
For eg. If I have an object "Oval" and in that different other objects such as Rectangle, line, polygon etc. Now is there any way to rotate the Oval as well as the objects inside it all at once?

Surbhit

Re: Rotation as an animation

Posted: Thu Aug 30, 2012 9:33 am
by jmburnod
Hi Surbhit,
s it possible to rotate group of objects?
Yes.Have a look to the stack in attachment
It work with polygons only but that is maybe a start for your experiments

Best regards

Jean-Marc

Re: Rotation as an animation

Posted: Thu Aug 30, 2012 1:53 pm
by Surbhit29
Thanks Jean-Marc
That helped a lot. :)