Start a new topic

Object Recognition show text

Hi, I'm new in developing augmented reality. I'm using Wikitude 8.10 (Android JavaScript SDK) I try using basic object tracking sample. On the sample when you scan the marker the output 3d model of traffic_cone. My question is how to make the output is text ?

you can use this code :

createLabels: function createLabelsFn() {

		var titleLabel = new AR.Label("title", 1, {
			zOrder: 1,
			translate: {
				y: 0.55
			},
			style: {
				textColor: '#FFFFFF',
				fontStyle: AR.CONST.FONT_STYLE.BOLD
			}
		});

		var descriptionLabel = new AR.Label("description", 0.8, {
			zOrder: 1,
			translate: {
				y: -0.55
			},
			style: {
				textColor: '#FFFFFF'
			}
		});

		World.drawables.push(titleLabel)
		World.drawables.push(descriptionLabel)
	},

 

Thank you for your help!

As a total newbie,

I had the same problem and was looking through your website.

image


Login or Signup to post a comment