Page 1 of 1

GluUnProject sample iOS project

Posted: Mon Nov 21, 2011 3:39 am
by Baker
In the summer, I was working on some select an object in 3D code (probably not that much different than DarkPlaces PRYDON_CURSOR) that didn't require the glu libraries but used some of Spike's code in FTE. I had a lot of different things I wanted to do and I end up drifting away from this (I was working on a very fancy menu).

Recently, I had found myself very much in need of this type of thing and was about ready to finish what I had written back in June and quickly realized I had forgotten some of what was obvious at the time and didn't have to time to work through all the details and rework my way through my notes (Frustum stuff, znear, the viewport, the projection matrix).

I did some Google searches and found a simple implementation of select an object in 3D for simple OpenGL:

http://blog.nova-box.com/2010/05/iphone ... ample.html