• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Picking and Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Dependent values that are not iVars
  • Next by Date: Re: Dependent values that are not iVars
  • Previous by thread: Re: Dependent values that are not iVars
  • Next by thread: Menu items unexpectedly disabled
  • Index(es):
    • Date
    • Thread