Start a new topic

HtmlDrawable not visible

HtmlDrawable not visible
1 Comment


I know it's an answered question in this forum, but I want get my code working without having to trying around for the moment.

I just added this code in 3D model at geolocation sample:

  var modelEarth = new AR.HtmlDrawable({ html: "<div>abc</div>" }, 1, {
    viewportWidth: 300,
    viewportHeight: 300
  });

which replaces the 3d earth with a div, but the div is never seen.

I've seen examples using separate html file, which specifies viewport. Do I have to specify viewport when I'm using inline html?

Thanks.
Login or Signup to post a comment