Hello,
I am looking to do the following and was wondering if anyone could provide some insight.
1. Have a background image of an object (say a dog)
2. Have a CALayer positioned ontop of the dog layer
3. Have a small pointer image on this top layer (drawLayer)
4. Have user trace the image
5. Export this CALayer into a movie, so the user can watch the path they traced.
Can I just have this code (pseudo)
On TouchMove{
drawLayer.position = currentTouchPosition;
}
Then render the "tracing" overtop the picture, to create a movie using
AVMutableVideoComposition.animate AVVideoCompositionCoreAnimationTool
and export it using the usual methods...
I guess, what I'm really asking, is do I need to do more in the "On TouchMove" event? or is simply updating the position whenever that event fires enough to create the animated path for that CALayer?
Hopefully that makes sense.
Thanks!
I am looking to do the following and was wondering if anyone could provide some insight.
1. Have a background image of an object (say a dog)
2. Have a CALayer positioned ontop of the dog layer
3. Have a small pointer image on this top layer (drawLayer)
4. Have user trace the image
5. Export this CALayer into a movie, so the user can watch the path they traced.
Can I just have this code (pseudo)
On TouchMove{
drawLayer.position = currentTouchPosition;
}
Then render the "tracing" overtop the picture, to create a movie using
AVMutableVideoComposition.animate AVVideoCompositionCoreAnimationTool
and export it using the usual methods...
I guess, what I'm really asking, is do I need to do more in the "On TouchMove" event? or is simply updating the position whenever that event fires enough to create the animated path for that CALayer?
Hopefully that makes sense.
Thanks!