Hello Guys I am trying to select an object using the raycaster and I would like it to change the material of the first object that is selected. Every thing goes well until I select the object. If I pick the first element only one object changes.  If...
I wrote the code below to get intersection point with a 3d shape. It works well but if there are two intersection point with shape, it returns me only the farest intersection while I need the nearest intersection with the shape. How can I do to get t...
Hello, I have one doubt:  I have implemented a raycaster and I have been testing it manually, however I do not know why on most of the clicks which I made on the 3D model, it did not get the intersection point.  First I will show you the points I cli...
I've put together a WebGL script that displays several meshes using jsonloader and three.js and I now want to add MouseOver and onClick events. The first of these is simply changing the colour of the mesh when the mouse hovers over it:  function...
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 movement/rotation) and now my raycasting doesn...
Basically what i want to create:   I have a 3D map with objects, i want to select all objects that are in the 2D box x1,y1 to x2,y2 on my screen.  Any ideas how this has to be done, because i'm clueless on how to start.  Thanks in advance!  prevX...
I am trying to make draggable objects, as seen in this example: https://www.script-tutorials.com/demos/467/index.html  The objects which should be draggable are in the array objectMoverLines.  I have added a plane to my scene with the following code:...
I am relatively new to three.js and am trying to position and manipulate a plane object to have the effect of laying over the surface of a sphere object (or any for that matter), so that the plane takes the form of the object surface. The intention i...
in a Three.js app I want to get the object that the perspective camera is pointing at and to do that I read the raycaster docs. All the docs that I found talk about doind raycasting with camera and a Vector2 from the mouse coordinates, but I don'...
Does anyone have an explanation as to why the interactive cubes below do not work on retina display macs?  http://mrdoob.github.io/three.js/examples/canvas_interactive_cubes.html  The code works in Firefox, Safari and Chrome in the non retina macbook...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.