Skip to main content

All Questions

0 votes
1 answer
853 views

Three.Js Raycasting not working when changing camera transformations whiich is a child of an Object3D

So I have created a "camera controller" that create an Object3D and make it as parent for the camera . The translations and the rotation of the Y axis are applyed to the Object3D, and the rotation of ...
sanjileo's user avatar
2 votes
3 answers
3k views

Click to place camera near an object in Three js

My I am trying to do a click to zoom feature with Three.js, I have a canvas and an object loaded in the canvas.On click I am trying to place the camera near the point of intersection(Actually like ...
Arun Xavier's user avatar
1 vote
1 answer
1k views

ThreeJS raycaster off with camera and object having a coordinate greater than 1000000

I have set up a raycaster in order to perform object selection from my canvas. It works well for small values of camera.position.x and object.position.x, but my problem is that it doesn't work well ...
Dusan Mancic's user avatar
0 votes
1 answer
701 views

updating an object's geometry when camera is moving causes glitches - three.js

I have a problem updating a vertex of a line in three.js So, I want to have a line in my scene, that its start is always at the (0,0,0) and its end is always in a specific position of the users ...
ThanosSar's user avatar
  • 542
8 votes
1 answer
2k views

THREE.js Raycasting from a child camera to the scene

I am trying to raycast the mouse from my camera to do some hover and click events on meshes in my scene. My problem is, that my camera is currently the child object of another mesh (for easier camera ...
Ben's user avatar
  • 99