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?
For selection to work, each rendering patch would need to modify the opengl render mode (glRenderMode) to GL_SELECT. To produce output, it would then need to revert the rendermode to generate fragments. At the patch-level, each primitive you're interested in tracking will need to be modified to handle this new functionality. Alternately (a better solution, in my opinion), a macro patch could be made that would do this automatically. Unfortunately, official-API developers cannot legitimately create macro patches (yet), so you're again up against a wall. (I suppose it wouldn't be too impossible to make it with the unofficial api, but that's another story). -- oops, I forgot, macro patches with renderers inside can't have outputs. Another problem. *sigh*
You're right (as was Karan), JS can do this, but it's not very scalable. Looks like the only way out though, until Apple addresses your feature request.
-- [ christopher wright ] [EMAIL PROTECTED] http://kineme.net/
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]

