This doesn't answer your question, has probably already been done, and doesn't scale dynamically. But it is a javascript implementation of mouse detection and basic collision detection, for use as a temporary solution if you end up needing it.

Attachment: Mouse Detection.qtz
Description: application/quartzcomposer




Namaste,
Karan

Karan "The Architect" Lyons: Web Design & Development at Geek Ramblings | Student | Omnigeek contact | email: [EMAIL PROTECTED]| cell: 857-544-9527 | skype: taoofkaran | aim: taoofkaran



On Apr 10, 2008, at 7:00 PM, Adrian Ward wrote:

Here's a question that I'm not sure is worth asking but I'm going to anyway...

How possible would it be to be able to assign specific IDs to sprites, billboards and other rendering objects, and then be able to query which (if any) of those IDs was frontmost at a specific coordinate in the current view? ie. like finding which object the mouse is currently over. Doesn't OpenGL provide glLoadName() and glSelectBuffer() for this purpose?

Obviously I could do a lot of manual implementation by getting a JavaScript controller to manage what gets rendered where, and then get it to perform collision detection against a passed coordinate, but I'm not convinced it would be robust or efficient enough for proper use.

It would sure make implementing dynamic interfaces easier. Any chance this feature could be considered by our fellow Apple list members? This has been filed as a Feature Request at rdar://5856560

Cheers,



Ade.

_______________________________________________
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/karan%40geekramblings.com

This email sent to [EMAIL PROTECTED]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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