Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
How to use HTMLMesh to display a DOM element in AR view?

I am trying to display a DOM element in 3D space in AR view using HTMLMesh class from ThreeJS. Every time I try to add the element to the scene, it does not display and also I get this warning in the console:

WebGL: INVALID_VALUE: texImage2D: no canvas

This is my code:

   let html = [
            '<div style="width:100px; height:100px; background-color: red">',
            '<h2>Some info in a panel</h2>',
            '</div>'
        ].join("\n");

    let div = document.createElement("div");

    div.innerHTML = html;

    let object = new THREE.HTMLMesh(div);
    object.position.set(position.x - 2, position.y + 2, position.z - 4);
    this.scene.add(object);

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!