Skip to content

Conversation

@juniorxsound
Copy link
Contributor

What?
Add an example that shows how to use 360 panoramas with depth maps to apply vertex displacement and create 6 degrees of freedom 360 panoramic environment.

Desktop example
6DoF

VR example
quest

@mrdoob
Copy link
Owner

mrdoob commented Nov 14, 2019

Very nice!

@mrdoob mrdoob added this to the r111 milestone Nov 14, 2019
@mrdoob mrdoob changed the title Add panoramic 6DOF example 🌐 Examples: Added panoramic 6DOF example 🌐 Nov 14, 2019
@mrdoob mrdoob merged commit 55b268b into mrdoob:dev Nov 14, 2019
@mrdoob
Copy link
Owner

mrdoob commented Nov 14, 2019

Thanks!

@takahirox
Copy link
Collaborator

takahirox commented Nov 14, 2019

Looking nice! BTW some code indentations seem broken. Do you fix in your side @mrdoob ?

@mrdoob
Copy link
Owner

mrdoob commented Nov 14, 2019

I'll have time to clean it up next week, unless someone does before me.

I'm also curious to test if the ShaderMaterial is needed, or if the effect can be also achieved with a MeshBasicMaterial and the displacementMap property.

@juniorxsound
Copy link
Contributor Author

@mrdoob @takahirox Thanks 🎉 I can spend some time cleaning up the example and investigating whether it could be done without the ShaderMaterial

@mrdoob
Copy link
Owner

mrdoob commented Nov 14, 2019

That'd be great! 🙏

@juniorxsound
Copy link
Contributor Author

After a quick test I realized this could totally be done with a MeshStandardMaterial and a negative displacement scale - will commit the simplified version! Thanks for the suggestion @mrdoob 🙏🏽

meshstandardmaterial

@kanybekasanbekov
Copy link

Can anyone explain me how can view 360 panorama like this?

@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 27, 2019

@kanybekasanbekov Please use the forum for help requests.

@mrdoob
Copy link
Owner

mrdoob commented Nov 27, 2019

Actually, this probably should be done with MeshBasicMaterial too. But it doesn't support displacementMap 🤔

@juniorxsound
Copy link
Contributor Author

@mrdoob I can definitely take a look at adding displacementMap, displacementScale and displacementBias to MeshBasicMaterial, do you think it makes sense to add it?

@mrdoob
Copy link
Owner

mrdoob commented Nov 27, 2019

I was trying to think why it was only in MeshStandardMaterial, but I don't see why it couldn't be in MeshBasicMaterial, MeshLambertMaterial and MeshPhongMaterial too yeah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants