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

178
Views
Why div is not remove from label renderer in three.js

Hi its my third time since I have mentioned my question but I didn't get the proper solution .The problem is I create div in runtime but after once I click the div then function call and click but div is not remove event if I remove renderer.domElement remove from document body then its delete but I want to delete the renderer.domElement child delete which is not delete .Here is the code which I'm using in my project. Please check if three.js admins or members read this question then please don't ignore it I will be very thankful for help :)

JSFiddle: [https://jsfiddle.net/regeme786/vmx8uLd1/22/]

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you want to remove an element from the CSS renderer, you have to remove it's instance of CSS2DObject. Not the element itself. So instead of doing:

element.remove();

you have to use the three.js API:

label.removeFromParent();
about 4 years ago · Juan Pablo Isaza Report
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!