Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading a gltf model failed #111

Open
jamess922 opened this issue Dec 3, 2021 · 4 comments
Open

loading a gltf model failed #111

jamess922 opened this issue Dec 3, 2021 · 4 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@jamess922
Copy link

jamess922 commented Dec 3, 2021

Hi
I want to run the example ARToolkitNFT_ES6_example.html with a gltf model ,but not lucky i was failed ,here is the code i am use

var loader = new THREE.GLTFLoader();
  loader.load( './Flamingo.glb', function ( gltf ) {
	gltf.scene.rotation.x = 0.5*Math.PI;
	gltf.scene.position.z = 40;
	gltf.scene.position.x = 80;
	gltf.scene.position.y = 80;
	gltf.scene.scale.set(80,80,80);});		
	var root3 = new THREE.Object3D();
		scene.add(root3);
		root3.matrixAutoUpdate = false;
		root3.add(gltf);

of course i have the GLTFLoader.js
So please help me

@kalwalt
Copy link
Member

kalwalt commented Dec 4, 2021

What do you mean exactly? What Is failing?

@jamess922
Copy link
Author

I don't know if the code is right,just nothing show up , i can't see the model

@jamess922
Copy link
Author

Is there any ARToolkitNFT_ES6 gltf example?

@kalwalt
Copy link
Member

kalwalt commented Dec 5, 2021

@jamess922 try updating three.min.js and GLTFLoader.js to a newer version, maybe that was the issue.

@kalwalt kalwalt self-assigned this Jan 10, 2022
@kalwalt kalwalt added help wanted Extra attention is needed question Further information is requested labels Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants