Sign in to follow this  
MarianG

Object floating on environment

Recommended Posts

Hello my friends.

I have a new challenge, and I hope you can help me. 

Is there a way to pin an object to the floor, and use a environment hdr?

I tried with different cameras, with layer, with renderer target texture but witout succes.

I don;t know if I can get this in javascript, or I need some work in blender, 3DSMax or unity.

Any advice are welcome, I don't know how to deal with it. 

Here is one of my  attempts.

PS: I found a demo, it's exactly what I want.

 

 

 

Share this post


Link to post
Share on other sites
2 hours ago, brianzinn said:

What about this demo (it's linked from the homepage)?: https://www.smarteam3d.com/portfolio/car_config.html

Also, check out the PBR doc (scroll down to "Creating a dds environment file") https://doc.babylonjs.com/how_to/physically_based_rendering

I know, I developed it. :D There is a simple plane on the ground, but if I add an environment, the car with the plane will floating :(

 

Share this post


Link to post
Share on other sites

Hi @NasimiAsl :o.  My brain is floating too :)

Wonderful demos, but could you please explain me a llitle bit more about what it's happening here, what is the logical workflow?I think we can do it more "developer friendly" :D Please give me some hits, and I'll make a try.

Share this post


Link to post
Share on other sites

1.zoom out my sample and see the env sky mesh

2. make some mesh like that and replace it by sphere  ( you can make it by vertex shader

3. find limitation of your camera (zoom and rotation ) and set it

 enjoy from your material

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.