Skip navigation
Currently Being Moderated

Draw over a digital video

Aug 12, 2012 5:18 AM

Hello:

Do you know how to draw simple lines or circles... over a video (quicktime, mpg, avi...)?

When pause the video, draw over the selected image on the video. And when play the video again draws dissapear.

 

Many thanks for you support.

 
Replies
  • Currently Being Moderated
    Aug 12, 2012 5:44 AM   in reply to anjemalo

    You can create a black-and-white mask member for your QuickTime sprite. You can place a bitmap sprite behind the QuickTime Sprite, and the colours in that sprite will appear through the QuickTime video. You can use Imaging Lingo to change the image of the mask member and of the bitmap sprite on the fly. This will give you the effect of an opaque drawing on the QuickTime sprite although in fact you are simply punching holes in the video to show a drawing behind it.

     

    The Help article says:

    For best results, set a QuickTime cast member’s mask property before any of its sprites appear on the Stage in the on beginSprite event handler. Setting or changing the mask property while the cast member is on the Stage can have unpredictable results (for example, the mask may appear as a freeze frame of the digital video at the moment the mask property took effect).

     

    We created a project in Director MX 2004 (D10) back in 2005, that made extensive use of this technique, with no sign of any unpredictable results. It can be done.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2012 1:39 PM   in reply to anjemalo

    Did you follow the mask member link in James' reply? It explains how you set the mask property of a #quickTimeMedia member.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2012 1:47 PM   in reply to anjemalo

    It's a 1-bit mask (black and white) which should be the same pixel dimensions as the video sprite. Changing which pixels in the mask are black and which are white will change which pixels in the video sprite are rendered to the screen and which are left transparent.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points