Giter VIP home page Giter VIP logo

threex.webar's Introduction

Augmented Reality For the Web

threex.webar shows how to get augmented reality using only web technologies. It is a threex extension for three.js. It provides easy to use extension to experiment with augmented reality and three.js. I did a presentation about it. You can find the slides here.

As an example, you can checkout "Hatsunemiku Dancing in Augmented Reality" demo. It is a funny application of threex.webar

A Screenshot

screenshot

How To Install It

You can install it via script tag

<script src='threex.jsarucomarker.js'></script>
<script src='threex.webcamgrabbing.js'></script>

Or you can install with bower, as you wish.

bower install threex.webar

How To Run The Demo ?

Supported Devices

  • It should run on any web browser which support WebGL and getUserMedia
  • It runs on desktop and mobiles.
  • modern phones, such as nexus 6/9, are powerfull enougth to run it
  • unfortunatly ios browser still lack support for getUserMedia, so iphone and ipads can't play :(

Show Don't Tell

youtube video

vine video

  • examples/contact-sharing-in-ar.html [view source] : It shows how to display informations on a per-marker basis. There is a database which contains the informations. When the proper marker is recognized, the info specific to this marker is displayed. In this example, we provide a contact sharing webapp. Everybody got his own marker. Suppose alice wears a specific marker. Bob load the apps on his mobile, and will see alice contact information when he point it to alice.

youtube video

How To Use It

threex.jsArucoMarker.js

It recognizes the marker in a video stream. It is then positioned in 3d. You just have to apply that to your own three.js meshes.

threex.webcamgrabbing.js

It handles the video grabbing. It will take the environment camera if it is available. It provides a nice see-through effect.

threex.webar's People

Contributors

eyn avatar jeromeetienne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

threex.webar's Issues

Best way to translate the projection ?

Hi,

I'm currently using threex.webar on a project. It's working fine, so thank you very much, it makes using Aruco with Three.js a lot easier.

Right now, I'm trying to make a projection (markerObject3D) based on a marker, but I want it to be next to the marker, not on it.

Here's how I achieved that, using Three.js translatex() :

function render() {

    translateMarker3D(markerObject3D);
        movieMaterial.update();
        backgroundTexture.update();
        effect.render(scene, camera)
}
function translateMarker3D(marker3D) {
       marker3D.translateX( 80 );
}  

The thing is : it kinda work. It flickers a lot, when it's great without transition.

I also tried to change aruco's returning values (in threex.jsarucomarker.js):

object3d.position.x = translation[0];

But it renders the same, flickering.

So my question is: what is the best way to make a projection next to a marker?

how to fix the augmented reality

hello again, thanks about the toturial you make now im trying using it :D hehehe, im trying to re-code it. i want the video not to large so i edited the webgrabbing.js so the video looks like below, but after i try it to AR it, the result is like this, the AR is not syncron, what should i do ?

hehehehe :D thanks for your time

yeah one think again :D if its not make a burden to you, where i can contact you if i want to ask about your AR ? just here or there is others place ? hehehehe sorry to make you uncomfortable :D

jerome

Multi Marker

Hi,
How to render multi object with multi marker at the same time ?

Reza

multiplied markers

hej. good job! congratulation.

I try to use it with stl loader together. with success.

I wonder how to display multiplied 3D objects when I put many cards with markers in camera view.
I thought this code will do so but it does not:

var markers = jsArucoMarker.detectMarkers(domElement);
markers.forEach(function(marker){
jsArucoMarker.markerToObject3D(marker, markerObject3D);
}

I see correct numbers of markers recognized by value: markers.length
for example 3 or 4, but only the one displays 3D stl object, the one closer to camera.

any idea?

Use with Cordova?

Question: Seeing as how cordova-based hybrid and cross-platform applications expose system functionality but still utilize web technologies - could this library be tuned to work with iOS as well as Android based platforms via a cordova setup? There are even cordova-based plugins such as this one that expose the full WebRTC JS APIs for iOS. I'm wondering if your library could be made to work in this sort of scenario - and I would love helping in anyway I can to provide an extension for this library if necessary. Thanks!

Using the threejs postprocessing

Hey,
I'm a relative noob at this stuff and i couldn't get it to work but maybe you know how.

I'm trying to use the default threejs post processing and composer things, but i just cant get them to work together with threex.webar

how would you go about it?
thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.