Projective skybox

PlayCanvas has a sweet “projective skybox” example. The ground of the skybox is projected so it seems as if the floating object is actually on the floor of the room depicted in the skybox. Easier to just see:

I wasn’t able to find if anyone has done this with three. Would be sweet to get an example going.

Would it work if the skybox textures are actually mapped onto a room-size box near the view point, instead of being applied to the scene background or some extremely large box? In this way the motion of camera will lead to a noticeable parallax.

We cannot just put the object on the bottom of the skybox, that won’t look the same at all.

1 Like

The Drei library has a simple to use Environment component that can project the environment HDR onto a plane inside a sphere. Use the ground attribute to adjust radius, height & scale. It looks quite good with little effort.

Sample JSX

        height: 10,
        radius: 115,
        scale: 100

Example 1 : Advancing GLTF Scenes - React Three Fiber Tutorials

Example 2 : Material Picker - React Three Fiber Tutorials

Other than this method, I would try to project the image using blenders UV projection and then export.


Maybe this:


Yes, you are right. It will work only if the 6 textures are well aligned along the box edges (which is rarely the case).

1 Like