Article - CS358501
In Vuforia View, call of add3DObject method of tml3dRenderer object in Javascript doesn't have any effect
Modified: 14-Dec-2021
Applies To
- Vuforia View 9.2.0
Description
- In Vuforia View, call of add3DObject method of tml3dRenderer object in Javascript doesn't have any effect
- Example of use :
$scope.successcallback= function() {
console.log("Success!");
}
$scope.failcallback = function() {
console.log("Fails!");
}
$scope.test = function() {
let vertices = [-1, -1, 0, 1, -1, 0, 1, 1, 0, -1, 1, 0, 0, 0, 1];
let faceIndices = [0, 1, 4, 1, 2, 4, 2, 3, 4, 3, 0, 4];
tml3dRenderer.add3DObject('model1', '1', vertices, [], [], faceIndices, [0.7, 0.7, 0.7, 0.49], null, null, $scope.successcallback, $scope.failcallback);
}
- In Vuforia Studio, in Preview, it works
- In Vuforia View log file, this verbose is reported :
MM-DD HH:MM:SS.MS 6069 6304 V TGX : InterruptDelayingThread: VuforiaPluginCmdExecutor-2: setDelayingInterrupts(true,begin,add3DObject)
MM-DD HH:MM:SS.MS 6069 6283 W TGXAction: add3DObject: calling callback Vuforia1196220030 with status: ERROR, data: ["Could not add 3D object: 1; parent does not exist"]; discarding callback; args=["model1","1",[-1,-1,0,1,-1,0,1,1,0,-1,1,0,0,0,1],[],[],[0,1,4,1,2,4,2,3,4,3,0,4],[0.7,0.7,0.7,0.49],null,null]
This is a printer-friendly version of Article 358501 and may be out of date. For the latest version click CS358501