Top "Three.js" questions

Three.

Three.js Projector and Ray objects

I have been trying to work with the Projector and Ray classes in order to do some collision detection demos. …

javascript 3d three.js
Drawing a line with three.js dynamically

This is what I'd like to achieve (a modifiable polygon where the red circles are vertices) and I'd like to …

javascript three.js webgl
How to create directional light shadow in Three.JS?

Is it possible to create shadows from a DirectionalLight? If I use SpotLight then I see a shadow, but if …

javascript three.js
How to Fit Camera to Object

Using three.js I have the following. A scene containing several Object3D instances Several predefined camera Vector3 positions A …

javascript three.js
How to rotate a THREE.PerspectiveCamera around on object

I am making this program where you can click on an object, zoom to it, then look at it from …

javascript math rotation three.js perspectivecamera
Blender export to Three.js

I just created a random mesh using Blender and I want to export it to be used in HTML5 via …

html canvas three.js blender
Three.js detect webgl support and fallback to regular canvas

Can anyone who has used three.js tell me if its possible to detect webgl support, and, if not present, …

javascript html5-canvas three.js webgl
Three.js texture / image update at runtime

I am trying to change a cube image at run time by selecting an option from Select Form element. When …

image three.js textures
Realistic lighting (sunlight) with Three.js?

I'm attempting to create a small 1st-person game using Three.js, but I'm having trouble with the lighting. Basically I …

three.js lighting
Custom Texture Shader in Three.js

I'm just looking to create a very simple Fragment Shader that draws a specified texture to the mesh. I've looked …

shader textures three.js fragment-shader