All Questions
469
questions
1
vote
0
answers
34
views
I can load GLTF files from a URL asynchronously. I want to do the same with drag/drop GLTF files
The code I am working on supports loading GLTF models from remote URLs. I made a small async function that also adds some meta data to the GLTF object which is used later.
It works great.
Now, I want ...
0
votes
0
answers
26
views
Add MorphTargets in the gltf file
I am searching for realistic Avatar 3D models for lipsync I found the models but in that model, there are no MorphTargets so I'm not able to do lipsync with that avatar. Manually I want to add it Can ...
0
votes
0
answers
18
views
Parametric Relationships: Walls, Floor in THREEJS
Does anyone know how to create interactive walls in Three.js that automatically adjust when a connected wall is manipulated? I have a room modeled as a GLB file, comprising four walls and a floor. For ...
2
votes
1
answer
74
views
How to place object on top of other object in ThreeJS
I'm new to ThreeJS so apologies if this is a basic question. I have multiple GLTF files which I've loaded into my scene and I want to place one of the objects on top of the other object (but it can be ...
0
votes
0
answers
24
views
imoprt glb file in react
Can anyone help me? The file sky.glb is not working in my project. but the another file work corectly
import { useGLTF } from '@react-three/drei'
import React from 'react'
import skyScene from '../...
0
votes
0
answers
55
views
Robot hand movement dynamics in three js
I am currently a JavaScript developer, and due to a project at my company, I need to learn Three.js and build a project involving robot hand movement. Despite extensive research, I am still confused ...
0
votes
0
answers
33
views
Some models are broken after export to .glb
I'm trying to export an a-frame scene with some 3D models on it, the export works but the resulting glb file is not correct
This is my a-frame scene:
<a-scene id="scene" embedded renderer=...
0
votes
1
answer
39
views
Increase the dimensions of the loaded gltf model in Three js
I loaded a 3d model with gltf extension using GLTFLoader in Three.js.
const loader= new GLTFLoader();
//background box
loader.load('../../assets/backgroundBox.gltf',function(gltf){
...
0
votes
1
answer
53
views
How should mesh data be distributed across accessors, bufferViews, buffers in a glTF file?
In the glTF format,
mesh object positions go through three levels of indirection:
mesh -> accessor -> bufferView -> buffer.
How should mesh data be distributed across the accessors,
...
0
votes
1
answer
31
views
How to rotate a group based on camaras orientation?
I am making a game where you have a sword that you can swing, the sword is in a group with an offset so it is positioned right. I am trying to make it so that when I press Z the sword swings down and ...
0
votes
1
answer
58
views
how to put a Gltf Model in a group
I'm trying to put a loaded gltf model in a group with a cube.
I have tried doing it normally, but the sword model doesn't move. I am fairly new to three.js as I am in 7th grade doing this on my own ...
0
votes
0
answers
32
views
Why do I import the model in the three.js, it looks dark, but it looks normal on the gltf online website
I expected both of them to look the same
here is my code
async function loadSakuracar() {
const loader = new GLTFLoader();
const sakuracarData = await loader.loadAsync(
"/src/assets/...
0
votes
0
answers
47
views
THREE.JS gltf model loading, but missing node data & areas of mesh?
I'm trying to load my donut model using Three.js gltf loader, and I'm perfectly able to add the model onto the canvas, however the model doesn't load with it's geometry node data (sprinkles), as well ...
0
votes
0
answers
83
views
Having "WebGL: INVALID_OPERATION: useProgram: program not valid" while importing 3D model on THREE.js
I'm try to import a 3D model with GLTFLoader in THREE.js, it work for me when I use models without animation in gltf file, but when I use model that contain animation in gltf file, the waning shows up ...
0
votes
0
answers
145
views
React Native Mapbox RNMBXModels.models.getter not implemented (Expo Project)
I'm trying to use 3D models in Mapbox, and for that I'm using the new ModelLayer component
I installed the packages and ran the npx expo prebuild command to generate the native code
I installed the ...