Game Development Community

iPhone Camera Support

by Lake Watkins · in iTorque 2D · 11/11/2009 (6:07 pm) · 3 replies

Hi, after a quick search and a call to Torque, I'm still not sure if the iPhone's Real Camera is supported. I'm not talking about the programmatic camera, I'm talking about the physical device built into the iPhone. I already know how to use the iPhone SDK to put an OpenGL scene over top of the camera's input, but I'd like to know if I can do this in Torque 2D. If it's not built in, how feasible is it to write in the code myself? Thanks.

#1
11/12/2009 (3:36 am)
If you implement the corresponding UIKit functionality to use them, then you can use it. But you can' put 3D over the camera input, you will have to take the cam input as image and put in the background.

T2Di itself does not have any support for it.
#2
11/12/2009 (10:29 am)
Yeah, I ran into that problem with UIKit / OpenGL a few weeks ago, but I got around it. At the moment I just wanted to confirm that it's possible to access the existing frameworks like UIKit with OpenGL from within T2Di.

If it's not supported, I can write the code myself, but I need to know if it's at all possible before I move forward and buy T2Di.
#3
11/12/2009 (11:48 am)
You have full source code to it, so there is nothing that can't be done if you know how to program it.