iso74
October 11, 2020, 7:24pm
#1
Hi, I simply cannot make a sykbox working, it shows disorted, I use this code:
app.assets.loadFromUrl('assets/Tropical.dds', 'cubemap', function( err, asset) {
// app.scene.skyboxMip = 0;
app.scene.setSkybox(asset.resources);
});
It is loaded like this (Tropical Beach):
Does anyone have an idea where to tweak the params, almost working I guess…
Thanks!
Hi @iso74 ,
Just for debugging this, if you try the same set of assets in editor, does it look right?
iso74
October 11, 2020, 8:09pm
#3
Hi @Leonidas , yes sorry I forgot to mention, in Editor its OK, but Engine only not
joshb
February 14, 2023, 1:00am
#4
Hi @iso74 I’m also facing this issue. Were you ever able to resolve it?
Hi @joshb ,
In case it helps, check one of the engine examples on how to load a skybox in code:
https://playcanvas.github.io/#/graphics/hardware-instancing
1 Like
iso74
February 14, 2023, 8:31am
#6
Hello, uff this thread is some years old Honestly I do not remember by now if I resolved it or how. In the meantime engine has evolved and maybe that what @Leonidas posted is the solution…
1 Like