Projected Ground Skybox

It is similar to flattening the bottom of the sky sphere mesh to the ground.

Even with just an environment map, the model can look like it is standing on the ground, rather than floating in the air.

But this shader is a little more advanced, and it does this without modifying the mesh.

1 Like

@bghgary threejs webgl - materials - ground projected environment mapping

Is this material specific to a ground? Can this material work with a wall or ceiling?

its projecting to an icosphere here, but i think it should work for a inverted cube too.

Try zooming out and you will see what itā€™s doing. :slight_smile:

The skybox is an icosphere, but the ground is a flat mesh right? If we are going to name this material with the word ā€œgroundā€ in it, is that too specific? Does it have to be a ground or can it be other things?

no the ground is virtual.
the shader finds where the y=0 is and projects the ground there.

i think that is why its is called Ground Projected.

I can try a box to see what the outcome is.

i also want to find out what happens if a mesh goes below 0.
does it get hiddenā€¦

3 Likes

Another thing that would be cool is the ability for the ground to receive shadows. Can it just be turned on easily? I will try and test it out. I also want to know whether the skybox image can also have an emissive map that brightens it ( as it should be unlit )?

Maybe it could be a mode within the background material ??? if it only impacts projection ?

Just let me know when itā€™s ready so I can just soak-up the result of your efforts :grin:
@qq2315137135 Hereā€™s one like for you since you asked for it :wink: You can take it for your solution or just for the anime gif :joy: Your choice :smile:

1 Like

We might be able to add it as an option to the background material.

But at the moment I donā€™t have any time over to look at it.
So if anyone else feels they want to pick up where I left off feel free.

Or else I will have some time in a couple of weeks. :rocket:

1 Like

No rush @Leon, just let me know if you do not find time later and I ll have a look :slight_smile:

i think this was from the babylon 5 announcement thread or niceps idk

2 Likes

Shh. :face_with_hand_over_mouth: Canā€™t use this :grin: Even troncated :laughing: Though, I sure do miss some of these PGs.
A nice relic you found there. I think Iā€™m gonna bookmark it.

Yup the main idea here is to productize it as a Babylon core feature :slight_smile:

@Leon are you still willing to contribute it ? or would you like someone else to finalize the integration in the repo ? (I can help on this part)

@sebavan sorry, thought I would have some time to complete, but itā€™s vacation time.

So if you want to complete it go for it :slight_smile:

1 Like

I will do ASAP then, thanks a lot !!!

1 Like

omg, this is exactly what i have been looking for. what is the best way to make use of it? itā€™s going to be killer in combination with blockadelabs skybox gen.

@bigrig you currently need to wait :slight_smile: or you can take @Leonā€™s code and integrate it within the background material to make it available in Babylon.

I am planning to work on it as soon as I ll have a bit of time.

2 Likes