Engine v1.66.0 has been released. Release notes:
To stay updated on engine development, hit Watch on the repo. Support us by hitting Star too!
Engine v1.66.0 has been released. Release notes:
To stay updated on engine development, hit Watch on the repo. Support us by hitting Star too!
Everyone, please note the breaking change in Tween library.
Previously:
entity
.tween(entity.getLocalPosition())
.to({x: 10, y: 0, z: 0}, 1, pc.Linear)
.on('complete', function () {
console.log('tween completed');
})
.start();
Starting from 1.66:
entity
.tween(entity.getLocalPosition())
.to({x: 10, y: 0, z: 0}, 1, pc.Linear)
.onComplete(() => {
console.log('tween completed');
})
.start();
Same for update
and loop
events.
You would need to update the Tween library to the latest (thank you, @kungfooman ). You can grab one here:
Further details in PR:
Well done everyone looks like a solid release. Iām having issues getting webgpu running though (not a regression its never worked yet).
Firstly webpack is not happy with the new import statement for twgsl and gslang wasm files (in initWebFpu) Iāve had to put in webpackIgnore to get them to load (as it replaces it with its own import function)
We have an issue on this, and will look at options: Critical dependency: the request of a dependency is an expression - /webgpu/webgpu-graphics-device.js Ā· Issue #5730 Ā· playcanvas/engine Ā· GitHub
@slimbuck - any thoughts on this one?
Managed to get webgpu working with the above workaround (and a few fixes ourside). Performance is looking fantastic (though post processing was off), Theres a number of regressions (shadows were incorrect with light leaks where there wasnāt previously and the environment light seems to have reverted back to the sky instead of the reflection capture) but other than that fantastic. We make heavy uses of compressed textures in a complex environment in a scene generated in unreal and exported with lightmaps etc so the fact that its now running in webgpu is a huge milestone.
Great news @Adriaaaaan !
The shadow issue is possibly due to this not being done yet: Support depth bias on WebGPU Platform Ā· Issue #5688 Ā· playcanvas/engine Ā· GitHub
Got more details about the environment light? Iām not sure I understand.
yeah youāre right it looks like a biasing issue. As for the environment light (this is an engine project), not sure what the issue is yet. Normally we are setting a skybox by loading a cubemap and calling app.setSkybox(sky); Afterwards we are then loading a reflection capture image and setting it to app.scene.envAtlas but it seems to no longer override the skybox and so the reflections look like the sky.
Doesnāt seem to be webgpu related, Iāll log a ticket If I have anymore information but weāre not scheduled to update just yet so Iāll look into later
okay ignore the reflection issue its wrong on production too
Hi @Adrian_Meredith , if youāre generating the envAtlas yourself, make sure the texture has mipmaps disabled. If you can give me access I can investigate too.
Patched to Release v1.66.1 Ā· playcanvas/engine Ā· GitHub
Weāre planning to promote this to the Editor early next week, please test your projects before then to avoid surprises by selecting RC from the Run tab.
Thanks man, In truth this is actually a legacy path for us since I implemented reflection probe volumes thatāll apply it per material so I might as well just use that instead.
Sorry guys, its still not working on webpack for me. It is improved, it now fails gracefully and falls back to webgl2 but the error is the same. Stopping in the debugger I can see webpack has still replace the native import command with some _webpack_require function that refuses to load files from assets.
This is the only way I can get webgpu runningā¦
Are you able to open an issue with some simple webpack project to show case this?
And this is now the default engine in the Editor ⦠please let us know of any issues.
Hi @mvaligursky,
My tween stopped working even though it worked earlier today.
I tried changing the events to onUpdate
and onComplete
but that does not fix it.
I am not entirely sure if it related to the engine update though.
Itās likely related to this:
Make sure to grab an up to date copy of the tween too.
I got it working by updating the tween library.
Note: I used the latest copy from github
The tween library which gets imported through the asset store doesnāt seem to be updated to the latest version.
Good point, weāre updating the one in store too now, thanks!