Jonathan, The image origin doesn't actually refer to the 'position on screen', it refers to something more like the 'texture offset', which is sometimes useful (and sometimes a real pain) when you're doing core image processing. It generally doesn't affect the position you see the image, but if you're doing things like adding one image over another image it can be important as it affects the position there.
The 'position on screen' will depend more on where you're telling it to draw (as you have to give the sprite/billboard/etc. a position and a size for it to draw), so you should actually already have the position. E.g. if you have a billboard at position 0.25, 0.25 and size 0.5, 0.5 you just need to test if the mouse is in the range x 0 to 0.5 on x and 0 to 0.5 on y. Let me know if you need help with something more specific. Chris 2009/1/12 Jonathan Selander <[email protected]> > Hi, i'm trying to find where in the view an image is positioned, but image > origin always reports 0. I read in the doc that it's like this if the > dimensions are infinite, but what does that really mean? > > I'm trying to create a patch that determines whether or not the mouse > cursor is over the image. > > Thanks > _______________________________________________ > 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]

