Re: Picking and Selection
Re: Picking and Selection
- Subject: Re: Picking and Selection
- From: Richard Somers <email@hidden>
- Date: Fri, 18 Dec 2009 12:42:32 -0700
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 (email@hidden)
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:
This email sent to email@hidden