Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
OK folks, I think I've fixed the problem. Though I've only got the one mac here, so can't be certain. Those interested in animated superimposed moustaches, please find the code at: https://gist.github.com/1469659 To attempt a hi-definition facial appendage, use the following settings (appropri

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
there is something fishy here.. imac 27 with the isight of 2011 here, and the hack you posted still isn't fixed. 2011/12/20 Steve Clarke > Sounds like a good idea. How about screen size for starters? > > Steve > > On 19 Dec 2011, at 21:34, Jordan K. Hubbard wrote: > > > On Dec 19, 2011, at 8:3

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Steve Clarke
Sounds like a good idea. How about screen size for starters? Steve On 19 Dec 2011, at 21:34, Jordan K. Hubbard wrote: > > On Dec 19, 2011, at 8:37 PM, Matt Aimonetti wrote: > >> When I tried the live video script, the items weren't properly located >> either. > > Given that "it works on m

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Jordan K. Hubbard
On Dec 19, 2011, at 8:37 PM, Matt Aimonetti wrote: > When I tried the live video script, the items weren't properly located either. Given that "it works on my machine" and obviously Alan's as well, maybe people should start posting their hardware configurations along with the "it doesn't work

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Matt Aimonetti
When I tried the live video script, the items weren't properly located either. -m Sent from my iPhone On Dec 19, 2011, at 12:34, Alan Skipp 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

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Jordan K. Hubbard
FWIW, it works great for me on a MacBook air of fairly recent vintage. The stash even tilts as you tilt your face! Beauty. Sent from my iPhone On Dec 19, 2011, at 16:34, Alan Skipp wrote: > Hmm… curious. > The positioning code could certainly do with some refinement, but from my > testing i

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
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 wrote:

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
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 initialisin

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
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 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

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
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

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
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 wrote: > Hi, > Could you create a new gist with your additions and post a link to it. > I'll then take a look

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
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 Vini

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
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