I don’t want to display it in six pictures.
I would like to use an Equirectangular diagram to demonstrate, for example:
Display it on the texture in this way so that canvas can see it.
How can I operate it?
I don’t want to display it in six pictures.
I would like to use an Equirectangular diagram to demonstrate, for example:
Display it on the texture in this way so that canvas can see it.
How can I operate it?
Hello
What you need is
const skyTexture = new BABYLON.EquiRectangularCubeTexture(textureURL, scene, 1024);
skyboxMaterial.reflectionTexture = skyTexture
skyboxMaterial.reflectionTexture.coordinatesMode = BABYLON.Texture.SKYBOX_MODE;
Here is a Playground using URL of your image on previous post
++
Tricotou
This is an. hdr file, not a. jpg image, I want to use HDR to display on the canvas page, such as:
Great, that’s exactly what I want. I will go and understand the principle. Thank you. Fortunately, this post did not sink
@sebavan If it is an env file, can it be displayed on canvas using EquiRectangular
nope, as env are CubeTextures internally you would need to convert
Do you have specific steps?
you should look into cube to panorama shaders this should be able to convert.
Okay, I’ll study it