Category "three.js"

CSS2renderer is not working with webgl renderer

when we add css2renderer on time like label then my screen stuck seems like orbit control is not working .I’m using transform control in my project and it

Check if rotation of model has changed?

How would you check if the rotation of a model has changed? tried: var oldRotate = this._target.quaternion; console.log('works returns vector3 quaternion: ',

THREE.JS OBJLoader giving 'Unexpected line' while loading images

I can't load images (JPG, PNG, or BMP) with OBJLoader. Here's some of the code: function init() { ... loader = new THREE.OBJLoader(); loadOBJ(); } functi

how do I get the position of a certain point from BoxGeometry?

There is a regular BoxGeometry whose dimensions are set relative to a group of objects. How to get the position of a certain point in this BoxGeometry (x:1, y:1

how do I get the position of a certain point from BoxGeometry?

There is a regular BoxGeometry whose dimensions are set relative to a group of objects. How to get the position of a certain point in this BoxGeometry (x:1, y:1

THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera. error

My code is below: This gives me the following error: I cannot resolve this error can anyone help me out? Does it mean that perspectivecamera is no longer an i

How can I pass the mouse positions from JS to shader through a uniform?

I want to pass the mouse position to shader through uniform so that the color changes interactively when the mouse is moved. Please see the comments with "ύ

Three.js Texture loading

I am starting during this days with Three.js and it's very cool. Now i would like to load a texture and apply it to a simple sphere. My problem is that when i o

From Blender to THREEJS, export with GLTF a mesh with UV texture & material color: material color lost

In my game, i use mesh (skeleton, animations and materials without texture) made with Blender (2.79b) ,then exported in glb format (gltf binary v2). In THREEJS

Playing same animation action on loop without reseting position

I am trying to run a walking animation on a gltf model from animationClip. The goal is to play the walking animation whenever the up arrow key is pressed and ke

Multiple UVs/textures for single mesh in THREE.js

I have an OBJ that uses four textures. The UVs defined in the file range from (0, 0) to (2, 2), such that (0.5, 0.5) refers to a coordinate in the first textur

How to load .gltf in a Blazor application

I am trying to load .gltf model using three.js into my Blazor application. However the server does not serve this type of files. I am aware that MIME type m

Three.js Collada - What's the proper way to dispose() and release memory (garbage collection)?

I've successfully imported a .dae scene via ColladaLoader. The problem is, I need to switch between several .dae files. I can't seem to implement the dispose

Add many 3d objects on mapbox map using three.js

I want to add about 20.000 plane geometries on mapbox map. Docs have example with only one object(even camera configured for one object). My purpose - isometric

photosphere viewer - display marker lat-long from GPS lat-long

am unable to display GPS locations (WGS84 lat-long in decimal degrees) on photosphere viewer as a marker. These locations are signboards on the road collected

How to make smooth camera transition in react three fiber

Till now I have managed to achieve camera shifting from one place to another but it goes all of a sudden i want a animation or a smooth effect in between curren

Audio.play() causes tiny lag

Problem: I have made a flappy-bird like game using Three.js. Everytime I tap the screen, a "flap"-sound is played. However playing this audio causes a tiny lagg

Can't apply texture graphic to box in A-Frame basic scene

I am going through the Basic Scene demo for A-Frame. https://aframe.io/docs/0.8.0/guides/building-a-basic-scene.html When I get to the Applying Image Texture

THREE.JS Mesh position smooth animation

I have a pretty easy question for you with three.js about x position translation of an imported .obj mesh. I'm fairly new to three.js and was wandering if som

Three JS FBX Loader: model not visible in the scene No errors in the console

I am tying to render the .fbx format 3D model using THREEJS FBXLoader but the model is not visible in the scene although it is added. The variable named 'model'