Import meshes and scenes | Texture failure

Hello all!

I already opened a new topic…but it seems there is now a new forum.

So here is the first question:
Is it okay to just copy the link to my topic?

hi

i see you use this image :https://previews.123rf.com/images/mansum007/mansum0071511/mansum007151100626/47766920-heiße-lava-muster-illustration-hintergrund.jpg

you replace that with this :https://i.imgur.com/sKWwWtK.jpg

you most use cross origion support sites for share image
like imgur.com

1 Like

you most use cross origion support sites for share image
like imgur.com

Thx for the tip. So it is not recommended just to google and copy the link of pictures.
But still, why didn’t the texture of a babylon file load, while it is working in playground?

To continue my original question relating character models and scenes:
I researched a bit more and found something similar, to what I want to create, like
http://www.pixelcodr.com/tutos/shooter/shooter.html
or
http://pixelcodr.com/games/babylonjs-fps/

I thought I could “steal” the scene and put a character model in it, so the FPS would be in third-person-perspective.
Is it easier to import a previously created character, like https://www.babylonjs-playground.com/#BCU1XR#0
or to create one by myself with prefered animations using Blender (never used it, but saw some threads refering to it)?

Cause the paths are relative to the root url that you might have not setup correctly ???

The code should look like this :

BABYLON.SceneLoader.ImportMesh("", “https://playground.babylonjs.com/scenes/”, “dude.babylon”, scene, function (newMeshes) {
// Set the target of the camera to the first imported mesh
camera.target = newMeshes[0];
});

to ensure the assets loads relatively to https://playground.babylonjs.com/scenes/

Blockquote BABYLON.SceneLoader.ImportMesh(“”, “https://playground.babylonjs.com/scenes/ ”, “dude.babylon”, scene, function (newMeshes) {
// Set the target of the camera to the first imported mesh
camera.target = newMeshes[0];
});
to ensure the assets loads relatively to https://playground.babylonjs.com/scenes/

With this, it disappears completely.
My code looks like this:

BABYLON.SceneLoader.ImportMesh("", "scenes/", "dude.babylon", scene, function (newMeshes) {
            // Set the target of the camera to the first imported mesh
            camera.target = newMeshes[0];
        });

I downloaded dude.babylon and created a folder “scenes” in the same register as the html.file.
Also everything is already prepared as ZIP, when loading from playground. All other files work this way.

But this problem doesn’t concerns me anymore, because I found a better character.

Is there a website that lists different models and scenes (except the category “Examples” of Babylon), where you can access the source code?