On Dec 18, 2009, at 12:27 PM, jon klein wrote:

 simple approach is to code each object in the scene with a unique
color, render the scene with all lighting, blending, etc turned off,
then readback the single pixel at the desired coordinates.  For the
unique colors, you can just increment an integer counter and pull out
R, G, B values for each object.

If the depth buffer is turned off, would you be able to read all pixels at a particular location? I need access to all objects with a pixel at a location not just the top most.

--Richard

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to