We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
mouse in movieMaker (Read 389 times)
mouse in movieMaker
Nov 8th, 2008, 7:13pm
 
Hi! I'm looking for a way to keep the mouse arrow in the film that i'm exporting with the "movie maker" class.
Does someone knows how to do it?
It's realy important...
the refence web: http://processing.org/reference/libraries/video/MovieMaker.html
Sory for my english..
Re: mouse in movieMaker
Reply #1 - Nov 9th, 2008, 8:43am
 
It's my understanding that MovieMaker only renders things drawn by your processing application within the 'draw' loop to video. That means you'll need to draw the mouse cursor yourself.

On every frame, just draw something to represent your cursor at the mouse position after you're done drawing everything else you want to draw. Since you are drawing the cursor yourself, you can make it look however you want. You can even make its appearance vary when the mouse is clicked, as below.

Code:

void draw(){
//draw your things

//draw the mouse as a transparent red circle
noStroke();
fill(255,0,0,127);
if( mousePressed ) fill(255,0,0); //solid red when mouse is pressed
ellipse(mouseX,mouseY,10,10);

movieMaker.addFrame();
}
Page Index Toggle Pages: 1