Node geometry not loaded in the playground

Hi,

I am having trouble loading the node geometry I made with the NGE into a playground. I have parsed the NGE snippet and created the nodeGeometry in the function, but the createMesh part doesn’t generate the mesh. It returns null. The scene explorer also shows no mesh:

Node Geometry Playground - chair width adjust v1 | Babylon.js Playground

The odd part is that if I press the run button at the top once this playground page is fully loaded, it will load the mesh! What gives?

Is the setTimeout needed?

Even with timeout removed it doesn’t load at the first time.

Oh, i see. it’s a first time thing. There is some async issue. I’ll try debugging them but have to leave for a few minutes :slight_smile:

If you find the solution let me know!

  1. ParseFromSnippetAsync parameters were wrong
  2. You should wait for the build to complete before attempting to create the mesh.

I’ll update the NGE docs to make this more clear :slight_smile:

2 Likes

Ah, It finally works! Thank you all so much. I love the Babylon JS community! :heart:.

2 Likes