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.
IndexProgramming Questions & HelpSyntax Questions › I am crying plz help
Page Index Toggle Pages: 1
I am crying plz help (Read 756 times)
I am crying plz help
May 18th, 2008, 10:47am
 
I found strokeWeight does not work on P3D, then I use OPENGL, but I found the tint does not work on OPENGL then I use P3D, but I found the MovieMaker does not work on P3D, then I use OPENGL ...

Could anyone help me?
The processing is getting worse.

Xer
Re: I am crying plz help
Reply #1 - May 18th, 2008, 6:33pm
 
sorry, I couldn't help but laugh at your frustration as I read your post. Sorry, I'll try and help.

What is it you're trying to do? you might be able to do it by using openGL directly. for example, you could use openGL to create a surface to draw to, and then recolour the surface, in place of the tint command?
Re: I am crying plz help
Reply #2 - May 19th, 2008, 7:37am
 
I was trying to render a polygon with tinted texture and strokeWeighted outline onto a mov file.

However, it is not that straight forward.

Thx, anyway.
Re: I am crying plz help
Reply #3 - May 19th, 2008, 11:09am
 
wipe your tears and use the search when you look for something.

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1211032462
Re: I am crying plz help
Reply #4 - May 23rd, 2008, 8:01am
 
is it releated? I just want to output to a mov file
Smiley
Re: I am crying plz help
Reply #5 - May 23rd, 2008, 9:55am
 
You are looking for MovieMaker library, there is an example as well.
I recently made a test of the various options, so you can see another example at Test of MovieMaker video type.
Re: I am crying plz help
Reply #6 - May 23rd, 2008, 10:36am
 
MovieMaker *does* work with P3D.. and OpenGL.. so if you're having problems getting it to work, then it's  a bug in your code, and you'll have to post it for us to be able to help.
Re: I am crying plz help
Reply #7 - May 25th, 2008, 8:38am
 
If you could render a tinted,using tinted(), texture polygon, using texture(), with strokeweight, using strokeWeight(5) outline onto a mov file, using MovieMaker(), I will be speechless. However, I am hopeless.

thx anyway
Re: I am crying plz help
Reply #8 - May 25th, 2008, 11:02am
 
Post some code then and we'll try.
Re: I am crying plz help
Reply #9 - May 25th, 2008, 4:10pm
 
ok,
if you can see a transparent square, I'll ....

///////////////////////////////////////////////////
import processing.opengl.*;

PImage img;
float off_x, off_y;
void setup()
{
 int w,h;
 off_x=30;
 off_y=30;
 img = loadImage("ai_300_300.jpg");
 w = (int)(img.width+off_x*2);
 h = (int)(img.height+off_x*2);
 size(w,h,OPENGL);

 background(0);
 tint(255,0,0,25);
 strokeWeight(5);
 stroke(0,255,0);
 textureMode(NORMALIZED);
}
void draw()
{
 background(0);
 beginShape();
   texture(img);
   vertex(off_x,off_y,0,0);
   vertex(img.width+off_x,off_y,1,0);
   vertex(img.width+off_x,img.height+off_y,1,1);
   vertex(off_x,img.height+off_y,0,1);  
 endShape();
}
Page Index Toggle Pages: 1