I haven't tried posting touch events into the web view, but it should be possible. Here's the same project with a htmlTexture and a live camera texture. The live camera texture comes from the offscreen 3GS camera preview and is updated once per Update(): The "goodbye" button on the phone appears as blue here, but is really red, so it looks like I've got the pixel byte order wrong.
wow cool ! i only figured it out to load external images as a Texture but with click function would be awesome ! When do you release it ? thanx kerstin
With the live camera view and compass, you can make a sort of crude augmented reality: You can see I've got a cube floating above the half-eaten muffin on my messy desk. (The muffin is a disgusting blue due to the red and blue channels being swapped in the live camera texture.) The background live camera view is a material on a plance parented to the camera. The camera is rotated to match the current compass heading. As the phone is rotated, the cube rotates out of the view. As AR goes it's not so great, but it's basically the same technique that some games already in the app store use (i.e. Fairy Trails). Actually Fairy Trails is sticking a transparent composited EAGLView into the actual camera preview, while this is making the camera preview into a texture for using in a full-screen EAGLView with no compositing, so the framerate this way might be better.
AR is very magic. this can be added to EP? Give a mark,give a model,AR Completed, then it is too good :wink:
It's so cool,Sir. Can I open the iPhone's Camera just in Unity3 or have to write a Object-C plug-in in Xcode? I am looking for some sample code or toturial about "Apply Augmented Reality to Mobile Serious Game on iPhone" But I only found how to load the GPS location have no the Camera. Can you teach me or give me a tip? Thank you very much. I'm sorry about my English.
hi bilprob, worked the iphone camera in this scene in real time? if yes, please briefly explain how u convert the image data from xcode to Unity Texture2D?? thank u
I hope development will resume on this. We could really use it If this were ever released on the Asset Store we'd be happy to pay for it.