Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Drawing on top of the video frame

Drawing on top of the video frame
Thread Tools
Forum Regular
Join Date: Dec 2002
Status: Offline
Reply With Quote
Sep 12, 2003, 03:59 PM
 
Anyone know how to draw directly on top of the video frame? I posted asking this several months ago, but the project got put on the back-burner. I saw this today and it got me interested again.

http://www.geethree.com/s6demopages/s6whiteboard2.html


This is exactly what I want to do. Nothing fancy. But I want to incorporate it into my own code, so buying the plugin isn't really a good option.

Anyone have an idea?

Thanks!
     
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status: Offline
Reply With Quote
Sep 12, 2003, 06:09 PM
 
I've tried to draw over an NSMovieView before and I couldn't do it. I have two ideas on it though.

1. you can take individual frames from a quicktime movie and copy them to an NSImage, then put that in an NSImageView and draw on it there

2. you could create a transparent track in the qt movie itself. I don't know how to do that in code

I'd be interested to know what you end up doing
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Sep 12, 2003, 08:07 PM
 
Here's one possible solution.

1) Don't use NSMovieView.
2) Draw your movie to an NSOpenGLView as a texture on a quad.
3) Do whatever you want with it.

Especially check out Apple's "OpenGLCompositorLab" sample code.
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Sep 19, 2003, 04:24 AM
 
Another solution:

look at the brand new sample code for exactly this:

http://developer.apple.com/samplecod...ie_Overlay.htm
     
eScrib  (op)
Forum Regular
Join Date: Dec 2002
Status: Offline
Reply With Quote
Sep 24, 2003, 11:48 AM
 
Originally posted by arekkusu:
Another solution:

look at the brand new sample code for exactly this:

http://developer.apple.com/samplecod...ie_Overlay.htm
Oh baby!!!!!!

I'll have to try this tonight when I get home!!!!!!

w00000000000000000t!

Thanks!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:09 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2