8thwall / web

8th Wall Web projects and resources.
515 stars 326 forks source link

Babylonjs Sample on tap gets error 'Wrong sceneFilename parameter' #193

Open JessePerry opened 2 years ago

JessePerry commented 2 years ago

When trying the sample for BabylonJS, if you tap the scene then nothing happens on iOS.

When I connect the Safari inspector I see the error is related to babylons requirement of the scene name being provided. The error in console is: Wrong sceneFilename parameter Here is a breakpoint which also shows the filepath coming in, apparently it can't start with / if a scenename is not provided. image

In the example code, it is this part that determines what is sent to Babylonjs to load the scene. https://github.com/8thwall/web/blob/dcc11abf0a383a2e317cc40603076f2fd93ac4bd/examples/babylonjs/placeground/index.js#L47