cx20
December 7, 2020, 6:03pm
1
I tried to download the sample code from Babylon.js Playground.
However, I get an error when I try to do it.
The following is the reproduction procedure.
Goto Babylon.js Playground
https://playground.babylonjs.com/
Download sample.zip
Unzip sample.zip
Start a local server and access the sample URL.
The following error occurs and the sample is not displayed.
Uncaught TypeError: Cannot read property 'runRenderLoop' of null
Probably because the initFunction
is not called.
Correct! I forgot to fix that
thanks a lot, I will make that work
1 Like
cx20
December 7, 2020, 6:49pm
3
BTW, it would be nice to be able to switch to WebGPU as well.
You can already in the PG but I do not plan to support it in the downloadable one (yet)
I mean: the downloadable version will use the same engine as the one active when you hit save
cx20
December 7, 2020, 6:56pm
5
It’s not necessary to be able to download it, but it would be nice to be able to test it easily on Playground.
The following WebGPU documentation has a link to Playground.
it is already working
Pinging @PirateJC for the doc update
1 Like
cx20
December 7, 2020, 7:05pm
7
Oops, just noticed it. Great job.
2 Likes
Doc has been updated. Will go into the next PR within the next couple hours
3 Likes
cx20
December 7, 2020, 11:57pm
9
Thank you for your quick fix. I have confirmed that the correct sample code can be downloaded for each mode of WebGPU / WebGL2.
WebGPU mode result:
WebGL2 mode result:
cx20
December 7, 2020, 11:59pm
10
Sorry if this has already been addressed. I found another mistake.
The following URLs seem to refer to an old library (Babylon.js v4.2.0-alpha.16 or 27)
https://playground.babylonjs.com/indexWebGPU.html
https://www.babylonjs.com/demos/webgpu/forestwebgpu
https://www.babylonjs.com/demos/webgpu/oneSphereWebGPU
https://www.babylonjs.com/demos/webgpu/oneHelmetWebGPU
https://www.babylonjs.com/demos/webgpu/tenThousandSpheresWebGPU
1 Like
cx20
December 8, 2020, 10:44pm
12
Thank you for catching up. The last one is already posted in another thread.
The following URLs seem to refer to an old library (Babylon.js v4.2.0-alpha.16 or 27)
https://playground.babylonjs.com/indexWebGPU.html
https://www.babylonjs.com/demos/webgpu/forestwebgpu
https://www.babylonjs.com/demos/webgpu/oneSphereWebGPU
https://www.babylonjs.com/demos/webgpu/oneHelmetWebGPU
https://www.babylonjs.com/demos/webgpu/tenThousandSpheresWebGPU
Some of these samples are referenced from the WebGPU Wiki.
[image]