Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

3D coordinate system problem



Hi, all

I use a Sprite to render a image, and then I rotate the Sprite (by
changing X Rotation). Then I wanna the image rendered on the rotated
Sprite to interact with the mouse event. For example, if I click the
mouse at some point with in the image, then the portion aroud that
point of the image will be changed(by some filter for example) to
respond the click.

Now, the problem is how to translate the point at which the mouse
clicked, to the real point at the Sprite? I do know the QC use "a
three-dimensional homogeneous coordinate system" with X, Y, Z with in
the range [-1, 1], but I don't know how to translate. Because the
rotated Sprite will be perspectively transformed.

I hope I have stated the problem clearly.

Can anyone know what I am saying and help me out? Thanks!

--
Ben Chen, Apple Technology Lab of Software Engineering School, Tongji University
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.