patch like "render line" with image input??

shaker08's picture

hi from spain!! that is my first post here i hope that the people answer it jejeje.. so im looking for a patch like render line" with "xy" start and end position and a image input to watch a video or a picture thru the line.

THANKS FOR THE SUPPORT!!!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

usefuldesign.au's picture
Re: patch like "render line" with image input??

Why can't you just use a sprite for this. Use some maths to determine posX, posY, rotationZ, width and height from your line co-ordinates. How you show a video inside a line I'm not sure. Perhaps I'm misunderstanding your intention?

shaker08's picture
Re: patch like "render line" with image input??

hi again!! thanks "usefuldesign.au" the answer of my question is GL line,have xy start and end position and image input,but this patch doesnt work fine for me because the "width" of the line stop when arrive to the 9 value...over this value nothing happens..somebody can help me please?? THANKS!!

smokris's picture
Re: patch like "render line" with image input??

In Leopard (but not Snow Leopard..) there is a developer example called "AALine.qtz" which produces an image containing a line of specified width.

You can use this as a Billboard Mask on another image --- see the attached composition.

PreviewAttachmentSize
aaline-mask.qtz4.15 KB

cybero's picture
Re: patch like "render line" with image input??

GL Quad - not a line of course, but definitely will give you a space that will show the movie as is if you size it correctly in its positionals.

Find attached an example that puts a streaming movie into a GL Quad. They can be coloured up and resized on the fly.

PreviewAttachmentSize
SimpleStreamingIntoGLQuad.qtz38.2 KB

cybero's picture
Re: patch like "render line" with image input??

That offers some nice formatting facilities with the AA giving an edge blur.

usefuldesign.au's picture
Re: patch like "render line" with image input??

Hey Cybero

Thats some nice Penrose Tiling (to go totally OT). Did you make that movie? (if so how?)

I happen to live in a city (Melbourne, AU) that probably has more building facades employing to Penrose Tiling than any other in the World — leaving aside Islamic surface motifs which predate the Penrose mathematics by centuries.

cybero's picture
Re: patch like "render line" with image input??

Cheers, usefuldesign.au - the streamed movie is made up of a Mesh Filtered .dae file GeorgeHart.dae ( from the Google 3D Warehouse by TaffGoch ) and was output via Quartz Crystal.

usefuldesign.au's picture
Re: patch like "render line" with image input??

TaffGoch! His stuff is great. I was trying to port his Geodesic models into QC3 (which I'm still stuck on) as point cloud data. I started with a Blender export of (x,y,z) co-ords for a dome somebody exported from blender. Never got the (x,y,z) data out of his Sketchup models despite several cross-application attempts.

QC4 meshes to the rescue, although QC4 sounds like the bleeding edge as far as meshes go at the moment. I was hoping OpenCL would be all my wishes for programatic model manipulation in a user friendly wrapper — sounds a bit scarry ATM.

So you did this with a mesh filter manipulating an imported model's geometry if I understood you(?) – oh I have to get QC4 now despite the heavy GUI.

cybero's picture
Re: patch like "render line" with image input??

Correct - it's a static .dae file manipulated positionally, etc in QC 4 using a Mesh Filter and some Patch Time stuff, almost 70% as the Mesh Filter Template produces a blank Mesh Filter composition, all else was just added in, configured, Interpolated and then exported via Quartz Crystal as a QT movie.

shaker08's picture
Re: patch like "render line" with image input??

hi guys!! thanks for the help!! but im still with the new problem...GL line is the patch that i was looking for but the parameter "width" doesnt work fine for me..(im thinking to post a bug report) when i put a value over 9 in the width" it does not increase...can somebody try it please?? i need a fat line to show a image inside.thanks people!!!

PD: after i install GL tools COGE vj aplication crash when i start it..

cwright's picture
Re: patch like "render line" with image input??

post the crash log for CoGe (.lov.'s the author of it, and he's here often)

The width is hardware-dependent -- each GPU will stop rendering at different points (usually 8 or 16), and there's nothing that can be done to work around that short of writing our own graphics library (not happening).

If you're needing thicker lines, you might as well just use masking (mask input on the Sprite or Billboard patch), instead of drawing lines.