-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first image tracking example to get started
- Loading branch information
1 parent
0757981
commit e89200d
Showing
4 changed files
with
671 additions
and
4 deletions.
There are no files selected for viewing
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,53 @@ | ||
<script src="https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/aframe-master.min.js"></script> | ||
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script> | ||
|
||
<style> | ||
.arjs-loader { | ||
height: 100%; | ||
width: 100%; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
background-color: rgba(0, 0, 0, 0.8); | ||
z-index: 9999; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.arjs-loader div { | ||
text-align: center; | ||
font-size: 1.25em; | ||
color: white; | ||
} | ||
</style> | ||
|
||
<body style="margin : 0px; overflow: hidden;"> | ||
<!-- minimal loader shown until image descriptors are loaded --> | ||
<div class="arjs-loader"> | ||
<div>Loading, please wait...</div> | ||
</div> | ||
<a-scene | ||
vr-mode-ui="enabled: false;" | ||
renderer="logarithmicDepthBuffer: true;" | ||
embedded | ||
arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;" | ||
> | ||
<a-nft | ||
type="nft" | ||
url="scan/bogy_logo_blau.png" | ||
smooth="true" | ||
smoothCount="10" | ||
smoothTolerance=".01" | ||
smoothThreshold="5" | ||
> | ||
<a-entity | ||
gltf-model="show/trex-scene.gltf" | ||
scale="5 5 5" | ||
position="50 150 0" | ||
> | ||
</a-entity> | ||
</a-nft> | ||
<a-entity camera></a-entity> | ||
</a-scene> | ||
</body> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.