Skip to content

Equirectangular photosphere view using inverted normal sphere

Notifications You must be signed in to change notification settings

tolotratlt/UnityPhotosphericView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity PhotosphericView

Photosphere view using procedural inverted normal sphere and custom unlit equirectangular shader to avoid big texture distorsion

Getting Started

Original idea Andrewnoske PanoramaViewer

  • Put InvertedSphere.cs into /Assets/Editor folder
  • Generate a procedural sphere (normal inverted) with custom radius (ex: 20) ( Menu > GameObject > Insert Other > Inverted Sphere... )
  • Use equirectangular.shader as sphere's material

Essential source file InvertedSphere

Notes

  • The problem with original idea is that texture present big distortion issue with conventional unlit shader, that's why custom equirectangular shader for inverted sphere was created
  • shader uses shader model 3.0 and requires OpenGL ES 3.0 to work properly. If you want to compile for android, check manualy the API version to OpenGL ES 3.0. remove OpenGL ES 2.0 otherwise Unity will freeze.
  • The generated sphere (manually with 3d modeling software or procedurally with unity) MUST be normal inverted otherwise it will not work

About

Equirectangular photosphere view using inverted normal sphere

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published