How to import geometry that I have already prepared


#61

could you check the console please? ( F12 )


#62

I hope you mean this ))


#63

Maybe it could be some mistake at the top of code?


#64

I can’t see any obvious errors, and since there’s no console errors,
try to add this to the ImportMesh code

camera.target = newMeshes[0];
console.log(newMeshes[0]);


#65

Thats it?


#66

Yes,
There should be a output in the console.


#67

I have to go now,
Another thing you can try is to scale it up, your camera is very far away, the mesh might be very small.

newMeshes[0].scaling.copyFromFloats(100,100,100);


#69

I changed gltf model, and added simple box to check scaling, so Box was displayed, but new gltf model not.


#70

@Ivan_Stratiichuk Can you share one of your gltf files?
Will be easier for us to see what’s going on :slight_smile:


#71

Yes ofcourse, thank you!

Ther are two gltf models that I tried to upload,

https://drive.google.com/open?id=1n8-1s4jJL1Luz8-gai-33LocaCIHwE9l

Let me know if you can get it.


#72

Loading fails, Missing .bin and texture files :slight_smile:


#73

What about interior scene.gltf?

Are textures necessary to upload model?

If there are mistakes why I don`t see them in console?


#74

It should be possible to load it wiithout textures, but i think the .BIN file is needed,
I’d suggest exporting to .GLB instead (everything bundled in a single file)

as for why the errors weren’t showing for you, i don’t know :stuck_out_tongue:


#75

Ok where .bin file should be noted?

Could you send me some your sample model, I will try to load it to see how it should work!?


#76

the .bin should be located in the same folder as the .gltf
I attached a .zip of my public folder (same as a www folder, just different name)
scene code can be found in babylonScene.js

public.zip (15.6 KB)


#77

Victory, it works!!!

How to create .bin file?


#78

Great!
As far as i understand, the .bin file should be created by the exporter, together with the .gltf