attempt fix
parent
2004fcc1b7
commit
08a448ae4b
|
@ -40,12 +40,12 @@ R3.API.AR = function(
|
||||||
this.video = video;
|
this.video = video;
|
||||||
|
|
||||||
if (R3.Utils.UndefinedOrNull(pathCamera)) {
|
if (R3.Utils.UndefinedOrNull(pathCamera)) {
|
||||||
pathCamera = 'Data/camera_para.dat';
|
pathCamera = 'data/camera_para.dat';
|
||||||
}
|
}
|
||||||
this.pathCamera = pathCamera;
|
this.pathCamera = pathCamera;
|
||||||
|
|
||||||
if (R3.Utils.UndefinedOrNull(pathMarker)) {
|
if (R3.Utils.UndefinedOrNull(pathMarker)) {
|
||||||
pathMarker = 'Data/patt.hiro';
|
pathMarker = 'data/patt.hiro';
|
||||||
}
|
}
|
||||||
this.pathMarker = pathMarker;
|
this.pathMarker = pathMarker;
|
||||||
|
|
||||||
|
|
15
src/r3-ar.js
15
src/r3-ar.js
|
@ -186,7 +186,10 @@ R3.AR.prototype.createInstance = function() {
|
||||||
this.arToolkitContext = new THREEx.ArToolkitContext(
|
this.arToolkitContext = new THREEx.ArToolkitContext(
|
||||||
{
|
{
|
||||||
cameraParametersUrl: this.pathCamera,
|
cameraParametersUrl: this.pathCamera,
|
||||||
detectionMode: 'mono'
|
detectionMode: 'mono',
|
||||||
|
maxDetectionRate: 30,
|
||||||
|
canvasWidth: 80*3,
|
||||||
|
canvasHeight: 60*3
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -349,11 +352,11 @@ R3.AR.prototype.resize = function() {
|
||||||
|
|
||||||
this.arToolkitSource.onResizeElement();
|
this.arToolkitSource.onResizeElement();
|
||||||
|
|
||||||
// if (this.arToolkitContext.arController !== null){
|
if (this.arToolkitContext.arController !== null){
|
||||||
// this.arToolkitSource.copyElementSizeTo(
|
this.arToolkitSource.copyElementSizeTo(
|
||||||
// this.arToolkitContext.arController.canvas
|
this.arToolkitContext.arController.canvas
|
||||||
// )
|
)
|
||||||
// }
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue