- Home /
Augmented reality on Web player
Hi. I've been trying to make a web app by which a user scans through webcam and can try Jewelry and other other accessories on themselves. Most of the services who provide augmented reality services do not provide web based apps. Also it is ok if I don't have a marker at all. Any suggestions how I do it ? @tanoshimi @Bunny83 @Dreamora @FatWednesday
Answer by HenryStrattonFW · Jan 23, 2017 at 02:05 PM
@FatWednesday here (new/personal account). I've not used Vuforia recently enough to know if they support webcams for webplayer yet (I would like to think they do since they can support webcams for in-editor testing), but Vuforia is a really nice AR solution with a unity plugin.
But to answer the "no-marker" question. No this is not a problem as such but it does raise things to be aware of, I worked on a game with AR features a while ago, for our targeting we allowed the user to simply point their camera at a surface, take a picture, and use that target as the marker (This is a supported feature of Vuforia and I would hope any alternative solutions) So you can make markers at runtime instead of having to have pre-defined markers.
The things to keep in mind are good vs bad runtime markers, the best markers have lots of detail (good contrast, definable shapes/lines etc), Ideally are not a repeating pattern (this are actually harder to keep track of properly), and should be in a well lit lighting condition. Vuforia does provide some way to qualify the quality of a given image as a sort of low/medium/high enum (can't recall of the top of my head).
However though, is that you said you wanted to do this in order to have people accessorize? I'm assuming by this you mean like a digital AR mirror via the webcam? In this scenario you may want to consider facial tracking instead of marker tracking. This is because markers typically work best as flat surfaces with no parallax. However the human face (especially when turning which is likely in this scenario to look at earings etc) is bumpy and has depth that may cause a face to not track well as a marker.
Not a complete answer but hopefully this provided some useful information.
Your answer

Follow this Question
Related Questions
WebCam on Web Player 4 Answers
Switching to two different cameras with Vuforia ARCamera 0 Answers
Is it possible to render Unity graphics elements on top of iPhone / Android video feed? 2 Answers
EasyAR 3.1.0 - webcam black screen after updating to Unity 2021.1.18f1 0 Answers
texture2D wont render in webplayer 0 Answers