It's not resizing 'up' or 'down', it's showing them at 1 QC unit wide, which means it is half as wide as the window. Every image will show at that size by default. This way, you can lay out things on screen and not have them mess up when the window gets resized, because the image is always 1 unit (or half of the window) wide.

As I said, set the billboard to 'real size' in the settings if you want to work with pixel sizes, but remember that if the window resizes the billboard won't.

Chris



On 18 Aug 2009, at 11:27, [email protected] wrote:

Hi Chris, Tom,
It does seem a bit confusing. QC seems to by default resize the video input down. Also, by default it resizes other images up. I added a 1x1 pixel image feeding a billboard and it enlarged it to be a large block almost the same size.

I suppose it must do that so you have something visible to get started with.

Anyway that's enough to get me going.

Thanks,
Max


2009/8/18 Chris Wood <[email protected]>
QC uses two sets of measurements, which can be a bit confusing at first.

In some places it uses pixel sizes, so e.g. if you wanted to resize your video input you would resize it to say 320 x 240 pixels.

In other places it uses QC units, which let you position things on screen without worrying about what happens when the window gets resized. The view is 2 units wide, from -1 to +1, so 0 is in the centre. For height, 0 is in the centre, but the top and bottom depend on the aspect ratio, so for a wide window it's usually 0.6 or so.

So to get your image filling the window, just set the width to 2, and QC will handle resizing etc. 'Pixel aligned' just means that the image will be lined up to the nearest pixel - otherwise you might have it set so that it's "between pixels" which causes a little blurring.

You can also change the size mode in the settings of the billboard patch - 'real size' will draw it 1:1 on screen, so it will fill exactly 640x480 pixels, all the other modes use QC units.

Chris




On 18 Aug 2009, at 11:01, [email protected] wrote:

Hi Folks,
first, this is probably a fairly dumb question. I'm still trying to get to grips with QC fundamentals.

Basically, I'm playing round with displaying multiple images in the QC Viewer. I'm curious, how does it handle image sizes and resolutions?

I have video input which I believe from the built-in iSight camera is 640 x 480. The Viewer puts this as a default in the centre. It's about half the size of the Viewer window, and resizes automatically (see attached).

Any idea how this works? Or even if it's something I need to bother with? I have a look at Apple's documentation but it doesn't have much info. I see parameters like "Pixel Aligned" for the billboard renderer but there doesn't seem to be much info on what they do.

Many thanks,
Max
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/psonice%40gmail.com

This email sent to [email protected]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to