forked from jeromeetienne/AR.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'babylonjs-cleanup' into dev
Conflicts: babylon.js/README.md babylon.js/src/babylon-ar.js contribs/portableAR.js/build/portable-ar.js
- Loading branch information
Showing
16 changed files
with
379 additions
and
410 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This folder is showing how to use AR.js on babylon.js |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
watch: build | ||
fswatch -0 src/*.js ../../three.js/src/*/*.js | xargs -0 -n 1 -I {} make build | ||
|
||
.PHONY: build | ||
build: | ||
(cd ../../three.js/ && make build) | ||
cat \ | ||
../../three.js/examples/vendor/three.js/build/three.js \ | ||
../../three.js/build/ar.js \ | ||
src/portable-ar.js \ | ||
> build/portable-ar.js | ||
|
||
minify: build | ||
uglifyjs build/portable-ar.js > build/portable-ar.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# AR.js repackaged to be easy to port | ||
|
||
This is a repackaged AR.js specifically repackaged to be super easy to port. | ||
|
||
# How to use | ||
|
||
First create the class | ||
|
||
```js | ||
// create a easyARjs instance | ||
var easyARjs = new EasyARjs(webglCanvas, { | ||
// debugUI : true, | ||
// renderThreejs: true | ||
}) | ||
``` | ||
|
||
Second update it on every frame | ||
|
||
```js | ||
// on every frame, be sure to update easyARjs | ||
easyARjs.update() | ||
|
||
// now easyARjs.cameraProjectionMatrix is the projection matrix for the camera | ||
// - it is a matrix4x4 as an Array(16) | ||
|
||
// now easyARjs.cameraTransformMatrix is the tranform matrix for the camera | ||
// - it is a matrix4x4 as an Array(16) | ||
``` |
File renamed without changes.
Oops, something went wrong.