[MacRuby-devel] MacRuby challenge

Pavlos Vinieratos pvinis at gmail.com
Mon Dec 19 08:51:14 PST 2011


no matter which preset i try, the mustache is off by the same distance.
could you show me how it's showing up on your mac?
or even better, could you add a layer over each eye and mouth, with a bit
of color and alpha, like matt's original gist?


On Mon, Dec 19, 2011 at 6:37 PM, Alan Skipp <al_skipp at fastmail.fm> wrote:

> The only thing that I can think of which could account for the wrong
> positioning is the resolution of your webcam/isight. A resolution of
> 640x480 is assumed in the code, if your webcam is higher resolution then
> that could explain the discrepancy.
>
> Try adding the following line (after initialising the AVCaptureSession).
>
> session.sessionPreset = AVCaptureSessionPreset640x480
>
> Al
>
>
> On 19 Dec 2011, at 15:58, Pavlos Vinieratos wrote:
>
> this is what i mean.
>
> http://dl.dropbox.com/u/349788/Screen%20Shot%202011-12-19%20at%2017.56.35.JPG
>
> On Mon, Dec 19, 2011 at 5:34 PM, Alan Skipp <al_skipp at fastmail.fm> wrote:
>
>> Hmm… curious.
>> The positioning code could certainly do with some refinement, but from my
>> testing it's close enough for rock 'n' roll, as they say. Perhaps you added
>> the code to an existing project which set-up the window/view/layer slightly
>> differently? If not, then I'm confused also…
>>
>> Al
>>
>> On 19 Dec 2011, at 14:56, Pavlos Vinieratos wrote:
>>
>> the mustache is off even in your original gist. am i right? or is this
>> some kind of weird setup where its works on your mac and not on mine..
>>
>> On Mon, Dec 19, 2011 at 4:22 PM, Alan Skipp <al_skipp at fastmail.fm> wrote:
>>
>>> Hi,
>>> Could you create a new gist with your additions and post a link to it.
>>> I'll then take a look and see if I can discover the problem. It could be
>>> something to do with setting the anchorPoint on the CALayer, but that's
>>> just a wild guess at the minute.
>>>
>>> Al
>>>
>>>
>>> On 19 Dec 2011, at 13:42, Pavlos Vinieratos wrote:
>>>
>>> hello alan. i was playing around with your gist, but the glasses and all
>>> the extra layers are off. i positioned the layers over the face, but they
>>> always stay to the right of the face, and the distance they are to the
>>> right, is not even fixed. it comes closer to the face when i move to the
>>> left.
>>>
>>> i'm confused..
>>>
>>> On Tue, Dec 13, 2011 at 2:07 AM, Alan Skipp <al_skipp at fastmail.fm>wrote:
>>>
>>>> A bit late to the moustachioed party. But here is an attempt at the
>>>> live moustachification problem. The effect is perhaps more like being
>>>> pursued by a persistent tache, rather than wearing a tache. Those with more
>>>> powerful hardware (or less inclination to move around in front of the
>>>> camera) may have more convincing results.
>>>> I have stolen the moustache and moustache positioning method from the
>>>> previous submissions - I hope that's OK. With any luck there'll be
>>>> something worth stealing back from my submission.
>>>> No attempts as yet at recording the effect (AVFoundation is a scary
>>>> labyrinth).
>>>>
>>>> https://gist.github.com/1469659
>>>>
>>>> Al
>>>>
>>>> On 8 Dec 2011, at 09:23, Sean Mateus wrote:
>>>>
>>>> > Hi Pavlos,
>>>> > as we talked yesterday on twitter; I hope we can use this code
>>>> https://gist.github.com/1427886 as basis for the video version your
>>>> mustachification-script!
>>>> >
>>>> > you can ping me on twitter @seanlilmateus
>>>> >
>>>> >
>>>> > --
>>>> > Sean Mateus
>>>> > _______________________________________________
>>>> > MacRuby-devel mailing list
>>>> > MacRuby-devel at lists.macosforge.org
>>>> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>>
>>>> _______________________________________________
>>>> MacRuby-devel mailing list
>>>> MacRuby-devel at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Pavlos Vinieratos
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>>
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>>
>>
>>
>> --
>> Pavlos Vinieratos
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>>
>
>
> --
> Pavlos Vinieratos
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>


-- 
Pavlos Vinieratos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20111219/80bf540e/attachment.html>


More information about the MacRuby-devel mailing list