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 want to know if my raycaster is looking at an OBJ that I've loaded. Due to the way exported from Cinema4D, I believe the OBJ is a THREE.Group with 3 children, instead of a THREE.Object. Can I just change my raycaster line of code to look for th...
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...
I'm creating a 3D product configurator.  First, I load the .gltf model and render it with Threejs.   Then, I print a svg to a Fabricjs canvas and use that canvas to make a THREE.CanvasTexture and update the model with this canvas.  The problem I...
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 want to calculate the UV co-ordinates of a single point of a material rendered on 3D cube.   I am finding the mouse pointer intersection with the camera ray using THREE.Raycaster as:    mouse.x = (event.clientX / window.innerWidth) * 2 - 1;   mouse...
Hello! I ve got an three js and tried to use it with my project. The thing is - i needed to select my custom mesh loaded from OBJ file.  I created simple raycaster, simple cube, and my model (which is cube also). The thing is - i can have cube rayc...
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...
I have a scene with multiple meshes, each one of them associated to a different transformControl; in order to select different objects, I'm using raycasting techniques. I'm also using an orbit camera in order to navigate the scene.  Whenever...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.