Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
cqiang1993
AR.js
提交
30cc7426
A
AR.js
项目概览
cqiang1993
/
AR.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AR.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
30cc7426
编写于
5月 03, 2017
作者:
J
Jerome Etienne
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more work
上级
fb39064c
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
60 addition
and
60 deletion
+60
-60
three.js/examples/ar-in-webvr.html
three.js/examples/ar-in-webvr.html
+5
-5
three.js/examples/arcode.html
three.js/examples/arcode.html
+1
-1
three.js/examples/basic.html
three.js/examples/basic.html
+5
-5
three.js/examples/deadreckoning.html
three.js/examples/deadreckoning.html
+7
-7
three.js/examples/holographic-message/index.html
three.js/examples/holographic-message/index.html
+3
-3
three.js/examples/liquid-marker/index.html
three.js/examples/liquid-marker/index.html
+3
-3
three.js/examples/markercloak.html
three.js/examples/markercloak.html
+5
-5
three.js/examples/markerroot.html
three.js/examples/markerroot.html
+5
-5
three.js/examples/measure-it.html
three.js/examples/measure-it.html
+7
-7
three.js/examples/mobile-performance.html
three.js/examples/mobile-performance.html
+6
-6
three.js/examples/parameters-tunning.html
three.js/examples/parameters-tunning.html
+5
-5
three.js/examples/profile.html
three.js/examples/profile.html
+2
-2
three.js/examples/shadow.html
three.js/examples/shadow.html
+5
-5
three.js/examples/worker_scratch/examples/worker.html
three.js/examples/worker_scratch/examples/worker.html
+1
-1
未找到文件。
three.js/examples/ar-in-webvr.html
浏览文件 @
30cc7426
...
...
@@ -136,11 +136,11 @@
// // to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// // to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -153,7 +153,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
maxDetectionRate
:
30
,
canvasWidth
:
80
*
3
,
...
...
@@ -183,8 +183,8 @@
scene
.
add
(
markerRoot
)
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
//////////////////////////////////////////////////////////////////////////////
...
...
three.js/examples/arcode.html
浏览文件 @
30cc7426
...
...
@@ -214,7 +214,7 @@ hiroImage.onload = function() {
updateARCode
()
}
hiroImage
.
src
=
'
../
../data/images/hiro.png
'
;
hiroImage
.
src
=
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/images/hiro.png
'
;
function
updateARCode
(){
var
urlQrCode
=
document
.
querySelector
(
'
#urlQrCode
'
).
value
...
...
three.js/examples/basic.html
浏览文件 @
30cc7426
...
...
@@ -50,11 +50,11 @@
// // to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -74,7 +74,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
})
// initialize it
...
...
@@ -100,8 +100,8 @@
// init controls for camera
var
markerControls
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
camera
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
// as we controls the camera, set changeMatrixMode: 'cameraTransformMatrix'
changeMatrixMode
:
'
cameraTransformMatrix
'
})
...
...
three.js/examples/deadreckoning.html
浏览文件 @
30cc7426
...
...
@@ -68,11 +68,11 @@
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -92,7 +92,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
canvasWidth
:
80
*
4
,
canvasHeight
:
60
*
4
,
...
...
@@ -122,8 +122,8 @@
if
(
false
){
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
}
else
{
var
deadReckoningControls
=
new
THREEx
.
DeadReckoningControls
(
markerRoot
)
...
...
@@ -136,8 +136,8 @@ if( false ){
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
knownPositionMesh
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
artoolkitMarker
.
addEventListener
(
'
markerFound
'
,
function
(
event
){
...
...
three.js/examples/holographic-message/index.html
浏览文件 @
30cc7426
...
...
@@ -200,11 +200,11 @@
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -255,7 +255,7 @@
var
markerControls
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
camera
,
{
type
:
'
pattern
'
,
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
// as we controls the camera, set changeMatrixMode: 'cameraTransformMatrix'
changeMatrixMode
:
'
cameraTransformMatrix
'
})
...
...
three.js/examples/liquid-marker/index.html
浏览文件 @
30cc7426
...
...
@@ -125,11 +125,11 @@
//
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -179,7 +179,7 @@
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
//////////////////////////////////////////////////////////////////////////////////
...
...
three.js/examples/markercloak.html
浏览文件 @
30cc7426
...
...
@@ -82,11 +82,11 @@
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -106,7 +106,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
imageSmoothingEnabled
:
false
,
maxDetectionRate
:
30
,
...
...
@@ -135,8 +135,8 @@
scene
.
add
(
markerRoot
)
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
//////////////////////////////////////////////////////////////////////////////////
...
...
three.js/examples/markerroot.html
浏览文件 @
30cc7426
...
...
@@ -57,11 +57,11 @@
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
sourceType
:
'
video
'
,
sourceUrl
:
'
../
../data/videos/headtracking.mp4
'
,
sourceUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/videos/headtracking.mp4
'
,
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -82,7 +82,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
})
// initialize it
...
...
@@ -107,8 +107,8 @@
scene
.
add
(
markerRoot
)
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
// patternUrl :
'../
../data/data/patt.hiro',
patternUrl
:
'
../
../data/data/patt.kanji
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.hiro',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.kanji
'
,
})
//////////////////////////////////////////////////////////////////////////////////
...
...
three.js/examples/measure-it.html
浏览文件 @
30cc7426
...
...
@@ -58,11 +58,11 @@
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -83,7 +83,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
})
// initialize it
...
...
@@ -111,8 +111,8 @@
scene
.
add
(
markerRoot1
)
var
markerControls
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot1
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
// add a gizmo in the center of the marker
...
...
@@ -133,8 +133,8 @@
scene
.
add
(
markerRoot2
)
var
markerControls
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot2
,
{
type
:
'
pattern
'
,
// patternUrl :
'../
../data/data/patt.hiro',
patternUrl
:
'
../
../data/data/patt.kanji
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.hiro',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.kanji
'
,
})
// add a gizmo in the center of the marker
...
...
three.js/examples/mobile-performance.html
浏览文件 @
30cc7426
...
...
@@ -57,14 +57,14 @@
var
arToolkitSource
=
new
THREEx
.
ArToolkitSource
({
// to read from the webcam
sourceType
:
'
webcam
'
,
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -84,7 +84,7 @@
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
maxDetectionRate
:
30
,
canvasWidth
:
80
*
3
,
...
...
@@ -112,8 +112,8 @@
scene
.
add
(
markerRoot
)
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
// patternUrl :
'../
../data/data/patt.kanji'
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji'
})
//////////////////////////////////////////////////////////////////////////////////
...
...
three.js/examples/parameters-tunning.html
浏览文件 @
30cc7426
...
...
@@ -210,11 +210,11 @@ body {
//
// // // to read from an image
// // sourceType : 'image',
// // sourceUrl :
'../
../data/images/img.jpg',
// // sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
//
// // to read from a video
// // sourceType : 'video',
// // sourceUrl :
'../
../data/videos/headtracking.mp4',
// // sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
// })
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -234,7 +234,7 @@ body {
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
canvasWidth
:
80
*
3
,
canvasHeight
:
60
*
3
,
...
...
@@ -261,8 +261,8 @@ body {
scene
.
add
(
markerRoot
)
var
artoolkitMarker
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
markerRoot
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
})
//////////////////////////////////////////////////////////////////////////////////
...
...
three.js/examples/profile.html
浏览文件 @
30cc7426
...
...
@@ -91,8 +91,8 @@
var
artoolkitProfile
=
new
THREEx
.
ArToolkitProfile
()
artoolkitProfile
.
sourceWebcam
().
hiroMarker
()
// artoolkitProfile.sourceVideo(
'../
../data/videos/headtracking.mp4').kanjiMarker();
// artoolkitProfile.sourceImage(
'../
../data/images/img.jpg').hiroMarker()
// artoolkitProfile.sourceVideo(
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4').kanjiMarker();
// artoolkitProfile.sourceImage(
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg').hiroMarker()
// artoolkitProfile.performance('desktop-fast')
if
(
localStorage
.
getItem
(
'
artoolkitPerformanceProfile
'
)
!==
null
){
...
...
three.js/examples/shadow.html
浏览文件 @
30cc7426
...
...
@@ -80,11 +80,11 @@ renderer.shadowMap.enabled = true;
// to read from an image
// sourceType : 'image',
// sourceUrl :
'../
../data/images/img.jpg',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/images/img.jpg',
// to read from a video
// sourceType : 'video',
// sourceUrl :
'../
../data/videos/headtracking.mp4',
// sourceUrl :
THREEx.ArToolkitContext.baseURL + '
../data/videos/headtracking.mp4',
})
arToolkitSource
.
init
(
function
onReady
(){
...
...
@@ -104,7 +104,7 @@ renderer.shadowMap.enabled = true;
// create atToolkitContext
var
arToolkitContext
=
new
THREEx
.
ArToolkitContext
({
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
,
imageSmoothingEnabled
:
false
,
// maxDetectionRate: 30,
...
...
@@ -134,8 +134,8 @@ renderer.shadowMap.enabled = true;
var
markerControls
=
new
THREEx
.
ArMarkerControls
(
arToolkitContext
,
camera
,
{
type
:
'
pattern
'
,
patternUrl
:
'
../
../data/data/patt.hiro
'
,
// patternUrl :
'../
../data/data/patt.kanji',
patternUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/patt.hiro
'
,
// patternUrl :
THREEx.ArToolkitContext.baseURL + '
../data/data/patt.kanji',
// as we controls the camera, set changeMatrixMode: 'cameraTransformMatrix'
changeMatrixMode
:
'
cameraTransformMatrix
'
})
...
...
three.js/examples/worker_scratch/examples/worker.html
浏览文件 @
30cc7426
...
...
@@ -8,7 +8,7 @@
type
:
'
ArToolkitContext
'
,
method
:
'
new
'
,
args
:
[{
cameraParametersUrl
:
'
../
../data/data/camera_para.dat
'
,
cameraParametersUrl
:
THREEx
.
ArToolkitContext
.
baseURL
+
'
../data/data/camera_para.dat
'
,
detectionMode
:
'
mono
'
}]
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录