Hi Oscar,

In this case I think you approach to create a very big circle texture to draw only a small section of it as a bend horizontal line.

The better way would be not to make the image bigger, but to fiddle around with the coordinates and values that places the circle in the image.

I would make the "Image Crop" the same size of the QC view (with a "Render Dimension" patch). Then move the center of the circle in the image by adding some value to this line in the CI kernel:

float x = samplerCoord(image).x - diameter/2.;
float y = samplerCoord(image).y - diameter/2. + moveDown;

Now you can put in big numbers for the "diameter" an the "moveDown" parameter without having to have a big texture.

See attachment:

Attachment: CoreImage circle size Achim.qtz
Description: application/quartzcomposer


(also changed the sprite to a billboard, because everything is 2D)

Best,

Achim Breidenbach
Boinx Software


On 20.08.2010, at 21:56, Oscar 'offonoll' wrote:

True, it may be big but I wanted to create a 'floor' with 10 unit size or 'infinite dim' so I could see a nice horizontal line with a small curve. But I could use a fixed size...  true! but this CI has a open edge that when it is open I see big pixel squares.
I understand your explanation, it's very reasonable.
Noise Industries also have a circle but it doesn't happen this error.

Thank you for the explanation!

On Fri, Aug 20, 2010 at 21:39, Achim Breidenbach <[email protected]> wrote:
Hi Oscar,

to me it seems that you uses way to big textures. Looking at the "Crop Width" and "Crop Height " parameter of the "Image Crop" Patch, you are generating images bigger than the "maximum texture size" usable in the graphics card. If so, QC has to "tile" the image into multiple textures which then will cause those things because your core image filter is running on each texture separately.

Interesting question is, why you are using those big textures? Some how your "Sprite" patch is drawing the sprite at z=-10 which means far far away in the back of your computer screen. Then to see at least some pixels of your image, the image has to be very big. But changing the z parameter of the sprite patch to 0, you can enter a reasonable "End Value" in the "Interpolation" patch, e.g. 0.7

Best,

Achim Breidenbach
Boinx Software


On 20.08.2010, at 19:23, Oscar 'offonoll' wrote:

> Hello everyone!
> I got a wired reaction in Rendering a CoreImage Circle that I tweak a bit from Christopher. I put a diameter viariable to get a better real size but depending on the size, It flips half of the image.
>
> Do you know what is the reason?
>
> Thank you!
>
> Oscar.
> <CoreImage circle size.qtz> _______________________________________________
> 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/achim%40boinx.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