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

164
Views
Raycaster with threejs and draw points on the plane by clicking

Hellow everyone ,I had some question with my procedure about threejs with Raycaster I add a plane to scene and I want to draw a point by clicking on the plane,but the DOM don't fill the screen

Here is my selection handler, used in vue.js:

const canvas = this.$refs.dreamview.getBoundingClientRect();
const pointer = new THREE.Vector2();
pointer.x =((event.clientX - canvas.left) /canvas.width) *2 1;
pointer.y =-((event.clientY - canvas.top) /canvas.height) *2 +1;
this.raycaster.setFromCamera(pointer, this.camera);
const intersects = this.raycaster.intersectObjects(scene.children, false);
let plane = intersects.find((e) => e.object.name === "plane");

I get the set of coordinates using the code above,but the plane.point is incorrect,i don't understand what went wrong;

Thank you all for any advice that you could give on this.

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!