Hi Stefan, > 2. I'd like to get access to the camera in common mobile browsers using HTML5. > My latest information is that this in the specs of HTML5 but it's > currently only possible in Opera with a hack. > Correct?
Apache Cordova (nee Phonegap) gives you a JavaScript API that you can use to access the camera. The drawback (possibly) is that you need to compile your HTML5 app into native app to deploy it. Cordova's JS API polymorphically binds to the native API at compile time. The upside is they support all of the major smartphone platforms -- iPhone, Android, etc. <http://docs.phonegap.com/en/1.0.0/phonegap_camera_camera.md.html> For a pure HTML5 solution, you are looking for the getUserMedia() call. Desktop Chrome and Opera (Desktop + Mobile) support it OOTB, according to <http://caniuse.com/stream> Fun tutorial: <http://html5doctor.com/getusermedia/> Fun live demo: <http://www.quicksnapr.com/> There is a polyfill out there named getUserMedia.js <https://github.com/addyosmani/getUserMedia.js/tree/> that fails over to Flash if your browser doesn't support the JS natively. (Sadly, this doesn't help you on iOS.) Fun live demo: <http://addyosmani.github.com/getUserMedia.js/face-detection-demo/index.html> Both iOS 6 and Android.next claim they'll allow you to select existing photos out of your library using a standard [input type="file"] element, and the rumors continue to swirl that you might be able to actually take photos using it as well. <http://taitems.tumblr.com/post/24936855546/what-ios-6-mobile-safari-offers-front-end-devs> HTH, s Scott Davis [email protected] ThirstyHead: Training Done Right http://thirstyhead.com On Aug 23, 2012, at 4:31 PM, Stefan Keller <[email protected]> wrote: > Hi all, > > We are trying to implement two obvious things which seem to be hard or > almost impossible: > > 1. I simply want to display a realistic 3D object (like in .obj > format) representing a building or an architectural artefact. This > building has a fixed orientation (in contrast to other POIs which are > flat and "turn towards me"). > I've implemented two AR service providers, one for Layar and one for > Wikitude and failed. I also looked for other AR browsers like Junaio. > Wikitude (and I think Junaio too) can't deal with 3D objects. > In Layar I came close but what's getting displayed is me sitting > inside the building all the time and wherever I'm located with the > phone. > As last resort I tried to find a layer/world which could probably get > evidence that displaying realistic 3D objects and I failed too. > => Am I missing something in Layar (the support and community over > there is lousy)? > => Can somebody tell me, if he ever found a Layar layer which displays > 3D objects ("Aqueduc du Gier 3D" came close)? > => Does anyone know an freely available AR app which can display 3D > objects really? > > 2. I'd like to get access to the camera in common mobile browsers using HTML5. > My latest information is that this in the specs of HTML5 but it's > currently only possible in Opera with a hack. > Correct? > > S. > > _______________________________________________ > Geowanking mailing list > [email protected] > http://geowanking.org/mailman/listinfo/geowanking_geowanking.org
_______________________________________________ Geowanking mailing list [email protected] http://geowanking.org/mailman/listinfo/geowanking_geowanking.org
