Created Mesh Not visible while imported meshes are in the scene

Hi,
In my Scene I have imported some meshes using below script.

BABYLON.SceneLoader.ImportMesh('','assets/models/','sample.glb', scene, function (meshes) {
});

It is working fine. Then I have created a sphere using below script

const cylinder = BABYLON.MeshBuilder.CreateCylinder("cylinder", {diameterTop :1,diameterBottom:1,height:5},scene);
      let cylinder_material = new BABYLON.PBRMaterial(
        "cylinder",
        scene
      );
      cylinder_material.albedoColor = new BABYLON.Color3(1,0,0);
      cylinder_material.unlit = true;
      cylinder.material = cylinder_material;
      cylinder.position = new BABYLON.Vector3(0,2,0);

No error was thrown while doing this. But the cylinder is not visible. If I stopped Importing the meshes. the this cylinder is being visible. If I importing the meshes, the cylinder is not visible. Why this issue? How to solve this.

I am pretty sure that either your model is not centered or the scale of both models are fully different but a playground would help to confirm.

1 Like

Okay But How to import local files in playground.

This should help:

Could they be both in the center so that the cylinder is not visible?

1 Like

I have tried with changing the position too.