JamesLMilner / THREEAR

A marker based Augmented Reality library for Three.js
https://jameslmilner.github.io/THREEAR/
172 stars 24 forks source link

Port all relevant examples from ar.js #17

Open JamesLMilner opened 5 years ago

JamesLMilner commented 5 years ago

And also add them to the index page

martinloretzzz commented 5 years ago

A list of some other ar examples: https://stemkoski.github.io/AR-Examples/

I will make the hole in the floor and maybe a portal example soon.

vince7844 commented 5 years ago

Hello JamesMilnerUK,

I'm using your library for a project but I see that I can only display a 3D Object with PatternMarker.

Is it possible to display a 2D Object as a picture, for exemple with ImageLoader class from Three.js ?

Or maybe is there a way to test ImageTexture as implemented with AR.js examples ?

Thank you in advance for you answer.

martinloretzzz commented 5 years ago

You can generate generate an https://threejs.org/docs/index.html#api/en/geometries/PlaneBufferGeometry with the texture of the material set to the image

Something like that with PlaneBufferGeometry https://github.com/mrdoob/three.js/blob/master/examples/webgl_loader_imagebitmap.html

vince7844 commented 5 years ago

Thank you, it works :)

I guess it's possible to implement 3D Text too with TextGeometry from Three.js ?