"Import a Mesh w/Callback" in Very First Step tutorial

The Very First Step tutorial
https://doc.babylonjs.com/journey/theFirstStep/#the-babylonjs-playground
asks users to choose from Playground Templates
“Import a Mesh w/Callback”
an option which doesn’t appear in the Templates list.

Using “Import Mesh” and following the instructions does work, but is likely to jolt new users, in that the code appearing does not match the code appearance in the example.

This kind of early stumbling block can keep a new learner out of the process!

Hello and welcome :slight_smile:

I think now it’s just “Import a Mesh”, you’ll find it after CTRL+SPACE, and scrolling down a bit :slight_smile:

++
Tricotou

Thank you. This is as I noted.

What concerns me, as an educator, is that the prompt is in error, and the resulting code doesn’t look like the code example given.

I note also that the next step in this introductory tutorial, creating an arc camera, also does not function as in the tutorial.
At that point, I imagine, 0% newbs will pursue further.

The tutorial is serving to keep new users out.

I agree that the snippet got updated later, so this tutorial might need an update as well :+1:


It’s pretty much the same, isn’t it ?

Tutorial :

BABYLON.SceneLoader.ImportMesh("meshName", "url to the mesh parent directory", "Mesh filename.fileextension", scene, function (newMeshes) {});

Current snippet on PG :

BABYLON.SceneLoader.ImportMesh("meshName", "url/to/parent/directory", "fileName.fileExtension", scene, function(newMeshes){
    
    });

I added both imports using either Radians or Degrees as angle, but appart from this is should work the same :slight_smile:


It’s for sure not the goal ^^
Most of the lines are 2 years old I’m sure @Deltakosh will be happy to have one of us updating this tutorial with fresh stuff up & running :slight_smile:

1 Like

Ah, you’re right! Import a Mesh now gives me the same code snippet you paste.

Before, each of the elements like “meshName” included dollar signs and curly brackets. This was just minutes ago.

Any idea why I got that result?

Are you running MacOS ? :grin:

windows!

Yes and the arc camera now looks like the code snippet presented, and works out of the box.
Strange!
But this result makes me feel like the First Steps tutorial might be viable after all for my learners.

1 Like