Category "three.js"

Moving cannonJS object in 3D according to its quaternion

I would like to achieve a space ship like move on a cannonJS body. (Im really a beginner) I found some examples but none of them are exactly what I'm looking fo

Network a-frame with nav-mesh or collision is not working. Either of one is working and not both

I'm using camera attached to head template also added this camera inside a rig and that rig is constrained to nav-mesh but only one is working either movement c

Mobile Safari Not Showing My Video Texture

I have a question similar to this one, but in my case, it's iOS causing troubles (not macOS, which I haven't tried yet), so I hope it's OK to post this as well.

Attach text above 3D Object

I'm wondering if it is possible to attach a text above a 3D Object? If so, how would I do it? So far I'm doing the following below to load a mesh with its mate

Converting 3D position to 2d screen position [r69!]

I need Three.js code to convert 3D object coordinates to 2d ones in a 'div' element so that I can place text labels where they need to be (without those labels

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 I use DirectionalLight it doesn't work.

Website is not loading the script, CSS, or Three.js

Let me start out by saying that I have very little experience with HTML, javascript and overall website creation and hosting, so sorry in advance if the informa

Embed widgets with jupyter-cadquery (threejs): wrong position on load

I am using jupyter-cadquery to visualize some 3D models made with CadQuery. When visualizing the models on a Jupyter notebook, everything works as expected. B

threejs get center of object

I have trying to retrieve and plot the centerpoint of some objects but I keep getting the same value for all my objects which is x=0, y=0 and z=0. So my centerp

Morph Targets Three.js

I'm trying to get started with morph targets and three.js. However, there doesn't seem to be much documentation on this subject. As I'm looking at the source co

Changing the way three.js projects a texture onto a halfsphere

I am currently trying to project an image onto the inside of a halfsphere in a three.js project. The half sphere is created via const geometry = new THREE.Spher

Three.js: How to flip normals after negative scale

I have cloned and than flipped an object using negative scale, which causes my single sided faces to inverse. My question is, how can i flip the normals too? I