Hello,
Context:
I wrote some javascript to have the following behaviour on my blender scene:
-when a user clicks on an object, it places a dot at the clicking point, and
-when the view changes, the dot moves in order to follow the clicked point in the scene.
I do this in two steps:
1- On click, I retrieve the click location in the 3D scene using (clientX, clientY) from the click event, and verge’s raycasting method.
2- On camera movement, I compute the position of the 3D location on the screen and move the point accordingly.
My problem:
I attached the results I get on two examples.
On both parts of the clip, I start by translating the camera and then I rotate it. You can clearly see that the translating part works very smoothly, and the rotating part kind of flickers.
Do you have any idea to help me? Thanks!
Attachments:
You must be
logged in to view attached files.