Questions tagged [three.js]
Three.js is a JavaScript 3D Library which makes use of WebGL
                125 questions
            
            
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                54
            
            views
        
        
            
            
        Best way to sync PhysicalObj to player headset position?
                    I’m in the process of designing a threejs-based webxr engine for simple VR games. Right now, I’m working on implementing physics with cannon-es, but I’m struggling to figure out how to sync the player’...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                75
            
            views
        
        
            
            
        My Collision isn't working the way I want it to
                    I am trying to make a game slimier to Minecraft, where there is a world of blocks, and a player that can walk, jump, and place blocks. Lately, I've been struggling to get collision detection between ...
                
            
       
        
            
                13
            
            votes
        
        
            
                1
            
            answer
        
        
            
                4k
            
            views
        
        
            
            
            
        How to play hundreds of explosion sounds
                    I am developing an RTS game with boats, the boats can shoot very frequently and I am having a hard time dealing with the explosion sounds. I am using three.js and the audio API it has that uses the ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                46
            
            views
        
        
            
        Steering around a track in R3F
                    I posted this on stackoverflow, then thought it might be better here where the gamedev experts are:
I am experimenting with threejs and react three fibre. I have a box which I am sending around a ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                788
            
            views
        
        
            
            
            
        How To Make Seamless Custom CubeMap?
                    I'm currently working on a Three.js project, and I'm aiming to create a seamless cube map. To achieve this, I created six planes and assembled them into a cube. Then, I utilized a shader to generate ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                126
            
            views
        
        
            
            
            
        Discontinuous Normals on a Normalized Cube Mesh with Displacement Texture
                    In my project, I have created a normalized cube using six plane meshes. To improve its visual quality, I added a displacement texture and calculated the normals for that texture to ensure proper ...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                387
            
            views
        
        
            
            
            
        How to publish WebXR game on Quest or Steam stores?
                    I would like to develop a simple and small game for WebXR so that Quest, Index, etc. can play it. I would eventually like to be able to put it on the Quest store and Steam.
Is there a way to publish a ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                661
            
            views
        
        
            
            
            
        My GLTF models made in Blender are transparent from certain directions
                    When I rotate the camera some of my blender models become transparent from different angles. They are gltf models
Here is the Python to save the gltfs
...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                107
            
            views
        
        
            
            
        Octree build time crashes page for complex mesh
                    Using the standard three.js FPS example of octree implementation with a more advanced mesh, crashes the page on load.
My first idea is to write a few functions to save the octee data to a file, then ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                259
            
            views
        
        
            
        Multiplayer game - Player position updates transmission pattern
                    I'm building a very basic 3D multiplayer game using Three.js and Socket.io where all the player does is move in an environment.
Considering there will be ~ 100 players in a single room and all data ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                185
            
            views
        
        
            
            
        Creating a Game in Three.js do i share camera, scene objects?
                    Im creating a game with React and Three.js and vanilla Javascript, i have several clases, representing objects in the game, do i need to create a camera, scene, renderer for each class or i simply ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                638
            
            views
        
        
            
            
        Aircraft simulation
                    Trying to get a "semi" realistic aircraft simulator. I'm pulling my hair out because I just can't get the math right. I'm not looking for super realistic but want to at least get some ...
                
            
       
        
            
                0
            
            votes
        
        
            
                0
            
            answers
        
        
            
                132
            
            views
        
        
            
            
        Three.js Animate Text error geometry.faces
                    In this three.js Text example they animate text, i am trying to implement it on React/Three.js but i got the error TypeError: can't access property "length", geometry.faces is undefined
in ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                184
            
            views
        
        
            
            
        Interpolate colors between vertex in a plane
                    So I have this plane generated with two different Perlin noises. It has mainly 3 regions, divided by color. I want to smooth out the lines, to create a "gradient" so there are no abrupt ...
                
            
       
        
            
                1
            
            vote
        
        
            
                0
            
            answers
        
        
            
                126
            
            views
        
        
        Calculate 2d rotation to target (uniformly accelerated rotation, constant speed)
                    I'm trying to calculate an uniformly accelerated rotation for the autopilot module in my 3d space game shooter. The autopilot should fly the spaceship to any given point in the 3d space on the ...
                
            
       
         
         
         
         
         
         
         
        