This works fine in the playground:
The starter template at:
has been copied to my Visual Studio HTML page.
The only thing I do to the starter template is replace its createScene function with the playground contents above.
It errors out at the scene.meshes.createNormals() line with the browser debug mode throwing an exception at it
and reporting that scene.meshes is undefined. The alert(“After meshes”) is never displayed the Browser.
Why is scene.meshes defined in the Playground but undefined in the Browser?
What am I missing here?