I study 3D on the iPhone, I managed to get a 3D cube on the device, but I would like to add interactivity, for example, touching one person causes a certain event, and the other person causes another event. I would rather avoid choosing a beam, as this adds extra complexity that I don't want in my application.
I read a few color selection tutorials, but there seems to be no specific tutorials for the iPhone or sample code on the Internet.
My main problem is to draw unique color objects in the back buffer and textured objects in the front buffer, never displaying unique color objects for the user, but detecting the color of the pixel touched from the back buffer.
So my question is: can someone point me towards the Objective-C tutorial or send me some sample code?
Any help or advice would be greatly appreciated.
source share