I just tried to use the work as well as you suggested:
function createTracker(){
var image = new AR.ImageResource("overlay.png", {onError: error});
overlay = new AR.ImageDrawable(image, 1.0, {zOrder: 0});
var poiHTMLdrawable = new AR.HtmlDrawable({uri:"test.html"}, 4, {viewportWidth: 512, scale:1, updateRate:AR.HtmlDrawable.UPDATE_RATE.STATIC});
...
trackable2DObject = new AR.Trackable2DObject(logoTracker_1, "WikitudeLoga", { drawables: { cam: }});
trackable2DObject = new AR.Trackable2DObject(logoTracker_1, "WikitudeLogo", { drawables: { cam: }});
is correct ?
if you launch the application does not appear test.html
W
Wolfgang Damm
said
about 10 years ago
make sure test.html is accessible relativly to your architect world. It helps to set a solid body background color within the html to see if the html drawable is infact overlaid. If you can see the background color this means there is a layout problem with the html content.
Addtionally replace the call to new AR.HtmlDrawable with a call to new AR.Circle to quickly test if the html drawable is infact the problem.
If this does not help, please state the platform (android, ios), sdk version and device you are using.
v
vincenzo giacchina
said
about 10 years ago
thanks for the help but unfortunately I can not make it work.
var arrow1 = arrowWithDirectionality(-arrowXOffset, -arrowYOffset, -45);
var arrow2 = arrowWithDirectionality(-arrowXOffset, arrowYOffset, 45);
var arrow3 = arrowWithDirectionality(-arrowXOffset, -arrowYOffset, 135);
var arrow4 = arrowWithDirectionality(-arrowXOffset, arrowYOffset, 225);
trackable2DObject = new AR.Trackable2DObject(logoTracker_1, "WikitudeLoga", { drawables: { cam: }});
trackable2DObject = new AR.Trackable2DObject(logoTracker_1, "WikitudeLogo", { drawables: { cam: }});
// we need to pack the arrow animations into a parallel animation group to play them synchronisly
masterAnimationGroup = new AR.AnimationGroup(AR.CONST.ANIMATION_GROUP_TYPE.PARALLEL, );
}
test.html is in .../assets/world/SimpleImageRecognition and .../assets/www/
i use a android 2.x and 3.x
I'm going crazy!!!!
v
vincenzo giacchina
said
about 10 years ago
if you use var = new htmlDrawable AR.HtmlDrawable ({html: "My <div> div </ div>"} I display the div, but if I use the approach uri not.
I kindly ask for help!
A
Andreas Fötschl
said
about 10 years ago
Hi Vincenzo,
Please try using targetSDK="13" in your Android Manifest. if even this does not work on your device, please stay tuned for next SDK update and use Labels and ImageDrawables instead.
vincenzo giacchina