Top "Three.js" questions

Three.

How to connect Threejs to React?

I work with React and use a canvas. I want to change the canvas to WebGL (Threejs library). How to …

reactjs three.js
How to change the zOrder of object with Threejs?

I made a scene using the webgl renderer where I put multiple 3D objects that I can select and move. …

three.js
Multiple transparent textures on the same mesh face in Three.js

Is it possible to lay multiple textures on top of each other on the same face in Three.js so …

javascript three.js webgl textures alphablending
Scaling an object in three.js

I am getting Matrix3.getInverse(): can't invert matrix, determinant is 0 three.js 3976 error when I am trying to scale a …

three.js scaling
ThreeJS camera.lookAt() has no effect, is there something I'm doing wrong?

In Three.js, I want a camera to be pointed at a point in 3D space. For this purpose, I …

javascript macos google-chrome 3d three.js
Units of Three.JS, Calculating Rotation & Orbit Speeds

I'm trying to build a to scale model of the solar system. I wanted to see if someone could explain …

rotation three.js orbit
Assigning materials to an OBJLoader model in three.js

I've imported an OBJ model with the following code: var loader = new THREE.OBJLoader(); loader.addEventListener('load', function (geometry) { object = …

three.js
How do I move a Three JS cube with keyboard input?

The following code is what I have written so far using three js to try to move or translate a …

javascript three.js event-handling dom-events keyboard-events
How do I rotate some moons around a planet with THREE.js?

I think this picture best explains my issue: First I translate the box along the red line. Next, I want …

three.js
Three.js Object3d cylinder rotation to align to a vector

I have searched far and wide, but can't seem to figure this pretty basic thing out. I have seen other …

javascript rotation three.js quaternions