Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Picking



on 12/25/02 12:28 AM, Dan Herman at email@hidden wrote:

> About all you can do is project back into world space via gluUnProject.

I thought about this, however, this still won't return precise data.
GL_SELECT does not return the actual z coordinate of the pick - it only
returns the min/max zbuffer z-coordinate of the polygon in question.
Therefore, unProjecting the screen pick coordinate will only put me in the
ballpark since I do not know the legit z value.

I suppose I could just average the z values I get from GL_SELECT and then
just unproject that. That'll at least get me coordinates that are close as
long as the polygons are small.

-Brian

_________________________________________________________
Brian Greenstone
President & CEO email@hidden
Pangea Software, Inc. http://www.pangeasoft.net
12405 John Simpson Court voice/fax: (512)266-9991
Austin, TX 78732
_________________________________________________________
_______________________________________________
mac-opengl mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-opengl
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Picking (From: Dan Herman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.