920
questions
-1
votes
0
answers
12
views
cannot import GLTFLoader in threejs
VS code not allowing to type the import GLTFloader statement.
GLTF loader is installed in the same folder where the javascript file exists.
I am a beginner here.Please help me if you can.
import { ...
0
votes
1
answer
24
views
How to render same model multiple time in React Three Fiber
I want to render same butterfly model multiple times. But it only render last model. How to fix it
This is Butterfly model that use gltf to jsx to make
export function Model(props: JSX....
0
votes
0
answers
29
views
Vertex Positions After Animation for gLTF
I have a mesh that is being rotated and translated and I would like to know the final positions of all vertices after the animation
I'm aware that vertex coordinates are stored in the POSITION ...
0
votes
0
answers
19
views
Ready Player Me error: THREE.PropertyBinding: Trying to update property for track: face_blendshapes.morphTargetInfluences but it wasn't found
When implementing Ready Player Me into a webpage, you initially render essentially a lifeless body in Three.js, which is something very few people want. It's actually very difficult to drop in an ...
0
votes
0
answers
21
views
cannot view exported UV maps in gltf
I need to access multiple UVs of a mesh I export in blender. however I cannot see the exported UV maps of my mesh in my browser console. UVs - (123,lefty,righty)
enter image description here
now when ...
0
votes
0
answers
44
views
(R3F/React-three-fiber/Ecctrl) gltfpack with gltfjsx - my packed .glb model is not loading
code sandbox link here
I'm using ecctrl and react-three-fiber.
My character model isn't loading and I don't know how to debug it? Any ideas?
I used something like `gltfpack -i ./inputfile.glb -o ./...
1
vote
0
answers
41
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
unpacking .basis texture to any other format
i'm trying to unpack a .basis texture file to any other format (ideally .exr) for use in blender.
i have a model i extracted from some website, being a glTF referencing .basis textures. blender cannot ...
0
votes
0
answers
27
views
App Crashes on a particular screen with Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)
I am working with BabylonJS in React-Native Android app, and everything was working fine until I added a release build by creating a keystore and other steps that it requires and now it just simply ...
0
votes
0
answers
10
views
In the open-source library Filament, how do you set a pure white background for a Skybox?
I am currently using the iOS demo code hello-gltf. I have modified the setupIbl function in App.cpp. Here is the modified code:
void App::setupIbl() {
const uint32_t textureSize = 1;
...
0
votes
0
answers
66
views
Is there a way to get the coordinate system of a gltf model actually used?
Let me first explain my situation:
We have a 3d render engine with a z-up coordinate system, to read in a gltf model (with y-up in spec ), we can just rotate the model -90 degrees around x-axis, then ...
-1
votes
1
answer
49
views
Get the dimensions of a unit of 3D Models
I'm working on an AR Project using Unity3D. In Unity 1 unit equates to 1m in real life. So a cube that'ss 1,1,1 is exactly 1m², in my AR application.
Now if I import 3D models from various sources, ...
0
votes
0
answers
31
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
22
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 ...
0
votes
0
answers
27
views
Error Loading GLB File with Shape Keys in Babylon.js
I encounter an issue when exporting a Blender file to GLB format and loading it in Babylon.js. The error only occurs when I select all shape keys during export. If I do not select all shape keys, the ...
0
votes
0
answers
49
views
How to add extras to a gltf\glb file using glTFLoader by KhronosGroup?
I'm tring to add "extras", custom metadata, to a gltf\glb file using glTFLoader by KhronosGroup
https://github.com/KhronosGroup/glTF/blob/main/specification/2.0/README.md#reference-extras
I ...
2
votes
1
answer
82
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
26
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
65
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
36
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=...
1
vote
1
answer
62
views
Why does importing GLTF in react project gives different result than gltf-viewer?
I made two bars and made a sort of a transparent shader in cycles. I baked the normal maps and exported as .glb.
In the gLTF viewer https://gltf-viewer.donmccurdy.com/ it shows perfectly:-
in gLTF ...
0
votes
0
answers
18
views
How to export disappear animation in glb with multiple animation in blender?
i have a doubt
i am working on 3floor building animation,
i have to export different animation in single glb
if i selected ground floor in glb the other 2 floor (first and second) floor should be ...
1
vote
0
answers
79
views
Unity Material sets assigned Texture to null
My goal is to import a model into Unity and to assign an embedded texture in the model to a new material. I'm able to manually create the material and assign the texture from the user interface just ...
0
votes
1
answer
51
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
2
answers
180
views
How can I load a .glb model from the assets folder in NextJS?
I'm trying to load a .glb model in NextJS.
Everything works fine in dev, but building throws an error:
TypeError: Failed to parse URL from /models/xbox-regular.glb
cause:
TypeError [ERR_INVALID_URL]: ...
0
votes
0
answers
25
views
GLB2GLTF for windows command line
What is the best solution to batch convert GLB into GLTF, by Windows command line ?
if this is not possible, maybe GLB to FBX-ascii format?
I want to edit the content of GLTF models, so i need to read ...
0
votes
0
answers
20
views
It is possible to stop Blender gltf export process?
I am currently developing an add-on Blender that manages the export of some projects with conditions. These projects are hudge and I was wondering if there is a way to display an operator that would ...
0
votes
1
answer
43
views
How do I fade animate the material opacity value of a node?
I've tried different approaches and none seem to work.
I have a GLTF model, I have acquired a node that has a mesh, the node has a material, but I don't know how to apply an animation to the opacity ...
0
votes
1
answer
73
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
37
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 ...
1
vote
1
answer
123
views
Godot - Change GLTF Mesh Opacity
I'm relatively new to Godot. I've created an atlas texture in Krita, made some models in Blender, exported as gltf, and imported them into Godot.
Now, in Godot, how do I tweak the opacity of each ...
0
votes
0
answers
35
views
Unity make gameobject completely unlit / Change shader of material (UnityGLTF)
Im making a FNAF fan game. The enviroment is therefore pretty dark. However, I want the animatronics(enemies) to be completely visible (Just like in the scene view or in blender). Is there a way to ...
0
votes
1
answer
91
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
21
views
Cubic spline interpolation in GLTF [duplicate]
I am building a plugin for figma to record animations and later have embed them into GLTF, the GLTF documentation for cubic spline interpolation says we have three Values for a key frame.
The input ...
1
vote
2
answers
101
views
Is it possible to convert gltf to byte array and then convert byte array back into a file?
I im trying to store GLTF file in a postgreSQL. I came up with an idea to convert file to byte array with memory Stream. But when i try to convert it back, from byte array to file with System.IO.File....
0
votes
0
answers
34
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
1
answer
32
views
I cant generate a preview of my 3d model in gltf
Im simply trying to insert my model for preview but I'm not a developer and cant figure out why its not showing up.
Here is my html code;
<html>
<head>
<script src=&...
0
votes
0
answers
70
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
66
views
ThreeJS GLB Model not showing
I tried to render a basic 3d model using the ThreeJS libary in my Typescript project, but its not displaying at all.
The logs show the progress and no errors.
Source:
(Main)
import FaceInstance from '...
3
votes
1
answer
304
views
Is there any way to Check that a GLB file is a valid or a corrupted file in c#?
I want to check that a GLB file is a valid GLB file or a corrupted File before doing any process on that GLB file.
I tried to load the file using the below code, but some valid GLB file I have which ...
0
votes
0
answers
74
views
how to add 2d video instead of 3d model in mind-ar by using its scripts?
I just started using mind-ar opensource project on git hubtext this one has the JS version. and I cant replace the 3d model, here is the snippet
<a-assets>
<a-asset-item id=&...
0
votes
0
answers
103
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
1
answer
45
views
How to set Normal Texture Scale Value as a Vector ([1, -1])
I'm using the gltf-json crate for this job. I want to be able to change the normal texture scale to [1, -1] to an asset that comes with [1, 1], however, the scale field is of type f32.
pub struct ...
0
votes
0
answers
12
views
GLTF Model lost on navigating to another page and back in NextJS
The GLTF Model disappears when i navigate back to page where it was. How do I properly configure it?
import { useGLTF, useTexture } from '@react-three/drei'
import { Suspense, useEffect, useState } ...
0
votes
1
answer
46
views
New to A-frame & HTML Coding - my model won't load, what am I doing wrong?
. Hello!
I'm simply trying to load my glb/gltf model into my Glitch project through A-frame coding, followed the tutorials and the websites own tutorials as well, but to no avail :(
It's a University ...
1
vote
2
answers
252
views
Import gltf scene and create bounding boxes using javascript
I am currently developing an online browser 3d Game.
The whole collision detection should be calculated both on the server and the client to obviate hackers.
As the physics engine I decided to use ...
0
votes
0
answers
169
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 ...
0
votes
1
answer
96
views
(Typescript setup) 3D model custom layer not displayed in the mapbox
I've tried to recreate this sample using typescript but didn't succeed on it:
https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/
The expected behavior of the source code repo should be to ...
0
votes
0
answers
32
views
Trouble in using gltf-model in aframe-react
I'm using aframe-react
3D - model is not rendering in the browser, it's showing a blank screen with no errors.
<Entity gltf-model={{src: 'https://cdn.aframe.io/test-models/models/glTF-2.0/...
0
votes
1
answer
106
views
How to calculate transform for GLTF joint with no inverse bind matrix and no channels?
So I have the following C++ code to calculate the final bone matrices I send to the vertex shader:
void Skeleton::UpdateBoneTransforms(const Animation& animation, float animationTime, Bone& ...